/* ============================================================
   sunny-global.css — Sunny Travel Child Theme
   Google Fonts loaded via wp_enqueue_style in functions.php
   ============================================================ */

/* ---- Variables ---- */
:root {
  --cream: #faf6f1;
  --cream-dark: #f3ece2;
  --navy: #1c2b3a;
  --navy-light: #2e4057;
  --blue-muted: #5b7a99;
  --text: #374151;
  --text-muted: #6b7280;
  --text-light: #a8a09a;
  --orange: #f07c1e;
  --orange-light: #f5a623;
  --orange-pale: #fef3e2;
  --teal: #2d9d8f;
  --gradient: linear-gradient(135deg, #f5a623 0%, #f07c1e 100%);
  --white: #ffffff;
  --border: #e0d9d0;
  --card-shadow: 0 2px 24px rgba(0,0,0,0.07);
  --card-radius: 20px;
  --input-radius: 12px;
  --header-height: 68px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream) !important;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button {
  font-family: 'Inter', sans-serif;
  touch-action: manipulation; /* eliminates 300ms tap delay on iOS */
}
input, select, textarea { font-family: 'Inter', sans-serif; }
img { max-width: 100%; height: auto; display: block; }

/* Headings use Playfair Display */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* ---- Elementor plugin compatibility (theme-agnostic) ---- */
/* Elementor plugin still works fine with any standalone theme.
   These keep Elementor sections full-width and the header visible
   on Elementor-edited pages. */
.elementor-section { width: 100%; }
.elementor-page .site-header { display: block; }
.elementor-page .site-footer { display: block; }

/* Strip WP block editor and content wrappers — scoped away from single posts
   (body.single uses these classes for real content rendering via the_content()) */
body:not(.single) .wp-site-blocks,
body:not(.single) .wp-block-post-content,
body:not(.single) .entry-content,
body:not(.single) .page-content,
body:not(.single) .wp-block-group {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Remove WP default blue link colour inside our pages */
.auth-page a,
.plan-page a,
.booking-page a,
.my-trips-page a,
.itinerary-page a { color: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cream);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo-wordmark { font-size: 1rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; font-family: 'Inter', sans-serif; }
.logo-wordmark em { font-style: italic; color: var(--orange); font-family: 'Playfair Display', serif; font-weight: 600; }

/* Nav — bullet/disc reset first (WP/Elementor adds list-style:disc by default) */
nav ul, nav ol,
.sunny-nav-links,
.sunny-nav-links li,
.site-nav,
.site-nav li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Nav layout */
.site-nav,
.sunny-nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none !important;
  position: absolute; left: 50%; transform: translateX(-50%);
  padding: 0 !important; margin: 0 !important;
}
.site-nav li,
.sunny-nav-links li { list-style: none !important; display: block; }
.site-nav a,
.sunny-nav-links a { font-size: .9375rem; color: var(--text); font-weight: 400; transition: color .2s; white-space: nowrap; text-decoration: none; font-family: 'Inter', sans-serif; }
.site-nav a:hover,
.sunny-nav-links a:hover { color: var(--orange); }
.site-nav a.active,
.sunny-nav-links .current-menu-item > a,
.sunny-nav-links .current-page-ancestor > a { color: var(--orange); font-weight: 500; }
.sunny-nav-links .sub-menu { display: none; }

/* Header right */
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-header-signin {
  background: var(--gradient); color: #fff; border: none; padding: 10px 26px;
  border-radius: 50px; font-size: .9375rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block; transition: opacity .2s; font-family: 'Inter', sans-serif;
}
.btn-header-signin:hover { opacity: .88; color: #fff; }
.header-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #e8dfd4;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  cursor: pointer; transition: background .2s;
}
.header-avatar:hover { background: #ddd3c7; }
.btn-header-logout {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 6px; display: flex; align-items: center; border-radius: 8px; transition: color .2s;
}
.btn-header-logout:hover { color: var(--orange); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px; background: var(--gradient); color: #fff; border: none;
  border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: opacity .2s, transform .1s; text-decoration: none; width: 100%;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { opacity: .9; color: #fff; }
.btn-primary:active { transform: scale(.98); }

.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 14px 32px; background: var(--white); color: var(--text);
  border: 1px solid #e0d9d0; border-radius: 50px; font-size: .9375rem;
  font-weight: 500; cursor: pointer; transition: border-color .2s, box-shadow .2s;
  font-family: 'Inter', sans-serif;
}
.btn-google:hover:not([disabled]) { border-color: #c5b9ac; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 32px; background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border); border-radius: 50px; font-size: .9375rem;
  font-weight: 500; cursor: pointer; transition: border-color .2s, color .2s; width: 100%;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* Nextend Social Login container style */
.nsl-container { margin-bottom: 0; }
.nsl-container .nsl-button { border-radius: 50px !important; width: 100% !important; justify-content: center !important; }

/* ============================================================
   FORM ELEMENTS (standard boxed — booking page)
   ============================================================ */
.form-group { position: relative; margin-bottom: 12px; }
.form-label { display: block; font-size: .8125rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; font-family: 'Inter', sans-serif; }
.form-label .required { color: var(--orange); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #e0d9d0;
  border-radius: var(--input-radius); background: var(--white); font-size: .9375rem;
  color: var(--text); outline: none; transition: border-color .2s; line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,124,30,.08); }
.form-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form-textarea { resize: vertical; min-height: 110px; }

.input-icon-wrap { position: relative; }
.input-icon-right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--teal); pointer-events: none; }
/* when input has icon, add right padding so text doesn't overlap */
.input-icon-wrap .form-input { padding-right: 42px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Error messages */
.field-error { display: none; color: #ef4444; font-size: .8rem; margin-top: 5px; text-align: left; font-family: 'Inter', sans-serif; }
.field-error.visible { display: block; }

/* ============================================================
   AUTH DIVIDER & PAGES
   ============================================================ */
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 20px 0;
  color: var(--text-light); font-size: .875rem; font-family: 'Inter', sans-serif;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Auth page — centred in space below header */
.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2.5rem 1.5rem;
  background: var(--cream) !important;
}
.auth-card { width: 100%; max-width: 460px; text-align: center; }
.auth-sun { margin: 0 auto 1.5rem; display: block; }
.auth-title {
  font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 700;
  color: var(--navy); margin-bottom: 8px; line-height: 1.2;
}
.auth-subtitle { color: var(--blue-muted); font-size: .9375rem; margin-bottom: 2rem; font-family: 'Inter', sans-serif; }
.auth-footer { margin-top: 1.25rem; font-size: .875rem; color: var(--text-muted); font-family: 'Inter', sans-serif; }
.auth-footer a { color: var(--orange); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Auth-page-specific input / button overrides */
.auth-card .form-input {
  border-radius: 14px !important;
  border: 1.5px solid #e8e0d6 !important;
  padding: 15px 18px !important;
  background: var(--white) !important;
  font-size: .9375rem !important;
}
.auth-card .input-icon-wrap .form-input { padding-right: 46px !important; }
.auth-card .btn-google {
  border-radius: 50px !important;
  border: 1.5px solid #e8e0d6 !important;
  padding: 15px 20px !important;
  font-size: 1rem !important;
}
.auth-card .btn-primary {
  border-radius: 50px !important;
  padding: 16px 32px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

/* ============================================================
   PAGE LABEL
   ============================================================ */
.page-label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px; display: block;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   PLAN PAGE — underline-style inputs
   ============================================================ */
.plan-page {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height)); /* mobile Safari: excludes browser chrome */
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem 1.5rem; text-align: center;
}
.plan-heading {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700;
  color: var(--navy); margin-bottom: 8px; line-height: 1.1;
}
.plan-subheading { font-size: 1rem; color: var(--text-muted); margin-bottom: 2.5rem; font-family: 'Inter', sans-serif; }
.plan-form-wrap { width: 100%; max-width: 680px; text-align: left; }

.plan-card {
  background: var(--white); border-radius: var(--card-radius);
  padding: 2.5rem 2.75rem; box-shadow: var(--card-shadow);
}

.plan-field-label {
  display: flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue-muted); margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.plan-input, .plan-select {
  background: none; border: none; border-bottom: 1.5px solid #e0d9d0;
  width: 100%; padding: 12px 0 10px; font-size: 1rem; color: var(--text);
  outline: none; transition: border-bottom-color .2s; font-family: 'Inter', sans-serif;
  min-height: 44px; /* tap target */
}
.plan-input:focus, .plan-select:focus { border-bottom-color: var(--orange); }
.plan-input::placeholder { color: var(--text-light); font-size: .9375rem; }
/* Ensure date picker icon is visible on mobile */
input[type="date"].plan-input { -webkit-appearance: none; appearance: none; }
.plan-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px;
}

.plan-field { margin-bottom: 1.75rem; }
.plan-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.75rem; }

/* Vibe pills */
.vibe-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vibe-pill {
  padding: 8px 14px; border-radius: 50px; border: 1px solid #e0d9d0;
  background: var(--white); font-size: .875rem; color: var(--text); cursor: pointer;
  transition: border-color .18s, color .18s, background .18s; user-select: none;
  font-family: 'Inter', sans-serif; white-space: nowrap; flex: 0 1 auto;
  touch-action: manipulation; /* no 300ms delay on iOS */
  min-height: 44px; /* WCAG / Apple HIG minimum touch target */
}
.vibe-pill:hover { border-color: var(--orange); color: var(--orange); }
.vibe-pill.active {
  background: var(--gradient); color: #fff; border-color: transparent; font-weight: 600;
}
.vibe-pill.active:hover { color: #fff; }

/* Destination autocomplete dropdown */
.destination-field-wrap { position: relative; }
.destination-suggestions {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid #eee; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); max-height: 260px;
  overflow-y: auto; z-index: 200; padding: 6px;
}
.destination-suggestion-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 10px; cursor: pointer; font-size: .9375rem; color: var(--navy);
  font-family: 'Inter', sans-serif; transition: background .12s;
}
.destination-suggestion-item:hover,
.destination-suggestion-item.active { background: #fdf3e7; }
.destination-suggestion-item svg {
  flex-shrink: 0; color: #9ca3af; width: 16px; height: 16px;
}

/* AI Concierge badge */
.ai-badge {
  display: inline-flex; align-items: center; gap: 7px; background: #f5e6d3;
  border: none; padding: 8px 20px; border-radius: 50px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #c17b2a; margin-bottom: 24px; font-family: 'Inter', sans-serif;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  display: none; position: fixed; inset: 0; background: var(--cream);
  z-index: 9999; /* above sticky header (100) and mobile nav (9999 — same level, loads after) */
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 20px;
  /* Prevent iOS overscroll from peeking behind the overlay */
  -webkit-overflow-scrolling: auto;
}
.loading-overlay.active { display: flex; }
.loading-sun { animation: sunny-spin 2.5s linear infinite; }
@keyframes sunny-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loading-title {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); font-weight: 600;
}
.loading-subtitle { font-size: .9375rem; color: var(--text-muted); font-family: 'Inter', sans-serif; }

/* ============================================================
   ITINERARY PAGE
   ============================================================ */
.itinerary-page { padding: 3rem 2.5rem; max-width: 1200px; margin: 0 auto; }
.itinerary-grid {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 2.5rem; align-items: start; margin-top: 2rem;
}
.itinerary-grid > div { min-width: 0; }
.itinerary-tag {
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px; display: block;
  font-family: 'Inter', sans-serif;
}
.itinerary-title {
  font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: 14px;
}
.itinerary-desc {
  color: var(--text-muted); font-size: .9375rem; line-height: 1.7;
  margin-bottom: 2rem; font-style: italic; font-family: 'Inter', sans-serif;
}

.section-heading {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  color: var(--navy); font-weight: 600; margin-bottom: 1.25rem;
}
.section-heading-icon {
  width: 28px; height: 28px; background: var(--orange-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--orange); flex-shrink: 0;
}

/* Day cards */
.day-card {
  background: var(--white); border-radius: var(--card-radius);
  overflow: hidden; margin-bottom: 1.25rem; box-shadow: var(--card-shadow);
}
.day-card-header {
  background: #fef8f0; border-bottom: 1px solid #f0e4ce;
  padding: 1.1rem 1.5rem; display: flex; align-items: baseline; gap: 14px;
}
.day-number {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--orange); flex-shrink: 0;
}
.day-title {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 600; font-style: italic; color: var(--navy); line-height: 1.3;
}
.day-card-grid { display: grid; grid-template-columns: 1fr 1fr; }
.day-slot { padding: 1.1rem 1.4rem; border-right: 1px solid #f0e4ce; border-bottom: 1px solid #f0e4ce; }
.day-slot:nth-child(2n) { border-right: none; }
.day-slot:nth-child(3), .day-slot:nth-child(4) { border-bottom: none; }
.day-slot-label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-muted); margin-bottom: 7px;
  font-family: 'Inter', sans-serif;
}
.day-slot p { font-size: .8125rem; color: var(--text); line-height: 1.65; font-family: 'Inter', sans-serif; }

/* Sidebar cards */
.sidebar-card {
  background: var(--white); border-radius: 16px;
  padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--card-shadow);
}
.sidebar-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1rem; padding-bottom: .875rem; border-bottom: 1px solid #f0e4ce;
}
.sidebar-card-icon { color: var(--orange); font-size: 1rem; display: flex; align-items: center; }
.sidebar-card-title {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; color: var(--navy);
}

.sidebar-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: .75rem 0; border-bottom: 1px solid #f0e4ce;
}
.sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-item-info { flex: 1; min-width: 0; }
.sidebar-item-name { font-weight: 600; font-size: .875rem; color: var(--navy); margin-bottom: 3px; line-height: 1.3; font-family: 'Inter', sans-serif; }
.sidebar-item-detail { font-size: .78rem; color: var(--text-muted); line-height: 1.4; font-family: 'Inter', sans-serif; }
.sidebar-item-stars { color: var(--orange-light); font-size: .8rem; }
.sidebar-item-price { font-weight: 700; font-size: .9375rem; color: var(--orange); white-space: nowrap; flex-shrink: 0; font-family: 'Inter', sans-serif; }
.sidebar-item-price-label { font-size: .7rem; color: var(--text-muted); font-weight: 400; }

.sidebar-actions { margin-top: .75rem; display: flex; flex-direction: column; gap: 10px; }
.btn-book {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; background: var(--gradient); color: #fff;
  border: none; border-radius: 50px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: opacity .2s; text-decoration: none; font-family: 'Inter', sans-serif;
}
.btn-book:hover { opacity: .9; color: #fff; }

/* Save trip button — pill with border */
.link-save {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: .875rem; color: var(--text-muted); cursor: pointer;
  padding: 12px 20px; transition: border-color .2s, color .2s;
  background: var(--white); border: 1px solid #e0d9d0; border-radius: 50px;
  width: 100%; text-decoration: none; font-family: 'Inter', sans-serif;
}
.link-save:hover { border-color: var(--orange); color: var(--orange); }
.link-save.saved { color: var(--teal); border-color: #2d9d8f; cursor: default; }
.link-save.saved:hover { color: var(--teal); }

/* Adjust trip link */
.link-adjust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .8125rem; color: var(--text-muted); cursor: pointer;
  background: none; border: none; width: 100%; text-decoration: none;
  transition: color .2s; padding: 4px; font-family: 'Inter', sans-serif;
}
.link-adjust:hover { color: var(--orange); }

/* ============================================================
   MY TRIPS PAGE
   ============================================================ */
.my-trips-page { padding: 3rem 2.5rem; max-width: 900px; margin: 0 auto; }
.my-trips-header {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem;
}
.my-trips-title {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700;
  color: var(--navy); line-height: 1;
}

.btn-new-trip {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  background: var(--gradient); color: #fff; border: none; border-radius: 50px;
  font-size: .9375rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: opacity .2s; white-space: nowrap; flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.btn-new-trip:hover { opacity: .9; color: #fff; }

.empty-state {
  background: var(--white); border-radius: var(--card-radius);
  padding: 4rem 3rem; text-align: center; box-shadow: var(--card-shadow);
}
.empty-state h3 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.empty-state p { font-size: .9375rem; color: var(--text-muted); margin-bottom: 22px; font-family: 'Inter', sans-serif; }
.empty-state a { color: var(--orange); font-weight: 600; font-size: .9375rem; }
.empty-state a:hover { text-decoration: underline; }

#trips-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 860px;
  width: 100%;
}

.trip-card {
  background: var(--white); border-radius: var(--card-radius); padding: 1.75rem 2rem;
  margin-bottom: 1rem; box-shadow: var(--card-shadow); display: flex;
  flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .15s;
  cursor: pointer; width: 100%; max-width: 100%;
}
.trip-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.10); transform: translateY(-2px); }
.trip-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.trip-card-name {
  font-family: 'Playfair Display', serif; font-size: 1.375rem;
  font-weight: 700; color: var(--navy); line-height: 1.2;
  transition: color .2s;
}
.trip-card:hover .trip-card-name { color: var(--orange); }
.trip-card-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.55; font-family: 'Inter', sans-serif; }
.trip-card-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: .8125rem; color: var(--text-muted); margin-top: 4px; flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
}
.trip-card-meta span { display: flex; align-items: center; gap: 5px; }
.btn-delete-trip {
  background: none; border: none; cursor: pointer; color: var(--text-light);
  padding: 6px; border-radius: 8px; transition: color .2s, background .2s; flex-shrink: 0;
}
.btn-delete-trip:hover { color: #ef4444; background: #fef2f2; }

/* ============================================================
   BOOKING PAGE
   ============================================================ */
.booking-page { padding: 3rem 2.5rem; max-width: 680px; margin: 0 auto; }
.booking-title {
  font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px; line-height: 1.2;
}
.booking-title em { font-style: italic; color: var(--orange); }
.booking-subtitle { font-size: .9375rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; font-family: 'Inter', sans-serif; }
.booking-card {
  background: var(--white); border-radius: var(--card-radius);
  padding: 2.25rem 2.5rem; box-shadow: var(--card-shadow);
}

.info-banner {
  background: #fdf3e7; border: 1px solid #f5dbb5; border-radius: 12px;
  padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 2rem; font-size: .875rem; color: var(--text); line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.info-banner-icon { color: var(--orange); flex-shrink: 0; margin-top: 1px; }

.link-back {
  display: inline-flex; align-items: center; gap: 6px; font-size: .875rem;
  color: var(--text-muted); text-decoration: none; margin-top: 18px; transition: color .2s;
  font-family: 'Inter', sans-serif;
}
.link-back:hover { color: var(--orange); }

/* ============================================================
   SUCCESS OVERLAY
   ============================================================ */
.success-overlay {
  display: none; position: fixed; inset: 0; background: rgba(250,246,241,.97);
  z-index: 300; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px;
}
.success-overlay.active { display: flex; }
.success-circle {
  width: 72px; height: 72px; background: var(--gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 8px;
}
.success-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--navy); }
.success-body { font-size: .9375rem; color: var(--text-muted); max-width: 420px; line-height: 1.6; font-family: 'Inter', sans-serif; }

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */
.blog-page { padding: 60px 40px; max-width: 1100px; margin: 0 auto; }
.blog-label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
  display: block; font-family: 'Inter', sans-serif;
}
.blog-title {
  font-family: 'Playfair Display', serif; font-size: 2.75rem;
  color: var(--navy); margin-bottom: 40px; line-height: 1.15;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Card */
.blog-card {
  border-radius: 18px; overflow: hidden; background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.05); text-decoration: none;
  color: inherit; transition: transform .15s, box-shadow .15s; display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.10); }

/* Thumbnail or placeholder */
.blog-card img.blog-card-img,
.blog-card .blog-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-img-placeholder {
  width: 100%; height: 200px; background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
}

.blog-card-body { padding: 20px; }
.blog-card-tag {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--orange); background: #fdf3e7;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}
.blog-card-title {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  color: var(--navy); margin-bottom: 8px; line-height: 1.3; font-weight: 700;
}
.blog-card-excerpt {
  font-size: .875rem; color: var(--text-muted); line-height: 1.6;
  font-family: 'Inter', sans-serif;
}
.blog-card-date {
  font-size: .75rem; color: #9ca3af; margin-top: 12px; font-family: 'Inter', sans-serif;
}

/* Pagination */
.blog-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 48px; flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 50px; font-size: .875rem; font-family: 'Inter', sans-serif;
  font-weight: 500; color: var(--text-muted); background: var(--white);
  border: 1px solid var(--border); text-decoration: none; transition: border-color .15s, color .15s;
}
.blog-pagination .page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.blog-pagination .page-numbers.current {
  background: var(--gradient); color: #fff; border-color: transparent; font-weight: 600;
}
.blog-pagination .page-numbers.dots {
  border: none; background: none; pointer-events: none;
}

/* Empty state */
.blog-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 80px 40px; text-align: center;
  background: var(--white); border-radius: var(--card-radius); box-shadow: var(--card-shadow);
}
.blog-empty p {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  color: var(--text-muted); font-style: italic;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post { padding: 60px 40px; max-width: 720px; margin: 0 auto; margin-bottom: 60px; }

.single-post .back-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 24px; color: var(--orange); text-decoration: none;
  font-size: .9375rem; font-weight: 500; font-family: 'Inter', sans-serif;
  transition: opacity .15s;
}
.single-post .back-link:hover { opacity: .75; }

.single-post h1 {
  font-family: 'Playfair Display', serif; font-size: 2.5rem;
  color: var(--navy); margin-bottom: 12px; line-height: 1.2;
}
.single-post .post-meta {
  font-size: .875rem; color: #9ca3af; margin-bottom: 32px;
  font-family: 'Inter', sans-serif;
}
.single-post img {
  width: 100%; border-radius: 18px; margin-bottom: 36px; display: block;
}

/* Post content typography */
.single-post .post-content { font-size: 1rem; line-height: 1.8; color: var(--text); }
.single-post .post-content > * + * { margin-top: 1.25em; }
.single-post .post-content h2 {
  font-family: 'Playfair Display', serif; font-size: 1.75rem;
  color: var(--navy); margin-top: 2rem; margin-bottom: .75rem; line-height: 1.25;
}
.single-post .post-content h3 {
  font-family: 'Playfair Display', serif; font-size: 1.375rem;
  color: var(--navy); margin-top: 1.75rem; margin-bottom: .5rem;
}
.single-post .post-content p { margin-bottom: 1.25em; }
.single-post .post-content a { color: var(--orange); text-decoration: underline; }
.single-post .post-content ul,
.single-post .post-content ol { padding-left: 1.5em; }
.single-post .post-content li { margin-bottom: .4em; }
.single-post .post-content img {
  border-radius: 14px; margin: 1.75rem 0; width: 100%;
}
.single-post .post-content blockquote {
  border-left: 3px solid var(--orange); background: #fdf3e7;
  padding: 12px 20px; margin: 1.75rem 0; border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--text-muted);
}
.single-post .post-content blockquote p { margin-bottom: 0; }

/* Post navigation */
.single-post .post-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.single-post .post-nav-link {
  display: flex; flex-direction: column; gap: 4px; max-width: 48%;
  text-decoration: none; color: inherit; transition: color .15s;
}
.single-post .post-nav-link--next { text-align: right; margin-left: auto; }
.single-post .post-nav-link:hover .post-nav-title { color: var(--orange); }
.single-post .post-nav-dir {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); font-family: 'Inter', sans-serif;
}
.single-post .post-nav-title {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  color: var(--navy); line-height: 1.3; transition: color .15s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .itinerary-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .itinerary-page { padding: 2rem 1.5rem; }
}
/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 8px; transition: background .2s;
}
.nav-toggle:hover { background: rgba(240,124,30,.08); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
/* X state */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .blog-page { padding: 40px 24px; }
  .blog-title { font-size: 2.1rem; margin-bottom: 28px; }
  .single-post { padding: 40px 24px; }
  .single-post h1 { font-size: 1.875rem; }
  .nav-toggle { display: flex; }
  .site-nav, .sunny-nav-links { display: none; }
  /* Mobile nav drawer — fixed so it escapes the sticky header stacking context */
  .site-nav.nav-open,
  nav .sunny-nav-links.nav-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    transform: none; /* reset the desktop translateX(-50%) centering */
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999;
    gap: 0;
    width: 100%;
  }
  .site-nav.nav-open li,
  nav .sunny-nav-links.nav-open li { border-bottom: 1px solid #f0e4ce; }
  .site-nav.nav-open li:last-child,
  nav .sunny-nav-links.nav-open li:last-child { border-bottom: none; }
  .site-nav.nav-open a,
  nav .sunny-nav-links.nav-open a {
    display: block; padding: 12px 0;
    font-size: 1rem; color: var(--navy); font-weight: 500;
  }
  .site-nav.nav-open a:hover,
  nav .sunny-nav-links.nav-open a:hover { color: var(--orange); }
  .site-header { padding: 0 1.25rem; }
  .my-trips-page, .booking-page { padding: 2rem 1.25rem; }
  .plan-heading { font-size: 2.25rem; }
  .itinerary-title { font-size: 1.875rem; }
  .my-trips-title { font-size: 2.25rem; }
  .plan-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .day-card-grid { grid-template-columns: 1fr; }
  .day-slot { border-right: none !important; }
  .day-slot:nth-child(3) { border-bottom: 1px solid #f0e4ce !important; }
  .day-slot:nth-child(4) { border-bottom: none !important; }
  .booking-page { padding: 2rem 1.25rem; }
  .booking-title { font-size: 1.75rem; }
}
@media (max-width: 540px) {
    #trips-container { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .my-trips-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .booking-card { padding: 1.5rem 1.25rem; }

  .plan-card { padding: 1.75rem 1.5rem; }

  .auth-title { font-size: 1.875rem; }

  .auth-card { max-width: 100%; }

  .plan-page { padding: 2rem 1.25rem; }

  .my-trips-page { padding: 1.5rem 1rem; }

	.btn-header-signin{

		font-size: 12px !important;

	}
}
@media (max-width: 375px) {
  .plan-heading { font-size: 2rem; }
  .auth-title { font-size: 1.75rem; }
  .site-header { padding: 0 1rem; }
}
