/* ============================================================
   TripTour – Light-Blue Theme
   ============================================================ */

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

:root {
  --primary:   #0284c7;
  --primary-l: #38bdf8;
  --primary-d: #0369a1;
  --sky:       #e0f2fe;
  --sky-d:     #bae6fd;
  --bg:        #f0f9ff;
  --white:     #ffffff;
  --text:      #1e293b;
  --muted:     #64748b;
  --border:    #bae6fd;
  --card-sh:   0 2px 16px rgba(2,132,199,.12);
  --radius:    14px;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  background: var(--primary-d);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(3,105,161,.3);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav-brand span { color: var(--primary-l); }

.nav-links {
  display: flex;
  gap: .2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  padding: .45rem .9rem;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 500;
  transition: background .18s, color .18s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.nav-auth { display: flex; gap: .6rem; }

.btn-outline-nav {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.55);
  color: var(--white);
  padding: .38rem .95rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: background .18s;
}
.btn-outline-nav:hover { background: rgba(255,255,255,.15); }

.btn-solid-nav {
  background: var(--primary-l);
  border: none;
  color: var(--primary-d);
  padding: .38rem .95rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  transition: background .18s;
}
.btn-solid-nav:hover { background: #7dd3fc; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 50%, #0ea5e9 100%);
  color: var(--white);
  text-align: center;
  padding: 5.5rem 1rem 4.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.hero p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-search {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
}
.hero-search input {
  flex: 1;
  min-width: 220px;
  padding: .8rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255,255,255,.95);
  color: var(--text);
  outline: none;
}
.hero-search input::placeholder { color: var(--muted); }

.btn-primary {
  background: var(--white);
  color: var(--primary-d);
  border: none;
  padding: .8rem 1.7rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.btn-primary:hover { background: var(--sky-d); transform: translateY(-1px); }

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.3rem 1rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-item .lbl { font-size: .77rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ── Section ─────────────────────────────────────────────── */
.section {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.section-header h2 { font-size: 1.7rem; font-weight: 800; color: var(--text); }
.section-header h2 em { font-style: normal; color: var(--primary); }

.view-all {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s;
}
.view-all:hover { border-color: var(--primary); }

/* ── Category Chips ──────────────────────────────────────── */
.category-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

.chip {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--primary-d);
  padding: .42rem 1.05rem;
  border-radius: 20px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.chip:hover, .chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Tours List ──────────────────────────────────────────── */
.tours-list { display: flex; flex-direction: column; gap: 1.2rem; }

/* ── Tour Card ───────────────────────────────────────────── */
.tour-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
  box-shadow: var(--card-sh);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.tour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(2,132,199,.2);
}

.tour-card .card-img {
  width: 270px;
  min-width: 270px;
  height: 196px;
  object-fit: cover;
  flex-shrink: 0;
}

.tour-card .card-body {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  min-width: 0;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--sky);
  color: var(--primary-d);
  font-size: .73rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.card-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); line-height: 1.3; }

.card-body .location {
  font-size: .87rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.stars { color: #f59e0b; font-size: .82rem; letter-spacing: 1px; }

.card-body .description {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .45rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.card-meta { display: flex; gap: 1rem; }
.meta-item {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.card-price { text-align: right; }
.card-price .from { font-size: .7rem; color: var(--muted); }
.card-price .amount { font-size: 1.25rem; font-weight: 800; color: var(--primary-d); }
.card-price .per { font-size: .7rem; color: var(--muted); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3,105,161,.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 18px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(3,105,161,.25);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { transform: translateY(22px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-img { width: 100%; height: 300px; object-fit: cover; border-radius: 18px 18px 0 0; }

.modal-content { padding: 1.8rem 2rem 2rem; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .8rem;
}
.modal-title-wrap { flex: 1; }
.modal-title { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.modal-location { color: var(--muted); margin-top: .3rem; font-size: .9rem; display: flex; align-items: center; gap: .3rem; }

.modal-close {
  background: var(--sky);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--primary-d);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.modal-close:hover { background: var(--sky-d); }

.modal-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

.modal-body { font-size: .95rem; color: var(--text); line-height: 1.72; margin-bottom: 1.5rem; }

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .9rem;
  margin-bottom: 1.5rem;
}
.info-box {
  background: var(--sky);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.info-box .label { font-size: .72rem; color: var(--primary-d); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.info-box .value { font-size: 1rem; font-weight: 700; color: var(--text); margin-top: .2rem; }

.modal-highlights { margin-bottom: 1.5rem; }
.modal-highlights h4 { font-size: .97rem; font-weight: 700; margin-bottom: .6rem; color: var(--primary-d); }
.modal-highlights ul { list-style: none; display: flex; flex-direction: column; gap: .32rem; }
.modal-highlights li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  color: var(--text);
}
.modal-highlights li::before { content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.modal-price .from { font-size: .78rem; color: var(--muted); }
.modal-price .amount { font-size: 2rem; font-weight: 800; color: var(--primary-d); }
.modal-price .per { font-size: .78rem; color: var(--muted); }

.btn-book {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .85rem 2.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.btn-book:hover { background: var(--primary-d); transform: translateY(-1px); }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--card-sh);
}
.auth-logo { text-align: center; font-size: 2.2rem; margin-bottom: .3rem; }
.auth-card h2 { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: .3rem; }
.auth-card .sub { text-align: center; font-size: .88rem; color: var(--muted); margin-bottom: 1.8rem; }

.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .87rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: .95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-l);
  box-shadow: 0 0 0 3px rgba(56,189,248,.2);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }

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

.btn-full {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s;
  margin-top: .4rem;
}
.btn-full:hover { background: var(--primary-d); }

.auth-switch { text-align: center; margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }

.divider {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  margin: 1.1rem 0;
  position: relative;
}
.divider::before, .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .8rem; color: var(--primary-d); }
.contact-info p { font-size: .92rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.4rem; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.info-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; color: var(--text); }
.info-list .icon { font-size: 1.15rem; flex-shrink: 0; margin-top: .05rem; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-sh);
}
.contact-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.4rem; color: var(--text); }

.map-placeholder {
  background: var(--sky);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-d);
  font-weight: 600;
  font-size: .95rem;
  margin-top: 1.5rem;
  gap: .5rem;
}

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  color: var(--white);
  padding: 3.5rem 1rem;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; }
.page-hero p { opacity: .85; margin-top: .5rem; font-size: 1rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--primary-d);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .85rem;
  margin-top: auto;
}
footer strong { color: var(--white); }

/* ── Hero (homepage) ─────────────────────────────────────── */
.hero-full {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #023e6e 0%, var(--primary-d) 40%, var(--primary) 70%, #0ea5e9 100%);
  color: var(--white);
  padding: 5rem 1.5rem 6rem;
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(255,255,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(56,189,248,.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  padding: .35rem 1rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-full h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 3px 20px rgba(0,0,0,.2);
}

.hero-full h1 em {
  font-style: normal;
  color: var(--primary-l);
}

.hero-full p {
  font-size: 1.15rem;
  opacity: .88;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-hero-primary {
  background: var(--white);
  color: var(--primary-d);
  border: none;
  padding: .9rem 2rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, transform .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-hero-primary:hover { background: var(--sky-d); transform: translateY(-2px); }

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
  padding: .9rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, transform .15s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.hero-search-bar {
  display: flex;
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  max-width: 620px;
  margin: 0 auto;
}
.hero-search-bar input {
  flex: 1;
  padding: 1rem 1.3rem;
  border: none;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  outline: none;
}
.hero-search-bar input::placeholder { color: var(--muted); }
.hero-search-bar button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 1.8rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s;
  white-space: nowrap;
}
.hero-search-bar button:hover { background: var(--primary-d); }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}
.hero-stat .num { font-size: 1.6rem; font-weight: 800; }
.hero-stat .lbl { font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }

/* ── Services Slider ─────────────────────────────────────── */
.services-section {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.services-section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.slider-wrapper {
  position: relative;
  margin-top: 1.8rem;
}

.slider-track-outer {
  overflow: hidden;
  border-radius: var(--radius);
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.service-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: calc(33.333% - 1rem);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(2,132,199,.15);
  transform: translateY(-3px);
  border-color: var(--primary-l);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--sky);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.service-card p  { font-size: .88rem; color: var(--muted); line-height: 1.6; }

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .85rem;
  margin-top: auto;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: gap .15s;
}
.service-card .learn-more:hover { gap: .5rem; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.slider-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--primary-d);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, transform .12s;
  flex-shrink: 0;
}
.slider-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}
.slider-btn:disabled { opacity: .35; cursor: not-allowed; }

.slider-dots { display: flex; gap: .5rem; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
  border: none;
}
.dot.active { background: var(--primary); transform: scale(1.3); }

/* ── All Tours section ───────────────────────────────────── */
.tours-section {
  padding: 4rem 0;
  background: var(--bg);
}
.tours-section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Booking Page ────────────────────────────────────────── */
.booking-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 2rem;
  align-items: start;
}

/* Tour summary card (left) */
.booking-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-sh);
  position: sticky;
  top: 80px;
}

.booking-summary .sum-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.booking-summary .sum-body { padding: 1.3rem 1.4rem; }
.booking-summary .sum-tag  { margin-bottom: .55rem; }
.booking-summary h3 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: .3rem; line-height: 1.3; }
.booking-summary .sum-loc { font-size: .87rem; color: var(--muted); margin-bottom: .7rem; }
.booking-summary .sum-stars { font-size: .83rem; color: #f59e0b; }

.sum-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: .9rem 0;
}
.sum-info-item {
  background: var(--sky);
  border-radius: 8px;
  padding: .55rem .7rem;
}
.sum-info-item .lbl { font-size: .7rem; color: var(--primary-d); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.sum-info-item .val { font-size: .9rem; font-weight: 700; color: var(--text); margin-top: .1rem; }

.sum-divider { border: none; border-top: 1px solid var(--border); margin: .9rem 0; }

.sum-price-rows { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .6rem; }
.sum-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: var(--muted);
}
.sum-price-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  padding-top: .5rem;
  border-top: 1.5px solid var(--border);
  margin-top: .2rem;
}
.sum-price-row .val { font-weight: 700; color: var(--primary-d); }
.sum-price-row.total .val { font-size: 1.3rem; color: var(--primary-d); }

/* Booking form card (right) */
.booking-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem 2.2rem;
  box-shadow: var(--card-sh);
}
.booking-form-card h2 { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 1.6rem; }

/* Step headers */
.form-section-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-d);
  margin: 1.6rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid var(--border);
}
.form-section-title:first-of-type { margin-top: 0; }
.step-num {
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Traveler counter */
.traveler-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.traveler-row:last-child { border-bottom: none; }
.traveler-info .name { font-size: .95rem; font-weight: 600; color: var(--text); }
.traveler-info .desc { font-size: .78rem; color: var(--muted); }
.counter {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.counter-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-d);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  line-height: 1;
}
.counter-btn:hover:not(:disabled) { background: var(--sky); border-color: var(--primary-l); }
.counter-btn:disabled { opacity: .3; cursor: not-allowed; }
.counter-val { font-size: 1.05rem; font-weight: 700; min-width: 24px; text-align: center; color: var(--text); }

/* Payment method */
.payment-options { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .2rem; }
.payment-option { display: none; }
.payment-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .15s, background .15s;
  user-select: none;
}
.payment-option:checked + .payment-label {
  border-color: var(--primary);
  background: var(--sky);
  color: var(--primary-d);
}

/* Submit button */
.btn-confirm {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 11px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 1.6rem;
  transition: background .18s, transform .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn-confirm:hover { background: var(--primary-d); transform: translateY(-1px); }

/* ── Booking Success ─────────────────────────────────────── */
.booking-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: 3rem 1.5rem;
}
.booking-success.show { display: flex; }

.success-icon {
  width: 90px;
  height: 90px;
  background: var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  animation: popIn .45s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-ref {
  display: inline-block;
  background: var(--sky);
  color: var(--primary-d);
  border-radius: 10px;
  padding: .6rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: .8rem 0 1.4rem;
}

.success-details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 2rem;
  max-width: 480px;
  width: 100%;
  margin-bottom: 2rem;
  box-shadow: var(--card-sh);
  text-align: left;
}
.success-details h4 { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .8rem; }
.success-details .detail-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.success-details .detail-row:last-child { border: none; }
.success-details .detail-row span:first-child { color: var(--muted); }
.success-details .detail-row span:last-child { font-weight: 600; }

.btn-back-home {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .85rem 2.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s;
  margin-right: .7rem;
}
.btn-back-home:hover { background: var(--primary-d); }
.btn-browse {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: .85rem 2.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s;
}
.btn-browse:hover { background: var(--sky); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .service-card {
    flex: 0 0 calc(50% - .75rem);
    min-width: calc(50% - .75rem);
  }
}
@media (max-width: 700px) {
  .tour-card { flex-direction: column; }
  .tour-card .card-img { width: 100%; min-width: unset; height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-img { height: 200px; }
  .modal-content { padding: 1.2rem 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .service-card {
    flex: 0 0 calc(85vw);
    min-width: calc(85vw);
  }
  .booking-wrapper { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .payment-options { flex-direction: column; }
}
