/* Apartment pages share the home page's palette, typefaces and navigation. */
.detail-page { --detail-space: clamp(28px, 4vw, 56px); }
.detail-page .header { position: sticky; height: 88px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: none; }
.detail-page .header .nav-book { border-color: var(--gold); color: var(--gold-dark); }
.detail-page main { padding-top: 30px; }
.detail-shell { width: min(1320px, 88%); margin-inline: auto; }
.detail-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 22px; color: var(--small-text); }
.detail-breadcrumb svg { width: 16px; height: 16px; }
.detail-breadcrumb a:hover { color: var(--gold-dark); }
.detail-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 27px 0 30px; }
.detail-title .eyebrow { margin-bottom: 10px; font-size: 12px; letter-spacing: .15em; }
.detail-title h1 { font-size: clamp(42px, 4.4vw, 66px); line-height: 1.05; letter-spacing: -.025em; font-weight: 500; text-shadow: none; }
.detail-location { display: flex; gap: 8px; align-items: center; margin-top: 15px; font-size: 14px; color: var(--small-text); }
.detail-location svg { width: 16px; color: var(--gold); }
.detail-number { display: flex; align-items: center; gap: 15px; padding-bottom: 7px; color: #9f8b63; font-family: var(--serif); font-size: 34px; font-variant-numeric: lining-nums; }
.detail-number::before { content: ''; width: 38px; height: 1px; background: #cbb98f; }
.detail-gallery { position: relative; }
.photo-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: clamp(350px, 38vw, 540px); overflow: hidden; border-radius: 4px; }
.photo-tile { display: block; padding: 0; overflow: hidden; background: #f4f4f2; min-width: 0; min-height: 0; }
.photo-tile:first-child { grid-row: 1 / 3; }
.photo-tile:only-child { grid-column: 1 / -1; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.65,.3,1), filter .7s; }
.photo-tile:focus-visible { outline-offset: -5px; }
.all-photos { position: absolute; right: 22px; bottom: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 17px; border: 1px solid #ffffffb3; border-radius: 3px; background: #fffffff5; color: var(--ink); font-size: 13px; font-weight: 400; box-shadow: 0 3px 15px #0000000a; }
.all-photos svg { width: 15px; height: 15px; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(45px, 7vw, 110px); align-items: start; padding-top: 48px; }
.detail-copy h2, .availability-section h2 { font-size: clamp(32px, 3vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; }
.detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr) minmax(0, .75fr); margin: 0 0 34px; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.detail-stat { min-width: 0; padding-right: 12px; }
.detail-stat + .detail-stat { padding-left: 12px; border-left: 1px solid var(--line); }
.detail-stat:last-child { padding-right: 0; }
.detail-stat dt { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 28px; font-weight: 400; white-space: nowrap; }
.detail-stat dt svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--gold); }
.detail-stat dd { margin: 6px 0 0; color: var(--small-text); font-size: 13px; line-height: 20px; }
.detail-copy p { font-size: 17px; font-weight: 300; line-height: 1.65; margin-top: 20px; max-width: 680px; }
.stay-highlights { display: grid; gap: 27px; padding: 0 0 33px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.stay-highlight { display: flex; align-items: start; gap: 20px; }
.stay-highlight > svg { width: 27px; height: 27px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.stay-highlight h3 { font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 25px; color: rgb(51, 51, 51); }
.detail-copy .stay-highlight p { margin-top: 4px; font-size: 13px; font-weight: 300; line-height: 23px; color: var(--small-text); }
.detail-copy .detail-description h2 { font-size: 31px; }
.detail-outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; margin-top: 25px; padding: 11px 18px; min-height: 46px; border: 1px solid #d8d6cd; border-radius: 3px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 22px; transition: border-color .2s, background .2s; }
.detail-outline-button:hover { border-color: var(--gold); background: #faf9f6; }
.detail-outline-button svg { width: 17px; height: 17px; }
.description-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.amenity-count { color: var(--gold-dark); font-variant-numeric: tabular-nums; }
.detail-amenities { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line); }
.detail-amenities h2 { font-size: 31px; }
.amenity-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; list-style: none; padding: 0; margin: 28px 0 0; }
.amenity-list li { display: flex; align-items: center; gap: 15px; font-size: 15px; line-height: 23px; }
.amenity-list svg { width: 23px; height: 23px; flex-shrink: 0; color: var(--gold); }
.stay-panel { position: sticky; top: 118px; border: 1px solid var(--line); border-radius: 4px; padding: 28px; box-shadow: 0 12px 36px #22251f05; }
.stay-panel .eyebrow { margin: 0 0 9px; font-size: 11px; letter-spacing: .12em; color: var(--gold); }
.stay-panel h2 { font-family: var(--serif); font-weight: 500; font-size: 31px; line-height: 1.15; letter-spacing: -.02em; }
.stay-panel > p { font-size: 14px; color: var(--small-text); margin-top: 13px; line-height: 23px; }
.stay-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 3px; margin: 25px 0 16px; overflow: hidden; }
.stay-dates a { padding: 12px 14px; min-width: 0; }
.stay-dates a + a { border-left: 1px solid var(--line); }
.stay-dates span { display: block; font-size: 11px; line-height: 18px; color: var(--small-text); }
.stay-dates strong { display: block; font-size: 16px; line-height: 25px; font-weight: 300; margin-top: 3px; }
.stay-panel .button { width: 100%; min-height: 51px; font-size: 15px; font-weight: 400; border-radius: 3px; }
.stay-panel .stay-note { text-align: center; font-size: 12px; margin-top: 13px; }
.availability-section { margin-top: 75px; padding: 54px 0 70px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.availability-heading { display: flex; justify-content: space-between; gap: 28px; align-items: start; margin-bottom: 30px; }
.availability-heading .eyebrow { margin-bottom: 10px; font-size: 11px; color: var(--gold); }
.availability-heading p { font-size: 14px; line-height: 24px; color: var(--small-text); margin-top: 12px; }
.calendar-navigation { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; flex-shrink: 0; margin-top: 12px; }
.calendar-navigation button { display: grid; place-items: center; width: 49px; height: 45px; padding: 0; background: #fff; }
.calendar-navigation button + button { border-left: 1px solid var(--line); }
.calendar-navigation button:hover:not(:disabled) { background: #faf9f6; color: var(--gold-dark); }
.calendar-navigation button:disabled { color: #c6c6c1; cursor: default; }
.preview-calendar { border: 1px solid var(--line); border-radius: 4px; padding: 26px 32px 0; }
.calendar-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(35px, 8vw, 120px); }
.calendar-month h3 { font-family: var(--sans); font-size: 16px; line-height: 24px; font-weight: 400; text-transform: capitalize; text-align: center; margin-bottom: 23px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 5px; }
.weekday { text-align: center; font-size: 12px; color: #7a7a74; padding-bottom: 9px; }
.calendar-day { display: grid; place-items: center; min-height: 43px; margin: 0; padding: 6px 0; border-radius: 2px; background: transparent; font-size: 14px; line-height: 24px; font-weight: 400; color: var(--ink); }
.calendar-day:disabled { color: #c8c8c3; cursor: default; }
.calendar-day:hover:not(:disabled) { background: #f5f1e8; }
.calendar-day.in-range { background: #f5f1e8; border-radius: 0; }
.calendar-day.selected { background: var(--gold); color: #fff; }
.calendar-day.selected:hover { background: var(--gold-dark); }
.calendar-day.today:not(.selected) { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 6px; }
.calendar-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 18px 0; margin-top: 23px; }
.calendar-selection { font-size: 14px; line-height: 24px; }
.calendar-clear { padding: 8px 0 8px 12px; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.calendar-preview-note { margin-top: 15px; font-size: 12px; line-height: 20px; color: #777970; }
.hotres-slot iframe { display: block; border: 0; width: 100%; min-height: 650px; }
.calendar-fallback { font-size: 14px; margin-top: 18px; color: var(--small-text); }
.detail-page footer { margin-top: 0; }
.detail-map-section { padding: 45px 0 75px; border-top: 1px solid var(--line); }
.detail-map-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.detail-map-heading .eyebrow { margin-bottom: 12px; font-size: 11px; }
.detail-map-heading h2 { font-size: 40px; font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.detail-map-heading p:not(.eyebrow) { margin-top: 12px; color: var(--small-text); font-size: 14px; line-height: 24px; }
.detail-map-link { display: inline-flex; align-items: center; gap: 23px; padding: 8px 0; border-bottom: 1px solid #cbb98f; color: var(--gold-dark); font-size: 14px; line-height: 22px; flex-shrink: 0; }
.detail-map { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #f5f5f2; }
.detail-map iframe { display: block; width: 100%; height: 430px; border: 0; }
.amenities-dialog { width: min(900px, 92vw); max-width: none; max-height: 88dvh; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; }
.amenities-dialog::backdrop { background: #20211f80; backdrop-filter: blur(5px); }
.amenities-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 1; padding: 25px 35px; background: #fff; border-bottom: 1px solid var(--line); }
.amenities-dialog-header .eyebrow { font-size: 10px; margin-bottom: 6px; }
.amenities-dialog-header h2 { font-size: 37px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.amenities-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.amenities-close:hover { border-color: var(--gold); color: var(--gold-dark); }
.amenities-dialog-content { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 45px; align-items: start; padding: 32px 35px 40px; }
.amenity-group h3 { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.15; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.amenity-group ul { padding: 0; margin: 17px 0 0; list-style: none; display: grid; gap: 12px; }
.amenity-group li { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 300; line-height: 23px; }
.amenity-group li::before { content: '·'; color: var(--gold); font-weight: 400; }
.gallery-dialog { position: fixed; inset: 0; max-width: none; max-height: none; width: 100%; height: 100dvh; margin: 0; border: 0; padding: 0; background: #fff; color: var(--ink); }
.gallery-dialog::backdrop { background: #fff; }
.gallery-dialog[open] { display: flex; flex-direction: column; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.gallery-toolbar strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.gallery-close { display: flex; align-items: center; gap: 9px; background: transparent; font-size: 14px; min-height: 44px; }
.gallery-counter { font-size: 14px; color: var(--small-text); font-variant-numeric: tabular-nums; }
.gallery-stage { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; gap: 20px; padding: 24px 4% 0; min-height: 0; flex: 1; }
.gallery-figure { display: flex; flex-direction: column; align-items: center; margin: 0; height: 100%; min-height: 0; }
.gallery-figure img { width: 100%; flex: 1; min-height: 0; object-fit: contain; }
.gallery-figure figcaption { flex-shrink: 0; font-size: 13px; text-align: center; padding: 15px 0; line-height: 20px; }
.gallery-arrow { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: #fff; width: 48px; height: 48px; }
.gallery-arrow:hover:not(:disabled) { color: var(--gold-dark); border-color: var(--gold); }
.gallery-arrow:disabled { opacity: .3; cursor: default; }
.gallery-thumbnails { display: flex; gap: 9px; flex-shrink: 0; overflow-x: auto; padding: 4px 6% 20px; justify-content: safe center; }
.gallery-thumbnail { width: 73px; height: 54px; flex-shrink: 0; padding: 0; background: #f4f4f2; opacity: .55; border: 2px solid transparent; border-radius: 2px; overflow: hidden; }
.gallery-thumbnail[aria-current=true] { opacity: 1; border-color: var(--gold); }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.detail-icon { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) { .photo-tile:hover img { transform: scale(1.035); filter: brightness(1.035); } }
@media (max-width: 1100px) { .detail-content { grid-template-columns: minmax(0, 1fr) 320px; gap: 42px; } .stay-panel { padding: 23px; } }
@media (min-width: 801px) and (max-width: 980px) {
  .detail-stat { padding-right: 8px; }
  .detail-stat + .detail-stat { padding-left: 8px; }
  .detail-stat dt { gap: 8px; }
}
@media (max-width: 800px) {
  .detail-page .header { height: 76px; }
  .detail-page main { padding-top: 22px; }
  .detail-title { padding-block: 22px 26px; }
  .detail-content { grid-template-columns: 1fr; gap: 35px; padding-top: 32px; }
  .stay-panel { position: static; padding: 26px; }
  .photo-mosaic { height: 440px; grid-template-columns: 1.6fr 1fr; }
  .photo-tile:nth-child(n+4) { display: none; }
  .detail-stats { padding-bottom: 26px; }
  .availability-section { margin-top: 45px; padding-top: 38px; padding-bottom: 45px; }
  .calendar-months { gap: 35px; }
  .preview-calendar { padding: 24px 20px 0; }
  .detail-number { font-size: 28px; }
}
/* Mobile-only layout: comfortable gutters, consistent rhythm and touch controls. */
@media (max-width: 600px) {
  .detail-shell { width: calc(100% - 40px); }
  .detail-page main { padding-top: 16px; }
  .detail-breadcrumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
  .detail-title { position: relative; display: block; padding: 18px 0 24px; }
  .detail-title .eyebrow { padding-right: 46px; font-size: 10px; line-height: 18px; letter-spacing: .12em; }
  .detail-title h1 { font-size: clamp(36px, 10.5vw, 42px); line-height: 1.08; }
  .detail-number { position: absolute; top: 15px; right: 0; gap: 8px; padding: 0; font-size: 25px; line-height: 24px; }
  .detail-number::before { width: 15px; }
  .detail-location { align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 20px; gap: 7px; }
  .detail-location svg { flex: 0 0 16px; height: 20px; }
  .photo-mosaic { display: block; height: auto; aspect-ratio: 4 / 3; }
  .photo-tile { width: 100%; height: 100%; }
  .photo-tile:not(:first-child) { display: none; }
  .all-photos { bottom: 12px; right: 12px; max-width: calc(100% - 24px); min-height: 44px; gap: 8px; font-size: 12px; line-height: 18px; padding: 10px 12px; }
  .detail-content { gap: 32px; padding-top: 28px; }
  .detail-copy { min-width: 0; }
  .detail-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 0; margin-bottom: 28px; padding-bottom: 28px; }
  .detail-stat { grid-column: span 2; padding-right: 8px; }
  .detail-stat + .detail-stat { padding-left: 14px; }
  .detail-stat:nth-child(n+4) { grid-column: span 3; }
  .detail-stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .detail-stat dt { gap: 9px; font-size: 16px; font-weight: 400; line-height: 26px; white-space: nowrap; }
  .detail-stat dt svg { flex: 0 0 18px; width: 18px; height: 18px; }
  .detail-stat dd { margin-top: 4px; font-size: 13px; line-height: 20px; }
  .detail-copy h2, .detail-copy .detail-description h2, .detail-amenities h2 { font-size: 31px; line-height: 1.15; }
  .detail-copy p { margin-top: 16px; font-size: 15px; line-height: 24px; }
  .stay-highlights { gap: 24px; padding-bottom: 28px; margin-bottom: 28px; }
  .stay-highlight { gap: 14px; }
  .stay-highlight > svg { width: 24px; height: 24px; }
  .stay-highlight h3 { font-size: 15px; line-height: 23px; }
  .detail-copy .stay-highlight p { font-size: 13px; font-weight: 300; line-height: 22px; }
  .detail-outline-button { margin-top: 20px; }
  .detail-amenities { margin-top: 32px; padding-top: 28px; }
  .amenity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin-top: 24px; }
  .amenity-list li { align-items: flex-start; gap: 10px; font-size: 14px; line-height: 22px; }
  .amenity-list svg { width: 20px; height: 22px; }
  #show-amenities { width: 100%; gap: 10px; padding-inline: 12px; font-size: 13px; }
  .stay-panel { padding: 22px; }
  .stay-panel h2 { font-size: 30px; }
  .stay-dates { margin-top: 20px; }
  .stay-dates a { padding: 12px 10px; min-height: 72px; }
  .stay-dates strong { white-space: nowrap; }
  .availability-section { margin-top: 32px; padding: 32px 0 40px; scroll-margin-top: 96px; }
  .availability-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
  .availability-heading h2 { font-size: 31px; line-height: 1.15; }
  .availability-heading p { font-size: 13px; line-height: 22px; }
  .calendar-navigation { justify-self: end; margin-top: 0; }
  .calendar-navigation button { width: 44px; height: 44px; }
  .preview-calendar { padding: 22px 12px 0; }
  .calendar-months { display: block; }
  .calendar-month:nth-child(2) { display: none; }
  .calendar-month h3 { margin-bottom: 18px; }
  .calendar-day { min-height: 44px; }
  .calendar-bottom { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 20px; padding-block: 14px 10px; }
  .calendar-selection { font-size: 13px; line-height: 22px; }
  .calendar-clear { min-height: 44px; padding: 8px 0; }
  .calendar-preview-note { margin-top: 12px; }
  .detail-map-section { padding: 32px 0 48px; }
  .detail-map-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .detail-map-heading h2 { font-size: 32px; line-height: 1.15; }
  .detail-map-link { min-height: 44px; }
  .detail-map iframe { height: 320px; }
  .amenities-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
  .amenities-dialog-header { gap: 12px; padding: 20px; }
  .amenities-dialog-header h2 { font-size: 30px; }
  .amenities-close { flex-shrink: 0; }
  .amenities-dialog-content { grid-template-columns: minmax(0, 1fr); padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); gap: 28px; }
  .gallery-toolbar { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .gallery-toolbar strong { display: none; }
  .gallery-stage { position: relative; display: flex; padding: 16px 0 65px; }
  .gallery-figure { width: 100%; }
  .gallery-arrow { position: absolute; bottom: 9px; }
  .gallery-arrow.previous-photo { left: calc(50% - 52px); }
  .gallery-arrow.next-photo { right: calc(50% - 52px); }
  .gallery-thumbnails { gap: 8px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); scroll-padding-inline: 16px; overscroll-behavior-x: contain; }
  .gallery-figure figcaption { padding-inline: 20px; }
}
@media (max-width: 360px) {
  .detail-title .eyebrow { max-width: 240px; }
  .amenity-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .stay-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .photo-tile img { transition: none; } }
