/* ==========================================================================
   Ada Rentals — public site styles ("Cedarline" design)

   The identity grows from the company's flagship, Cedarline Villas: a
   "cedarline" is the windbreak of eastern red cedars along an Oklahoma fence
   row. Deep cedar green carries the brand and cedar-heartwood rust marks
   every Apply Now action. Type: Besley (display) and Source Sans 3 (body),
   self-hosted on the project CDN.
   ========================================================================== */

:root {
    /* Palette */
    --pine: #1f4430;
    --pine-deep: #132b1e;
    --pine-bright: #2e6647;
    --pine-tint: #e8f0e9;
    --cedar: #b0512c;
    --cedar-deep: #8c3d1f;
    --gold: #d9a13f;
    --ink: #24302a;
    --muted: #5d6a61;
    --line: #dce3db;
    --bg: #fbfcfa;
    --bg-alt: #f2f5f0;

    /* Layout */
    --wrap: 1120px;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow: 0 6px 22px rgba(19, 43, 30, 0.10);
    --shadow-lg: 0 18px 44px rgba(19, 43, 30, 0.18);

    /* Type */
    --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-display: 'Besley', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
}

/* --------------------------------------------------------------------------
   Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    font-size: 1.0625rem;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine-bright); text-decoration: none; }
a:hover { color: var(--pine); text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--pine); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--cedar); outline-offset: 2px; }
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--pine-deep); color: #fff; padding: .6rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
main { min-height: 50vh; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    background: var(--cedar);
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .7rem 1.5rem;
    border: 2px solid var(--cedar);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--cedar-deep); border-color: var(--cedar-deep); color: #fff; text-decoration: none; }
.btn--pine { background: var(--pine); border-color: var(--pine); }
.btn--pine:hover { background: var(--pine-deep); border-color: var(--pine-deep); }
.btn--outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn--outline:hover { background: var(--pine); color: #fff; }
.btn--light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--pine); }
.btn--lg { font-size: 1.1rem; padding: .85rem 2rem; }
.btn--sm { font-size: .92rem; padding: .45rem 1.05rem; }

/* --------------------------------------------------------------------------
   Admin bar (shows only when an admin is signed in on the public site)
   -------------------------------------------------------------------------- */
.admin-bar { background: #141414; color: #fff; font-size: .85rem; }
.admin-bar__inner { max-width: var(--wrap); margin: 0 auto; padding: 7px 24px; display: flex; align-items: center; gap: 1.5rem; }
.admin-bar a { color: #e4e9e4; }
.admin-bar a:hover { color: #fff; }
.admin-bar__title { font-weight: 700; }
.admin-bar__logout { margin-left: auto; }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(19, 43, 30, .08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }

.site-brand { display: flex; align-items: center; gap: .65rem; color: var(--pine); }
.site-brand:hover { color: var(--pine); text-decoration: none; }
.site-brand__mark { flex: 0 0 auto; width: 30px; height: 34px; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; }
.site-brand__tag { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { font-weight: 600; font-size: .98rem; color: var(--ink); }
.site-nav a:hover { color: var(--pine-bright); text-decoration: none; }
.site-nav a.active { color: var(--pine); box-shadow: 0 2px 0 var(--cedar); }
.site-nav__phone { display: inline-flex; align-items: center; gap: .45rem; background: var(--pine-tint); color: var(--pine) !important; padding: .5rem 1rem; border-radius: 99px; font-weight: 700; white-space: nowrap; }
.site-nav__phone:hover { background: var(--pine); color: #fff !important; }
.site-nav__phone svg { width: 15px; height: 15px; fill: currentColor; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--pine); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-scrim { display: none; }

/* --------------------------------------------------------------------------
   Green bands
   -------------------------------------------------------------------------- */
.band {
    position: relative;
    background: linear-gradient(160deg, var(--pine-deep) 0%, var(--pine) 62%, #275339 100%);
    color: #fff;
}
.band a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); }
.band a:not(.btn):hover { text-decoration-color: #fff; }
.band h1, .band h2 { color: #fff; }
.band__eyebrow {
    margin: 0 0 .9rem; font-size: .78rem; font-weight: 700;
    letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.band__lead { font-size: 1.16rem; color: rgba(255, 255, 255, .88); max-width: 58ch; }

/* Home hero */
.hero { text-align: left; }
.hero .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); font-weight: 800; max-width: 17ch; margin-bottom: .5rem; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.hero__note { margin: 1.4rem 0 0; font-size: .95rem; color: rgba(255, 255, 255, .7); }

/* Interior page band (locations, property, apply, sitemap, errors) */
.page-band .wrap { padding-top: 2.9rem; padding-bottom: 2.9rem; }
.page-band__crumb { margin: 0 0 .8rem; font-size: .9rem; }
.page-band__crumb a { text-decoration: none; color: rgba(255, 255, 255, .75); }
.page-band__crumb a:hover { color: #fff; text-decoration: underline; }
.page-band h1 { margin-bottom: .3rem; }
.page-band__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: .9rem; }
.page-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-block; font-size: .78rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    padding: .22rem .7rem; border-radius: 99px; white-space: nowrap;
}
.badge--available { background: var(--pine-tint); color: var(--pine); }
.badge--leased { background: #a12d1e; color: #fff; }
.badge--featured { background: #f5e7c8; color: #7a5410; }
.badge--type { background: rgba(255, 255, 255, .14); color: #fff; }
.band .badge--available { background: rgba(255, 255, 255, .92); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.section__head h2 { margin: 0; }
.section__count {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: 99px;
    padding: .3rem .95rem; font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.section__eyebrow { margin: 0 0 .35rem; font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cedar); }

/* Editable prose from the content table / location descriptions */
.prose { max-width: 70ch; }
.prose img { border-radius: var(--radius); }
.prose p:last-child { margin-bottom: 0; }

/* Welcome block: prose beside a contact card */
.welcome__cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.loc-intro__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 3rem; align-items: start; }
.contact-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 3rem; align-items: start; }
.glance-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.glance-list li { padding: .45rem 0 .45rem 1.6rem; position: relative; font-weight: 600; border-bottom: 1px solid var(--line); }
.glance-list li:last-child { border-bottom: 0; }
.glance-list li::before {
    content: ''; position: absolute; left: 0; top: .78rem; width: 9px; height: 9px;
    border-radius: 50%; background: var(--pine-bright);
}
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 1.6rem 1.7rem;
}
.contact-card h3 { margin-bottom: .35rem; }
.contact-card p { color: var(--muted); font-size: .98rem; }
.contact-card__row { display: flex; align-items: center; gap: .6rem; margin: .65rem 0; font-weight: 600; }
.contact-card__row svg { width: 16px; height: 16px; fill: var(--pine); flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Featured property
   -------------------------------------------------------------------------- */
.featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--line); }
.featured__media { position: relative; min-height: 320px; background: var(--bg-alt); }
.featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__tag {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--gold); color: var(--pine-deep);
    font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    padding: .28rem .8rem; border-radius: 99px;
}
.featured__body { padding: 2.1rem 2.2rem; display: flex; flex-direction: column; gap: .35rem; }
.featured__body h3 { font-size: 1.55rem; margin: 0; }
.featured__where { color: var(--muted); margin: 0; }
.featured__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .9rem 0; padding: 0; list-style: none; }
.featured__facts strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--pine); }
.featured__facts span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.featured__desc { color: var(--muted); margin-bottom: 1.1rem; }
.featured__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .7rem; }

/* --------------------------------------------------------------------------
   Property cards
   -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }
.prop-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 1px 2px rgba(19, 43, 30, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prop-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--pine-tint); overflow: hidden; }
.prop-card__media a { display: block; width: 100%; height: 100%; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.prop-card:hover .prop-card__media img { transform: scale(1.05); }
.prop-card__media .badge { position: absolute; top: .85rem; left: .85rem; box-shadow: 0 1px 6px rgba(19, 43, 30, .25); }
.prop-card__media .badge--available { background: #fff; }
.prop-card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--pine); font-size: .9rem; font-weight: 600; }
.prop-card__body { display: flex; flex-direction: column; gap: .2rem; padding: 1.15rem 1.3rem 1.35rem; flex: 1; }
.prop-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin: 0; }
.prop-card__title a { color: var(--pine); text-decoration: none; }
.prop-card__title a:hover { color: var(--cedar); }
.prop-card__where { color: var(--muted); font-size: .95rem; margin: 0; }
.prop-card__rent { margin: .45rem 0 .1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ink); }
.prop-card__rent span { font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--muted); }
.prop-card__fee { font-size: .9rem; color: var(--muted); margin: 0 0 .6rem; }
.prop-card__actions { margin-top: auto; display: flex; gap: .6rem; align-items: center; }

/* --------------------------------------------------------------------------
   Location cards (home page)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Location page
   -------------------------------------------------------------------------- */
.loc-intro { padding-top: 2.75rem; }
.loc-intro .prose { color: var(--ink); }

/* --------------------------------------------------------------------------
   Property detail
   -------------------------------------------------------------------------- */
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; padding: 2.75rem 0 3.5rem; }

.gallery__hero { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--pine-tint); }
.gallery__hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.gallery__grid { margin-top: 2.2rem; }
.gallery__title { font-size: 1.35rem; margin-bottom: .8rem; }
.gallery__title .muted { font-family: var(--font); font-size: 1rem; font-weight: 600; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; transition: opacity .15s; }
.gallery__thumbs img:hover { opacity: .85; }
.gallery__more { position: relative; }
.gallery__more span {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(19, 43, 30, .62); color: #fff; font-weight: 700; font-size: 1.02rem;
    border-radius: var(--radius); pointer-events: none;
}
.gallery__hidden { display: none; }

.prop-desc { margin-top: 2.25rem; }
.prop-desc h2, .floor-plans h2 { font-size: 1.45rem; }
.floor-plans { margin-top: 2.25rem; }
.floor-plans__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.floor-plans__grid figure { margin: 0; }
.floor-plans__grid img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: zoom-in; }
.floor-plans__grid figcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

.prop-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.25rem; }
.fact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem 1.6rem; }
.fact-card__rent { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--pine); line-height: 1.1; }
.fact-card__rent span { font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--muted); }
.fact-card dl { margin: 1.1rem 0 1.3rem; }
.fact-card__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.fact-card__row dt { color: var(--muted); font-size: .95rem; }
.fact-card__row dd { margin: 0; font-weight: 700; text-align: right; }
.fact-card .btn { width: 100%; text-align: center; }
.fact-card__call { margin: .85rem 0 0; text-align: center; font-size: .95rem; color: var(--muted); }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(15, 26, 19, .93); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 86vh; border-radius: var(--radius); box-shadow: 0 10px 60px rgba(0, 0, 0, .5); }
.lightbox__close, .lightbox__prev, .lightbox__next {
    position: absolute; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 99px;
    width: 46px; height: 46px; font-size: 1.5rem; line-height: 1; cursor: pointer;
    transition: background .15s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 1.1rem; right: 1.1rem; }
.lightbox__prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .85); font-size: .95rem; letter-spacing: .06em; }

/* --------------------------------------------------------------------------
   Application form
   -------------------------------------------------------------------------- */
.apply-layout { max-width: 860px; margin: 0 auto; padding: 2.75rem 24px 3.5rem; }
.apply-property {
    display: flex; align-items: center; gap: 1.1rem; background: #fff;
    border: 1px solid var(--line); border-left: 4px solid var(--cedar);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 1rem 1.3rem; margin-bottom: 2.25rem;
}
.apply-property img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); flex: 0 0 auto; }
.apply-property__addr { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--pine); }
.apply-property__meta { color: var(--muted); font-size: .95rem; }

.app-form fieldset {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: #fff; box-shadow: 0 1px 2px rgba(19, 43, 30, .05);
    margin: 0 0 1.75rem; padding: 1.4rem 1.75rem 1.75rem;
}
.app-form legend {
    display: flex; align-items: center; gap: .7rem;
    font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--pine);
    padding: 0 .6rem;
}
.app-form legend .step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 99px; flex: 0 0 auto;
    background: var(--pine); color: #fff;
    font-family: var(--font); font-size: .95rem; font-weight: 700;
}
.app-form__hint { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; }
.app-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.5rem; }
.app-form__grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--full { grid-column: 1 / -1; }

.app-form .input, .app-form .field { margin-bottom: .85rem; }
.app-form label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .25rem; }
.app-form input[type="text"], .app-form input[type="email"], .app-form input[type="tel"],
.app-form input[type="date"], .app-form input[type="number"], .app-form textarea, .app-form select {
    width: 100%; padding: .6rem .8rem; font: inherit; color: var(--ink);
    background: var(--bg); border: 1px solid #c6d0c6; border-radius: var(--radius);
}
.app-form input:focus, .app-form textarea:focus, .app-form select:focus {
    outline: none; border-color: var(--pine-bright); box-shadow: 0 0 0 3px rgba(46, 102, 71, .18); background: #fff;
}
.app-form .error input, .app-form .error textarea, .app-form input.form-error, .app-form textarea.form-error { border-color: #b03a2e; }
.app-form .error-message { color: #b03a2e; font-size: .88rem; margin: .2rem 0 0; }

.app-form__consent {
    background: var(--pine-tint); border-radius: var(--radius);
    padding: 1rem 1.25rem; font-size: .97rem; color: var(--pine-deep); margin: 0 0 1.5rem;
}
.app-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.app-form__privacy { font-size: .9rem; color: var(--muted); margin: 0; }

/* Thanks page */
.thanks { max-width: 640px; margin: 0 auto; text-align: center; padding: 4rem 24px 4.5rem; }
.thanks__mark { width: 64px; height: 64px; margin: 0 auto 1.25rem; }
.thanks p { color: var(--muted); }
.thanks__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */
.message {
    max-width: var(--wrap); margin: 1rem auto 0; padding: .8rem 1.2rem;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: #fff; box-shadow: var(--shadow); cursor: pointer;
}
.message.success { border-color: var(--pine-bright); background: var(--pine-tint); color: var(--pine-deep); }
.message.error { border-color: #b03a2e; background: #fbeae7; color: #7a2d24; }
.message.hidden { display: none; }

/* --------------------------------------------------------------------------
   Sitemap + error pages
   -------------------------------------------------------------------------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.sitemap-grid h2 { font-size: 1.2rem; }
.sitemap-grid ul { list-style: none; margin: 0; padding: 0; }
.sitemap-grid li { padding: .3rem 0; }

.error-page { max-width: 620px; margin: 0 auto; text-align: center; padding: 4.5rem 24px; }
.error-page p { color: var(--muted); }
.error-page .btn { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 4.5rem; }
.site-footer__main { background: var(--pine); color: #fff; padding: 3rem 0 2.5rem; }
.site-footer__inner { display: grid; grid-template-columns: minmax(260px, 1.4fr) 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .75rem; }
.site-footer__brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.site-footer p, .site-footer address { color: rgba(255, 255, 255, .8); font-style: normal; margin: .5rem 0 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .22rem 0; }
.site-footer a { color: rgba(255, 255, 255, .88); }
.site-footer a:hover { color: #fff; }
.site-footer__bar { background: var(--pine-deep); padding: .9rem 0; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.site-footer__bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer__legal { display: flex; gap: 1.25rem; }
.site-footer__legal a { color: rgba(255, 255, 255, .65); }
.site-footer__legal a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .welcome__cols { grid-template-columns: 1fr; }
    .loc-intro__cols, .contact-cols { grid-template-columns: 1fr; }
    .featured { grid-template-columns: 1fr; }
    .featured__media { min-height: 260px; aspect-ratio: 16 / 9; }
    .prop-layout { grid-template-columns: 1fr; }
    .prop-aside { position: static; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
        flex-direction: column; align-items: flex-start; gap: .4rem;
        width: min(320px, 84vw); padding: 5.2rem 1.8rem 2rem;
        background: var(--pine-deep); box-shadow: -8px 0 30px rgba(0, 0, 0, .3);
        transform: translateX(102%); transition: transform .25s ease; visibility: hidden;
    }
    .site-nav.open { transform: translateX(0); visibility: visible; }
    .site-nav a { color: #fff; font-size: 1.15rem; padding: .55rem 0; width: 100%; }
    .site-nav a.active { color: var(--gold); box-shadow: none; }
    .site-nav a:hover { color: var(--gold); }
    .site-nav__phone { background: var(--cedar); color: #fff !important; justify-content: center; margin-top: 1rem; padding: .8rem 1rem; width: 100%; border-radius: var(--radius); }
    .nav-toggle { position: relative; z-index: 110; }
    .nav-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(15, 26, 19, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
    .nav-scrim.visible { display: block; opacity: 1; pointer-events: auto; }
    body.nav-open .nav-toggle span { background: #fff; }
}

@media (max-width: 640px) {
    .app-form__grid, .app-form__grid--thirds { grid-template-columns: 1fr; }
    .app-form fieldset { padding: 1.1rem 1.15rem 1.3rem; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
    .hero .wrap { padding-top: 3.25rem; padding-bottom: 3.25rem; }
    .featured__body { padding: 1.5rem 1.4rem; }
    .apply-property { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* Closing CTA band on the home page */
.home-cta .wrap { padding-top: 3rem; padding-bottom: 3rem; }
.home-cta h2 { margin-bottom: .4rem; }

/* Standing policy note on the property pricing card */
.fact-card__note { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; margin: .9rem 0 1rem; }

/* Fleet standard: reCAPTCHA v3 runs invisibly */
.grecaptcha-badge { visibility: hidden !important; }
