/* ========================================
   Holiday Splash — Modern mobile-first CSS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --accent: #f43f5e;
  --accent-dark: #e11d48;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --card-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --card-shadow-hover: 0 20px 40px -12px rgba(15,23,42,0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.25rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
@media (max-width: 560px) {
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.82rem; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(150deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  position: relative;
  color: var(--white);
  padding: 3.5rem 1rem 0;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 70% 10%, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  position: relative;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2.25rem;
  position: relative;
}

/* ── Search Card ── */
.search-card {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  position: relative;
  text-align: left;
}
.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .search-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
}

.form-group { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group select, .form-group input {
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.form-group select:focus, .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29,78,216,0.1);
  background: var(--white);
}
.form-group input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  display: block;
}

.ages-row { display: flex; flex-wrap: wrap; gap: 0.5rem; grid-column: 1 / -1; }
.ages-row .age-select { flex: 1; min-width: 90px; max-width: 140px; }
.ages-row label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 0.2rem; }
.ages-row select { width: 100%; padding: 0.6rem 0.8rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 16px -4px rgba(29,78,216,0.4); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); box-shadow: 0 6px 16px -4px rgba(244,63,94,0.4); }
.btn-full { width: 100%; }
.btn-search { padding: 0.85rem 2rem; font-size: 1.02rem; }
.btn-cta { padding: 0.95rem 1.5rem; font-size: 1.05rem; }

/* ── Quick Search Shortcuts ── */
.quick-links { max-width: 880px; margin: 1.5rem auto; padding: 0 1rem; }
.quick-links h3 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.quick-links-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quick-chip {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.quick-chip:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 540px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Hotel Card ── */
.hotel-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hotel-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.hotel-card img { width: 100%; height: 190px; object-fit: cover; background: var(--border); }
.hotel-img-placeholder {
  width: 100%; height: 190px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.hotel-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.hotel-name { font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; }
.hotel-stars { color: #f59e0b; font-size: 0.85rem; }
.hotel-location { font-size: 0.82rem; color: var(--text-muted); }
.hotel-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.hotel-price { display: flex; align-items: baseline; gap: 0.3rem; margin-top: 0.5rem; }
.price-amount { font-size: 1.45rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.price-label { font-size: 0.8rem; color: var(--text-muted); }
.hotel-card-footer { padding: 0.85rem 1.1rem; border-top: 1px solid var(--border); }

/* ── Flight Card ── */
.flight-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: box-shadow 0.2s;
}
.flight-card:hover { box-shadow: var(--card-shadow-hover); }
.flight-info { flex: 1; }
.flight-airline { font-weight: 700; font-size: 0.95rem; }
.flight-times { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.flight-price-block { text-align: right; }
.flight-price { font-size: 1.35rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.flight-price-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ── Package Card ── */
.package-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s;
}
.package-card:hover { box-shadow: var(--card-shadow-hover); }
.package-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.package-total { text-align: right; }
.package-total-amount { font-size: 1.9rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.package-total-label { font-size: 0.78rem; color: var(--text-muted); }
.package-breakdown { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.package-item {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  flex: 1;
  min-width: 140px;
}
.package-item strong { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.package-disclaimer { font-size: 0.78rem; color: var(--text-muted); font-style: italic; border-top: 1px solid var(--border); padding-top: 0.75rem; }
.package-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ── Deal Cards ── */
.deal-card-link { text-decoration: none; color: inherit; display: block; }
.deal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.deal-card-link:hover .deal-card, .deal-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.deal-card img, .deal-card .deal-img-placeholder {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}
.deal-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.deal-route {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 800;
}
.deal-headline { font-size: 1.02rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.deal-dates { font-size: 0.82rem; color: var(--text-muted); }
.deal-price { display: flex; align-items: baseline; gap: 0.3rem; margin-top: auto; padding-top: 0.5rem; }
.deal-price .price-amount { font-size: 1.55rem; }
.deal-timestamp { font-size: 0.74rem; color: var(--text-muted); }
.deal-card-footer { padding: 0.85rem 1.1rem; border-top: 1px solid var(--border); display: flex; gap: 0.5rem; }

/* ── Deal Detail Page ── */
.deal-page-wrap { background: var(--white); border-bottom: 1px solid var(--border); }
.breadcrumb { margin-bottom: 1rem; font-size: 0.85rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.deal-page-title {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0.4rem;
}
.deal-page-posted { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.25rem; }

.deal-gallery { margin-bottom: 1.5rem; }
.deal-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.deal-gallery-main img { width: 100%; height: clamp(240px, 45vw, 460px); object-fit: cover; display: block; }
.deal-gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
.deal-gallery-thumbs img {
  width: 90px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s, outline 0.15s;
  outline: 2px solid transparent;
  flex-shrink: 0;
}
.deal-gallery-thumbs img:hover { opacity: 1; }
.deal-gallery-thumbs img.active { opacity: 1; outline-color: var(--primary); }

.deal-page-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2.5rem; }
@media (min-width: 800px) {
  .deal-page-grid { grid-template-columns: 1fr 320px; align-items: start; }
  .deal-page-sidebar { position: sticky; top: 80px; }
}

.deal-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.deal-fact {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}
.deal-fact-icon { font-size: 1.3rem; }
.deal-fact-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.deal-fact-value { font-size: 0.9rem; font-weight: 600; }

.deal-page-intro { font-size: 1.05rem; line-height: 1.65; margin-bottom: 1rem; }
.deal-page-body { font-size: 0.97rem; line-height: 1.7; color: #334155; }
.deal-page-body p { margin-bottom: 1rem; }
.deal-page-body h2, .deal-page-body h3 { margin: 1.5rem 0 0.6rem; letter-spacing: -0.01em; }
.deal-page-body ul, .deal-page-body ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.deal-page-body li { margin-bottom: 0.35rem; }
.deal-page-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 0.75rem 0; }

.deal-price-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.4rem;
  text-align: center;
}
.deal-price-box-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.deal-price-box-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.deal-price-box-price span { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.deal-page-was {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 600;
  margin-right: 0.5rem;
}
.deal-price-box-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.85rem; line-height: 1.5; }

/* ── Blog ── */
.blog-list { display: flex; flex-direction: column; gap: 1.1rem; }
.blog-card-link { text-decoration: none; color: inherit; display: block; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
@media (min-width: 640px) {
  .blog-card { flex-direction: row; }
  .blog-card-img { width: 240px; flex-shrink: 0; }
  .blog-card-img img { height: 100%; }
}
.blog-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.blog-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-card-inner { padding: 1.25rem; }
.blog-card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.blog-card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; letter-spacing: -0.015em; }
.blog-card-excerpt { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.6rem; }
.blog-card-meta { font-size: 0.78rem; color: var(--text-muted); }

.post-hero-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.post-body { font-size: 1rem; line-height: 1.75; color: #334155; }
.post-body p { margin-bottom: 1.1rem; }
.post-body h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--text); letter-spacing: -0.02em; }
.post-body h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body a { color: var(--primary); }
.post-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 1rem 0; }
.post-body .content-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1.25rem; }
.post-body .content-card h2 { margin-top: 0; font-size: 1.2rem; color: var(--primary); }

/* ── Results Page ── */
.results-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .results-layout { grid-template-columns: 1fr 1fr; } }
.results-flights, .results-hotels { display: flex; flex-direction: column; gap: 0.75rem; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn {
  padding: 0.7rem 1.2rem;
  border: none;
  background: none;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── States ── */
.loading { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); font-size: 0.95rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-deal { background: #ffe4e6; color: #be123c; }
.badge-new { background: #d1fae5; color: #065f46; }
.badge-hot { background: #fee2e2; color: #991b1b; }

/* ── Info Pages ── */
.page-hero {
  background: linear-gradient(150deg, #1e3a8a, #1d4ed8);
  color: white;
  padding: 2.75rem 1rem 2.25rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 0.4rem; letter-spacing: -0.025em; }
.page-hero p { opacity: 0.85; max-width: 640px; margin: 0 auto; font-size: 0.95rem; }

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.content-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--primary); letter-spacing: -0.01em; }
.content-card p, .content-card li { font-size: 0.94rem; color: var(--text-muted); line-height: 1.65; }
.content-card ul { padding-left: 1.2rem; }
.content-card li { margin-bottom: 0.4rem; }
.content-card a { color: var(--primary); }

/* ── Footer ── */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.25rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 3rem;
}
.footer a { color: #7dd3fc; text-decoration: none; }
.footer a:hover { color: white; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-disclaimer { max-width: 720px; margin: 1rem auto 0; font-size: 0.76rem; line-height: 1.55; opacity: 0.65; }

/* ── Compact search bar (results) ── */
.search-bar-compact { background: linear-gradient(150deg, #1e3a8a, #1d4ed8); padding: 1rem; }
.search-bar-compact .search-grid { max-width: 1100px; margin: 0 auto; }
.search-bar-compact .form-group label { color: rgba(255,255,255,0.75); }
.search-bar-compact .form-group select,
.search-bar-compact .form-group input { background: rgba(255,255,255,0.96); }

/* ── Utility ── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
