/* ==========================================================================
   Adventure Nomad — Canal Boat Page CSS
   ========================================================================== */

/* --- Split hero (distinctive from homepage image-overlay hero) --- */
.page-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 55vh;
}

.page-hero-split__content {
  background: var(--charcoal);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero-split__content .label {
  color: var(--teal);
}

.page-hero-split__content h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: var(--space-3) 0 var(--space-4);
}

.page-hero-split__content .lead {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
}

.split-hero-breadcrumb ol {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.split-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.split-hero-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero-split__image {
  position: relative;
  overflow: hidden;
}

.page-hero-split__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Interactive photo gallery --- */
.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  background: var(--charcoal-mid);
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  width: 100px;
  min-width: 100px;
  background: var(--charcoal-mid);
  scroll-snap-align: start;
  opacity: 0.55;
  transition: opacity var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.gallery-thumb:hover {
  opacity: 0.85;
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--teal);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-carousel-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.gallery-carousel-btn:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.gallery-carousel-btn svg {
  width: 14px;
  height: 14px;
}

.gallery-caption {
  font-size: 0.82rem;
  color: var(--warm-grey);
  text-align: center;
  margin: 0;
  min-height: 1.2em;
  font-style: italic;
}

/* --- Canal boat photo gallery --- */
.canal-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}

.canal-gallery-main {
  grid-row: 1 / 3;
  background: var(--charcoal-mid);
}

.canal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canal-gallery-thumb {
  background: var(--charcoal-mid);
  overflow: hidden;
}

.canal-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.canal-gallery-thumb:hover img {
  transform: scale(1.05);
}

/* --- Canal & route info --- */
.canal-route-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.canal-route-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
  background: var(--charcoal-mid);
}

.canal-route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- No experience needed section --- */
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: var(--max-width);
  margin: var(--space-6) auto 0;
}

.reassurance-card {
  text-align: center;
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.reassurance-icon {
  width: 60px;
  height: 60px;
  background: var(--teal-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--teal-deep);
}

.reassurance-icon svg {
  width: 28px;
  height: 28px;
}

.reassurance-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

/* --- Combo teaser within canal boat page --- */
.combo-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.combo-teaser-image {
  background: var(--charcoal-mid);
  min-height: 300px;
}

.combo-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.combo-teaser-content {
  background: var(--teal-deep);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.combo-teaser-content .label {
  color: rgba(255, 255, 255, 0.7);
}

.combo-teaser-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.combo-teaser-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-5);
}

/* --- Boat detail block (gallery + info 2-column) --- */
.boat-detail {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  gap: var(--space-8);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.boat-info {
  position: sticky;
  top: calc(72px + var(--space-5));
}

.boat-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.boat-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--warm-grey);
}

.boat-tagline {
  color: var(--warm-grey);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
  font-style: italic;
}

.boat-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.boat-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.boat-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.boat-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.88rem;
  color: var(--charcoal);
}

.boat-feature-item svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
  flex-shrink: 0;
}

.boat-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.boat-cta .booqable-datepicker {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-2);
  color: var(--charcoal) !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .boat-detail {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .boat-info {
    position: static;
  }

  .gallery {
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  .page-hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .page-hero-split__image {
    min-height: 240px;
    order: -1;
  }

  .page-hero-split__content {
    padding: var(--space-6) var(--content-padding);
  }

  .gallery-thumb {
    width: 80px;
    min-width: 80px;
  }

  .boat-features {
    grid-template-columns: 1fr;
  }

  .canal-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-height: none;
  }

  .canal-gallery-main {
    grid-row: auto;
    min-height: 240px;
  }

  .canal-gallery-thumb {
    min-height: 160px;
  }

  .canal-route-block {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

  .combo-teaser {
    grid-template-columns: 1fr;
  }

  .combo-teaser-image {
    min-height: 200px;
  }

  .day-rate-callout {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* --- Gallery containment --- */
  .gallery {
    max-width: 100%;
    overflow: hidden;
  }

  .gallery-main {
    max-width: 100%;
  }

  /* Booqable containment on canal page */
  .booqable-datepicker,
  .booqable-product-button,
  .boat-cta {
    max-width: 100%;
    overflow: hidden;
  }

  /* Boat spec pills wrap on small screens */
  .boat-specs {
    flex-wrap: wrap;
  }

  .boat-spec-pill {
    flex-shrink: 1;
    min-width: 0;
  }

  .boat-info {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* --- Combo teaser (why not add a motorhome) --- */
  .combo-teaser-content {
    padding: var(--space-7) 3vw;
    display: block;
    text-align: center;
  }

  /* Centre the combo-teaser image on mobile */
  .combo-teaser-image {
    position: relative;
    overflow: hidden;
    min-height: 220px;
  }

  .combo-teaser-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* --- Day hire block responsive --- */
@media (max-width: 768px) {
  .day-hire-block {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .day-hire-ctas {
    flex-direction: column;
  }

  .day-hire-ctas .btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Canal boat day hire section --- */
.day-hire-block {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-10);
  align-items: start;
}

.day-hire-block__content h2 {
  margin: var(--space-2) 0 var(--space-5);
}

.day-hire-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.day-hire-info-panel {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.day-hire-info-panel h3 {
  font-size: 1rem;
  margin-bottom: var(--space-5);
  color: var(--teal-deep);
}

.day-hire-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.day-hire-info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--charcoal);
}

.day-hire-info-list li svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 1024px) {
  .day-hire-block {
    grid-template-columns: 1fr;
  }

  .day-hire-block__aside {
    max-width: 520px;
  }
}

/* --- Day rate callout (legacy, kept for reference) --- */
.day-rate-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  background: rgba(0, 180, 200, 0.07);
  border: 1px solid rgba(0, 180, 200, 0.25);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.day-rate-callout__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--teal-deep);
}

.day-rate-callout__icon svg {
  width: 100%;
  height: 100%;
}

.day-rate-callout__body h3 {
  font-size: 1rem;
  margin-bottom: var(--space-2);
  color: var(--teal-deep);
}

.day-rate-callout__body p {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.day-rate-callout__body a {
  color: var(--teal-deep);
  font-weight: 600;
}
