/* ============================================================
   Ribston Property — main.css
   All values measured precisely from XD artboard (1920px, 1x)
   ============================================================ */

:root {
    --topbar-bg:    #1b3252;
    --header-bg:    #14263f;
    --card-bg:      #0d182a;
    --orange:       #ff8b32;
    --orange-dark:  #e67a20;
    --white:        #ffffff;
    --font:         'din-2014', sans-serif;
    --container:    1560px;
    --pad:          clamp(16px, 4vw, 80px);
    --topbar-h:     40px;
    --header-h:     100px;
    --total-h:      140px;
    --transition:   0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--white); background: var(--header-bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: 860px; }
.page-wrap { padding-top: var(--total-h); }
.home-page { padding-top: 0; }

/* UTILITY BAR — #1b3252, 64px, 24px DIN Regular, all items left-aligned together */
.utility-bar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); background: var(--topbar-bg); z-index: 1001; display: flex; align-items: center; }
.utility-bar__inner { display: flex; align-items: center; gap: 40px; }
.utility-bar__item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; color: var(--white); white-space: nowrap; transition: color var(--transition); }
.utility-bar__item:hover { color: var(--orange); }
.utility-bar__item svg { flex-shrink: 0; }

/* HEADER — #14263f, 121px */
.site-header { position: fixed; top: var(--topbar-h); left: 0; right: 0; height: var(--header-h); background: var(--header-bg); z-index: 1000; transition: box-shadow var(--transition); }
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }

/* Logo: 210x34px */
.site-logo { flex-shrink: 0; line-height: 0; }
.site-logo img { width: clamp(120px, 30vw, 210px); height: auto; object-fit: contain; }
.logo-text { font-size: clamp(20px, 3vw, 36px); font-weight: 700; letter-spacing: 0.06em; color: var(--white); text-transform: uppercase; }

/* Nav: 26px */
.primary-nav { margin-left: auto; }
.nav-toggle { margin-left: 0; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-list li a { display: block; padding: 10px 18px; font-size: 16px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); transition: color var(--transition); }
.nav-list li a:hover, .nav-list li.current-menu-item a, .nav-list li.current_page_item a { color: var(--orange); }
.nav-list li.menu-item-contact a, .nav-list li:last-child a { background: var(--orange); color: var(--white); padding: 10px 28px; margin-left: 8px; }
.nav-list li.menu-item-contact a:hover, .nav-list li:last-child a:hover { background: var(--orange-dark); color: var(--white); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; background: none; border: none; padding: 4px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--white); transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* HOME HERO — 1920:931 aspect, max-height 750px, video bg */
.home-hero { position: relative; width: 100%; margin-top: var(--total-h); overflow: hidden; background: #000; aspect-ratio: 1920 / 931; max-height: 750px; }
.home-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* SEARCH CARD — #0d182a, 554px wide, right 154px, top 132px from video */
.hero-search-card { position: absolute; top: 132px; right: max(var(--pad), calc((100% - var(--container)) / 2 + var(--pad))); width: min(554px, 38%); background: var(--card-bg); padding: 52px 54px 60px; z-index: 10; }
.hero-search-card__title { font-size: 32px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); margin-bottom: 36px; line-height: 1.05; }

/* SEARCH FORM — 22px bold labels, underline fields */
.search-form__field { position: relative; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.3); margin-bottom: 8px; }
.search-form__field input, .search-form__field select { width: 100%; height: 54px; background: transparent; border: none; outline: none; color: var(--white); font-family: var(--font); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0 32px 0 30px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.search-form__field input::placeholder { color: var(--white); opacity: 1; }
.search-form__field select option { background: var(--card-bg); color: var(--white); font-size: 16px; }
.search-form__icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--orange); display: flex; pointer-events: none; flex-shrink: 0; }
.search-form__icon--right { left: auto; right: 0; }
.search-form__submit { width: 100%; justify-content: center; margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: 0.06em; padding: 16px 28px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: none; cursor: pointer; transition: background var(--transition), color var(--transition); white-space: nowrap; }
.btn-orange { background: var(--orange); color: var(--white); padding: 14px 32px; font-size: 20px; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-orange-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); padding: 14px 32px; font-size: 20px; }
.btn-orange-outline:hover { background: var(--orange); color: var(--white); }

/* HOME WELCOME — centred, orange h2, y=1120 to ~1600 = ~480px */
.home-welcome { background: var(--header-bg); padding: 100px 0 120px; text-align: center; }
.home-welcome__heading { font-size: 43px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); margin-bottom: 40px; line-height: 1.1; }
.home-welcome__body { max-width: 820px; margin: 0 auto; font-size: 22px; font-weight: 400; color: rgba(255,255,255,0.85); line-height: 1.7; }

/* SECTION TITLE BAR — "TO LET" tab: 50px tall, orange */
.section-title-bar { display: flex; align-items: center; gap: 0; margin-bottom: 48px; }
.section-title-bar__tab { background: var(--orange); color: var(--white); font-size: 26px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 28px; height: 50px; display: flex; align-items: center; flex-shrink: 0; }
.section-title-bar__heading { font-size: 36px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); padding-left: 28px; margin: 0; line-height: 1; background: transparent; }

/* FEATURED PROPERTIES */
.home-featured { background: var(--header-bg); padding: 100px 0 120px; }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.featured-grid__stack { display: flex; flex-direction: column; gap: 28px; }

/* PROPERTY CARD — orange footer */
.prop-card { display: flex; flex-direction: column; overflow: hidden; }
/* consolidated below — see prop-card__image-wrap block */
/* Card image wrap — consolidated */
.prop-card__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}
.prop-card--large .prop-card__image-wrap  { aspect-ratio: 1 / 1; }
.prop-card--small .prop-card__image-wrap  { aspect-ratio: 16 / 9; }
.prop-card--listing .prop-card__image-wrap { aspect-ratio: 16 / 10; }
.prop-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.prop-card:hover .prop-card__photo { transform: scale(1.04); }
.prop-card__estate-logo { height: 38px; max-height: 38px; max-width: 130px; width: auto; object-fit: contain; object-position: left center; display: block; transform: none !important; transition: none !important; }

.prop-card__top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    height: 56px;
    min-height: 56px;
    background: rgba(20, 38, 63, 0.75);
    z-index: 2;
    gap: 10px;
}
.prop-card__top-bar__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.prop-card__estate-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}
.prop-card__top-address {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    text-align: right;
    line-height: 1.3;
    flex-shrink: 0;
    max-width: 55%;
}
.prop-card__footer { background: var(--orange); padding: 18px 18px 14px; flex: 1; }
.prop-card__footer-address { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; line-height: 1.3; opacity: 0.9; }
.prop-card__sqft { font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: 0.02em; margin-bottom: 10px; }
.prop-card__bullets { margin: 0; }
.prop-card__bullets li { font-size: 15px; font-weight: 400; color: var(--white); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.25); line-height: 1.3; }
.prop-card__bullets li:last-child { border-bottom: none; }

/* SPECIALISTS PARALLAX */
.home-specialists { position: relative; min-height: 500px; display: flex; align-items: flex-end; background-image: url('../images/specialists-bg.jpg'); background-size: cover; background-position: center; overflow: hidden; }
.specialists-content { position: relative; z-index: 2; padding: 60px 0 80px; max-width: 820px; }
.specialists-heading { font-size: 60px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.0; margin-bottom: 32px; }

/* LISTING PAGE */
.page-title-bar { background: var(--header-bg); padding: 40px 0 0; }
.properties-search-wrap { background: var(--header-bg); padding: 0 0 40px; }
.properties-search-wrap .search-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.properties-search-wrap .search-form__field input, .properties-search-wrap .search-form__field select { font-size: 18px; }
.properties-search-wrap .search-form__submit { width: auto; }
.properties-map-wrap { width: 100%; }
.properties-map { height: 420px; width: 100%; }
.properties-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 60px 0; }
.no-results { grid-column: 1 / -1; padding: 80px 20px; text-align: center; color: rgba(255,255,255,0.4); font-size: 22px; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 40px 0; }
.pagination__btn { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--orange); color: var(--white); border-radius: 50%; transition: background var(--transition); }
.pagination__btn:hover { background: var(--orange-dark); }

/* PROPERTY DETAIL */
.property-hero { position: relative; width: 100%; aspect-ratio: 16 / 6; max-height: 600px; overflow: hidden; background: #000; }
.property-hero img { width: 100%; height: 100%; object-fit: cover; }
.property-hero__overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 0; background: linear-gradient(to top, rgba(13,24,41,0.9) 0%, transparent 100%); }
.property-hero__title { font-size: 52px; font-weight: 700; margin-bottom: 10px; }
.property-hero__sqft { font-size: 30px; font-weight: 700; color: var(--orange); margin: 0; }
.property-estate-logo { margin-bottom: 40px; }
.property-estate-logo img { height: 60px; width: auto; }
.property-section { margin-bottom: 48px; }
.property-section__label { background: var(--orange); color: var(--white); font-size: 22px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 24px; display: inline-block; margin-bottom: 24px; }
.property-section__content { color: rgba(255,255,255,0.82); font-size: 18px; font-weight: 400; line-height: 1.75; }
.property-section__content p { margin-bottom: 14px; }
.property-section__content strong { color: var(--white); font-weight: 700; }
.property-bullets { margin-top: 16px; }
.property-bullets li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 18px; color: rgba(255,255,255,0.8); }
.property-bullets li:last-child { border-bottom: none; }
.property-map { height: 380px; width: 100%; }
.property-brochure { margin: 32px 0 48px; }

/* Gallery button on hero */
.property-hero__gallery-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
}
.property-hero__gallery-btn .btn {
    font-size: 14px;
    padding: 10px 20px;
    gap: 8px;
    opacity: 0.92;
}
.property-hero__gallery-btn .btn:hover { opacity: 1; }
.property-brochures { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 48px; }
.property-bottom-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 48px; }
.enquire-form__field { border-bottom: 1px solid rgba(255,255,255,0.25); margin-bottom: 6px; }
.enquire-form__field input, .enquire-form__field textarea { width: 100%; background: transparent; border: none; outline: none; color: var(--white); padding: 14px 0; font-size: 18px; font-weight: 400; }
.enquire-form__field input::placeholder, .enquire-form__field textarea::placeholder { color: rgba(255,255,255,0.45); text-transform: uppercase; font-size: 16px; letter-spacing: 0.06em; }
.enquire-form__field textarea { resize: vertical; min-height: 120px; }
.enquire-form__message { margin: 14px 0; font-size: 16px; color: var(--orange); }
.enquire-form .btn { margin-top: 24px; }
.contact-person { margin-bottom: 32px; }
.contact-person__name { display: block; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.contact-person__title { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.contact-person p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.contact-person a { color: var(--orange); transition: color var(--transition); }
.contact-person a:hover { color: var(--white); }

/* ── NEWS LISTING ────────────────────────────────────────── */
.news-listing { background: #14263f; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 85px;
    column-gap: 71px;
    padding: 60px 0 80px;
}
.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-card__image-wrap {
    display: block;
    overflow: hidden;
    background: #0d182a;
    aspect-ratio: 788 / 675; /* measured from XD: 788px wide, 675px image height */
}
.news-card__image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.news-card:hover .news-card__image-wrap img { transform: scale(1.04); }
.news-card__no-image { width: 100%; height: 100%; background: #0d182a; }
.news-card__footer {
    background: #ff8b32;
    padding: 18px 22px 16px;
    flex-shrink: 0;
}
.news-card__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #14263f;
    margin-bottom: 8px;
    line-height: 1.2;
}
.news-card__title a { color: #14263f; }
.news-card__date {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

/* ── NEWS ARTICLE ────────────────────────────────────────── */
.news-hero {
    width: 100%;
    aspect-ratio: 1920 / 700;
    overflow: hidden;
    background: #0d182a;
}
.news-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.news-article { background: #14263f; }
.news-article__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: start;
}
.news-article__main { padding-right: 60px; }

/* Orange title panel — ~60% width, left aligned */
.news-article__title-panel {
    background: #ff8b32;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
}
.news-article__title-panel h1 {
    font-size: clamp(24px, 3vw, 46px);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Orange date box */
.news-article__date-box {
    display: inline-block;
    background: #ff8b32;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Body */
.news-article__body {
    color: rgba(255,255,255,0.82);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
    margin-bottom: 32px;
}
.news-article__body p { margin-bottom: 16px; }

/* Divider */
.news-article__divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 32px 0;
}

/* Social share icons */
.news-article__share {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.news-article__share a {
    color: #ff8b32;
    transition: color 0.22s ease;
    display: flex;
}
.news-article__share a:hover { color: #ffffff; }

/* Right sidebar — chevrons show through, no content */
.news-article__sidebar { min-height: 200px; }

/* Responsive */
@media (max-width: 1024px) {
    .news-article__layout { grid-template-columns: 1fr; }
    .news-article__sidebar { display: none; }
    .news-article__main { padding-right: 0; }
    .news-hero { aspect-ratio: 16 / 7; }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-hero { aspect-ratio: 4 / 3; }
    .news-article__title-panel h1 { font-size: 24px; }
}

/* ABOUT */
.about-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 700;
    overflow: hidden;
    background: #14263f;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.about-hero__img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
/* Semi-transparent dark block — centred vertically, left-aligned */
.about-hero__container { display: flex; align-items: center; }
.about-hero__text-block {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: rgba(13, 24, 41, 0.72);
    padding: 28px 40px 32px;
    max-width: 60%;
}
.about-hero__heading {
    font-size: clamp(32px, 4.5vw, 68px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.05;
    margin: 0;
}

/* Chevron section — diagonal line pattern */
.about-chevrons {
    height: 170px;
    background-color: #14263f;
    background-image: url('../images/chevron-pattern.svg');
    background-repeat: repeat;
    background-size: 96px 96px;
}

/* Content */
.about-content { background: #14263f; padding: 80px 0 100px; }
.about-content__heading {
    color: #ff8b32;
    text-align: center;
    margin-bottom: 40px;
    font-size: 43px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.about-content__body {
    color: rgba(255,255,255,0.82);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 0;
}
.about-content__body p { margin-bottom: 18px; }
.about-content__body p:last-child { margin-bottom: 0; }

/* Orange outline button — matches XD exactly */
.btn-about-link {
    display: block;
    width: fit-content;
    margin: 48px auto 0;
    padding: 16px 40px;
    font-family: var(--font);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
    color: #ff8b32;
    border: 2px solid #ff8b32;
    text-align: center;
    transition: background 0.22s ease, color 0.22s ease;
    text-decoration: none;
}
.btn-about-link:hover { background: #ff8b32; color: #ffffff; }

/* Responsive about */
@media (max-width: 768px) {
    .about-hero { aspect-ratio: 4 / 3; }
    .about-hero__heading { font-size: 28px; }
    .about-chevrons { height: 80px; }
    .about-content__heading { font-size: 32px; }
    .about-content__body { font-size: 16px; }
}

/* CONTACT */
.contact-section { background: var(--header-bg); padding: 80px 0 100px; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.contact-office { margin-bottom: 40px; }
.contact-office h3 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.contact-office p { font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 8px; }
.contact-office__phone { color: var(--orange); font-size: 18px; font-weight: 700; transition: color var(--transition); }
.contact-office__phone:hover { color: var(--white); }
.contact-form__field { border-bottom: 1px solid rgba(255,255,255,0.25); margin-bottom: 6px; }
.contact-form__label { display: block; font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; padding: 14px 0 4px; }
.contact-form__field input, .contact-form__field textarea { width: 100%; background: transparent; border: none; outline: none; color: var(--white); padding: 12px 0; .font-size-placeholder }
.contact-form__field input::placeholder { color: #ffffff; text-transform: uppercase; font-size: 16px; letter-spacing: 0.06em; }
.contact-form__field textarea { resize: vertical; min-height: 180px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.15); padding: 16px; }
.contact-form__message { margin: 14px 0; font-size: 16px; color: var(--orange); }
.contact-form .btn { margin-top: 24px; }

/* FOOTER */
.site-footer { background: var(--header-bg); border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-inner { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.footer-copy { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.5); margin: 0; }
.footer-scroll-top { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border: none; color: var(--white); border-radius: 2px; transition: background var(--transition); }
.footer-scroll-top:hover { background: var(--orange); }

.section { padding: clamp(60px, 6vw, 120px) 0; }

/* RESPONSIVE */
@media (min-width: 769px) {
    .nav-list li.menu-item-contact a,
    .nav-list li:last-child a { background: var(--orange); color: var(--white); padding: 10px 28px; margin-left: 8px; }
    .nav-list li.menu-item-contact a:hover,
    .nav-list li:last-child a:hover { background: var(--orange-dark); color: var(--white); }
}
@media (max-width: 1400px) {
    .hero-search-card { right: max(var(--pad), calc((100% - var(--container)) / 2 + var(--pad))); width: clamp(320px, 32vw, 480px); padding: 40px; }
    .hero-search-card__title { font-size: 32px; }
    .search-form__field input, .search-form__field select { font-size: 16px; }
}
@media (max-width: 1200px) {
    :root { --topbar-h: 36px; --header-h: 90px; }
    .utility-bar__item { font-size: 13px; }
    .nav-list li a { font-size: 15px; padding: 8px 12px; }
    .specialists-heading { font-size: 44px; }
    .home-welcome__heading { font-size: 34px; }
    .home-welcome__body { .font-size-placeholder }
    .property-bottom-cols { grid-template-columns: 1fr; gap: 48px; }
    .contact-cols { grid-template-columns: 1fr; gap: 60px; }
    .news-article__layout { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    :root { --topbar-h: 34px; --header-h: 80px; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-grid__stack { flex-direction: row; }
    .properties-search-wrap .search-form__fields { grid-template-columns: 1fr; }
    .properties-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .hero-search-card { top: 60px; width: clamp(280px, 45vw, 420px); padding: 28px 28px 36px; }
}
@media (max-width: 768px) {
    :root { --topbar-h: 32px; --header-h: 68px; --total-h: 100px; }

    /* Utility bar */
    .utility-bar__item { font-size: 13px; gap: 6px; }
    .utility-bar__inner { gap: 16px; }

    /* Header */
    .header-inner { gap: 16px; }
    .site-logo { display: block; flex-shrink: 0; }
    .site-logo img { width: 140px; height: auto; }
    .logo-text { font-size: 22px; }

    /* Hamburger toggle — show on mobile, push to right */
    .nav-toggle { display: flex !important; margin-left: auto; }

    /* Nav — hidden on mobile until toggle clicked */
    .primary-nav {
        display: none;
        position: fixed;
        top: var(--total-h); left: 0; right: 0;
        background: var(--card-bg);
        padding: 20px var(--pad) 32px;
        border-top: 3px solid var(--orange);
        z-index: 999;
        margin-left: 0;
    }
    .primary-nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li a { font-size: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); background: transparent; margin: 0; }
    /* Contact item — plain link on mobile, no orange button */
    .nav-list li.menu-item-contact a,
    .nav-list li:last-child a { background: transparent !important; color: var(--white) !important; margin: 0; padding: 16px 0; text-align: left; }
    .nav-list li.menu-item-contact a:hover,
    .nav-list li:last-child a:hover { color: var(--orange) !important; }
    .home-hero { aspect-ratio: unset; height: auto; max-height: none; display: flex; flex-direction: column; }
    .home-hero__video { position: relative; inset: auto; width: 100%; height: 260px; flex-shrink: 0; object-fit: cover; }
    .hero-search-card { position: relative; top: auto; right: auto; width: 100%; padding: 32px var(--pad); background: var(--card-bg); flex-shrink: 0; }
    .home-welcome { padding: 60px 0 80px; }
    .home-welcome__heading { font-size: 28px; }
    .home-welcome__body { font-size: 16px; }
    .specialists-heading { font-size: 30px; }
    .section-title-bar__tab { font-size: 20px; }
    .section-title-bar__heading { font-size: 26px; }
    .featured-grid__stack { flex-direction: column; }
    .property-hero { max-height: none; aspect-ratio: 4 / 3; }
    .property-hero__title { font-size: 28px; }
    .property-hero__sqft { font-size: 20px; }
    .page-hero-image { max-height: none; aspect-ratio: 4 / 3; }
    .page-hero-image__overlay h1 { font-size: 28px; }
    .news-hero { max-height: none; aspect-ratio: 4 / 3; }
    .news-article__title-panel h1 { font-size: 24px; }
    .about-content__heading { font-size: 28px; }
    .footer-copy { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    /* Video still shows but paused for accessibility */
    .home-hero__video { animation-play-state: paused; }
}

/* ── MAP MARKERS ─────────────────────────────────────────── */
.map-marker-wrap { background: none !important; border: none !important; }
.map-marker-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.map-marker-wrap:hover .map-marker-circle {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* ── MAP POPUP ───────────────────────────────────────────── */
.ribston-popup .leaflet-popup-content-wrapper {
    background: #14263f;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.ribston-popup .leaflet-popup-tip {
    background: #14263f;
}
.ribston-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}
.map-popup { display: flex; flex-direction: column; }
.map-popup__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.map-popup__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.map-popup__image:hover img { transform: scale(1.04); }
.map-popup__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 3px solid #ff8b32;
}
.map-popup__title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.3;
}
.map-popup__title a { color: inherit; }
.map-popup__address {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.03em;
    margin-top: 2px;
}
.map-popup__link {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff8b32;
    transition: color 0.2s ease;
}
.map-popup__link:hover { color: #ffffff; }
.ribston-popup .leaflet-popup-close-button {
    color: var(--white) !important;
    font-size: 18px !important;
    padding: 4px 6px !important;
}

/* ── DIAGONAL LINE PATTERN — used on chevron sections ───── */
.pattern-diagonal {
    background-image: url('../images/chevron-pattern.svg');
    background-repeat: repeat;
    background-size: 96px 96px;
}

/* ── VERTICAL CHEVRON BACKGROUND ────────────────────────── */
.chevron-right {
    position: relative;
}
.chevron-right::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 290px;
    height: 100%;
    background-image: url('../images/chevron-vertical.png');
    background-repeat: repeat-y;
    background-position: right top;
    background-size: 290px auto;
    pointer-events: none;
    z-index: 0;
}
/* Make sure content sits above the chevron */
.chevron-right > * { position: relative; z-index: 1; }

/* ── PAGINATION INFO ─────────────────────────────────────── */
.pagination__info {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    padding: 0 16px;
}

/* ── PROPERTY GALLERY BAR ────────────────────────────────── */
.property-gallery-bar {
    margin-bottom: 32px;
}
