* {
  box-sizing: border-box;
}

:root {
  --primary: #0b2f5b;
  --primary-dark: #071f3f;
  --accent: #f26a21;
  --accent-dark: #c64d12;
  --gold: #f4b43f;
  --water: #0f78a8;
  --sky: #b9e4ff;
  --green: #071f3f;
  --text: #1d1d1d;
  --muted: #666;
  --line: #d9dfe8;
  --soft: #f5f7fb;
  --shadow: 0 10px 25px rgba(7, 31, 63, 0.14);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.top-alert {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  padding: 8px 12px;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  min-height: 90px;
  width: 100%;
  margin: 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.logo img {
  width: 120px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
}

.nav-btn {
  background: var(--accent);
  color: #fff;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 28px;
}

/* PRODUCT HERO */
.product-hero {
  background: #eee;
  padding: 52px 0 32px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 0 0 14px;
  line-height: 1;
}

.quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  align-items: center;
}

.pill {
  padding: 9px 13px;
  color: #fff;
  font-weight: 900;
  border-radius: 2px;
}

.pill.green {
  background: var(--primary);
}

.share-link {
  font-weight: 800;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 300px 300px;
  gap: 24px;
  align-items: stretch;
  position: relative;
}

.gallery-main,
.gallery-video,
.gallery-small {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-main {
  height: 420px;
  position: relative;
  overflow: hidden;
}

.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.gallery-small {
  height: 198px;
}

.gallery-video {
  height: 420px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.play-circle {
  width: 92px;
  height: 92px;
  background: rgba(255, 255, 255, 0.45);
  border: 7px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  z-index: 2;
}

.gallery-video span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 6px 12px;
  text-transform: uppercase;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  z-index: 2;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 42px;
  height: 54px;
  font-size: 42px;
  cursor: pointer;
  z-index: 5;
}

.gallery-arrow.left {
  left: 12px;
}

.gallery-arrow.right {
  right: 12px;
}
/* CONTENT */
.product-content {
  padding: 38px 0 60px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.content-block {
  padding-bottom: 16px;
}

.content-block h2,
.route-section h2 {
  font-size: 26px;
  margin: 0 0 16px;
}

.content-block p,
.content-block li {
  line-height: 1.65;
}

.text-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 800;
}

.wave-divider {
  height: 28px;
  width: 100%;
  margin: 16px 0 26px;
  background:
    radial-gradient(16px 12px at 16px 14px, transparent 15px, var(--accent) 16px, var(--accent) 18px, transparent 19px)
    repeat-x;
  background-size: 42px 28px;
}

/* BOOKING CARD */
.booking-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid #c8c8c8;
  padding: 18px;
  box-shadow: var(--shadow);
}

.booking-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.booking-head h2 {
  margin: 0;
  font-size: 24px;
}

.booking-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 8px;
}

.date-field,
.guest-field,
.time-options button {
  border: 2px solid var(--primary);
  background: #fff;
  padding: 12px;
  font-weight: 900;
  cursor: pointer;
}

.booking-card h3 {
  font-size: 21px;
  margin: 18px 0 10px;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.time-options button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.time-options button.active {
  background: #fff4f7;
}

.time-options small {
  color: var(--muted);
}

.helper {
  font-size: 13px;
  margin-top: -6px;
  color: var(--muted);
}

.ticket-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  border: 1px solid #aaa;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
}

.ticket-option.selected {
  border: 2px solid var(--primary);
}

.ticket-option p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.book-btn {
  width: 100%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  padding: 17px;
  margin-top: 10px;
  cursor: pointer;
}

.full-calendar {
  display: none;
}

.full-calendar.open {
  display: block;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 14px;
}

.calendar-nav h3 {
  margin: 0;
  font-size: 21px;
}

.calendar-nav button {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays {
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  min-height: 46px;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  text-align: center;
  padding: 5px 2px;
  font-weight: 900;
}

.calendar-day span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.calendar-day:hover,
.calendar-day.active {
  border: 2px solid var(--primary);
  background: #fff4f7;
}

.calendar-day.disabled {
  color: #bbb;
  cursor: not-allowed;
}

.calendar-day.empty {
  visibility: hidden;
}
/* GUEST PICKER */
.guest-wrap {
  position: relative;
}

.guest-wrap .guest-field {
  width: 100%;
}

.guest-picker {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  z-index: 40;
  padding: 14px;
}

.guest-picker.open {
  display: block;
}

.guest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.guest-row:last-child {
  border-bottom: 0;
}

.guest-row strong {
  display: block;
  font-size: 14px;
}

.guest-row small {
  color: var(--muted);
  font-size: 11px;
}

.guest-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.guest-controls button {
  width: 28px;
  height: 28px;
  border: 2px solid var(--primary);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* ROUTE */
.route-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 36px;
  align-items: start;
}

.route-list {
  position: relative;
}

.route-list::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 30px;
  bottom: 20px;
  border-left: 4px dotted var(--accent);
}

.route-stop {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  margin-bottom: 20px;
  z-index: 2;
}

.route-stop span {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  color: var(--accent);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.route-stop a {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  text-decoration: underline;
}

.map-box {
  min-height: 560px;
  border: 2px solid #333;
  background:
    linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
    repeating-linear-gradient(35deg, #d6eef8, #d6eef8 9px, #fff 9px, #fff 22px);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #304f5e;
  font-weight: 900;
}

.map-route {
  position: absolute;
  width: 180px;
  height: 450px;
  border: 8px solid var(--primary);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(25deg);
}

/* MEDIA */
.guest-media {
  background: #f4f4f4;
  padding: 28px 0 34px;
  border-top: 1px solid #ddd;
}

.media-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.media-card {
  min-height: 135px;
  background: linear-gradient(135deg, #8fc6e8, #174361);
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
}

.media-card span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 5px solid #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.media-card small {
  position: absolute;
  bottom: 10px;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.m2 {
  background: linear-gradient(135deg, #d9e4ea, #4e7691);
}

.m3 {
  background: linear-gradient(135deg, #d2a366, #2a3649);
}

.m4 {
  background: linear-gradient(135deg, #2bb8f0, #223c5c);
}

.m5 {
  background: linear-gradient(135deg, #a9c8e0, #457345);
}

/* SIGNUP */
.signup {
  background: #eee;
  padding: 44px 0;
}

.signup-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 56px;
  align-items: center;
}

.signup h2 {
  margin: 0 0 10px;
}

.signup p {
  color: var(--muted);
}

.signup form {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 18px;
  align-items: end;
}

.signup label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
}

.signup input {
  padding: 15px;
  border: 1px solid #cfcfcf;
  font-size: 15px;
}

.signup button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 16px;
  text-transform: uppercase;
  font-weight: 900;
}

/* FOOTER */
.footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 54px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
}

.footer-logo span {
  color: #fff;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer a {
  display: block;
  color: #fff;
  margin: 0 0 10px;
}

.socials {
  display: flex;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 36px;
  padding: 18px;
  text-align: center;
}

/* PRODUCT ACCORDION */
.accordion {
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 0;
  padding: 20px 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.accordion-title {
  display: block;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--text);
}

.accordion-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  flex: 0 0 auto;
}

.accordion-content {
  display: none;
  width: 100%;
  padding: 0 0 24px;
}

.accordion-content p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.accordion-item.open .accordion-content {
  display: block;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .two-column,
  .route-grid,
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: static;
  }

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

  .gallery-main,
  .gallery-video {
    min-height: 280px;
  }

  .gallery-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gallery-small.g2,
  .gallery-small.g3 {
    height: 180px;
    margin: 0;
  }

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

@media (max-width: 768px) {
  .accordion-trigger {
    min-height: 64px;
    padding: 16px 0;
  }

  .accordion-title {
    font-size: 18px;
  }

  .accordion-content p {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav-wrap {
    min-height: 76px;
    padding: 0 18px;
  }

  .logo img {
    width: 95px;
    max-height: 64px;
  }

  .product-hero {
    padding-top: 32px;
  }

  .title-row,
  .quick-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-row,
  .signup form,
  .media-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .route-grid {
    gap: 20px;
  }

  .map-box {
    min-height: 380px;
  }
}

/* FINAL PRODUCT GALLERY: WIDE SLIDER + TWO SIDE IMAGES */
#gallerySlider.gallery-grid-wide {
  width: calc(100vw - 48px) !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw + 24px) !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 390px !important;
  gap: 24px !important;
}

#gallerySlider.gallery-grid-wide .gallery-main {
  height: 420px !important;
}

#gallerySlider.gallery-grid-wide .gallery-side {
  display: grid !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 24px !important;
}

#gallerySlider.gallery-grid-wide .gallery-small {
  height: 198px !important;
}

@media (max-width: 980px) {
  #gallerySlider.gallery-grid-wide {
    width: 100% !important;
    margin-left: 0 !important;
    grid-template-columns: 1fr !important;
  }

  #gallerySlider.gallery-grid-wide .gallery-side {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: none !important;
  }

  #gallerySlider.gallery-grid-wide .gallery-small {
    height: 180px !important;
  }
}

/* IMAGE POPUP / LIGHTBOX */
.image-popup {
  position: fixed;
  inset: 0;
  background: rgba(7, 31, 63, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}

.image-popup.open {
  display: flex;
}

.image-popup img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
}

.image-popup-close {
  position: absolute;
  top: 18px;
  right: 28px;
  color: #fff;
  font-size: 46px;
  font-weight: 900;
  cursor: pointer;
  z-index: 100000;
}

.gallery-main,
.gallery-small {
  cursor: pointer;
}
.popup-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 72px;
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 54px;
  cursor: pointer;
  z-index: 100000;
}

.popup-prev {
  left: 28px;
}

.popup-next {
  right: 28px;
}

/* MOBILE BOOKING BOTTOM SHEET */
.mobile-book-now-bar {
  display: none;
}

.mobile-booking-overlay {
  display: none;
}

@media (max-width: 768px) {
  body.mobile-booking-open {
    overflow: hidden;
  }

  body {
    padding-bottom: 88px;
  }

  .mobile-book-now-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    background: #fff;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }

  .mobile-book-now-bar button {
    width: 100%;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 16px;
    padding: 17px;
    cursor: pointer;
  }

  .mobile-booking-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 31, 63, 0.62);
    z-index: 99991;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body.mobile-booking-open .mobile-booking-overlay {
    opacity: 1;
    visibility: visible;
  }

  .booking-card {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto !important;
    z-index: 99992;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
    border: 0;
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform 0.32s ease;
  }

  body.mobile-booking-open .booking-card {
    transform: translateY(0);
  }

  .booking-card::before {
    content: "";
    display: block;
    width: 46px;
    height: 5px;
    background: #c8c8c8;
    border-radius: 99px;
    margin: 0 auto 14px;
  }

  .booking-head::after {
    content: "×";
    margin-left: auto;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: var(--primary);
    cursor: pointer;
  }
}

