/* =========================================
   GLOBAL RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
  background: #0d47a1;
  color: #fff;
  height: 85px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
  transform: translateY(-2px);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #ffcc00;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* === Mobile Navigation === */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: #0d47a1;
    text-align: center;
    display: none;
  }

  .navbar ul.active {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background: linear-gradient(to right, #2196f3, #0d47a1);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero-content {
  position: relative;
  top: -40px;
}

.hero-content h2 {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

/* =========================================
   GLOBAL BUTTON STYLE
   ========================================= */
.btn {
  background: #ffcc00;
  color: #0d47a1;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #ffc107;
}

/* =========================================
   SEARCH SECTION
   ========================================= */
.search-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to bottom, #1565c0, #0d47a1);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 4rem 1rem;
  margin-top: -40px;
  width: 100%;
}

/* =========================================
   TAB BUTTONS
   ========================================= */
.main-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 2;
  max-width: 65%;
}

.tab-button-container {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  z-index: 200;
  width: 100%;
}

.tab {
  background: #0d47a1;
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab:hover {
  background: #1565c0;
  transform: translateY(-2px);
}
.tab.active {
  background: linear-gradient(135deg, #85a4d1, #1976d2);
  transform: scale(1.05);
}

/* =========================================
   WIDGET LAYOUT
   ========================================= */
.widget-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 2rem;
}

.widget-box {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 25px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  margin-top: 2rem;
}

.widget-frame iframe {
  width: 100% !important;
  height: 530px !important;
  border: none !important;
  display: block;
}

/* =========================================
   SIDE WIDGET (CAR RENTALS)
   ========================================= */
.side-widget-inline {
  flex: 1.3;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  padding: 0;
}

.widget-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  background: #0d47a1;
  color: #fff;
  padding: 0.8rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
}

.car-widget {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 0 1rem;
  text-align: center;
  box-sizing: border-box;
}




/* =========================================
   PROMO SECTION
   ========================================= */
.promo-section {
  text-align: center;
  padding: 1rem 1rem;
  background: linear-gradient(to right, #0d47a1, #1565c0);
  color: #fff;
  border-radius: 10px;
  margin: 2rem auto;
  width: 85%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.promo-section h2 {
  margin-bottom: 0.75rem;      /* reduced spacing below title */
  color: #ffcc00;
  font-weight: 800;
  font-size: 1.6rem;           /* slightly larger for balance */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
  padding: 5rem 1rem;
  background: linear-gradient(to bottom right, #e3f2fd, #bbdefb);
  border-radius: 10px;
  width: 85%;
  margin: 3rem auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #0d47a1;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  color: #1a237e;
}

.company-link {
  color: #1565c0;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.company-link:hover {
  color: #0d47a1;
  text-shadow: 0 0 8px rgba(21, 101, 192, 0.3);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}
footer a {
  color: #ffcc00;
  text-decoration: none;
}
footer svg {
  fill: #ffcc00;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
footer a:hover svg {
  fill: #ffc107;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
  .widget-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .main-widget,
  .side-widget-inline {
    width: 100% !important;
    max-width: 95% !important;
  }



  .tab-button-container {
    position: relative;
    top: 0;
    transform: translateX(-50%);
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 10px;
  }
}

/* === Reduce vertical padding around widgets === */
.search-section {
  padding: 2rem 0.5rem !important;   /* was 4rem */
}

.widget-row {
  padding-top: 0.5rem !important;
  margin-bottom: 0 !important;
  gap: 20px !important;
}

.widget-box {
  margin-top: 0.5rem !important;
  padding: 1rem !important;
}

.side-widget-inline {
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}

.promo-section {
  margin-top: 1.5rem !important; /* tighten section spacing */
}
.widget-frame iframe {
  height: 400px !important;  /* down from 530–440px */
}

.widget-frame iframe {
  width: 95% !important;      /* slightly narrower */
  max-width: 420px !important;
  margin: 0 auto !important;
  display: block !important;
}
@media (max-width: 992px) {
  .widget-frame iframe,
  .car-widget iframe {
    max-width: 100% !important;
    height: 460px !important;
  }
}
/* === Restore correct tab position === */
.tab-button-container {
  position: relative !important;
  top: 0 !important;
  transform: translateX(-50%) !important;
  margin-top: 1rem !important; /* give a small gap below header */
}

/* === Align both widgets nicely side by side === */
.widget-row {
  align-items: flex-start !important;
  gap: 25px !important;
  margin-top: 0 !important;
}

/* === Fix car widget height and remove white space under search button === */


/* === Maintain nice spacing below both widgets === */
.search-section {
  padding-bottom: 2rem !important;
}

/* === Adjust button section tabs spacing for desktop === */
@media (min-width: 992px) {
  .tab-button-container {
    margin-top: 1.5rem !important;
  }
}

/* === Make sure on mobile everything stacks well === */
@media (max-width: 768px) {
  .tab-button-container {
    position: relative !important;
    transform: none !important;
    margin-top: 0.5rem !important;
  }

 
}
/* === FINAL TAB POSITION FIX — WORKS ON DESKTOP + MOBILE === */

/* Default: Desktop & tablets */
.tab-button-container {
  position: relative !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.2rem !important;
  margin: 1rem auto 0 auto !important;
  width: 100% !important;
  max-width: 700px !important; /* keeps them centered, not stretched */
  z-index: 10;
}

/* Each button balanced */
.tab {
  flex: 1 1 auto !important;
  text-align: center !important;
  min-width: 120px;
}

/* Mobile: stack or wrap neatly and stay centered */
@media (max-width: 768px) {
  .tab-button-container {
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    margin: 0.5rem auto !important;
    justify-content: center !important;
  }

  .tab {
    flex: 0 1 45% !important;
    min-width: 130px !important;
  }
}
/* === FIX: Make Flights / Map Deals buttons compact and centered === */
.tab-button-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  width: auto !important;
  max-width: none !important;
  margin: 1rem auto !important;
}

.tab {
  flex: 0 0 auto !important; /* ✅ prevents buttons from stretching */
  min-width: 140px !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 12px !important;
  text-align: center !important;
}

/* Mobile: keep centered and allow wrapping */
@media (max-width: 768px) {
  .tab-button-container {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.6rem !important;
  }

  .tab {
    min-width: 120px !important;
    padding: 0.6rem 1.2rem !important;
  }
}
/* === FINAL ALIGNMENT FIX for tabs + car rental === */

/* Center the Flights / Map Deals buttons perfectly */
.tab-button-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
  gap: 1rem !important;
  margin: 0 auto 1rem auto !important;
  text-align: center !important;
}

.tab {
  flex: 0 0 auto !important;
  text-align: center !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 14px !important;
  min-width: 140px !important;
}

/* === Make Car Rental widget fill container on all screens === */
.side-widget-inline,
.car-widget {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
  border: none !important;
}

/* Keep proper sizing and stacking on mobile */
@media (max-width: 768px) {
  .widget-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.2rem !important;
  }

  .side-widget-inline {
    width: 95% !important;
    max-width: 95% !important;
  }



  .tab-button-container {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* Make Aviasales widget visually balanced */
.widget-frame iframe {
  width: 90% !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* === Fix Car Rental Widget Overflow on Mobile === */
.side-widget-inline,
.widget-frame,
.widget-frame iframe {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* Ensure no horizontal scroll */
body, html {
  overflow-x: hidden !important;
}

/* Better mobile spacing */
@media (max-width: 768px) {
  .side-widget-inline {
    margin: 0 auto;
    padding: 1rem;
  }

  .widget-frame {
    border-radius: 12px;
  }

  /* Optional: slightly smaller search button for narrow screens */
  .widget-frame button,
  .widget-frame input,
  .widget-frame select {
    max-width: 100%;
  }
}


/* === UNIVERSAL RESPONSIVE FIX: Car Rental Widget === */

/* Prevent body overflow */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

/* Car rental container */
.side-widget-inline {
  flex: 1.3;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  padding: 0;
  max-width: 480px;  /* ✅ Keep desktop proportionate */
  width: 100%;
}

/* Widget title */
.widget-title {
  font-size: 1.7rem; /* ✅ Slightly bigger text */
  font-weight: 700;
  text-align: center;
  background: #0d47a1;
  color: #fff;
  padding: 1rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
}

/* The actual iframe container */
.car-widget {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

/* The iframe itself */
.car-widget iframe {
  width: 100% !important;
  max-width: 480px !important; /* ✅ Desktop-friendly size */
  height: 430px !important;
  border: none !important;
  border-radius: 0 0 20px 20px;
  display: block;
  margin: 0 auto;
}

/* === Mobile adjustments === */
@media (max-width: 768px) {
  .side-widget-inline {
    width: 95% !important;
    max-width: 95% !important;
    padding: 0.8rem;
  }

  .car-widget iframe {
    width: 100% !important;
    max-width: 100% !important; /* ✅ Fit full mobile screen */
    height: 420px !important;
  }

  .widget-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.2rem !important;
  }
}

/* iPhone Safari fix */
@supports (-webkit-touch-callout: none) {
  .car-widget iframe {
    width: -webkit-fill-available !important;
  }
}


/* =========================================
   TRAVEL TIPS SECTION — MOBILE OPTIMIZED
   ========================================= */
.travel-tips-section {
  background: linear-gradient(135deg, #1976d2, #0d47a1);
  color: #fff;
  padding: 3rem 1rem;
  border-radius: 25px;
  margin: 3rem auto;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.travel-tips-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffcc00;
  margin-bottom: 1rem;
}

.travel-tips-section .intro {
  font-size: 1rem;
  color: #e3f2fd;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Each tip in a light card style */
.tip-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  text-align: left;
  color: #fff;
  transition: transform 0.2s ease, background 0.3s ease;
}

.tip-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.tip-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffeb3b;
  margin-bottom: 0.5rem;
}

.tip-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.tip-card a {
  color: #fff176;
  text-decoration: underline;
  font-weight: 600;
}
.tip-card a:hover {
  color: #ffcc00;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
  }

  .tip-card {
    margin-bottom: 0;
  }
}
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: linear-gradient(90deg, #ffcc00, #ffb300);
  color: #0d47a1;

  font-family: 'Inter', Arial, sans-serif; /* ✅ same as rest of site */
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;

  height: 40px;
  padding: 0 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.promo-bar strong {
  color: #0d47a1;
}

@media (max-width: 768px) {
  .promo-bar {
    flex-wrap: wrap;
    font-size: 0.9rem;
    height: auto;
    padding: 0.6rem;
  }
}

/* =============================
   TRAVEL FAQ SECTION
   ============================= */
.faq-section {
  width: 85%;
  margin: 3rem auto;
  padding: 2rem 1rem;
  background: linear-gradient(to bottom right, #e3f2fd, #bbdefb);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #0d47a1;
}

.faq-section h2 {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq-intro {
  text-align: center;
  color: #1a237e;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

/* FAQ item box */
.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Question button */
.faq-question {
  width: 100%;
  background: #0d47a1;
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #1565c0;
}

/* Arrow */
.faq-question .arrow {
  transition: transform 0.3s ease;
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  color: #333;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1rem;
}

.faq-answer p {
  padding: 0.5rem 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Active (expanded) state */
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1rem;
}
.faq-item.active .arrow {
  transform: rotate(180deg);
}

/* Responsive tweak */
@media (max-width: 768px) {
  .faq-section {
    width: 92%;
    padding: 1.5rem 0.8rem;
  }
  .faq-question {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    font-size: 0.9rem;
    padding: 0.9rem;
  }
  .faq-answer p {
    font-size: 0.9rem;
  }
}


/* === FIX: Reduce Top White Space for About + FAQ Sections === */
.about-section,
.faq-section {
  margin-top: 1.5rem !important;  /* reduce large gaps */
  padding-top: 2rem !important;   /* keeps section breathing room */
}

/* Optional: slightly tighter spacing for mobile */
@media (max-width: 768px) {
  .about-section,
  .faq-section {
    margin-top: 1rem !important;
    padding-top: 1.2rem !important;
  }
}
.about-section,
.faq-section {
  border-radius: 10px;
  margin-bottom: 2rem !important;
}

/* === FIX: Tighten gap between About and FAQ sections === */
.about-section {
  margin-bottom: 1.5rem !important;  /* reduce bottom space */
  padding-bottom: 1.5rem !important; /* keep slight breathing room */
}

.faq-section {
  margin-top: 0 !important;          /* remove extra gap above FAQ */
}
/* === FOOTER ROUND CARD STYLE === */
footer {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-radius: 20px;              /* ✅ Rounded corners */
  width: 85%;                       /* Match other sections */
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Make sure links and icons stay consistent */
footer a {
  color: #ffcc00;
  text-decoration: none;
}

footer a:hover {
  color: #fff176;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  footer {
    width: 92%;
    border-radius: 15px;
    padding: 1.5rem 0.8rem;
  }
}
