.calendar-key {
    background: #ffffff;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
}
.calendar-key-item {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    padding: 0.5rem 0;
}
.calendar-key-name {
    font-size: 0.8rem;
    padding-left: 0.5rem;
}
.calendar-key-icon {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    font-size: .7rem;
    height: 1.2rem;
    justify-content: center;
    line-height: 1;
    width: 1.2rem;
}
.calendar-date-is-available, td.calendar-date-is-available,
.calendar-date-is-not-available, td.calendar-date-is-not-available,
.calendar-date-is-past, td.calendar-date-is-past,
.calendar-date-afternoon-available, td.calendar-date-afternoon-available,
.calendar-date-morning-available, td.calendar-date-morning-available {
    padding: .3rem .3rem;
}
.calendar-date-is-available, td.calendar-date-is-available {
    background: #c7dbd2; /* Bootstrap .table-secondary */
}
.calendar-date-is-not-available, td.calendar-date-is-not-available {
    background: #f8d7da; /* Bootstrap .table-danger */
}
.calendar-date-is-past, td.calendar-date-is-past {
    background: #e2e3e5; /* Bootstrap .table-success */
}
.calendar-date-afternoon-available, td.calendar-date-afternoon-available {
    background: #f8d7da;
    background: -moz-linear-gradient(-45deg,  #f8d7da 0%, #f8d7da 50%, #c7dbd2 50%, #c7dbd2 100%);
    background: -webkit-linear-gradient(-45deg,  #f8d7da 0%,#f8d7da 50%,#c7dbd2 50%,#c7dbd2 100%);
    background: linear-gradient(135deg,  #f8d7da 0%,#f8d7da 50%,#c7dbd2 50%,#c7dbd2 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f8d7da', endColorstr='#c7dbd2',GradientType=1 );
}
.calendar-date-morning-available, td.calendar-date-morning-available {
    background: #c7dbd2;
    background: -moz-linear-gradient(-45deg,  #c7dbd2 0%, #c7dbd2 50%, #f8d7da 50%, #f8d7da 100%);
    background: -webkit-linear-gradient(-45deg,  #c7dbd2 0%,#c7dbd2 50%,#f8d7da 50%,#f8d7da 100%);
    background: linear-gradient(135deg,  #c7dbd2 0%,#c7dbd2 50%,#f8d7da 50%,#f8d7da 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c7dbd2', endColorstr='#f8d7da',GradientType=1 );
}
/* Calendar month header — uses the theme accent; override this class to restyle. */
.vr-calendar-header {
    background: var(--vr-accent);
    color: var(--vr-accent-contrast);
}
/* Small day-status glyph in the cell corner (paired with .position-relative). */
.vr-calendar-glyph {
    position: absolute;
    top: 0.25rem;
    right: 0;
    padding-right: .25rem;
    font-size: .4em;
    line-height: 1;
}

/* Search form */
.vr-select-tall { height: 200px; }

/* Search results listings */
.vr-listing-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.vr-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .12) !important;
}
.vr-listing-media {
    overflow: hidden;
    background: #f1f1f1;
}
.vr-listing-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 380px;
    object-fit: cover;
}
.vr-eyebrow {
    font-size: .75rem;
    letter-spacing: .1em;
}
.vr-listing-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: .95rem;
    margin-bottom: 1rem;
}
.vr-listing-feature {
    display: inline-flex;
    align-items: center;
}
.vr-listing-feature + .vr-listing-feature::before {
    content: "\00b7";
    margin: 0 .75rem;
    color: #adb5bd;
}
.vr-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vr-listing-price {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.1;
}
.vr-period {
    font-size: .8rem;
}

/* Listing detail page */
.vr-show-hero {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.vr-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: .5rem;
    height: 400px;
}
.vr-gallery button {
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.vr-gallery button:first-child {
    grid-row: 1 / span 2;
}
.vr-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.vr-gallery button:hover img {
    transform: scale(1.03);
}
.vr-gallery-btn {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
}
.vr-sticky {
    position: sticky;
    top: var(--vr-sticky-top, 1.5rem);
}
/* When the admin bar is shown on a public page (authenticated), push the sticky
   card down so it clears the sticky navbar instead of hiding under it. Tuned to
   the standard admin bar height — raise it if the bar wraps to two rows. */
.vr-has-adminbar {
    --vr-sticky-top: 5rem;
}
.vr-prewrap {
    white-space: pre-line;
}
.vr-detail-content p {
    max-width: 65ch;
    line-height: 1.7;
}
.vr-detail-features {
    font-size: 1.05rem;
}
/* Amenity checkmark (replaces the removed bootstrap-icon), CSS-only */
.vr-amenity::before {
    content: "\2713";
    color: var(--vr-accent);
    font-weight: 700;
    margin-right: .5rem;
    flex-shrink: 0;
}
/* Listing type: solid accent pill so it reads as the primary "kind of place" */
.vr-theme .vr-badge-type {
    background: var(--vr-accent);
    color: var(--vr-accent-contrast);
    font-weight: 500;
}
/* Pet/smoking policy chips: green when allowed, neutral gray when not */
.vr-theme .vr-policy {
    font-weight: 500;
}
.vr-theme .vr-policy--yes {
    background: #e4f3ea;
    color: #1c7a48;
}
.vr-theme .vr-policy--no {
    background: #efefec;
    color: var(--vr-muted);
}

/* High-end listing theme (shared by the search and detail pages) */
.vr-theme {
    --vr-ink: #23211d;
    --vr-muted: #6f6a62;
    --vr-related-bg: #e5e5e5;
    --vr-accent: #9d5e44;
    --vr-accent-dark: #7e4a34;
    --vr-tint: #f3e9e3;
    --vr-accent-rgb: 157, 94, 68;
    --vr-accent-contrast: #ffffff;
    color: var(--vr-ink);
}
.vr-theme h1,
.vr-theme h2,
.vr-theme h3,
.vr-theme legend {
    font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
    color: var(--vr-ink);
    letter-spacing: -0.01em;
}
.vr-related-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
/* "Similar properties" band: a full-bleed light-grey strip. Override the
   background (or set --vr-related-bg) to restyle. */
.vr-related-section {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /* Absorb the layout container's py-5 bottom padding so the band sits flush
       against the footer (it's the last in-flow block on the page). */
    margin-bottom: -3rem;
    padding: 3rem 0;
    background: var(--vr-related-bg);
}
.vr-theme .display-6 {
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
}
.vr-theme .text-secondary {
    color: var(--vr-muted) !important;
}
.vr-theme .vr-eyebrow {
    color: var(--vr-accent);
    font-weight: 600;
}
/* Search form controls pick up the accent on focus/selection */
.vr-theme .form-control:focus,
.vr-theme .form-select:focus,
.vr-theme .form-check-input:focus {
    border-color: var(--vr-accent);
    box-shadow: 0 0 0 .25rem rgba(var(--vr-accent-rgb), .2);
}
.vr-theme .form-check-input:checked {
    background-color: var(--vr-accent);
    border-color: var(--vr-accent);
}
.vr-btn-contact {
    background: var(--vr-accent);
    border: 1px solid var(--vr-accent);
    color: var(--vr-accent-contrast);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.vr-btn-contact:hover,
.vr-btn-contact:focus {
    background: var(--vr-accent-dark);
    border-color: var(--vr-accent-dark);
    color: var(--vr-accent-contrast);
    transform: translateY(-1px);
    box-shadow: 0 .5rem 1.25rem rgba(var(--vr-accent-rgb), .3);
}
.vr-detail-header {
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .06) !important;
}
.vr-inquiry {
    border-top: 3px solid var(--vr-accent) !important;
}
.vr-tabs {
    flex-wrap: nowrap;
    gap: 1.75rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.vr-tabs .nav-link {
    padding: .5rem 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--vr-muted);
    font-weight: 500;
    white-space: nowrap;
}
.vr-tabs .nav-link:hover {
    color: var(--vr-ink);
    border-bottom-color: rgba(0, 0, 0, .15);
}
.vr-tabs .nav-link.active {
    color: var(--vr-ink);
    background: none;
    border-bottom-color: var(--vr-accent);
}
/* Tab polish: smooth the active underline, bolder active label, scroll hint */
.vr-tabs {
    scrollbar-width: thin;
}
.vr-tabs .nav-link {
    transition: color .2s ease, border-color .2s ease;
}
.vr-tabs .nav-link.active {
    font-weight: 600;
}
.vr-tab-content {
    padding-top: .25rem;
}

/* Accordion layout for the detail sections, themed to match .vr-theme */
.vr-theme .accordion {
    --bs-accordion-color: var(--vr-ink);
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: rgba(0, 0, 0, .1);
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: var(--vr-ink);
    --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--vr-accent-rgb), .2);
}
.vr-theme .accordion-button {
    font-weight: 600;
}
.vr-theme .accordion-button:not(.collapsed) {
    box-shadow: none;
}
.vr-inquiry .vr-listing-price {
    color: var(--vr-ink);
    font-size: 1.75rem;
}
.vr-theme .pagination {
    gap: .25rem;
}
.vr-theme .page-link {
    border: 0;
    border-radius: .5rem;
    padding: .5rem .85rem;
    color: var(--vr-ink);
}
.vr-theme .page-link:hover {
    background: rgba(0, 0, 0, .05);
    color: var(--vr-ink);
}
.vr-theme .page-item.active .page-link {
    background: var(--vr-accent);
    color: var(--vr-accent-contrast);
}
.vr-theme .page-item.disabled .page-link {
    color: var(--vr-muted);
    background: transparent;
}
.vr-theme .page-link:focus {
    box-shadow: 0 0 0 .2rem rgba(var(--vr-accent-rgb), .25);
}

/* Subtle scroll-reveal: only active once JS adds .vr-animate, so content
   is always visible without JS or with reduced motion. */
.vr-theme.vr-animate .vr-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}
.vr-theme.vr-animate .vr-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .vr-theme.vr-animate .vr-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
@media (max-width: 991.98px) {
    .vr-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .vr-gallery button:first-child {
        grid-row: auto;
        aspect-ratio: 16 / 9;
    }
    .vr-gallery button:not(:first-child) {
        display: none;
    }
    .vr-sticky {
        position: static;
    }
}

/* Polish: warm atmosphere, refined type, accent details */

/* Soft neutral backdrop so white cards read as elevated. Targets the layout's
   <main class="bg-light"> on themed public pages; the higher specificity +
   !important beats Bootstrap's .bg-light utility. */
main:has(.vr-theme) {
    background-color: #f3f4f6 !important;
}
.vr-theme .shadow-sm {
    box-shadow: 0 .35rem 1rem rgba(45, 32, 24, .06) !important;
}
.vr-theme .vr-listing-card:hover {
    box-shadow: 0 1.25rem 2.5rem rgba(45, 32, 24, .13) !important;
}

/* Generous, readable lead paragraph under page headers */
.vr-theme header p.fs-5 {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 60ch;
}

/* Prices align and read as deliberate */
.vr-listing-price,
.vr-theme .vr-period {
    font-variant-numeric: tabular-nums;
}

/* Soft clay tint for text selection and tag pills */
.vr-theme ::selection {
    background: var(--vr-tint);
}
.vr-theme .badge.bg-light {
    background: var(--vr-tint) !important;
    color: var(--vr-accent-dark) !important;
    border-color: transparent !important;
}

/* Editorial clay links inside body copy */
.vr-detail-content a,
.vr-theme .trix-content a {
    color: var(--vr-accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.vr-detail-content a:hover,
.vr-theme .trix-content a:hover {
    color: var(--vr-accent-dark);
}

/* Slow image zoom on card hover (the media wrapper clips the overflow) */
.vr-listing-img,
.vr-related-img {
    transition: transform .5s ease;
}
.vr-listing-card:hover .vr-listing-img,
.vr-listing-card:hover .vr-related-img {
    transform: scale(1.04);
}

/* Keyboard focus ring + anchor-jump breathing room */
.vr-theme :focus-visible {
    outline: 2px solid var(--vr-accent);
    outline-offset: 2px;
}
.vr-theme #availability {
    scroll-margin-top: 2rem;
}
