/* POLISH PARTITION: single.css
   Owner: the Product/Tour single page dispatch. Keep selectors under
   .single-detail so category/static templates remain unchanged. */

.single-detail {
  overflow-x: clip;
  background: var(--paper);
}

.single-detail .breadcrumb--hero .rank-math-breadcrumb {
  padding: 0;
  color: #d5dfd3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.single-detail .breadcrumb--hero .rank-math-breadcrumb p {
  margin: 0;
}

.single-detail .breadcrumb--hero .rank-math-breadcrumb a {
  color: var(--paper);
}

.single-detail .duration-options {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.single-detail .duration-options > :first-child,
.single-detail .acf-rich-text > :first-child,
.single-detail .acf-detail-panel > :first-child {
  margin-top: 0;
}

.single-detail .duration-options > :last-child,
.single-detail .acf-rich-text > :last-child,
.single-detail .acf-detail-panel > :last-child {
  margin-bottom: 0;
}

.single-detail .duration-options ul,
.single-detail .duration-options ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-detail .duration-options li,
.single-detail .duration-options .description {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.single-detail .duration-options li:last-child {
  border-bottom: 0;
}

.single-detail .booking-embed {
  background: var(--paper);
}

.single-detail .booking-embed .bron {
  min-height: 7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.single-detail .booking-embed iframe,
.single-detail .fareharbor-calendar-wrap,
.single-detail .fareharbor-calendar-wrap iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

.single-detail .detail-content-grid {
  display: grid;
  gap: 1.25rem;
}

.single-detail .acf-rich-text,
.single-detail .acf-detail-panel {
  min-width: 0;
  overflow-wrap: anywhere;
}

.single-detail .acf-rich-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.single-detail .acf-rich-text h2,
.single-detail .acf-rich-text h3,
.single-detail .acf-detail-panel h3 {
  margin: 1.75rem 0 0.65rem;
  color: var(--green-950);
  font-family: "Archivo Narrow", sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

.single-detail .acf-rich-text table {
  width: 100%;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: var(--white);
}

.single-detail .acf-rich-text td,
.single-detail .acf-rich-text th {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.single-detail .acf-rich-text tr:last-child td,
.single-detail .acf-rich-text tr:last-child th {
  border-bottom: 0;
}

.single-detail .acf-rich-text td:first-child,
.single-detail .acf-rich-text th:first-child {
  color: var(--green-950);
  font-weight: 700;
}

.single-detail .acf-detail-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.single-detail .acf-detail-panel h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.single-detail .acf-detail-panel .row,
.single-detail .acf-detail-panel [class*="col-"] {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  float: none;
}

.single-detail .acf-detail-panel .fl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
}

.single-detail .acf-detail-panel img {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 0 0.4rem;
  object-fit: contain;
}

.single-detail .detail-gallery__grid {
  display: grid;
  gap: 0.75rem;
}

.single-detail .detail-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-120);
}

.single-detail .detail-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.single-detail .acf-address {
  max-width: 50ch;
  color: #c9d7c8;
  font-size: 0.9rem;
  line-height: 1.65;
}

.single-detail .detail-map {
  overflow: hidden;
  border: 1px solid rgba(232, 241, 232, 0.24);
  border-radius: var(--radius);
  background: var(--green-850);
}

.single-detail .detail-map iframe,
.single-detail .detail-map img {
  display: block;
  width: 100% !important;
  min-height: 18rem;
  border: 0 !important;
  object-fit: cover;
}

.single-detail .detail-facts-band [data-market-anchor] {
  max-width: 76ch;
  margin: 1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.single-detail .upgrade-strip__actions {
  flex-wrap: wrap;
}

@media (min-width: 700px) {
  .single-detail .detail-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .single-detail .detail-content-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.7fr);
    align-items: start;
    gap: 2rem;
  }

  .single-detail .detail-content-grid > :first-child:last-child {
    grid-column: 1 / -1;
    max-width: 58rem;
  }

  .single-detail .detail-content-grid > .acf-detail-panel:nth-of-type(2) {
    grid-column: 2;
  }

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

@media (max-width: 699px) {
  .single-detail .acf-rich-text table,
  .single-detail .acf-rich-text tbody,
  .single-detail .acf-rich-text tr,
  .single-detail .acf-rich-text td,
  .single-detail .acf-rich-text th {
    display: block;
    width: 100% !important;
  }

  .single-detail .acf-rich-text tr {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .single-detail .acf-rich-text td,
  .single-detail .acf-rich-text th {
    padding: 0.25rem 0.75rem;
    border: 0;
  }
}
