@media (min-width: 761px) {
  html:has(.page-single-accommodation) {
    scroll-padding-top: var(--header-height);
  }
  .page-single-accommodation .booking {
    position: relative;
    inset: auto;
    margin-top: var(--header-height);
  }
  .page-single-accommodation #main {
    padding-top: 0;
  }
}
.page-single-accommodation .cottage-gallery-main { position: relative; }
@media (hover: hover) {
  .page-single-accommodation .cottage-gallery-main .gallery-photo:hover img {
    opacity: 1;
  }
}
.property-gallery-actions {
  position: absolute;
  inset: auto 16px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}
.property-gallery-actions > * { pointer-events: auto; }
@media (min-width: 761px) {
  .property-gallery-actions #open-floor-plan svg,
  .property-gallery-actions a.property-gallery-pill svg {
    width: 17px;
    height: 17px;
  }
}
#floor-plan-dialog,
#virtual-tour-dialog {
  width: min(90vw, 1000px);
  max-height: 90vh;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  padding: 35px 25px 20px;
}
#floor-plan-dialog::backdrop,
#virtual-tour-dialog::backdrop { background: #142321e8; }
#virtual-tour-dialog iframe {
  display: block;
  width: 100%;
  height: min(62dvh, 620px);
  border: 0;
}
#virtual-tour-dialog .virtual-tour-external {
  display: inline-block;
  margin-top: 8px;
  color: #fff;
}
#floor-plan-dialog img { display: block; width: 100%; height: auto; max-height: calc(90vh - 55px); object-fit: contain; }
@media (max-width: 760px) {
  .property-gallery-actions {
    inset: auto 8px 8px;
    justify-content: flex-start;
    gap: 5px;
  }
  .property-gallery-actions .property-gallery-pill {
    font-size: 11px;
    font-weight: 400;
  }
  .property-gallery-actions .property-gallery-pill svg {
    width: 13px;
    height: 13px;
  }
}
.single-property-layout {
  --property-section-gap: clamp(36px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .48fr);
  column-gap: clamp(24px, 5vw, 85px);
  align-items: start;
}
.single-property-heading, .single-property-overview {
  display: block;
  padding-inline: 0;
}
.single-property-heading { margin-bottom: 0; }
.single-property-overview { margin-bottom: var(--property-section-gap); }
.property-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.property-summary { font-size: 14px; }
.property-summary li { display: flex; align-items: center; gap: 7px; }
.property-summary img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.property-features-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: underline;
}
.property-features-link img {
  flex: none;
  width: 10px;
  height: 6px;
}
.property-calendar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  grid-column: 2;
  grid-row: 2 / span 3;
  padding: clamp(14px, 2vw, 26px);
  background: #fff;
  border: 1px solid #ccdddb;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgb(45 73 70 / 7%);
}
.property-calendar h2 {
  text-align: center;
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
}
/* SuperControl can report an oversized iframe height during load. Keep the
   booking card compact and let any genuinely taller widget content scroll. */
.property-calendar [data-calendar-key] {
  min-height: 320px;
  max-height: 445px;
  overflow: auto;
}
.property-calendar [data-calendar-key] > iframe { display: block; max-width: 100%; }
.property-deposit-note {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 16px 0 0;
  padding: 10px 12px 10px 60px;
  border: 1px solid #d3d7d5;
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink, #2d4946);
  font-size: 14px;
  text-align: left;
}
.property-deposit-note::before,
.property-deposit-note::after {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 48px;
  content: "";
}
.property-deposit-note::before { background: #ddead8; }
.property-deposit-note::after {
  background: var(--panel, #477470);
  -webkit-mask: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-754dd83cb6ebe5db.svg") center / 22px no-repeat;
  mask: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-754dd83cb6ebe5db.svg") center / 22px no-repeat;
}
.property-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: var(--ink); }
.single-property-heading h1 { font-size: clamp(36px, 3.5vw, 56px); }
.single-property-layout .property-video { margin-top: var(--property-section-gap); }
@media (min-width: 901px) {
  .single-property-heading { grid-area: 1 / 1; }
  .single-property-overview { grid-area: 2 / 1; }
  .property-features { grid-area: 3 / 1; }
  .property-video { grid-area: 4 / 1; }
}
#key-features { scroll-margin-top: 20px; }

@media (max-width: 900px) {
  .single-property-layout { grid-template-columns: minmax(0, 1fr); }
  .property-calendar { margin-top: 28px; }
  .property-calendar { position: static; grid-area: auto; width: min(100%, 480px); }
}

/* Match the gap from the review cards to the accommodation heading. */
.page-single-accommodation .accommodation {
  padding-bottom: calc(clamp(45px, 6vw, 90px) + 20px);
}
@media (max-width: 760px) {
  .page-single-accommodation .accommodation {
    padding-bottom: 124px;
  }
}

.page-single-accommodation .accommodation::after {
  width: 115px;
  aspect-ratio: 139.1876 / 181.0395;
  left: clamp(50px, 8vw, 125px);
  bottom: 38px;
  background-image: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-6a6ded8aba006e7e.svg");
  transform: rotate(100deg);
  opacity: .25;
}

/* Imported property details use the existing accommodation layout. */
.property-summary svg { color: #8bc37a; flex: 0 0 20px; }
.single-property-overview .cottage-intro h3 { font-size: 24px; margin: 26px 0 14px; }
.property-room-details ul { margin: 0; padding-left: 20px; }
.property-calendar > p:not(.property-deposit-note) { font-size: 15px; margin-bottom: 20px; }
@media (max-width: 760px) {
  .gallery-label-desktop { display: none; }
}

/* A landscape tour viewport, with room for the provider's mobile controls. */
#virtual-tour-dialog { width: min(94vw, 1200px); }
#virtual-tour-dialog iframe { aspect-ratio: 16 / 9; height: auto; max-height: 72dvh; }
@media (max-width: 760px) {
 #virtual-tour-dialog { padding: 35px 12px 16px; }
 #virtual-tour-dialog iframe { min-height: 200px; }
 #virtual-tour-dialog .virtual-tour-external { font-size: 14px; }
}

/* Compact property calendar booking notice. */
.property-calendar .property-deposit-note{line-height:1.35}

/* Match the local landscape virtual-tour modal. */
#virtual-tour-dialog { width: min(94vw, 1200px); max-width: 1200px; padding: 36px 18px 14px; }
#virtual-tour-dialog iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: calc(90dvh - 94px); }
@media (max-width: 760px) { #virtual-tour-dialog { padding-inline: 10px; } }

/* Fixed desktop header and booking bar need real flow space above the gallery. */
@media (min-width:1101px) {
  .page-single-accommodation #main {
    padding-top:calc(var(--header-height) + var(--hog-booking-bar-height,84px));
  }
  html:has(.page-single-accommodation) {
    scroll-padding-top:calc(var(--header-height) + var(--hog-booking-bar-height,84px));
  }
}
