/* SAGATEKNE - Custom Styles */

:root {
  --primary: #0C4A6E;
  --accent: #0EA5E9;
  --bg: #F0F9FF;
  --text: #1E293B;
  --cta: #F97316;
  --cta-hover: #EA6C0A;
  --gold: #F59E0B;
  --white: #ffffff;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-500: #64748B;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(12, 74, 110, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.header.top {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 100%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
  position: relative;
}

.lang-selector:hover {
  background: rgba(255,255,255,0.2);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 130px;
  display: none;
}

.lang-selector.open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.lang-dropdown a:hover {
  background: var(--bg);
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-login:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.4);
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 74, 110, 0.55) 0%,
    rgba(12, 74, 110, 0.35) 40%,
    rgba(12, 74, 110, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(14, 165, 233, 0.5);
  color: #BAE6FD;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title span {
  color: #7DD3FC;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ─── SEARCH BOX ─────────────────────────────────── */
.search-box {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.search-tab {
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}

.search-tab.active {
  background: white;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .field-icon {
  position: absolute;
  left: 12px;
  color: var(--accent);
  width: 18px;
  height: 18px;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--gray-100);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--accent);
  background: white;
}

.search-field input::placeholder {
  color: #94A3B8;
}

.btn-search {
  background: var(--cta);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s;
  height: 50px;
}

.btn-search:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}

/* ─── QUICK ACTIONS ──────────────────────────────── */
.quick-actions {
  background: var(--primary);
  padding: 1.5rem 0;
}

.quick-actions-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-actions-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.quick-action-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.quick-action-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* ─── SECTION COMMONS ────────────────────────────── */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--gray-500);
  font-size: 1rem;
  max-width: 500px;
}

/* ─── DESTINATIONS GRID ──────────────────────────── */
.destinations-section {
  background: var(--bg);
}

.dest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 14px;
}

/* Span configs */
.dest-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.dest-card:nth-child(2) { grid-column: span 1; }
.dest-card:nth-child(3) { grid-column: span 2; }
.dest-card:nth-child(4) { grid-column: span 1; }
.dest-card:nth-child(5) { grid-column: span 1; }
.dest-card:nth-child(6) { grid-column: span 1; }
.dest-card:nth-child(7) { grid-column: span 1; }

.dest-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--primary);
}

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dest-card:hover img {
  transform: scale(1.07);
}

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(12,74,110,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: background 0.3s;
}

.dest-card:hover .dest-overlay {
  background: linear-gradient(180deg, transparent 10%, rgba(12,74,110,0.9) 100%);
}

.dest-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.dest-card:nth-child(1) .dest-name { font-size: 1.6rem; }

.dest-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.dest-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cta);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
}

/* ─── SPECS / FEATURES ───────────────────────────── */
.specs-section {
  background: white;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.spec-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  border: 2px solid var(--gray-200);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.spec-card:hover::before {
  transform: scaleX(1);
}

.spec-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(14,165,233,0.12);
  transform: translateY(-4px);
}

.spec-icon {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent);
}

.spec-icon svg {
  width: 30px;
  height: 30px;
}

.spec-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.spec-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ─── TOURS SLIDER ───────────────────────────────── */
.tours-section {
  background: var(--bg);
  overflow: hidden;
}

.tours-track-wrap {
  position: relative;
  overflow: hidden;
}

.tours-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.tour-card {
  flex: 0 0 calc(33.333% - 14px);
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.tour-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tour-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.tour-card:hover .tour-img img {
  transform: scale(1.05);
}

.tour-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cta);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tour-badge.featured {
  background: var(--gold);
  color: #1E293B;
}

.tour-body {
  padding: 1.25rem;
}

.tour-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.tour-duration,
.tour-capacity {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.tour-duration svg,
.tour-capacity svg {
  width: 14px;
  height: 14px;
}

.tour-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.tour-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.825rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.tour-price {
  display: flex;
  flex-direction: column;
}

.tour-price-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tour-price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.tour-price-value span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
}

.btn-tour {
  background: var(--primary);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-tour:hover {
  background: var(--accent);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  justify-content: center;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all 0.3s;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ─── FAQ ────────────────────────────────────────── */
.faq-section {
  background: white;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.faq-left {
  position: sticky;
  top: 100px;
}

.faq-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  margin-top: 2rem;
  box-shadow: 0 16px 48px rgba(12,74,110,0.15);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--primary);
}

.faq-item.open .faq-icon {
  background: var(--accent);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: #071E2F;
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: white;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .search-fields {
    grid-template-columns: 1fr 1fr;
  }

  .btn-search {
    grid-column: span 2;
    justify-content: center;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tour-card {
    flex: 0 0 calc(50% - 10px);
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-left {
    position: static;
  }

  .faq-img {
    max-height: 300px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .dest-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  .dest-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .dest-card:nth-child(3) { grid-column: span 1; }
}

@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
  }

  .lang-selector {
    display: none;
  }

  .search-fields {
    grid-template-columns: 1fr;
  }

  .btn-search {
    grid-column: span 1;
  }

  .dest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dest-card:nth-child(1) { grid-column: span 2; }
  .dest-card:nth-child(3) { grid-column: span 1; }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tour-card {
    flex: 0 0 calc(85% - 10px);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .quick-actions-inner {
    gap: 0.5rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .search-box {
    padding: 1.25rem 1rem;
  }

  .dest-grid {
    grid-template-columns: 1fr;
  }

  .dest-card:nth-child(1),
  .dest-card:nth-child(3) { grid-column: span 1; }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── LOCATION AUTOCOMPLETE ─────────────────────────── */
.location-wrap {
  position: relative;
  width: 100%;
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  border: 1px solid var(--gray-200);
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.location-suggestions.open {
  display: block;
}

.location-suggestions li {
  padding: 10px 14px 10px 40px;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-suggestions li:hover {
  background: var(--bg);
  color: var(--accent);
}

/* ─── PERSON DROPDOWN ───────────────────────────────── */
.person-wrap {
  position: relative;
  width: 100%;
}

.person-btn {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--gray-100);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-family: inherit;
}

.person-btn:hover,
.person-btn:focus {
  border-color: var(--accent);
  background: white;
}

.chevron-icon {
  transition: transform 0.25s;
  color: var(--gray-500);
  flex-shrink: 0;
}

.person-btn.dropdown-open .chevron-icon {
  transform: rotate(180deg);
}

.person-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid var(--gray-200);
  z-index: 200;
  padding: 0.5rem 0.75rem 0.75rem;
  display: none;
  min-width: 240px;
}

.person-dropdown.open {
  display: block;
}

.person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.person-row:last-of-type {
  border-bottom: none;
}

.person-info { flex: 1; }

.person-type {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.person-age {
  font-size: 0.73rem;
  color: var(--gray-500);
}

.person-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-ctrl {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
  font-family: inherit;
}

.person-ctrl:hover {
  border-color: var(--accent);
  background: var(--bg);
  color: var(--accent);
}

.person-ctrl:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.person-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 22px;
  text-align: center;
}

.person-apply {
  width: 100%;
  margin-top: 0.6rem;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.person-apply:hover {
  background: var(--accent);
}

/* Flatpickr overrides */
.flatpickr-calendar {
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
  border: 1px solid var(--gray-200) !important;
  font-family: 'Inter', sans-serif !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

.flatpickr-day:hover {
  background: var(--bg) !important;
}

.flatpickr-months .flatpickr-month {
  color: var(--primary) !important;
}

/* Destination card clickable */
.dest-card {
  cursor: pointer;
}

/* Section header row utility */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.section-header-row .section-header {
  margin-bottom: 0;
}

.section-view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-view-all:hover {
  color: var(--primary);
}

/* ─── SEARCH RESULTS PAGE ───────────────────────────── */
.search-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 72px;
}

.search-topbar {
  background: var(--primary);
  padding: 1.25rem 2rem;
}

.search-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: flex-end;
}

.search-topbar .search-field label {
  color: rgba(255,255,255,0.75);
}

.search-topbar .search-field input,
.search-topbar .search-field .person-btn {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.search-topbar .search-field input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-topbar .search-field input:focus,
.search-topbar .search-field .person-btn:hover {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.18);
}

.search-topbar .field-icon {
  color: rgba(255,255,255,0.6) !important;
}

.search-topbar #personBtnText {
  color: rgba(255,255,255,0.9);
}

.search-topbar .chevron-icon {
  color: rgba(255,255,255,0.6);
}

.search-topbar .location-suggestions {
  background: white;
}

.search-topbar .person-dropdown {
  background: white;
}

.search-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ─── SIDEBAR FILTERS ──────────────────────────────── */
.search-sidebar {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 88px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.sidebar-clear {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.sidebar-clear:hover { text-decoration: underline; }

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child { margin-bottom: 0; }

.filter-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.filter-name-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--gray-100);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.filter-name-input:focus {
  border-color: var(--accent);
  background: white;
}

.filter-name-input::placeholder { color: #94A3B8; }

.filter-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
  user-select: none;
}

.filter-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-check-item:hover { color: var(--accent); }

/* ─── RESULTS AREA ─────────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.results-count strong {
  color: var(--primary);
}

.results-sort {
  padding: 7px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text);
  background: white;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  color: var(--gray-500);
  display: none;
}

.no-results.visible { display: block; }

/* ─── RESULT CARD ─────────────────────────────────── */
.result-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.result-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.1);
}

.result-main {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  min-height: 170px;
}

.result-photos {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.result-photos > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}

.result-card:hover .result-photos > img {
  transform: scale(1.05);
}

.result-photo-strip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.result-photo-thumb {
  width: 34px;
  height: 28px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 8px;
  background: rgba(15,23,42,0.45);
  box-shadow: 0 4px 12px rgba(15,23,42,0.18);
}

.result-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-photo-more {
  min-width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(15,23,42,0.72);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.result-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  width: fit-content;
}

.result-badge.featured { background: var(--gold); color: #1E293B; }
.result-badge.new { background: var(--cta); color: white; }
.result-badge.popular { background: var(--gold); color: #1E293B; }

.result-info {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--gray-100);
}

.result-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.result-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.result-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: var(--gray-500);
}

.result-meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.result-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--gray-200);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

.result-chip svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.result-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 6px 0;
  background: none;
  border: none;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
  width: fit-content;
}

.result-detail-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}

.result-detail-btn.open svg {
  transform: rotate(180deg);
}

.result-detail-btn:hover { color: var(--primary); }

.result-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  gap: 2px;
}

.result-price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.result-price-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}

.result-price-per {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.btn-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--cta);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-select:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}

/* ─── DETAIL PANEL ────────────────────────────────── */
.result-detail-panel {
  display: none;
  border-top: 2px solid var(--bg);
  background: #F8FAFC;
}

.result-detail-panel.open {
  display: block;
}

.detail-inner {
  padding: 1.75rem 2rem;
}

.detail-desc-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.detail-block-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.detail-desc-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.75;
}

.detail-boat-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 1rem;
}

.detail-boat-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}

.detail-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.detail-service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.detail-service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

.detail-service-list.included li::before {
  content: '✓';
  color: #22C55E;
  font-weight: 700;
  flex-shrink: 0;
}

.detail-service-list.excluded li::before {
  content: '✕';
  color: #EF4444;
  font-weight: 700;
  flex-shrink: 0;
}

.detail-program {}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.5rem;
}

.program-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.program-day-num {
  background: var(--primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.program-day-body { flex: 1; }

.program-day-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.program-day-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ─── BOOKING PAGE ─────────────────────────────────── */
.booking-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 72px;
}

.booking-topbar {
  background: var(--primary);
  padding: 1.5rem 2rem 0;
}

.booking-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-bottom: 1.5rem;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}

.booking-step.active .booking-step-num {
  background: var(--cta);
  border-color: var(--cta);
  color: white;
}

.booking-step.done .booking-step-num {
  background: #22C55E;
  border-color: #22C55E;
  color: white;
}

.booking-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

.booking-step.active .booking-step-label { color: white; }
.booking-step.done .booking-step-label { color: rgba(255,255,255,0.65); }

.step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.12);
  margin: 0 0.75rem;
  min-width: 40px;
}

.step-connector.done { background: #22C55E; }

.booking-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

/* ── Form Sections ── */
.form-section {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 1.25rem;
}

.form-section:last-child { margin-bottom: 0; }

.form-error-summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #FECACA;
  border-radius: 12px;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 0.85rem;
}

.form-error-summary strong {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 800;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.form-error-summary li + li { margin-top: 0.2rem; }

.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.form-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.span-2 { grid-column: span 2; }

.form-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-select,
.form-textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--gray-100);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: #94A3B8; }

.form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%2364748B' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 70px; }

.form-phone-wrap {
  display: flex;
  gap: 8px;
}

.form-phone-code {
  padding: 11px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-100);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  font-family: inherit;
  width: 85px;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.form-phone-code:focus {
  border-color: var(--accent);
  background: white;
}

/* Gender / Invoice type toggle */
.type-toggle {
  display: flex;
  gap: 8px;
}

.document-toggle {
  width: 100%;
}

.type-btn {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.type-btn svg { width: 16px; height: 16px; }

.type-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.type-btn:not(.active):hover {
  border-color: var(--gray-300, #CBD5E1);
  background: white;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
}

.form-hint svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }

/* ── Booking Summary (right column) ── */
.booking-summary {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.summary-img {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.summary-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(12,74,110,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.summary-img-badge {
  background: var(--cta);
  color: white;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
}

.summary-body {
  padding: 1.25rem;
}

.summary-tour-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--gray-500);
  margin-bottom: 7px;
}

.summary-row svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.summary-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 1rem 0;
}

.summary-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 5px;
}

.summary-price-row.total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--gray-200);
}

.btn-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--cta);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-continue:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

.summary-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.summary-secure svg { color: #22C55E; width: 13px; height: 13px; }

/* ─── PAYMENT PAGE ──────────────────────────────────── */
.payment-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

/* Credit card visual */
.card-visual {
  background: linear-gradient(135deg, #0C4A6E 0%, #1268A1 50%, #0EA5E9 100%);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 185px;
  box-shadow: 0 16px 40px rgba(12,74,110,0.35);
}

.card-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.card-visual::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.card-chip {
  width: 42px; height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #F59E0B, #FCD34D);
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-number-display {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.9);
  font-family: 'Courier New', monospace;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative; z-index: 1;
}

.card-holder-label,
.card-expiry-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
}

.card-holder-value,
.card-expiry-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-logo-area {
  text-align: right;
}

.card-logo-circles {
  display: flex;
  gap: -8px;
}

.card-logo-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  opacity: 0.8;
}

.card-logo-circle:first-child {
  background: #EB001B;
  margin-right: -10px;
}

.card-logo-circle:last-child {
  background: #F79E1B;
}

/* Installment options */
.installment-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 0.5rem;
}

.installment-opt {
  padding: 11px 6px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--gray-100);
  user-select: none;
}

.installment-opt:hover:not(.selected) {
  border-color: var(--accent);
  background: white;
}

.installment-opt.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.inst-count {
  font-size: 1.1rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.inst-label {
  font-size: 0.65rem;
  opacity: 0.7;
}

.payment-note {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 1rem;
  padding: 10px 12px;
  background: #DBEAFE;
  border-radius: 8px;
}

.payment-note svg { width: 14px; height: 14px; color: #3B82F6; flex-shrink: 0; margin-top: 1px; }

/* ─── CONFIRMATION PAGE ─────────────────────────────── */
.confirm-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 72px;
}

.confirm-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.confirm-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.confirm-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #DCFCE7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.confirm-icon svg { width: 40px; height: 40px; color: #22C55E; }

.confirm-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.confirm-subtitle {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Boarding-pass ticket */
.ticket {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.ticket-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1268A1 100%);
  padding: 2rem;
  color: white;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.ticket-port { display: flex; flex-direction: column; }

.ticket-port.right { text-align: right; align-items: flex-end; }

.ticket-time {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.ticket-loc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.ticket-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ticket-route {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.ticket-line {
  width: 50px; height: 1px;
  background: rgba(255,255,255,0.35);
  position: relative;
}

.ticket-line::after {
  content: '';
  position: absolute;
  right: -5px; top: -4px;
  border-left: 9px solid rgba(255,255,255,0.5);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.ticket-boat-icon {
  color: rgba(255,255,255,0.75);
  width: 22px; height: 22px;
}

.ticket-dur {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

/* Tear line */
.ticket-tear {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.ticket-tear::before,
.ticket-tear::after {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  flex-shrink: 0;
}

.ticket-tear::before { margin-right: -10px; }
.ticket-tear::after  { margin-left:  -10px; }

.ticket-tear-line {
  flex: 1;
  border-top: 2px dashed var(--gray-200);
}

/* Ticket body */
.ticket-body {
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ticket-field {}

.ticket-field-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 3px;
}

.ticket-field-value {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--primary);
}

/* PNR bar */
.ticket-pnr-bar {
  padding: 1.25rem 2rem;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-200);
}

.pnr-left {}

.pnr-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 4px;
}

.pnr-code {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 8px;
  font-family: 'Courier New', monospace;
}

.pnr-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: white;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pnr-copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Info boxes */
.confirm-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.confirm-info-box {
  background: white;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.confirm-info-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-info-icon svg { width: 20px; height: 20px; }
.confirm-info-icon.green  { background: #DCFCE7; color: #22C55E; }
.confirm-info-icon.blue   { background: #DBEAFE; color: #3B82F6; }
.confirm-info-icon.orange { background: #FEF3C7; color: #F59E0B; }
.confirm-info-icon.purple { background: #EDE9FE; color: #8B5CF6; }

.confirm-info-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}

.confirm-info-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.55;
}

.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 2px solid var(--primary);
  border-radius: 11px;
  background: white;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-secondary:hover { background: var(--primary); color: white; }

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: none;
  border-radius: 11px;
  background: var(--cta);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
}

/* ─── RESPONSIVE BOOKING/PAYMENT ────────────────────── */
@media (max-width: 1024px) {
  .booking-container,
  .payment-container {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 768px) {
  .booking-container,
  .payment-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .booking-summary { position: static; order: -1; }

  .form-grid { grid-template-columns: 1fr; }
  .form-field.span-2 { grid-column: span 1; }

  .installment-options { grid-template-columns: repeat(2, 1fr); }

  .ticket-header { grid-template-columns: 1fr; gap: 0.75rem; }
  .ticket-port.right { text-align: left; align-items: flex-start; }
  .ticket-body { grid-template-columns: 1fr 1fr; }

  .confirm-info-grid { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE SEARCH PAGE ──────────────────────── */
@media (max-width: 1024px) {
  .search-container {
    grid-template-columns: 220px 1fr;
    padding: 1.5rem;
  }

  .result-main {
    grid-template-columns: 180px 1fr 160px;
  }

  .search-topbar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .search-topbar .btn-search {
    grid-column: span 2;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .search-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .search-sidebar {
    position: static;
  }

  .result-main {
    grid-template-columns: 130px 1fr;
    grid-template-rows: 1fr auto;
  }

  .result-photos {
    grid-row: span 2;
  }

  .result-info {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem;
  }

  .result-price-col {
    padding: 0.75rem 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    grid-column: 2;
  }

  .result-price-per { margin-bottom: 0; }

  .detail-inner {
    padding: 1rem;
  }

  .detail-services {
    grid-template-columns: 1fr;
  }

  .detail-boat-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-topbar-inner {
    grid-template-columns: 1fr;
  }

  .search-topbar .btn-search {
    grid-column: span 1;
  }
}
