/* Site listings — version 5. Fixed media frames; originals keep their proportions. */ .site-main {
    max-width: 1180px;
    margin: auto;
}
.site-main img {
    max-width: 100%;
}
.site-brand img {
    width: auto;
    max-width: 140px;
    height: 48px;
    object-fit: contain;
}
.listing-intro {
    max-width: 780px;
    padding: 48px 0 30px;
}
.listing-intro h1 {
    font-size: clamp(30px, 4vw, 48px);
}
.listing-intro p {
    color: var(--muted);
    font-size: 17px;
}
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.listing-card {
    min-width: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.listing-cover {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e7eee1;
}
.listing-cover img {
    display: block;
    width: 100%;
    height: 220px;
    max-height: 220px;
    object-fit: cover;
}
.photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
}
.listing-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: #64756b;
    background: #e7eee1;
}
.listing-card-body {
    padding: 20px;
}
.listing-card-body .eyebrow {
    margin-bottom: 8px;
}
.listing-card-body h3 {
    font-size: 19px;
}
.listing-card-body p {
    min-height: 42px;
}
.listing-card-body .eyebrow {
    min-height: 0;
}
.listing-heading {
    padding: 30px 0 20px;
}
.listing-heading h1 {
    margin-top: 20px;
}
.listing-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}
.listing-detail-layout > * {
    min-width: 0;
}
.listing-gallery {
    margin-bottom: 26px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
}
.listing-main-photo {
    height: 360px;
    max-height: 360px;
    background: #e7eee1;
    overflow: hidden;
}
.listing-main-photo img {
    width: 100%;
    height: 360px;
    max-height: 360px;
    display: block;
    object-fit: contain;
}
.gallery-controls {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.listing-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}
.listing-thumbnails a {
    border: 3px solid transparent;
    border-radius: 6px;
    overflow: hidden;
}
.listing-thumbnails a[aria-current="true"] {
    border-color: var(--ink);
}
.listing-thumbnails img {
    width: 100%;
    height: 64px;
    display: block;
    object-fit: cover;
}
.listing-booking {
    position: sticky;
    top: 18px;
}
.listing-booking .form-grid {
    grid-template-columns: 1fr;
}
.listing-booking h3 {
    margin-top: 22px;
}
.preserve-lines {
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.listing-map {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 10px;
    display: block;
    margin-bottom: 16px;
}
.gallery-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.media-preview, .gallery-admin .media-preview {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 180px;
    object-fit: contain;
    background: #e7eee1;
}
@media (max-width: 1000px) {
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .listing-detail-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }
}
@media (max-width: 760px) {
    .listing-grid, .listing-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .listing-booking {
        position: static;
    }
    .listing-cover, .listing-cover img {
        height: 220px;
    }
    .listing-main-photo, .listing-main-photo img {
        height: 280px;
    }
    .listing-thumbnails img {
        height: 52px;
    }
    .listing-map {
        height: 240px;
    }
}
.listing-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 24px;
    padding-left: 20px;
}
.listing-editor {
    grid-column: 1 / -1;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}
.listing-editor summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
}
.listing-editor label {
    display: block;
    margin-bottom: 16px;
}
/* Larger reading text; existing heading and price sizes remain unchanged. */
body { font-size: 16px; }
.public-site p, .public-site li, .public-site label,
.management p, .management label, .management td,
.management td a, .management .task-card p { font-size: 16px; }
.public-site input, .public-site select, .public-site textarea,
.management input, .management select, .management textarea { font-size: 16px; }
.public-site small, .management small, .muted,
.management .sidebar nav a, .public-site .site-header nav a,
.management .badge, .management .channel, .site-footer { font-size: 14px; }
.listing-booking { padding: 0; overflow: visible; }
.booking-price-band {
    background: #193b35;
    color: white;
    padding: 22px 18px;
    text-align: center;
    border-radius: 14px 14px 0 0;
}
.booking-price-band h2 { margin: 0; }
.booking-content { padding: 22px; }
.booking-content > h3, .booking-content > p, .booking-form > p { text-align: center; }
.booking-content button[type="submit"] { width: 100%; justify-content: center; }
.date-picker { position: relative; margin-top: 7px; }
.date-open { font-size: 13px; padding: 7px 10px; }
.date-popup {
    position: absolute; right: 0; top: 100%; z-index: 30;
    width: min(600px, calc(100vw - 48px));
    padding: 16px; border: 1px solid var(--line); border-radius: 10px;
    background: white; box-shadow: 0 8px 28px #193b3526;
}
.date-popup[hidden] { display: none; }
.date-navigation { display: flex; justify-content: space-between; margin-bottom: 18px; }
.date-navigation button { padding: 6px 12px; }
.date-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.date-months h3 { text-align: center; text-transform: capitalize; }
.date-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.date-days span { font-size: 11px; }
.date-days button { padding: 7px 0; background: #f1f5ef; color: var(--ink); font-size: 14px; }
.date-days button[aria-pressed="true"] { background: var(--ink); color: white; }
.date-days button:disabled { opacity: .35; cursor: default; text-decoration: line-through; }
.date-popup p { font-size: 13px; margin: 14px 0 0; }
@media (max-width: 760px) {
    .date-popup { position: static; width: 100%; margin-top: 10px; padding: 10px; }
    .date-months { grid-template-columns: 1fr; }
    .date-months section + section { display: none; }
    .search-form label { min-width: 100%; }
}
.search-form > .date-picker { flex: 1; min-width: 145px; }
.date-picker > label { display: block; }
.booking-price-band small { color: white; }
@media (min-width: 761px) {
    .search-form .date-popup { position: fixed; left: 50%; right: auto; top: 20vh; transform: translateX(-50%); }
}
.guest-count { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.guest-count svg { width: 24px; height: 24px; flex-shrink: 0; }
.guest-count label { flex: 1; }
/* Keep every calendar cell the same size, independent of form styles. */
.date-popup { box-sizing: border-box; max-height: 80vh; overflow-y: auto; }
.date-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.date-months section { min-width: 0; margin: 0; padding: 0; }
.date-days { width: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 38px; gap: 3px; }
.date-days > button, .date-days > span { box-sizing: border-box; min-width: 0; width: 100%; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
.date-days > button { min-height: 38px; border-radius: 6px; font-size: 14px; }
.date-days > span { font-size: 11px; overflow: hidden; }
.language-selector { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.language-selector a[aria-current="true"] { font-weight: 700; text-decoration: underline; }
.site-header { flex-wrap: wrap; gap: 16px; }
@media (max-width: 760px) {
    .date-months { grid-template-columns: minmax(0, 1fr); }
    .public-site .site-header nav a { display: inline; }
    .site-header nav { flex-wrap: wrap; }
    .language-selector { width: 100%; }
}
.review-stars { color: #9b6800; font-size: 20px; letter-spacing: 2px; }
.review-card { padding: 20px 0; border-top: 1px solid var(--line); }
.review-response { padding: 14px; background: var(--sage); border-radius: 8px; }
.rating-picker { border: 1px solid var(--line); border-radius: 8px; padding: 16px; grid-column: 1 / -1; }
.rating-picker label { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.rating-picker input { width: auto; }
.rating-picker label span { color: #9b6800; }
.date-popup > select { margin-bottom: 12px; width: 100%; }
/* Room-specific facts, one bullet per line. */
.listing-facts { list-style: disc outside; padding-left: 22px; margin: 12px 0 20px; }
.listing-facts li { margin: 6px 0; line-height: 1.5; }
.house-bed-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--ink); margin: 12px 0 20px; }
.house-bed-icons svg { width: 52px; height: 52px; flex: 0 0 52px; }
/* Anchor every calendar to the viewport so its last row remains reachable. */
.date-popup,
.search-form .date-popup {
    position: fixed;
    inset: 12px auto auto 50%;
    transform: translateX(-50%);
    width: min(640px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1000;
    padding: 14px;
}
.date-navigation { margin-bottom: 12px; }
.date-months h3 { margin: 8px 0 12px; }
@media (max-height: 650px) {
    .date-popup .date-days { grid-auto-rows: 32px; }
    .date-popup .date-days > button { min-height: 32px; }
}
