/* =========================================================
   COLE CENTRE — COMMERCIAL REAL ESTATE WEBSITE
   File: static/css/style.css
   ========================================================= */

/* 1. DESIGN COLORS */
:root {
    --navy: #071d30;
    --navy-deep: #041525;
    --navy-soft: #102b43;
    --gold: #d9b35f;
    --gold-deep: #b88b32;
    --cream: #f6f3ec;
    --cream-dark: #ebe5d8;
    --white: #ffffff;
    --ink: #172332;
    --muted: #69717b;
    --line: rgba(7, 29, 48, 0.14);
    --shadow: 0 16px 42px rgba(4, 21, 37, 0.12);
    --container: 1240px;
    --header-height: 76px;
    --ease: 220ms ease;
}

/* 2. RESET AND BASE STYLES */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Inter", "Avenir Next", Avenir, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--ease);
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.65em;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.6rem, 5.8vw, 5.3rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

p {
    margin: 0 0 1rem;
}

::selection {
    background: var(--gold);
    color: var(--navy-deep);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* 3. SHARED LAYOUT */
.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section--cream {
    background: var(--cream);
}

.section--white {
    background: var(--white);
}

.section--navy {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
    color: var(--white);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.25rem;
}

.section-heading p {
    max-width: 680px;
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--gold-deep);
    font-size: 0.73rem;
    font-weight: 750;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.section--navy .eyebrow,
.hero .eyebrow,
.site-footer .eyebrow {
    color: var(--gold);
}

.text-muted {
    color: var(--muted);
}

.text-gold {
    color: var(--gold);
}

.gold-rule {
    width: 64px;
    height: 2px;
    margin: 1.25rem 0;
    background: var(--gold);
}

/* 4. HEADER AND NAVIGATION */
.site-header {
    position: relative;
    z-index: 100;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(217, 179, 95, 0.38);
    background: var(--navy-deep);
    color: var(--white);
}

.site-header__inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-brand {
    display: inline-flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 0.12rem;
    color: var(--white);
}

.site-brand__name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    letter-spacing: 0.035em;
    line-height: 1;
    text-transform: uppercase;
}

.site-brand__address {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.61rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1rem, 2.1vw, 2rem);
}

.site-nav a:not(.button) {
    position: relative;
    padding: 0.55rem 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
}

.site-nav a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: 0.2rem;
    left: 0;
    height: 1px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.site-nav a:not(.button):hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--white);
}

/* A thin gold line separating "All Properties" (the whole portfolio) from
   this building's own sections. */
.site-nav__divider {
    width: 1px;
    height: 1.1rem;
    background: rgba(217, 179, 95, 0.45);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    background: transparent;
    color: var(--white);
    font-size: 1.35rem;
}

/* 5. BUTTONS */
.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.78rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    transition: all var(--ease);
}

.button:hover {
    transform: translateY(-2px);
}

.button--gold {
    border-color: var(--gold);
    background: linear-gradient(135deg, #e3c779, var(--gold));
    color: var(--navy-deep);
}

.button--gold:hover {
    background: #e8c873;
    box-shadow: 0 9px 22px rgba(4, 21, 37, 0.18);
}

.button--outline {
    border-color: var(--gold);
    background: transparent;
    color: var(--white);
}

.button--outline:hover {
    background: var(--gold);
    color: var(--navy-deep);
}

.button--navy {
    background: var(--navy);
    color: var(--white);
}

.button--navy:hover {
    background: var(--navy-soft);
}

.button--light {
    border-color: var(--line);
    background: var(--white);
    color: var(--navy);
}

.button--light:hover {
    border-color: var(--gold);
    background: var(--cream);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 750;
}

.text-link:hover {
    gap: 0.75rem;
    color: var(--gold-deep);
}

/* 6. HOMEPAGE HERO */
.hero {
    position: relative;
    display: flex;
    min-height: min(760px, calc(100svh - var(--header-height)));
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--navy);
    background-image:
        linear-gradient(
            90deg,
            rgba(4, 21, 37, 0.88) 0%,
            rgba(4, 21, 37, 0.62) 42%,
            rgba(4, 21, 37, 0.12) 100%
        ),
        linear-gradient(
            0deg,
            rgba(4, 21, 37, 0.75) 0%,
            transparent 58%
        );
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
    padding-top: 6rem;
    padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: clamp(3rem, 7.3vw, 6.6rem);
}

.hero h1 .accent,
.hero__accent {
    color: var(--gold);
}

.hero__subtitle {
    max-width: 650px;
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.75rem;
}

.hero--compact {
    min-height: 320px;
    align-items: center;
}

.hero--compact .hero__content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero--compact h1 {
    max-width: 780px;
    font-size: clamp(2.5rem, 5.5vw, 4.8rem);
}

/* 7. PROPERTY STATISTICS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    min-height: 130px;
    padding: 1.4rem 1rem;
    border: 1px solid rgba(217, 179, 95, 0.55);
    border-radius: 3px;
    background: rgba(4, 21, 37, 0.55);
    color: var(--white);
    text-align: center;
}

.stat-card__icon {
    margin-bottom: 0.55rem;
    color: var(--gold);
    font-size: 1.65rem;
}

.stat-card__value {
    display: block;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.2;
}

.stat-card__label {
    display: block;
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 8. SPLIT SECTIONS AND LOCATION */
.split-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.split-layout--wide-image {
    grid-template-columns: 1.15fr 0.85fr;
}

.split-layout__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    background: var(--cream-dark);
    object-fit: cover;
}

.location-panel {
    padding: clamp(1.75rem, 4vw, 3.5rem);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
}

.location-panel h2,
.location-panel h3 {
    color: var(--white);
}

.feature-list {
    display: grid;
    gap: 0.85rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list li::before {
    flex-shrink: 0;
    color: var(--gold-deep);
    content: "◆";
    font-size: 0.68rem;
    line-height: 1.9;
}

.section--navy .feature-list li::before,
.location-panel .feature-list li::before {
    color: var(--gold);
}

/* 9. PROPERTY DETAILS */
.property-intro {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background: var(--cream);
}

.property-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
}

.property-intro__copy {
    max-width: 760px;
}

.property-highlights {
    align-self: start;
    padding-left: 1.5rem;
    border-left: 2px solid var(--gold);
}

.property-highlights ul {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-highlights li {
    font-size: 0.9rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec-item {
    padding: 1.7rem 1rem;
    text-align: center;
}

.spec-item + .spec-item {
    border-left: 1px solid var(--line);
}

.spec-item__icon {
    margin-bottom: 0.7rem;
    color: var(--gold-deep);
    font-size: 1.6rem;
}

.spec-item__value {
    display: block;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.3;
}

.spec-item__label {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.77rem;
}

/* 10. PROPERTY GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

/* LEARN: aspect-ratio reserves each photo's box at its final size before the
   image downloads. Without it, boxes start small and grow as photos arrive,
   shoving everything below them down the page. That's "layout shift". It's
   what made the inquiry form jump away after you clicked Send, and Google
   measures it (Cumulative Layout Shift) as part of page ranking. */
.gallery-grid__item {
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    background: var(--cream-dark);
}

.gallery-grid__item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

/* The photo fills the reserved box and crops to fit (object-fit: cover),
   so a tall portrait photo can't stretch the gallery. */
.gallery-grid__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.gallery-grid__item:hover img {
    transform: scale(1.035);
}

.gallery-grid__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem 1rem 0.75rem;
    background: linear-gradient(transparent, rgba(4, 21, 37, 0.8));
    color: var(--white);
    font-size: 0.76rem;
}

/* 11. PORTFOLIO FILTERS */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-button {
    min-height: 42px;
    padding: 0.65rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #ebe8e1;
    color: var(--ink);
    font-size: 0.8rem;
}

.filter-button:hover,
.filter-button[aria-pressed="true"],
.filter-button.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

/* 12. PROPERTY CARDS */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.property-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(7, 29, 48, 0.1);
    border-radius: 3px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(4, 21, 37, 0.04);
    transition: transform var(--ease), box-shadow var(--ease);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(4, 21, 37, 0.18);
}

.property-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-dark);
}

.property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.property-card:hover .property-card__image {
    transform: scale(1.04);
}

.property-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem;
}

.property-card__title {
    margin-bottom: 0.35rem;
    font-size: 1.4rem;
}

.property-card__address {
    margin-bottom: 0.9rem;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.property-card__description {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.property-card__facts {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.property-card__facts li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #4f5862;
    font-size: 0.78rem;
}

.property-card__facts .icon {
    width: 1.1rem;
    color: var(--gold-deep);
    text-align: center;
}

.property-card__actions {
    display: flex;
    margin-top: auto;
    padding-top: 0.25rem;
}

.property-card__actions .button {
    width: 100%;
}

/* When the whole card is a link (the Properties page), undo the default
   link color and underline so it still looks like a card. */
a.property-card {
    color: inherit;
    text-decoration: none;
}

/* LEARN: :focus-visible shows a ring only for keyboard users (Tab key),
   not on mouse clicks. Removing focus styles entirely is a common
   accessibility mistake: keyboard users would have no idea where they are. */
a.property-card:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* Badges sit in a row in the photo's top-left corner (For Lease, Featured). */
.property-card__badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.property-card__badge {
    padding: 0.3rem 0.65rem;
    border-radius: 2px;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.property-card__placeholder {
    display: grid;
    height: 100%;
    place-items: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* Shown at the top of a draft listing that an admin is previewing. */
.preview-banner {
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.85rem;
    text-align: center;
}

/* Availability badges: white for lease, navy for sale. */
.property-card__badge--lease,
.property-card__badge--sale_or_lease {
    background: var(--white);
    color: var(--navy);
}

.property-card__badge--sale {
    background: var(--navy);
    color: var(--white);
}

/* 12b. AVAILABLE SPACES CAROUSEL (homepage) */
.showcase__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.section--navy .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.showcase__view-all {
    flex-shrink: 0;
    margin-bottom: 2.4rem;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.showcase__view-all:hover {
    color: var(--white);
}

/* LEARN: --per-view is a CSS variable: how many cards fit across. The
   column width math below reads it, so the phone and tablet rules further
   down only have to change this one number. */
.carousel {
    --gap: 1.25rem;
    --per-view: 3;
    position: relative;
}

/* LEARN: This is the whole carousel without JavaScript. overflow-x: auto
   makes the row scroll sideways, and scroll-snap makes it settle neatly on
   a card instead of stopping halfway between two. Swiping on phones and
   trackpads comes free from the browser. */
.carousel__track {
    display: grid;
    grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    grid-auto-flow: column;
    gap: var(--gap);
    padding: 0.5rem 0 1.25rem; /* Room for the card's hover lift and shadow. */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}

.carousel__track:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.carousel__slide {
    display: flex;
    min-width: 0;
    scroll-snap-align: start;
}

.carousel__slide .property-card {
    width: 100%;
}

/* LEARN: The navy section turns headings white and eyebrows light gold so
   they show up on navy. But these cards are white, so the card's own text
   would vanish. The "cascade" in CSS means outer rules flow into
   everything inside them. These more specific rules take precedence for
   text inside the cards. */
.section--navy .property-card .property-card__title {
    color: var(--navy);
}

.section--navy .property-card .eyebrow {
    color: var(--gold-deep);
}

/* With JS running, the arrows and dots replace the scrollbar. */
.carousel.is-enhanced .carousel__track {
    scrollbar-width: none;
}

.carousel.is-enhanced .carousel__track::-webkit-scrollbar {
    display: none;
}

/* While dragging with the mouse, turn snapping off so the row follows the
   pointer smoothly. It snaps to the nearest card on release. */
.carousel__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.carousel__track.is-dragging a {
    cursor: grabbing;
}

/* Hidden until carousel.js runs, since they need it to work. */
.carousel__arrow,
.carousel__controls {
    display: none;
}

.carousel.is-enhanced .carousel__arrow {
    position: absolute;
    z-index: 2;
    top: calc(0.5rem + 18%);
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(4, 21, 37, 0.3);
    color: var(--navy);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity var(--ease), transform var(--ease);
}

.carousel.is-enhanced .carousel__arrow:hover:not(:disabled) {
    transform: scale(1.06);
}

.carousel.is-enhanced .carousel__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.carousel__arrow--prev {
    left: -23px;
}

.carousel__arrow--next {
    right: -23px;
}

.carousel.is-enhanced .carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.carousel__toggle {
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 650;
    cursor: pointer;
}

.carousel__toggle:hover {
    border-color: var(--gold);
    color: var(--white);
}

.carousel__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
}

/* Each dot is a 24px button (easy to tap) with a small visible dot inside. */
.carousel__dot {
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.carousel__dot::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    content: "";
    transition: width var(--ease), background var(--ease);
}

.carousel__dot[aria-current="true"]::before {
    width: 20px;
    background: var(--gold);
}

/* Every card already fits, so there's nothing to slide. */
.carousel.is-static .carousel__arrow,
.carousel.is-static .carousel__controls {
    display: none;
}

/* 12c. BUILDING INFO PAGE (/building-info) */

/* The two buttons under the homepage description. */
.property-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.info-hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    background:
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
    color: rgba(255, 255, 255, 0.82);
}

.info-hero h1 {
    margin: 0;
    color: var(--white);
}

.info-hero .eyebrow {
    color: var(--gold);
}

.info-hero__back {
    display: block;
    width: fit-content;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.info-hero__back:hover,
.info-hero__back:focus-visible {
    color: var(--gold);
}

.info-hero__address {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
}

.info-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* LEARN: position: sticky keeps the section menu pinned to the top of the
   screen once you scroll past it, so you can jump between sections from
   anywhere on this long page. On phones the links scroll sideways instead
   of wrapping onto several lines and taking up half the screen. */
.info-menu {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.info-menu ul {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.info-menu a {
    display: block;
    padding: 0.95rem 0.85rem;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 650;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.info-menu a:hover,
.info-menu a:focus-visible {
    border-bottom-color: var(--gold);
    color: var(--gold-deep);
}

.info-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.info-section h2 {
    margin-bottom: 0;
}

/* At a Glance: the value is big, the label small underneath.
   LEARN: flex-wrap (not a fixed grid) so the boxes in the last row grow to
   fill it. With a grid, 10 facts in 6 columns would leave 2 empty cells,
   and the count changes whenever a field is left blank. The 1px gap shows
   the background color through, which draws the thin lines between boxes. */
.glance-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin: 0 0 2rem;
    border: 1px solid var(--line);
    background: var(--line);
}

.glance-item {
    display: flex;
    flex: 1 1 190px;
    flex-direction: column-reverse;
    padding: 1.4rem 1.25rem;
    background: var(--white);
}

.glance-item dt {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.glance-item dd {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.25;
}

.info-prose {
    max-width: 760px;
}

.info-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.info-split--package {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
}

.info-aside h3 {
    margin-top: 0;
}

/* LEARN: Wide tables can't shrink below their content on a phone. Wrapping
   the table in a box with overflow-x: auto lets the *table* scroll sideways
   while the rest of the page stays put. */
.info-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--white);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.info-table th,
.info-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: 0;
}

.info-table tbody th {
    width: 32%;
    color: var(--navy);
    font-weight: 650;
}

.info-table thead th {
    background: var(--cream);
    color: var(--navy);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-table--spaces tbody th {
    width: auto;
}

.info-table__note {
    color: var(--muted);
    font-style: italic;
}

.floor-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.floor-plan {
    margin: 0;
}

.floor-plan a {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    background: var(--white);
}

.floor-plan img {
    width: 100%;
}

.floor-plan__zoom {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 650;
}

.floor-plan figcaption {
    margin-top: 0.75rem;
    color: var(--navy);
    font-weight: 650;
}

.info-section--disclaimer {
    padding: 2rem 0 3rem;
}

/* The small print next to the package form: left-aligned like the text
   above it, and light enough to read on navy. */
.section--navy .info-split .disclaimer {
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

@media (max-width: 1000px) {
    .info-split,
    .info-split--package {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    /* Two facts per row on phones instead of one long column. */
    .glance-item {
        flex-basis: 140px;
        padding: 1.1rem 1rem;
    }

    .glance-item dd {
        font-size: 1.15rem;
    }

    .info-table tbody th {
        width: 40%;
    }

    .info-table th,
    .info-table td {
        padding: 0.75rem 0.85rem;
    }
}

/* LEARN: Brokers print spec pages. @media print styles apply only on
   paper, so the printout drops the menus, buttons, and forms and keeps
   just the facts, in black on white to save ink. */
@media print {
    .site-header,
    .site-footer,
    .broker-band,
    .info-menu,
    .info-hero__back,
    .info-hero__actions,
    .info-aside .button,
    #package,
    .floor-plan__zoom {
        display: none !important;
    }

    .info-hero,
    .section {
        padding: 1rem 0;
        background: none !important;
        color: #000;
    }

    .info-hero h1,
    .info-section h2 {
        color: #000;
    }

    .info-section,
    .floor-plan {
        break-inside: avoid;
    }
}


/* 13. BROKER CONTACT SECTION */
.broker-band {
    overflow: hidden;
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.8);
}

.broker-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.broker-band h2,
.broker-band h3 {
    color: var(--white);
}

.broker-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.2rem;
}

.broker-details__name {
    color: var(--white);
    font-weight: 750;
}

.broker-details__company {
    color: rgba(255, 255, 255, 0.7);
}

/* 14. CONTACT FORMS */
.form-card {
    width: min(100%, 780px);
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #cbd0d4;
    border-radius: 3px;
    background: var(--white);
    color: var(--ink);
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--gold-deep);
    outline: 2px solid rgba(217, 179, 95, 0.2);
}

.form-help {
    color: var(--muted);
    font-size: 0.78rem;
}

.form-error {
    color: #a52b2b;
    font-size: 0.82rem;
}

.flash-messages {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.flash-message {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--white);
    font-size: 0.9rem;
}

.flash-message--success {
    border-color: #9bc9a5;
    background: #f0faf2;
    color: #205b2d;
}

.flash-message--error {
    border-color: #e2a2a2;
    background: #fff3f3;
    color: #8c2020;
}

/* Homepage inquiry section */
.split-layout--top {
    align-items: start;
}

.broker-card {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border-left: 3px solid var(--gold);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
}

.broker-card h3 {
    margin: 0 0 0.15rem;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

.broker-card p {
    margin: 0;
}

.broker-card .eyebrow {
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.inquiry-card {
    width: 100%;
}

.inquiry-card__title {
    margin: 0 0 1.25rem;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.inquiry-card .flash-message {
    margin-bottom: 1.25rem;
}

.inquiry-card__submit {
    width: 100%;
    margin-top: 1.5rem;
}

.inquiry-card .form-help {
    margin: 0.85rem 0 0;
    text-align: center;
}

.form-field [aria-invalid="true"] {
    border-color: #a52b2b;
    background: #fffafa;
}

/* LEARN: Moved off-screen rather than display:none. Some bots skip fields
   they can tell are hidden with display:none or type="hidden". */
.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.inquiry-success {
    padding: 1.5rem 0.5rem;
    text-align: center;
}

.inquiry-success__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #e5f4e8;
    color: #216535;
    font-size: 1.6rem;
    font-weight: 700;
}

.inquiry-success h3 {
    margin: 0 0 0.75rem;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.inquiry-success p {
    margin: 0 auto 1.25rem;
    max-width: 380px;
    color: var(--muted);
}

/* 15. FOOTER */
.site-footer {
    padding: 3rem 0 1.25rem;
    background: #03111e;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.25rem;
}

.site-footer h2,
.site-footer h3 {
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.site-footer__links {
    display: grid;
    align-content: start;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.site-footer__links a:hover {
    color: var(--gold);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.74rem;
}

/* 16. ADMIN DASHBOARD */
.admin-page {
    min-height: 100vh;
    background: #f2f4f6;
}

.admin-header {
    background: var(--navy-deep);
    color: var(--white);
}

.admin-header__inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-main {
    padding: 2rem 0 4rem;
}

.admin-panel {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #e0e4e8;
    border-radius: 7px;
    background: var(--white);
    box-shadow: 0 8px 26px rgba(4, 21, 37, 0.06);
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid #e7eaed;
    vertical-align: middle;
}

.admin-table th {
    background: #f7f8f9;
    color: var(--navy);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-table tr:hover td {
    background: #fcfbf8;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #edf0f2;
    color: #45505b;
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: capitalize;
}

.status-pill--published {
    background: #e5f4e8;
    color: #216535;
}

.status-pill--draft {
    background: #fff3d7;
    color: #785711;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.4rem;
}

.admin-nav a:not(.button) {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 650;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
    color: var(--gold);
}

.nav-badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 0.3rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 0.7rem;
    font-weight: 800;
}

.status-pill--new {
    background: #fff3d7;
    color: #785711;
}

.status-pill--handled {
    background: #e5f4e8;
    color: #216535;
}

/* Unread inquiries stand out in bold, like an email inbox. */
.admin-table tr.is-unread .inquiry-link {
    font-weight: 800;
}

.inquiry-link {
    color: var(--navy);
    font-weight: 600;
}

.inquiry-link:hover {
    color: var(--gold-deep);
}

.inquiry-preview {
    max-width: 420px;
    color: var(--muted);
}

.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    background: #f7f8f9;
}

.segmented a {
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.segmented a[aria-current="page"] {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(4, 21, 37, 0.12);
    color: var(--navy);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.inquiry-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0.5rem 0 0;
    padding: 1.25rem;
    border: 1px solid #e7eaed;
    border-radius: 7px;
    background: #fafbfc;
}

.inquiry-facts dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.inquiry-facts dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
}

.inquiry-message {
    max-width: 72ch;
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.admin-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Lets a <button> look like a .text-link (used for delete forms). */
button.text-link {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 750;
}

.text-link--danger {
    color: #a52b2b;
}

.text-link--danger:hover {
    color: #7a1515;
}

.admin-form-heading {
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e7eaed;
    color: var(--navy);
    font-size: 1.05rem;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.button--outline-navy {
    border-color: var(--navy);
    background: transparent;
    color: var(--navy);
}

.button--outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

.button--small {
    min-height: 36px;
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
}

.icon-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd0d4;
    border-radius: 3px;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
}

.icon-button:hover:not(:disabled) {
    border-color: var(--gold-deep);
    color: var(--gold-deep);
}

.icon-button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Admin photo manager */
.photo-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px dashed #c8cdd2;
    border-radius: 7px;
    background: #fafbfc;
}

.photo-upload .form-field {
    flex: 1 1 320px;
}

.photo-upload input[type="file"] {
    padding: 0.55rem;
    background: var(--white);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.photo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e4e8;
    border-radius: 7px;
    background: var(--white);
}

.photo-card--cover {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(217, 179, 95, 0.35);
}

.photo-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-dark);
}

/* LEARN: aspect-ratio is only a *preferred* size. Content taller than the
   box (a portrait photo) stretches it anyway. Taking the image out of the
   normal flow with position: absolute means it can't push on the box, so
   every card stays the same height. Same fix as the public gallery. */
.photo-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card__badge,
.photo-card__position {
    position: absolute;
    top: 0.6rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
}

.photo-card__badge {
    left: 0.6rem;
    background: var(--gold);
    color: var(--navy-deep);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.photo-card__position {
    right: 0.6rem;
    background: rgba(4, 21, 37, 0.75);
    color: var(--white);
}

/* ---- Drag-and-drop ordering (admin.js adds .js-sortable) ---- */

/* Hidden unless JavaScript is running, because without it dragging can't work. */
.photo-card__drag {
    display: none;
}

.js-sortable .photo-card__image {
    cursor: grab;
    /* Stops the browser's own image drag and text selection fighting with ours. */
    user-select: none;
    -webkit-user-drag: none;
}

.js-sortable .photo-card__drag {
    position: absolute;
    /* Positioned elements stack in HTML order, and this comes before the
       <img>, so lift it above the photo. */
    z-index: 1;
    right: 0.6rem;
    bottom: 0.6rem;
    display: block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(4, 21, 37, 0.75);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 650;
    opacity: 0.85;
    transition: opacity var(--ease);
}

.js-sortable .photo-card:hover .photo-card__drag {
    opacity: 1;
}

/* The card you picked up. */
.photo-card--chosen {
    box-shadow: 0 16px 36px rgba(4, 21, 37, 0.22);
}

.photo-card--chosen .photo-card__image {
    cursor: grabbing;
}

/* The faded placeholder showing where the photo will land. */
.photo-card--ghost {
    border: 1px dashed var(--navy);
    opacity: 0.4;
}

.photo-reorder-status {
    min-height: 1.4em;
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.button--danger {
    background: #a52b2b;
    color: var(--white);
}

.button--danger:hover:not(:disabled) {
    background: #7a1515;
}

.button:disabled {
    opacity: 0.4;
    cursor: default;
}

.photo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e4e8;
    border-radius: 7px;
    background: #fafbfc;
}

.photo-toolbar__select-all {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.photo-toolbar + .photo-grid {
    margin-top: 1.25rem;
}

.photo-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.photo-toolbar__unsaved {
    color: var(--gold-deep);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Gold ring on Save when there's something to save. */
.button.is-attention {
    box-shadow: 0 0 0 3px rgba(217, 179, 95, 0.55);
}

/* LEARN: position: sticky is a hybrid. The bar sits in its normal spot
   after the photos, but while you're scrolling through the grid above it,
   it "sticks" to the bottom of the screen. So Save is always in reach on a
   long page, and it never covers anything once you reach the end. */
.photo-save-bar {
    position: sticky;
    z-index: 2;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    margin: 1.25rem -1rem 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e0e4e8;
    background: rgba(255, 255, 255, 0.96);
}

/* Checkbox in the bottom-left corner of each photo. The whole white
   square is clickable, not just the tiny box. */
.photo-card__select {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(4, 21, 37, 0.18);
    cursor: pointer;
}

.photo-card__select input,
.photo-toolbar__select-all input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--navy);
    cursor: pointer;
}

/* LEARN: :has() lets CSS style a parent based on its children. Here, a card
   gets a thin navy outline when the checkbox inside it is ticked, with no
   JavaScript needed. Selection is navy, not red: red is saved for the
   Delete button, so it still means "this is destructive". */
.photo-card {
    transition: border-color var(--ease), box-shadow var(--ease);
}

.photo-card:has(.photo-card__select input:checked) {
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy), 0 6px 18px rgba(4, 21, 37, 0.1);
}

.photo-card:has(.photo-card__select input:checked) .photo-card__image img {
    opacity: 0.88;
}

.photo-card__details {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.photo-card__details .form-field input {
    min-height: 38px;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
}


.photo-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e7eaed;
    background: #fafbfc;
}

/* Collapsible "Building Info Page" group on the property form. */
.admin-details {
    margin: 1.5rem 0;
}

.admin-details summary {
    cursor: pointer;
}

.admin-details summary::marker {
    color: var(--gold-deep);
}

/* Building Info Files page */
.package-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin: 1rem 0;
}

.floor-plan-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.floor-plan-item {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.floor-plan-item__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: var(--cream);
}

.floor-plan-item__title {
    display: flex;
    gap: 0.5rem;
}

.floor-plan-item__title input {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    border: 1px solid #cbd0d4;
    border-radius: 3px;
    background: var(--white);
}

.floor-plan-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* "Investment Package" tag on package-download inquiries. */
.kind-pill {
    display: inline-flex;
    margin-right: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    vertical-align: middle;
    white-space: nowrap;
}

/* 17. UTILITY CLASSES */
.empty-state {
    padding: 3rem 1.5rem;
    border: 1px dashed #c8cdd2;
    border-radius: 7px;
    color: var(--muted);
    text-align: center;
}

.empty-state h2,
.empty-state h3 {
    color: var(--navy);
}

.notice {
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--gold);
    background: #fffaf0;
    color: #574b34;
    font-size: 0.88rem;
}

.disclaimer {
    color: var(--muted);
    font-size: 0.74rem;
    text-align: center;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hidden {
    display: none !important;
}

/* 18. TABLET RESPONSIVENESS */
@media (max-width: 1000px) {
    :root {
        --header-height: 72px;
    }

    .site-nav {
        gap: 1rem;
    }

    .site-nav a:not(.button) {
        font-size: 0.74rem;
    }

    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .carousel {
        --per-view: 2;
    }

    .carousel__arrow--prev {
        left: -12px;
    }

    .carousel__arrow--next {
        right: -12px;
    }

    .spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spec-item:nth-child(3) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .spec-item:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__grid > :first-child {
        grid-column: 1 / -1;
    }
}

/* 19. MOBILE RESPONSIVENESS */
@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .site-header__inner {
        gap: 0.75rem;
    }

    .site-brand__name {
        font-size: 1.3rem;
    }

    .site-brand__address {
        max-width: 245px;
        font-size: 0.54rem;
    }

    .nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 1rem 1.1rem;
        border-top: 1px solid rgba(217, 179, 95, 0.25);
        background: var(--navy-deep);
        box-shadow: 0 16px 24px rgba(4, 21, 37, 0.2);
    }

    .site-nav.is-open,
    .site-nav[data-open="true"] {
        display: flex;
    }

    .site-nav a:not(.button) {
        padding: 0.85rem 0.35rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.9rem;
    }

    .site-nav a:not(.button)::after {
        display: none;
    }

    /* In the stacked phone menu, the divider becomes a full-width gold
       line under "All Properties". */
    .site-nav__divider {
        width: auto;
        height: 1px;
        margin-top: -1px;
    }

    .site-nav .button {
        margin-top: 0.8rem;
    }

    .hero {
        min-height: min(760px, calc(100svh - var(--header-height)));
        background-position: 58% center;
    }

    .hero__content {
        width: min(calc(100% - 32px), var(--container));
        padding-top: 4rem;
        padding-bottom: 2.5rem;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 11vw, 4.4rem);
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .stat-card {
        display: grid;
        min-height: auto;
        grid-template-columns: 44px 1fr;
        align-items: center;
        gap: 0 0.65rem;
        padding: 0.8rem 1rem;
        text-align: left;
    }

    .stat-card__icon {
        grid-row: span 2;
        margin: 0;
    }

    .stat-card__label {
        margin-top: 0.15rem;
    }

    .split-layout,
    .split-layout--wide-image,
    .property-intro__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .property-highlights {
        padding-left: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* One card plus a peek of the next, so it's obvious you can swipe. */
    .carousel {
        --gap: 0.85rem;
        --per-view: 1.15;
    }

    .carousel.is-enhanced .carousel__arrow {
        display: none;
    }

    .showcase__header {
        display: block;
    }

    .showcase__view-all {
        display: inline-block;
        margin: -1rem 0 1.5rem;
    }

    .property-card__image-wrap {
        aspect-ratio: 16 / 10;
    }

    .broker-band__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .broker-band__inner > .button {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field--full {
        grid-column: auto;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .site-footer__grid > :first-child {
        grid-column: auto;
    }

    .site-footer__bottom {
        flex-direction: column;
    }

    .admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

/* 20. SMALL MOBILE SCREENS */
@media (max-width: 420px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .site-brand__name {
        font-size: 1.12rem;
    }

    .site-brand__address {
        max-width: 210px;
        font-size: 0.48rem;
        letter-spacing: 0.055em;
    }

    .hero__content {
        width: min(calc(100% - 24px), var(--container));
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-button {
        padding-inline: 0.5rem;
    }

    .spec-item {
        padding: 1.2rem 0.55rem;
    }

    .spec-item__value {
        font-size: 1rem;
    }
}

/* 21. ACCESSIBILITY: REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}