/* MyAirTrips.com - Main Stylesheet - Navy & White */
:root {
  --navy: #001f5b;
  --navy-dark: #001235;
  --navy-light: #003366;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --primary: #001f5b;
  --primary-dark: #001235;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --dark: #1a1a2e;
  --light: #f5f7fa;
  --text: #333;
  --text-muted: #5a6c7d;
  --border: #e1e8ed;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s, opacity 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: background 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 52px;
  width: auto;
  min-width: 80px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
/* Hide redundant text when using full logo image */
.logo img[src*="logo.png"] ~ .logo-text {
  display: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hamburger - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a3d6b 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: #0099b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,168,204,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Section Styles */
section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Destination Cards */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.dest-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.dest-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.dest-card-content {
  padding: 20px;
}

.dest-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.dest-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page Headers */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 140px 24px 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.9;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.contact-info p, .contact-info a {
  margin-bottom: 12px;
  display: block;
}

.contact-info a:hover {
  color: var(--accent);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white !important;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.2s;
}

.whatsapp-btn:hover {
  background: #20bd5a;
}

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

/* Contact Form */
.contact-form {
  background: var(--light);
  padding: 36px;
  border-radius: 12px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,204,0.2);
}

/* Content Pages */
.content-page {
  padding: 60px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.content-page h2 {
  color: var(--primary);
  margin: 32px 0 16px;
  font-size: 1.5rem;
}

.content-page h3 {
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.content-page p, .content-page li {
  margin-bottom: 12px;
  color: var(--text);
}

.content-page ul {
  margin-left: 24px;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 48px 24px 24px;
  margin-top: 60px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== HOMEPAGE - Priceline-style ===== */
.header-navbar {
  background: var(--white) !important;
  box-shadow: 0 1px 3px rgba(0,31,91,0.1);
}

.logo-text { color: var(--navy) !important; }
.nav-links a:hover { color: var(--accent) !important; }

/* Hero: 70% image + 30% form side by side - seamless, no cutoff */
.hero-split {
  display: flex;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
}

.hero-split-image {
  position: relative;
  flex: 0 0 70%;
  min-width: 0;
  overflow: hidden;
}

.hero-split-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.hero-split-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,31,91,0.6) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px 24px;
}

.hero-split-overlay h1 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 6px;
}

.hero-split-overlay p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
}

.hero-split-form {
  flex: 0 0 30%;
  min-width: 0;
  background: var(--white);
  padding: 24px 20px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  overflow-y: auto;
  overflow-x: hidden;
}

.hero-split-form .form-row-compact {
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Option buttons - mobile only (replace tabs) */
.booking-options-mobile {
  display: none;
}

.hero-booking-content {
  max-width: 100%;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.hero-badge {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.booking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 0;
}

.option-btn input { display: none; }
.option-btn.active, .option-btn:has(input:checked) {
  border-color: var(--accent);
  color: var(--navy);
  background: rgba(0,102,204,0.08);
}

.booking-form {
  display: none;
}
.booking-form.active { display: block; }

.trip-type-row {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-row-compact {
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.form-group-btn .btn-search {
  width: 100%;
  padding: 10px 14px;
  margin: 0;
  font-size: 0.95rem;
}

.trip-type-small {
  margin-bottom: 0;
  margin-top: 4px;
}

.trip-type-small .radio-option { font-size: 0.85rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.form-group.wide { grid-column: span 2; }
.form-group * { box-sizing: border-box; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  min-width: 0;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
}

.return-date input:disabled { opacity: 0.6; }

.bundle-options {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bundle-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.check-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; }

.btn-search {
  width: 100%;
  padding: 16px 24px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-search:hover { background: var(--navy-dark); }

.btn-loading, .btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cf-turnstile { margin-bottom: 16px; }

/* Deals Section */
.deals-section {
  padding: 60px 24px;
  background: var(--off-white);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.deals-section h2,
.destinations-section h2,
.why-section h2 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 28px;
  text-align: center;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.deal-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.deal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.deal-content {
  padding: 20px;
}

.deal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.deal-content h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.deal-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.deal-link {
  font-weight: 600;
  color: var(--accent);
}
.deal-link:hover { text-decoration: underline; }

/* Destinations Scroll */
.destinations-section {
  padding: 60px 24px;
  background: var(--white);
}

.destinations-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.dest-mini-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.dest-mini-card:hover { transform: scale(1.02); }

.dest-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dest-mini-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,31,91,0.9));
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

/* Why Section */
.why-section {
  padding: 60px 24px;
  background: var(--off-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Wider form on large desktop to prevent cutoff */
@media (min-width: 1400px) {
  .hero-split-image { flex: 0 0 65%; }
  .hero-split-form { flex: 0 0 35%; padding: 28px 24px; }
  .hero-split-form .form-row-compact { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-split { flex-direction: column; min-height: auto; }
  .hero-split-image { flex: none; width: 100%; min-height: 280px; }
  .hero-split-image img { min-height: 280px; }
  .hero-split-form { flex: none; width: 100%; min-width: auto; padding: 24px 20px; box-shadow: 0 -4px 24px rgba(0,0,0,0.08); }
  .hero-split-form .form-row-compact { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 768px) {
  .nav-container { padding: 0 16px; height: 64px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  body.nav-open .nav-links { transform: translateX(0); }
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .logo-text { font-size: 1.2rem; }
  .logo img { height: 44px; min-width: 60px; }
  .hero-split-overlay { padding: 24px 20px 20px; }
  .hero-split-overlay h1 { font-size: 1.4rem; }
  .hero-booking-content { padding: 0; }
  .booking-tabs { display: none; }
  .booking-options-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .form-row { grid-template-columns: 1fr; }
  .form-row-compact { grid-template-columns: 1fr !important; gap: 12px; }
  .form-group.wide { grid-column: span 1; }
  .form-group-btn .btn-search { min-height: 48px; padding: 14px; }
  .trip-type-row { flex-wrap: wrap; }
  .deals-section, .destinations-section, .why-section { padding: 40px 16px; }
  .deals-section h2, .destinations-section h2, .why-section h2 { font-size: 1.5rem; margin-bottom: 20px; }
  .deals-grid { grid-template-columns: 1fr; gap: 16px; }
  .destinations-scroll { gap: 12px; padding-bottom: 12px; }
  .dest-mini-card { flex: 0 0 130px; }
  .section-inner { padding: 0; }
  .footer { padding: 32px 16px 20px; }
  .footer-grid { gap: 24px; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 12px; }
  .logo-text { font-size: 1rem; }
  .hero-split-image { min-height: 220px; }
  .hero-split-image img { min-height: 220px; }
  .hero-split-overlay h1 { font-size: 1.25rem; }
  .hero-split-form { padding: 20px 16px; }
  .dest-mini-card { flex: 0 0 110px; }
  .content-page { padding: 40px 16px 60px; }
  .contact-grid { gap: 24px; }
  .page-hero { padding: 100px 16px 40px; }
  .page-hero h1 { font-size: 1.75rem; }
}

/* Prevent horizontal scroll on mobile */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* Touch-friendly tap targets */
@media (pointer: coarse) {
  .btn, .tab-btn, .nav-links a, .deal-link, .dest-mini-card {
    min-height: 44px;
  }
  .form-group input, .form-group select {
    min-height: 48px;
    font-size: 16px;
  }
}

.footer { background: var(--navy-dark) !important; }
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%) !important; }
.section-title h2 { color: var(--navy) !important; }
.contact-info h3 { color: var(--navy) !important; }
.content-page h2 { color: var(--navy) !important; }
.btn-primary { background: var(--navy) !important; }
.btn-primary:hover { background: var(--navy-dark) !important; box-shadow: 0 8px 25px rgba(0,31,91,0.3) !important; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent) !important; }
