/**
 * FILE: assets/css/pages.css
 * PURPOSE: Page-specific layout overrides and unique section styles
 * DEPENDENCIES: main.css, components.css
 * NOTES: Keep component-agnostic; scoped by body class or page wrapper
 * CREDIT: Designed inhouse by The Taino Resource Group LLC
 */

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-hero {
    min-height: 90vh;
    background: linear-gradient(
        135deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 50%,
        var(--color-primary-light) 100%
    );
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60,52,52,0.82) 0%, rgba(60,52,52,0.52) 100%);
    z-index: 1;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    padding-block: var(--space-20);
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60,52,52,0.84) 0%, rgba(60,52,52,0.50) 100%);
    z-index: 1;
}

/* Hero two-column body layout */
.home-hero__body {
    display: flex;
    align-items: center;
    gap: var(--space-12);
}

.home-hero__logo-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero__logo-img {
    height: 143px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}

.home-hero__eyebrow {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: var(--space-3);
}

.home-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-bold);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    max-width: 820px;
}
.home-hero__title em {
    font-style: normal;
    color: var(--color-accent-light);
}

.home-hero__subtitle {
    font-size: clamp(var(--text-base), 2vw, var(--text-lg));
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    line-height: var(--leading-loose);
    margin-bottom: var(--space-8);
}

.home-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Featured Areas Section */
.featured-areas {
    padding-block: var(--space-20);
}
.featured-areas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-5);
}

/* Making a Difference Section */
.difference-section {
    background: var(--color-primary);
    color: var(--color-white);
    padding-block: var(--space-20);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.difference-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(198,150,74,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.difference-section__title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--font-bold);
    color: var(--color-white);
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: var(--space-6);
    line-height: var(--leading-snug);
}
.difference-section__body {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.78);
    max-width: 600px;
    margin-inline: auto;
    line-height: var(--leading-loose);
    margin-bottom: var(--space-10);
}
.difference-pillars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6) var(--space-10);
    margin-top: var(--space-10);
}
.difference-pillar {
    text-align: center;
    max-width: 180px;
}
.difference-pillar__icon { font-size: 2.75rem; margin-bottom: var(--space-3); }
.difference-pillar__label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Home Contact Section */
.home-contact {
    padding-block: var(--space-20);
    background: var(--color-bg-warm);
}
.home-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-12) var(--space-16);
    align-items: start;
}

/* ============================================================
   AREA / CITY PAGE
   ============================================================ */
.area-page-header {
    background: var(--color-primary);
    background-size: cover;
    background-position: center;
    padding-block: var(--space-20) var(--space-16);
    min-height: 500px;
    color: var(--color-white);
    position: relative;
    display: flex;
    align-items: center;
}
.area-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(60, 52, 52, 0.65);
    z-index: 0;
}
.area-page-header > .container { position: relative; z-index: 1; }
.area-page-header__breadcrumb {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-3);
    display: flex;
    gap: var(--space-2);
    align-items: center;
}
.area-page-header__breadcrumb a { color: rgba(255,255,255,0.7); }
.area-page-header__breadcrumb a:hover { color: var(--color-white); }

.area-market-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}
.area-market-stat {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    border: 1px solid rgba(255,255,255,0.12);
}
.area-market-stat__value {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-accent-light);
    display: block;
}
.area-market-stat__label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-top: 2px;
}

.demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}
.demo-stat {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--color-accent);
}
.demo-stat__value {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}
.demo-stat__label {
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Nearby tabs */
.nearby-tabs {
    display: flex;
    gap: var(--space-2);
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: var(--space-6);
}
.nearby-tab {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-600);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}
.nearby-tab.is-active,
.nearby-tab:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--space-6);
}
.blog-hero { padding-block: var(--space-12); }

/* ============================================================
   REVIEWS PAGE
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: var(--space-5);
}
.reviews-summary {
    text-align: center;
    padding: var(--space-10);
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    color: var(--color-white);
    margin-bottom: var(--space-10);
}
.reviews-summary__score {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--color-accent-light);
    line-height: 1;
}
.reviews-summary__total { font-size: var(--text-sm); color: rgba(255,255,255,0.7); }

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: var(--space-8);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12) var(--space-16);
    align-items: center;
    padding-block: var(--space-16);
}
.about-intro__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/5;
}
.about-intro__image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   MARKET SNAPSHOT PAGE
   ============================================================ */
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}
.snapshot-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-primary);
    transition: box-shadow var(--transition-base);
}
.snapshot-card:hover { box-shadow: var(--shadow-md); }
.snapshot-card__city {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}
.snapshot-card__metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-gray-200);
    font-size: var(--text-sm);
}
.snapshot-card__metric:last-child { border-bottom: none; }
.snapshot-card__metric-label { color: var(--color-gray-600); }
.snapshot-card__metric-value { font-weight: var(--font-semibold); color: var(--color-gray-900); }

/* ============================================================
   PRIVACY / LEGAL PAGES
   ============================================================ */
.legal-content {
    max-width: 800px;
    margin-inline: auto;
    padding-block: var(--space-16);
}
.legal-content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-gray-200);
}
.legal-content p { margin-bottom: var(--space-4); color: var(--color-gray-700); }
.legal-content ul { margin-left: var(--space-6); list-style: disc; margin-bottom: var(--space-4); }
.legal-content ul li { margin-bottom: var(--space-2); color: var(--color-gray-700); }

/* ============================================================
   RESPONSIVE: Page-specific
   ============================================================ */
@media (max-width: 768px) {
    .home-contact__grid { grid-template-columns: 1fr; }
    .about-intro { grid-template-columns: 1fr; }
    .about-intro__image { aspect-ratio: 16/9; }
    .home-hero__body { flex-direction: column; align-items: flex-start; }
    .home-hero__logo-col { align-self: center; margin-bottom: var(--space-4); }
    .home-hero__logo-img { height: 110px; }
    .home-hero__ctas { flex-direction: column; }
    .home-hero__ctas .btn { width: 100%; max-width: 340px; }
    .difference-pillar { max-width: 140px; }
}

/* ============================================================
   AGENT PROFILE PAGE
   ============================================================ */
.agent-hero {
    background: var(--color-navy, #1B3A5C);
    color: #fff;
    padding: 64px 0 48px;
}
.agent-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.agent-hero__photo-wrap {
    flex-shrink: 0;
}
.agent-hero__photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.25);
    display: block;
}
.agent-hero__photo--logo {
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    padding: 20px;
    border-color: rgba(255,255,255,.15);
}
.agent-hero__brokerage {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.65);
    margin-bottom: 6px;
}
.agent-hero__name {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.15;
}
.agent-hero__title {
    font-size: 16px;
    color: rgba(255,255,255,.8);
    margin: 0 0 4px;
}
.agent-hero__license {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    margin: 0 0 20px;
}
.agent-hero__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.agent-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.agent-hero__tags .tag {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Agent detail grid */
.agent-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.agent-bio__text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-gray-700, #495057);
}
.agent-bio__text p { margin-bottom: 1em; }

.sidebar-block {
    background: var(--color-gray-50, #f8f9fa);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.sidebar-block__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-navy, #1B3A5C);
    margin: 0 0 12px;
}
.sidebar-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: var(--color-gray-700, #495057);
}
.sidebar-block__list li {
    padding: 4px 0;
    border-bottom: 1px solid var(--color-gray-200, #e9ecef);
}
.sidebar-block__list li:last-child { border-bottom: none; }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.social-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy, #1B3A5C);
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid var(--color-gray-300, #dee2e6);
    border-radius: 6px;
    transition: all .15s ease;
}
.social-links a:hover {
    background: var(--color-navy, #1B3A5C);
    color: #fff;
    border-color: var(--color-navy, #1B3A5C);
}

@media (max-width: 768px) {
    .agent-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .agent-hero__contact { justify-content: center; }
    .agent-hero__tags { justify-content: center; }
    .agent-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AREA PAGE — SEARCH BAR
   ============================================================ */
.area-search-form {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
}
.area-search-form__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: var(--space-4);
    align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: var(--space-1); }
.search-field__label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gray-600);
}
.search-field__select {
    height: 48px;
    padding: 0 var(--space-3);
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-gray-800);
    background: var(--color-white);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.search-field__select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.search-field--action { min-width: 200px; }

@media (max-width: 900px) {
    .area-search-form__grid {
        grid-template-columns: 1fr 1fr;
    }
    .search-field--action { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
    .area-search-form__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AREA PAGE — AFFORDABILITY CALCULATOR
   ============================================================ */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}
.calc-inputs { display: flex; flex-direction: column; gap: var(--space-6); }
.calc-field { display: flex; flex-direction: column; gap: var(--space-2); }
.calc-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-gray-700);
}
.calc-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 48px;
}
.calc-input-prefix {
    padding: 0 var(--space-3);
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    border-right: 1.5px solid var(--color-gray-300);
    height: 100%;
    display: flex;
    align-items: center;
}
.calc-input {
    flex: 1;
    border: none;
    padding: 0 var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-gray-800);
    height: 100%;
}
.calc-input:focus { outline: none; }
.calc-range {
    width: 100%;
    height: 6px;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}
.calc-select {
    height: 48px;
    padding: 0 var(--space-3);
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-gray-800);
    background: var(--color-white);
    width: 100%;
    cursor: pointer;
}
.calc-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Results panel */
.calc-results {
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    color: var(--color-white);
    position: sticky;
    top: var(--space-8);
}
.calc-monthly-total {
    text-align: center;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: var(--space-6);
}
.calc-monthly-label {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--space-2);
}
.calc-monthly-amount {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-bold);
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: var(--space-2);
}
.calc-monthly-sub {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
}
.calc-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.calc-breakdown-item { display: flex; flex-direction: column; gap: 2px; }
.cbi-label { font-size: var(--text-xs); color: rgba(255,255,255,0.6); }
.cbi-value { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-white); }
.calc-disclaimer {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.55);
    line-height: var(--leading-loose);
    margin-bottom: 0;
}
.calc-disclaimer a { color: var(--color-accent-light); text-decoration: underline; }

@media (max-width: 900px) {
    .calc-layout { grid-template-columns: 1fr; }
    .calc-results { position: static; }
}

/* ============================================================
   AREA PAGE — ATTRACTIONS GRID
   ============================================================ */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: var(--space-5);
}
.attraction-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-accent);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.attraction-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.attraction-card__type {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}
.attraction-card__name {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}
.attraction-card__distance {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* ============================================================
   AREA PAGE — SCHOOL INFO BOX
   ============================================================ */
.school-info-box {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1.5px solid var(--color-gray-200);
}
.school-info-box__heading {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}
.school-info-box__district {
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}
.school-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    flex-shrink: 0;
}
.school-rating--A-plus, .school-rating--A-plus { background: #22c55e; color: #fff; }
.school-rating--A      { background: #4ade80; color: #fff; }
.school-rating--B-plus { background: #86efac; color: #166534; }
.school-rating--B      { background: #a3e635; color: #365314; }
.school-info-box__note {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: var(--leading-loose);
}

/* ============================================================
   AREA PAGE — SEO CONTENT BLOCK
   ============================================================ */
.seo-content-block {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-10);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
    font-size: var(--text-md);
    color: var(--color-gray-700);
    line-height: var(--leading-loose);
}

@media (max-width: 600px) {
    .seo-content-block { padding: var(--space-6); }
}


/* TRG TEMP UI CLEANUP — no IDX / blank button suppression */
.hero a.btn:empty,
.hero button.btn:empty,
.hero [class*="btn"]:empty,
.hero__actions a.btn:empty,
.hero__actions button.btn:empty,
.hero-actions a.btn:empty,
.hero-actions button.btn:empty,
a.btn[href=""],
a.btn:not([href]) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Hide featured property/listing UI while IDX is inactive */
a[href*="/listings/featured"],
.featured-properties,
.featured-listings,
.home-featured-properties,
.home-featured-listings,
.properties-featured,
.listings-featured,
#featured-properties,
#featured-listings,
section.featured-properties,
section.featured-listings,
section[class*="featured-properties"],
section[class*="featured-listings"] {
    display: none !important;
}

/* Modern browser parent hide for sections that contain the featured route */
section:has(a[href*="/listings/featured"]),
div:has(> a[href*="/listings/featured"]) {
    display: none !important;
}
/* END TRG TEMP UI CLEANUP */

/* TRG HOME MOTION + OVERLAP FIX */
.page-home .home-hero {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center calc(50% + var(--trg-hero-parallax, 0px));
    transform: translateZ(0);
}

.page-home .home-hero__overlay {
    pointer-events: none;
}

.page-home .home-hero__content,
.page-home .home-hero__logo-col {
    will-change: transform, opacity;
}

.page-home .home-hero__content {
    animation: trgHeroFadeUp 700ms ease-out both;
}

.page-home .home-hero__logo-col {
    animation: trgHeroFloatIn 900ms ease-out 140ms both;
}

.page-home .home-hero__logo-img {
    transform: translateZ(0);
    transition: transform 300ms ease, filter 300ms ease;
}

.page-home .home-hero__logo-img:hover {
    transform: translateY(-4px) scale(1.015);
}

.page-home .home-hero__ctas {
    align-items: center;
}

.page-home .home-hero__ctas .btn {
    position: relative;
    overflow: hidden;
}

.page-home .home-hero__ctas .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.24) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 650ms ease;
}

.page-home .home-hero__ctas .btn:hover::after {
    transform: translateX(120%);
}

/* Fix overlapping text in “Making a Difference” section */
.page-home .difference-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.page-home .difference-section .container {
    position: relative;
    z-index: 2;
}

.page-home .difference-section__title {
    position: relative;
    z-index: 2;
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
    line-height: 1.08;
    max-width: 900px;
}

.page-home .difference-section__body {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin-top: 0;
    line-height: 1.75;
}

.page-home .difference-section__body p {
    margin-top: 0;
    margin-bottom: 1.1rem;
}

.trg-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

.trg-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes trgHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes trgHeroFloatIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .home-hero,
    .page-home .home-hero__content,
    .page-home .home-hero__logo-col,
    .page-home .home-hero__logo-img,
    .trg-reveal {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
/* END TRG HOME MOTION + OVERLAP FIX */

/* TRG FINAL HOME RESPONSIVE CENTERING FIX */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.page-home {
    overflow-x: hidden;
}

/* Hero centering and responsive control */
.page-home .home-hero {
    min-height: clamp(620px, 86vh, 900px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center calc(50% + var(--trg-hero-parallax, 0px));
}

.page-home .home-hero > .container {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
}

.page-home .home-hero__body {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.page-home .home-hero__content {
    max-width: 720px;
}

.page-home .home-hero__title {
    max-width: 760px;
    line-height: .98;
    text-wrap: balance;
}

.page-home .home-hero__subtitle {
    max-width: 650px;
}

.page-home .home-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
}

.page-home .home-hero__ctas .btn {
    min-width: 150px;
    justify-content: center;
    text-align: center;
}

.page-home .home-hero__logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-home .home-hero__logo-img {
    width: min(100%, 360px);
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* Difference section: true center alignment */
.page-home .difference-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
    text-align: center;
}

.page-home .difference-section::before {
    pointer-events: none;
    z-index: 0;
}

.page-home .difference-section > .container {
    position: relative;
    z-index: 2;
    width: min(100% - 2rem, 940px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-home .difference-section__title {
    width: 100%;
    max-width: 900px;
    margin: 0 auto clamp(1.25rem, 3vw, 2rem);
    text-align: center;
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.page-home .difference-section__body {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.75;
}

.page-home .difference-section__body p {
    margin: 0 auto 1.1rem;
}

/* General responsive media */
img,
svg,
video,
canvas {
    max-width: 100%;
}

@media (max-width: 980px) {
    .page-home .home-hero {
        min-height: auto;
        padding-block: clamp(4rem, 10vw, 6rem);
    }

    .page-home .home-hero__body {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1.75rem, 5vw, 3rem);
    }

    .page-home .home-hero__content {
        max-width: 760px;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-home .home-hero__title,
    .page-home .home-hero__subtitle {
        margin-inline: auto;
        text-align: center;
    }

    .page-home .home-hero__ctas {
        justify-content: center;
    }

    .page-home .home-hero__logo-col {
        order: -1;
    }

    .page-home .home-hero__logo-img {
        width: min(72vw, 260px);
    }
}

@media (max-width: 640px) {
    .page-home .home-hero {
        padding-block: 3.25rem;
    }

    .page-home .home-hero > .container,
    .page-home .difference-section > .container {
        width: min(100% - 1.25rem, 100%);
    }

    .page-home .home-hero__eyebrow {
        text-align: center;
    }

    .page-home .home-hero__title {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
        line-height: 1;
    }

    .page-home .home-hero__subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .page-home .home-hero__ctas {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .page-home .home-hero__ctas .btn {
        width: 100%;
        max-width: 340px;
        margin-inline: auto;
    }

    .page-home .difference-section {
        padding-block: 3.75rem;
    }

    .page-home .difference-section__title {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.12;
    }

    .page-home .difference-section__body {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 420px) {
    .page-home .home-hero__title {
        font-size: clamp(2.15rem, 11vw, 2.85rem);
    }

    .page-home .home-hero__logo-img {
        width: min(76vw, 220px);
    }

    .page-home .difference-section__title {
        font-size: clamp(1.85rem, 10vw, 2.55rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .home-hero,
    .page-home .home-hero__content,
    .page-home .home-hero__logo-col,
    .page-home .home-hero__logo-img,
    .trg-reveal {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
/* END TRG FINAL HOME RESPONSIVE CENTERING FIX */

/* TRG SELL HERO MEDIA + CENTERED AGENT CARD */
.hero--has-media {
    overflow: hidden;
}

.hero--has-media .container {
    position: relative;
    z-index: 2;
}

.hero--has-media .hero__inner {
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.hero--has-media .hero__content {
    max-width: 680px;
}

.hero--has-media .hero__media {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: stretch;
}

.hero--has-media .hero__media-img {
    width: min(100%, 390px);
    height: auto;
    max-height: 620px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 24px 36px rgba(0,0,0,.32));
}

.hero--sell-media .hero__media-img {
    transform: translateY(1.5rem);
}

.sell-agent-focus {
    text-align: center;
}

.sell-agent-focus > .container {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sell-agent-focus .difference-section__title,
.sell-agent-focus .difference-section__body {
    text-align: center;
    margin-inline: auto;
}

.sell-agent-focus__card {
    width: 100%;
    max-width: 920px;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    display: flex;
    justify-content: center;
}

.sell-agent-focus__card > * {
    width: 100%;
    max-width: 920px;
}

@media (max-width: 980px) {
    .hero--has-media .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1.5rem, 5vw, 3rem);
        padding-block: clamp(3rem, 8vw, 5rem);
    }

    .hero--has-media .hero__content {
        margin-inline: auto;
    }

    .hero--has-media .hero__ctas {
        justify-content: center;
    }

    .hero--has-media .hero__media {
        order: -1;
        align-self: center;
    }

    .hero--has-media .hero__media-img {
        width: min(62vw, 300px);
        max-height: 360px;
    }

    .hero--sell-media .hero__media-img {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero--has-media .hero__inner {
        padding-block: 2.75rem;
    }

    .hero--has-media .hero__media-img {
        width: min(72vw, 240px);
        max-height: 300px;
    }

    .hero--has-media .hero__title,
    .hero--has-media .hero__subtitle {
        text-align: center;
    }

    .sell-agent-focus > .container {
        width: min(100% - 1.25rem, 100%);
    }

    .sell-agent-focus__card {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero--sell-media .hero__media-img {
        transform: none !important;
    }
}
/* END TRG SELL HERO MEDIA + CENTERED AGENT CARD */

/* TRG BUY PAGE CONTACT CENTERING */
.page-buy .contact-section {
    text-align: center;
}

.page-buy .contact-section > .container {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
    display: flex;
    justify-content: center;
}

.page-buy .contact-section__grid {
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-inline: auto;
    text-align: center;
}

.page-buy .contact-section__info {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-buy .contact-section__title {
    text-align: center;
    margin-inline: auto;
}

.page-buy .contact-section__info p {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.page-buy .contact-section__direct {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-inline: auto;
}

.page-buy .contact-section__direct .btn {
    justify-content: center;
    text-align: center;
}

@media (max-width: 640px) {
    .page-buy .contact-section > .container {
        width: min(100% - 1.25rem, 100%);
    }

    .page-buy .contact-section__direct {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .page-buy .contact-section__direct .btn {
        width: 100%;
        max-width: 340px;
        margin-inline: auto;
    }
}
/* END TRG BUY PAGE CONTACT CENTERING */

/* TRG BUY AGENT CARD MATCH SELL SECTION */
.buy-agent-focus {
    text-align: center;
}

.buy-agent-focus > .container {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buy-agent-focus .difference-section__title,
.buy-agent-focus .difference-section__body {
    text-align: center;
    margin-inline: auto;
}

.buy-agent-focus__card {
    width: 100%;
    max-width: 920px;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    display: flex;
    justify-content: center;
}

.buy-agent-focus__card > * {
    width: 100%;
    max-width: 920px;
}

@media (max-width: 640px) {
    .buy-agent-focus > .container {
        width: min(100% - 1.25rem, 100%);
    }

    .buy-agent-focus__card {
        max-width: 100%;
    }
}
/* END TRG BUY AGENT CARD MATCH SELL SECTION */

/* TRG SELL HERO PHOTO CORNER RADIUS */
.hero--sell-media .hero__media {
    border-radius: var(--radius-lg);
}

.hero--sell-media .hero__media-img {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(0, 0, 0, .28);
}

@media (max-width: 640px) {
    .hero--sell-media .hero__media-img {
        border-radius: var(--radius-md);
    }
}
/* END TRG SELL HERO PHOTO CORNER RADIUS */

/* TRG SELL HERO PHOTO CROP / ZOOM */
.hero--sell-media .hero__media {
    width: min(100%, 390px) !important;
    aspect-ratio: 3 / 4.5 !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-shadow: 0 22px 44px rgba(0, 0, 0, .28) !important;
    align-self: center !important;
}

.hero--sell-media .hero__media-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: 54% 52% !important;
    border-radius: 0 !important;
    transform: scale(1.08) !important;
    filter: none !important;
    box-shadow: none !important;
}

@media (max-width: 980px) {
    .hero--sell-media .hero__media {
        width: min(62vw, 300px) !important;
        aspect-ratio: 3 / 4.5 !important;
    }

    .hero--sell-media .hero__media-img {
        transform: scale(1.08) !important;
        object-position: 54% 52% !important;
    }
}

@media (max-width: 640px) {
    .hero--sell-media .hero__media {
        width: min(72vw, 240px) !important;
        border-radius: var(--radius-md) !important;
    }
}
/* END TRG SELL HERO PHOTO CROP / ZOOM */

/* TRG CONTACT MAP FIX */
.contact-map-section {
    text-align: center;
}

.contact-map-section > .container {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.contact-map-card {
    width: 100%;
    max-width: 1040px;
    margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .14);
    background: var(--color-white);
    min-height: 420px;
}

.contact-map-card__iframe {
    display: block;
    width: 100%;
    height: clamp(360px, 48vw, 520px);
    min-height: 360px;
    border: 0;
}

.contact-map-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .contact-map-section > .container {
        width: min(100% - 1.25rem, 100%);
    }

    .contact-map-card {
        border-radius: var(--radius-md);
        min-height: 320px;
    }

    .contact-map-card__iframe {
        height: 340px;
        min-height: 320px;
    }
}
/* END TRG CONTACT MAP FIX */

/* TRG CONTACT MAP FIX */
.contact-map-section {
    text-align: center;
}

.contact-map-section > .container {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.contact-map-card {
    width: 100%;
    max-width: 1040px;
    margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .14);
    background: var(--color-white);
    min-height: 420px;
}

.contact-map-card__iframe {
    display: block;
    width: 100%;
    height: clamp(360px, 48vw, 520px);
    min-height: 360px;
    border: 0;
}

.contact-map-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .contact-map-section > .container {
        width: min(100% - 1.25rem, 100%);
    }

    .contact-map-card {
        border-radius: var(--radius-md);
        min-height: 320px;
    }

    .contact-map-card__iframe {
        height: 340px;
        min-height: 320px;
    }
}
/* END TRG CONTACT MAP FIX */

/* TRG LEGAL PAGES + FOOTER DISCLOSURES */
.page-legal .legal-container {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
    color: var(--color-gray-800);
    line-height: 1.75;
}

.page-legal .legal-container h2 {
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: .75rem;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    color: var(--color-primary);
}

.page-legal .legal-container p {
    margin-bottom: 1rem;
}

.page-legal .legal-container ul {
    margin: .75rem 0 1.25rem 1.25rem;
    padding-left: 1rem;
}

.page-legal .legal-container li {
    margin-bottom: .45rem;
}

.footer-legal-pages {
    width: min(100% - 2rem, 1180px);
    margin: 2rem auto 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem 1.25rem;
    text-align: center;
}

.footer-legal-pages a {
    color: rgba(255,255,255,.78);
    font-size: .82rem;
    text-decoration: none;
}

.footer-legal-pages a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-legal-disclosure {
    width: min(100% - 2rem, 980px);
    margin: 0 auto 1.5rem;
    color: rgba(255,255,255,.62);
    text-align: center;
    font-size: .78rem;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .page-legal .legal-container,
    .footer-legal-pages,
    .footer-legal-disclosure {
        width: min(100% - 1.25rem, 100%);
    }

    .footer-legal-pages {
        flex-direction: column;
        align-items: center;
    }
}
/* END TRG LEGAL PAGES + FOOTER DISCLOSURES */

/* TRG LEGAL PAGES + FOOTER DISCLOSURES */
.page-legal .legal-container {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
    color: var(--color-gray-800);
    line-height: 1.75;
}

.page-legal .legal-container h2 {
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: .75rem;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    color: var(--color-primary);
}

.page-legal .legal-container p {
    margin-bottom: 1rem;
}

.page-legal .legal-container ul {
    margin: .75rem 0 1.25rem 1.25rem;
    padding-left: 1rem;
}

.page-legal .legal-container li {
    margin-bottom: .45rem;
}

.footer-legal-pages {
    width: min(100% - 2rem, 1180px);
    margin: 2rem auto 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem 1.25rem;
    text-align: center;
}

.footer-legal-pages a {
    color: rgba(255,255,255,.78);
    font-size: .82rem;
    text-decoration: none;
}

.footer-legal-pages a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-legal-disclosure {
    width: min(100% - 2rem, 980px);
    margin: 0 auto 1.5rem;
    color: rgba(255,255,255,.62);
    text-align: center;
    font-size: .78rem;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .page-legal .legal-container,
    .footer-legal-pages,
    .footer-legal-disclosure {
        width: min(100% - 1.25rem, 100%);
    }

    .footer-legal-pages {
        flex-direction: column;
        align-items: center;
    }
}
/* END TRG LEGAL PAGES + FOOTER DISCLOSURES */

/* TRG MLS / STELLAR DISCLOSURE LOGO SYSTEM */
.mls-source-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.mls-source-logos__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.mls-source-logos__item img {
    display: block;
    max-width: 240px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.legal-alert {
    padding: 1rem 1.25rem;
    margin: 0 auto 2rem;
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    background: rgba(198, 150, 74, .11);
    color: var(--color-gray-800);
    line-height: 1.7;
}

.page-legal blockquote {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-warm);
    color: var(--color-gray-800);
    font-style: italic;
}

.footer-mls-disclosure {
    width: min(100% - 2rem, 1180px);
    margin: 2rem auto 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
}

.footer-mls-disclosure__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .85rem 1.25rem;
    margin-bottom: 1rem;
}

.footer-mls-disclosure__logos img {
    display: block;
    max-width: 150px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: .35rem .55rem;
    border-radius: .5rem;
    background: rgba(255,255,255,.96);
}

.footer-mls-disclosure p {
    width: min(100%, 980px);
    margin: 0 auto 1rem;
    color: rgba(255,255,255,.66);
    font-size: .78rem;
    line-height: 1.65;
}

.footer-legal-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.25rem;
}

.footer-legal-pages a {
    color: rgba(255,255,255,.78);
    font-size: .82rem;
    text-decoration: none;
}

.footer-legal-pages a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .mls-source-logos {
        flex-direction: column;
    }

    .mls-source-logos__item {
        width: 100%;
    }

    .mls-source-logos__item img {
        max-width: 220px;
    }

    .footer-mls-disclosure {
        width: min(100% - 1.25rem, 100%);
    }

    .footer-legal-pages {
        flex-direction: column;
        align-items: center;
    }
}
/* END TRG MLS / STELLAR DISCLOSURE LOGO SYSTEM */

/* TRG MOBILE NAV + ABOUT PHOTO FIX */
@media (max-width: 980px) {
    body.nav-open {
        overflow: hidden;
    }

    .site-header__nav,
    .site-nav,
    .primary-nav,
    .main-nav,
    .header-nav,
    nav[aria-label="Primary"],
    nav[aria-label="Main navigation"] {
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    }

    body.nav-open .site-header__nav,
    body.nav-open .site-nav,
    body.nav-open .primary-nav,
    body.nav-open .main-nav,
    body.nav-open .header-nav,
    body.nav-open nav[aria-label="Primary"],
    body.nav-open nav[aria-label="Main navigation"],
    .site-header__nav.is-open,
    .site-nav.is-open,
    .primary-nav.is-open,
    .main-nav.is-open,
    .header-nav.is-open,
    nav.is-open {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
        max-height: calc(100vh - 82px) !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
    }

    .nav-toggle.is-active,
    .mobile-nav-toggle.is-active,
    .menu-toggle.is-active,
    .site-header__toggle.is-active,
    .hamburger.is-active,
    .hamburger-menu.is-active {
        opacity: 1 !important;
    }
}

/* About page Daisy photo must show complete image, not cropped */
.page-about .agent-hero__photo-wrap,
.page-about .agent-photo,
.page-about .about-photo,
.page-about .broker-photo,
.page-about .profile-photo,
.page-about .portrait-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.page-about .agent-hero__photo,
.page-about .agent-photo img,
.page-about .about-photo img,
.page-about .broker-photo img,
.page-about .profile-photo img,
.page-about .portrait-card img,
.page-about img[src*="Daisy"],
.page-about img[src*="daisy"],
.page-about img[src*="broker"] {
    display: block !important;
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
    margin-inline: auto !important;
    border-radius: var(--radius-lg) !important;
}

@media (max-width: 640px) {
    .page-about .agent-hero__photo,
    .page-about .agent-photo img,
    .page-about .about-photo img,
    .page-about .broker-photo img,
    .page-about .profile-photo img,
    .page-about .portrait-card img,
    .page-about img[src*="Daisy"],
    .page-about img[src*="daisy"],
    .page-about img[src*="broker"] {
        max-width: min(100%, 340px) !important;
        border-radius: var(--radius-md) !important;
    }
}
/* END TRG MOBILE NAV + ABOUT PHOTO FIX */

/* TRG FINAL MOBILE MENU FULL LIST + ABOUT COMPLETE PHOTO */
@media (max-width: 980px) {
    html.nav-open,
    body.nav-open {
        overflow: hidden !important;
    }

    .nav-toggle,
    .mobile-nav-toggle,
    .menu-toggle,
    .site-header__toggle,
    .hamburger,
    .hamburger-menu {
        position: relative !important;
        z-index: 10002 !important;
    }

    body.nav-open .site-header,
    body.nav-open header {
        position: sticky !important;
        top: 0 !important;
        z-index: 10001 !important;
    }

    body.nav-open .site-header__nav,
    body.nav-open .site-nav,
    body.nav-open .primary-nav,
    body.nav-open .main-nav,
    body.nav-open .header-nav,
    body.nav-open nav[aria-label="Primary"],
    body.nav-open nav[aria-label="Main navigation"],
    .site-header__nav.is-open,
    .site-nav.is-open,
    .primary-nav.is-open,
    .main-nav.is-open,
    .header-nav.is-open,
    nav.is-open {
        position: fixed !important;
        top: var(--trg-header-height, 76px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: calc(100dvh - var(--trg-header-height, 76px)) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 1rem !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        background: #fff !important;
        box-shadow: 0 24px 48px rgba(0,0,0,.18) !important;
        z-index: 10000 !important;
    }

    body.nav-open .site-header__nav *,
    body.nav-open .site-nav *,
    body.nav-open .primary-nav *,
    body.nav-open .main-nav *,
    body.nav-open .header-nav *,
    .site-header__nav.is-open *,
    .site-nav.is-open *,
    .primary-nav.is-open *,
    .main-nav.is-open *,
    .header-nav.is-open * {
        max-height: none !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.nav-open .site-header__nav ul,
    body.nav-open .site-nav ul,
    body.nav-open .primary-nav ul,
    body.nav-open .main-nav ul,
    body.nav-open .header-nav ul,
    .site-header__nav.is-open ul,
    .site-nav.is-open ul,
    .primary-nav.is-open ul,
    .main-nav.is-open ul,
    .header-nav.is-open ul {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: .35rem !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    body.nav-open .site-header__nav li,
    body.nav-open .site-nav li,
    body.nav-open .primary-nav li,
    body.nav-open .main-nav li,
    body.nav-open .header-nav li,
    .site-header__nav.is-open li,
    .site-nav.is-open li,
    .primary-nav.is-open li,
    .main-nav.is-open li,
    .header-nav.is-open li {
        width: 100% !important;
        display: block !important;
    }

    body.nav-open .site-header__nav a,
    body.nav-open .site-nav a,
    body.nav-open .primary-nav a,
    body.nav-open .main-nav a,
    body.nav-open .header-nav a,
    .site-header__nav.is-open a,
    .site-nav.is-open a,
    .primary-nav.is-open a,
    .main-nav.is-open a,
    .header-nav.is-open a {
        width: 100% !important;
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: .85rem 1rem !important;
        border-radius: var(--radius-md) !important;
        color: var(--color-primary) !important;
        text-align: left !important;
    }

    body.nav-open .site-header__nav a:hover,
    body.nav-open .site-nav a:hover,
    body.nav-open .primary-nav a:hover,
    body.nav-open .main-nav a:hover,
    body.nav-open .header-nav a:hover {
        background: var(--color-bg-warm) !important;
        text-decoration: none !important;
    }
}

/* About page: show Daisy's complete photo scaled down, never cropped */
.page-about .agent-hero__photo-wrap,
.page-about .agent-photo,
.page-about .about-photo,
.page-about .broker-photo,
.page-about .profile-photo,
.page-about .portrait-card,
.page-about figure {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.page-about .agent-hero__photo,
.page-about .agent-photo img,
.page-about .about-photo img,
.page-about .broker-photo img,
.page-about .profile-photo img,
.page-about .portrait-card img,
.page-about figure img,
.page-about img[src*="Daisy"],
.page-about img[src*="daisy"],
.page-about img[src*="broker"] {
    display: block !important;
    width: auto !important;
    max-width: min(100%, 430px) !important;
    height: auto !important;
    max-height: min(78vh, 640px) !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    border-radius: var(--radius-lg) !important;
}

@media (max-width: 640px) {
    .page-about .agent-hero__photo,
    .page-about .agent-photo img,
    .page-about .about-photo img,
    .page-about .broker-photo img,
    .page-about .profile-photo img,
    .page-about .portrait-card img,
    .page-about figure img,
    .page-about img[src*="Daisy"],
    .page-about img[src*="daisy"],
    .page-about img[src*="broker"] {
        max-width: min(100%, 320px) !important;
        max-height: 70vh !important;
        border-radius: var(--radius-md) !important;
    }
}
/* END TRG FINAL MOBILE MENU FULL LIST + ABOUT COMPLETE PHOTO */
