/* Small additions Bootstrap 5.3 utilities don't cover. Keep this file
   minimal — reach for a Bootstrap utility/component class first. Brand
   colors live in brand.css (loaded before this file). */

.tracking-wide {
    letter-spacing: .05em;
}

/* Rounded corners everywhere by default — buttons, links-as-buttons,
   filter/search inputs, cards and property photos alike. */
.btn,
.form-control,
.form-select,
.card,
.badge {
    border-radius: .5rem;
}

/* Buttons: one fixed text size per tier (uppercase reads larger than
   mixed case, so the base is kept a touch under the body size). */
.btn {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    --bs-btn-font-size: .875rem;
}

.btn-sm {
    --bs-btn-font-size: .75rem;
}

.btn-lg {
    --bs-btn-font-size: .9375rem;
    --bs-btn-padding-y: .75rem;
}

.rounded-pill-badge {
    border-radius: 50rem;
}

/* Warm brand-tinted surface: page headers, icon tiles, CTA panels. */
.bg-brand-tint {
    background-color: var(--brand-gold-tint);
}

/* Square icon badge used on contact cards, feature lists and empty states. */
.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: .65rem;
    background-color: var(--brand-gold-tint);
    color: var(--brand-gold-text);
    font-size: 1.25rem;
}

/* Long-form reading text (blog posts, About, Terms, Privacy): a comfortable
   measure and rhythm, which Bootstrap's utilities can't express. */
.prose {
    max-width: 44rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #3a3631;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-ink);
    margin: 2.5rem 0 .75rem;
    /* Clears the sticky site header when jumped to from a table of contents. */
    scroll-margin-top: 6rem;
}

.prose .lead {
    font-size: 1.25rem;
    color: var(--brand-ink);
}

/* Keeps a sidebar (table of contents, FAQ categories) in view while the
   page scrolls, clear of the top edge. */
.sticky-aside {
    position: sticky;
    top: 6rem;
}

[id^="topic-"],
#enquire,
#contact-form {
    scroll-margin-top: 6rem;
}

/* ------------------------------------------------------------------
 * Site navigation: uppercase inline links on desktop; full-width rows
 * with icons inside the slide-in panel on smaller screens.
 * ------------------------------------------------------------------ */
.site-nav-list .nav-link {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

@media (max-width: 991.98px) {
    .site-nav-list .nav-link {
        display: flex;
        align-items: center;
        gap: .85rem;
        padding: .9rem .25rem;
        font-size: 1rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        border-bottom: 1px solid var(--bs-border-color-translucent);
    }

    .site-nav-list .bi {
        font-size: 1.15rem;
        color: var(--brand-gold);
    }

    #site-nav {
        max-width: 20rem;
    }
}

/* Search page: the filter card only gets its shadow once it is a sidebar
   (inside the phone slide-in panel it sits flat). */
@media (min-width: 992px) {
    .shadow-sm-lg {
        box-shadow: var(--bs-box-shadow-sm);
    }
}

/* Search page toolbar (Filters + Sort) stays reachable while scrolling
   results on phones, just under the sticky site header. */
@media (max-width: 991.98px) {
    .search-toolbar {
        position: sticky;
        top: calc(3.35rem + 1px);
        z-index: 1010;
        background-color: #fff;
        border-bottom: var(--bs-border-width) solid var(--bs-border-color);
        margin-left: calc(var(--bs-gutter-x) * -.5);
        margin-right: calc(var(--bs-gutter-x) * -.5);
        padding-left: calc(var(--bs-gutter-x) * .5);
        padding-right: calc(var(--bs-gutter-x) * .5);
    }
}

/* Account area: a swipeable row of pills on phones, a sidebar from lg up. */
.account-main {
    min-width: 0;
}

.account-aside .nav-link {
    font-size: .875rem;
}

@media (min-width: 992px) {
    .account-aside {
        width: 15rem;
        flex-shrink: 0;
        border-bottom: 0 !important;
        border-right: var(--bs-border-width) solid var(--bs-border-color);
    }
}

/* Floating "back to top" button, shown once the page has been scrolled. */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1030;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(.5rem);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Pages with a sticky bottom bar on phones (property detail) lift it clear. */
@media (max-width: 991.98px) {
    .has-bottom-bar .back-to-top {
        bottom: 5.25rem;
    }

    .has-bottom-bar main {
        padding-bottom: 4.5rem;
    }
}

/* Property card photo: 3:2 on larger screens, a shorter 16:9 on phones so
   cards don't fill the whole screen. */
.ratio-card {
    --bs-aspect-ratio: 66.6667%;
}

@media (max-width: 575.98px) {
    .ratio-card {
        --bs-aspect-ratio: 56.25%;
    }
}

/* Dark brand surface with a soft gold glow: About hero, featured blog
   story (same look as the sign-in brand panel). */
.bg-ink {
    background:
        radial-gradient(circle at 85% 10%, rgba(var(--brand-gold-rgb), .32), transparent 55%),
        var(--brand-ink);
}

.bg-ink .breadcrumb-item + .breadcrumb-item::before,
.bg-ink .breadcrumb-item.active {
    color: rgba(255, 255, 255, .55);
}

/* Text-led cards (blog posts without a cover photo, numbered features)
   get a gold top rule instead of an image. */
.card-accent {
    border-top: 3px solid var(--brand-gold) !important;
}

/* Trims long excerpts to three lines so card rows stay even. */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Round icon buttons in an article's share row. */
.share-button {
    width: 2.25rem;
    height: 2.25rem;
}

/* Numbered circle for "How it works" steps. */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--brand-gold);
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 1.125rem;
}

/* ------------------------------------------------------------------
 * Home page (navy / champagne / ivory palette from brand.css).
 * ------------------------------------------------------------------ */
.bg-navy {
    background-color: var(--brand-navy);
}

.bg-ivory {
    background-color: var(--brand-ivory);
}

.text-champagne {
    color: var(--brand-champagne) !important;
}

.font-serif {
    font-family: var(--brand-serif);
    font-weight: 600;
    letter-spacing: 0;
}

/* Champagne button with navy text (white on this light gold is too faint). */
.btn-gold {
    --bs-btn-color: var(--brand-navy);
    --bs-btn-bg: var(--brand-champagne);
    --bs-btn-border-color: var(--brand-champagne);
    --bs-btn-hover-color: var(--brand-navy);
    --bs-btn-hover-bg: var(--brand-champagne-dark);
    --bs-btn-hover-border-color: var(--brand-champagne-dark);
    --bs-btn-active-color: var(--brand-navy);
    --bs-btn-active-bg: var(--brand-champagne-dark);
    --bs-btn-active-border-color: var(--brand-champagne-dark);
    --bs-btn-focus-shadow-rgb: 197, 164, 109;
    text-transform: none;
    letter-spacing: 0;
}

.badge-gold {
    background-color: var(--brand-champagne);
    color: var(--brand-navy);
}

/* Dark brand surface with the skyline silhouette along its bottom edge
   (hero without a photo, "invest" card, closing band). */
.with-skyline {
    position: relative;
    overflow: hidden;
}

.with-skyline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: url("../img/skyline.svg") center bottom / cover no-repeat;
    opacity: .2;
    pointer-events: none;
}

/* (.ratio children are already positioned; the tile's shade sits above.) */
.with-skyline:not(.ratio) > * {
    position: relative;
    z-index: 1;
}

.with-skyline-end::after {
    left: 45%;
    height: 80%;
}

/* On phones the band stacks, so the skyline runs full width but stays
   low, under the tagline rather than behind it. */
@media (max-width: 575.98px) {
    .with-skyline-end::after {
        left: 0;
        height: 30%;
    }
}

.home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 15%, rgba(197, 164, 109, .35), transparent 50%),
        linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-slate) 100%);
}

.home-hero-photo,
.home-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero-photo {
    object-fit: cover;
}

.home-hero-shade {
    background: linear-gradient(90deg, rgba(var(--brand-navy-rgb), .88) 0%, rgba(var(--brand-navy-rgb), .5) 55%, rgba(var(--brand-navy-rgb), .1) 100%);
}

@media (max-width: 991.98px) {
    /* Narrow screens crop the photo; keep its landmark (about 65% across
       the supplied skyline) in view. */
    .home-hero-photo {
        object-position: 65% center;
    }

    .home-hero-shade {
        background: linear-gradient(180deg, rgba(var(--brand-navy-rgb), .8) 0%, rgba(var(--brand-navy-rgb), .45) 100%);
    }
}

.home-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.12;
}

.hero-tab {
    display: inline-block;
    padding: .6rem 1.75rem;
    border-radius: .5rem .5rem 0 0;
    background-color: rgba(255, 255, 255, .8);
    color: var(--brand-navy);
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
}

.btn-check:checked + .hero-tab {
    background-color: var(--brand-navy);
    color: #fff;
}

.btn-check:focus-visible + .hero-tab {
    outline: 2px solid var(--brand-champagne);
}

.hero-search {
    border-radius: 0 .75rem .75rem .75rem;
}

.hero-field .form-select {
    border: 0;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    background-color: transparent;
    font-size: .875rem;
    color: var(--brand-slate);
    box-shadow: none;
}

@media (min-width: 992px) {
    .hero-field + .hero-field {
        border-left: var(--bs-border-width) solid var(--bs-border-color);
    }
}

@media (max-width: 991.98px) {
    .hero-field + .hero-field {
        border-top: var(--bs-border-width) solid var(--bs-border-color);
    }
}

/* Feature rows (trust strip, "why buy"): thin rules between items on
   desktop. */
@media (min-width: 992px) {
    .divided-lg > .col:not(:last-child) {
        border-right: var(--bs-border-width) solid var(--bs-border-color);
    }
}

.home-heading {
    color: var(--brand-navy);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--brand-champagne);
    color: var(--brand-navy);
}

/* Community photo tiles with the name over a dark fade. */
.location-tile {
    background:
        radial-gradient(circle at 80% 0%, rgba(197, 164, 109, .4), transparent 60%),
        var(--brand-slate);
}

.location-tile img {
    object-fit: cover;
    transition: transform .3s ease;
}

.location-tile:hover img {
    transform: scale(1.05);
}

.location-tile-shade {
    z-index: 1;
    background: linear-gradient(0deg, rgba(var(--brand-navy-rgb), .85) 0%, rgba(var(--brand-navy-rgb), 0) 65%);
}

/* Header on dark pages (home): navy bar, light links, champagne active. */
.site-header-dark {
    background-color: var(--brand-navy);
    border-color: rgba(255, 255, 255, .08) !important;
}

.site-header-dark .site-nav-list .nav-link {
    color: rgba(255, 255, 255, .85);
}

.site-header-dark .site-nav-list .nav-link:hover,
.site-header-dark .site-nav-list .nav-link.active {
    color: var(--brand-champagne) !important;
}

.site-header-dark .offcanvas,
.site-header-dark .dropdown-menu {
    --bs-offcanvas-bg: var(--brand-navy);
    --bs-dropdown-bg: var(--brand-navy);
    --bs-dropdown-border-color: rgba(255, 255, 255, .1);
    --bs-dropdown-link-color: rgba(255, 255, 255, .85);
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: rgba(255, 255, 255, .08);
}

.site-nav-list .dropdown-menu {
    --bs-dropdown-link-active-bg: var(--brand-gold);
    --bs-dropdown-font-size: .875rem;
}

@media (max-width: 991.98px) {
    /* Inside the slide-in panel submenus open inline under their link. */
    .site-nav-list .dropdown-menu {
        border: 0;
        box-shadow: none;
        padding-top: 0;
        background-color: transparent;
    }
}

/* ------------------------------------------------------------------
 * Listing map, and the nearby-landmarks card in the sidebar (maps.js).
 * ------------------------------------------------------------------ */
.listing-map {
    height: 18rem;
}

/* The landmarks card is never taller than the map: the list scrolls
   inside it. */
.landmark-list {
    max-height: 18rem;
    overflow-y: auto;
    padding-right: .35rem;
}

/* Slim, rounded champagne scrollbar on an ivory track. Chrome, Edge and
   Safari use the ::-webkit-scrollbar rules; Firefox only understands
   scrollbar-color, which newer Chrome would also obey (losing the rounded
   ends), so it is limited to Firefox. */
@supports (-moz-appearance: none) {
    .landmark-list {
        scrollbar-width: thin;
        scrollbar-color: var(--brand-gold) var(--brand-ivory);
    }
}

.landmark-list::-webkit-scrollbar {
    width: 6px;
}

.landmark-list::-webkit-scrollbar-track {
    background: var(--brand-ivory);
    border-radius: 3px;
}

.landmark-list::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 3px;
}

.landmark-list::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold-dark);
}

@media (min-width: 992px) {
    .listing-map {
        height: 26rem;
    }

    /* 26rem map, less the card's padding, heading and note. */
    .landmark-list {
        max-height: 19rem;
    }
}

.landmark-list .list-group-item.active {
    background-color: var(--brand-gold-tint);
    border-color: var(--bs-list-group-border-color);
    color: var(--brand-ink);
}

.icon-tile-sm {
    width: 2rem;
    height: 2rem;
    font-size: .95rem;
    border-radius: .5rem;
}

.min-w-0 {
    min-width: 0;
}

/* Google-style teardrop pin for the property, and small round badges for
   landmarks (Leaflet divIcons; markup in maps.js). */
.map-pin svg {
    display: block;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}

.map-landmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: var(--brand-navy);
    color: var(--brand-champagne);
    font-size: .8rem;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.map-landmark.is-active {
    background-color: var(--brand-champagne);
    color: var(--brand-navy);
    transform: scale(1.25);
}

/* Form column on the sign-in / registration pages. */
.auth-form {
    width: 100%;
    max-width: 30rem;
}

/* Brand panel beside the sign-in / registration forms. */
.auth-aside {
    background:
        radial-gradient(circle at 85% 15%, rgba(var(--brand-gold-rgb), .35), transparent 55%),
        var(--brand-ink);
}
