﻿/* ==============================================================
   AmakanPH — Site.css
   ============================================================== */


/* ==============================
   1. Brand variables / base reset
   ============================== */
:root {
    --color-green: #2d5c4f;
    --color-green-dark: #234a3f;
    --color-orange: #c1502e;
    --color-orange-dark: #a54021;
    --color-orange-light: #f2a97a;
    --color-cream: #f5f0e6;
    --color-tan: #e4dccb;
    --color-text-dark: #26261f;
    --color-text-muted: #7a7566;
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #ffffff 0%, #f4f6f5 900px, #f4f6f5 100%);
    color: var(--color-text-dark);
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--color-green);
    margin: 0 0 0.5rem 0;
}
a {
    text-decoration: none;
    color: inherit;
}
a:hover, a:focus, a:active, a:visited { text-decoration: none; }
a:focus:not(:focus-visible) { outline: none; }


/* ==============================
   2. Header / Nav
   ============================== */
.site-header {
    background-color: #fff;
    padding: 0 32px 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: background-color 0.1s linear, transform 0.25s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: start;
    column-gap: 24px;
}
/* Explicit placement — hardens the desktop grid against the extra
   .mobile-nav-toggle child added for the hamburger menu, so a missing
   or late-loading mobile stylesheet can't push header-actions onto a
   second row. */
.mobile-nav-toggle { grid-column: 1; }
.header-inner > .brand { grid-column: 2; }
.header-inner > .header-center { grid-column: 3; }
.header-inner > .header-actions { grid-column: 4; }
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
}
.brand-row { display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--color-orange); font-size: 1.5rem; line-height: 1; }
.brand-accent { color: var(--color-orange); }
.brand-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-green);
    letter-spacing: normal;
    white-space: nowrap;
}
.brand-logo { height: 56px; width: auto; }
.brand:focus:not(:focus-visible) { outline: none; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0;
    margin: 0;
}
.main-nav a { color: var(--color-green); font-size: 1.4rem; font-weight: 500; }
.main-nav a:focus:not(:focus-visible) { outline: none; }
.main-nav a:hover { color: var(--color-orange); }
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle { cursor: pointer; color: var(--color-green, #2d5c4f); font-weight: 500; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    min-width: 160px;
    padding: 6px 0;
    z-index: 50;
}
.nav-dropdown-menu a { display: block; padding: 10px 16px; text-decoration: none; color: var(--color-text-dark, #333); }
.nav-dropdown-menu a:hover { background: var(--color-tan, #f5efe4); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
    min-height: 60px;
}
.btn-signin {
    background-color: var(--color-orange);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}
.btn-signin:hover { background-color: var(--color-orange-dark); }
.welcome-text { color: var(--color-green); font-size: 1.2rem; font-weight: 500; }
@media (max-width: 1100px) {
    .header-inner { grid-template-columns: 1fr; row-gap: 10px; }
    .site-header { padding-bottom: 14px; }
    .header-actions { justify-self: stretch; }
    .header-search-row { max-width: none; }
}
.header-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.header-user-avatar-fallback { background: var(--color-tan); color: var(--color-green); font-size: 11px; font-weight: 600; }

/* ==============================
   3. Header search + filters row
   ============================== */
.header-search-row {
    width: 100%;
    max-width: 700px;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.header-search-row .hero-search { width: 100%; max-width: 700px; margin: 0; }
.header-search-row .filters-toggle-row { max-width: 700px; margin: 6px 0 0; text-align: center; }
.header-search-row .search-filters-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    z-index: 60;
    max-width: 900px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}
.site-header .filters-toggle-link { font-size: 1.05rem; font-weight: 700; }
.hero-search {
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 10px auto 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 40px;
    padding: 6px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease;
}
.hero-search:focus-within { box-shadow: 0 12px 32px rgba(0,0,0,0.16); }
.search-input-big {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 24px;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-text-dark);
    border-radius: 40px;
    background: transparent;
}
.search-input-big::placeholder { color: var(--color-text-muted); font-weight: 400; }
.hero-search .search-btn-small {
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin-right: 2px;
    border-radius: 50%;
    font-size: 1.15rem;
    background-color: transparent !important;
    color: var(--color-orange) !important;
    border: none;
    box-shadow: none;
    transition: background-color 0.15s;
}
.hero-search .search-btn-small:hover { background-color: var(--color-cream) !important; }
.search-filters-panel {
    max-width: 900px;
    margin: 20px auto 0;
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.filter-row { display: flex; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-group { flex: 1; min-width: 180px; }
.filter-group label { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--color-green, #2d5c4f); }
.filter-checkboxes { display: flex; align-items: center; gap: 28px; }
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--color-green, #2d5c4f);
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.filter-price { flex: 2; min-width: 280px; }
.price-slider-wrap { position: relative; height: 30px; margin-top: 10px; }
.price-slider-wrap .price-slider-track {
    position: absolute; top: 12px; left: 0; right: 0; height: 6px; border-radius: 3px;
    background: linear-gradient(to right, #f4d4bd 0%, #b5522c 100%);
}
.price-slider-wrap .price-slider-range {
    position: absolute; top: 10px; height: 10px; border-radius: 3px;
    border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(181,82,44,0.4);
    background: transparent; pointer-events: none;
}
.price-slider-wrap input[type="range"] {
    -webkit-appearance: none !important; appearance: none !important;
    position: absolute !important; top: 8px !important; left: 0 !important;
    width: 100% !important; height: 18px !important; margin: 0 !important; padding: 0 !important;
    background: transparent !important; border: none !important; box-sizing: border-box !important;
    pointer-events: none;
}
.price-slider-wrap input[type="range"]::-webkit-slider-runnable-track { -webkit-appearance: none; background: transparent; height: 6px; border: none; }
.price-slider-wrap input[type="range"]::-moz-range-track { background: transparent; height: 6px; border: none; }
.price-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: all; width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-orange, #b5522c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer; margin-top: 0;
}
.price-slider-wrap input[type="range"]::-moz-range-thumb {
    pointer-events: all; width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-orange, #b5522c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}
.browse-filters-panel { margin: 24px 0 30px; }
.filters-toggle-row { max-width: 700px; margin: 8px auto 0; text-align: center; }
.filters-toggle-link, .filters-toggle-link:link, .filters-toggle-link:visited,
.filters-toggle-link:hover, .filters-toggle-link:active {
    display: inline-flex; align-items: center; gap: 6px; font-size: 1.05rem; font-weight: 600;
    color: var(--color-green, #2d5c4f); text-decoration: none; cursor: pointer;
}
.filters-toggle-link:hover { text-decoration: underline; }


/* ==============================
   4. Hero area (hosts the Featured Listings carousel)
   ============================== */
.hero-banner { background: transparent; text-align: center; padding-top: 8px; padding-bottom: 24px; }
.hero-banner-inner {
    position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; flex-direction: column; gap: 16px; text-align: left;
}
@media (max-width: 900px) { .hero-banner-inner { padding: 0 16px; gap: 14px; } }
@media (min-width: 1700px) { .hero-banner-inner { display: block; } }


/* ==============================
   5. Sidebar: Quick Links + Listings Near You
   ============================== */
.hero-quicklinks { display: flex; flex-direction: column; gap: 14px; }
.hero-post-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; }
.quicklinks-list {
    display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 14px;
    padding: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.quicklink-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
    color: var(--color-text-dark); font-size: 1.15rem; font-weight: 600; transition: background-color 0.15s;
}
.quicklink-item svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--color-orange); }
.quicklink-item:hover { background-color: var(--color-cream); }
.quicklink-seeall { color: var(--color-orange); font-weight: 600; }
.quicklink-seeall svg { display: none; }
.nearyou-panel { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.nearyou-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--color-green); margin: 0 0 12px; }
.nearyou-subtitle { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.85rem; color: var(--color-text-muted); }
.nearyou-item {
    display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-radius: 10px;
    cursor: pointer; transition: background-color 0.15s;
}
.nearyou-item:hover { background-color: var(--color-cream); }
.nearyou-thumb { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background-color: var(--color-tan); }
.nearyou-thumb img, .nearyou-thumb .card-image-placeholder {
    width: 100%; height: 100%; object-fit: cover; font-size: 0.6rem;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.nearyou-info { min-width: 0; }
.nearyou-price { color: var(--color-orange); font-weight: 700; font-size: 1.1rem; margin: 0; }
.nearyou-proptitle {
    font-size: 1rem; color: var(--color-text-dark); margin: 3px 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nearyou-seeall {
    display: block; text-align: right; color: var(--color-orange); font-size: 0.85rem;
    font-weight: 600; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--color-tan);
}
@media (max-width: 900px) {
    .quicklinks-list {
        flex-direction: row; overflow-x: auto; gap: 8px; padding: 4px 2px 8px;
        background: transparent; box-shadow: none; -webkit-overflow-scrolling: touch;
    }
    .quicklink-item { flex: 0 0 auto; white-space: nowrap; padding: 8px 16px; border-radius: 20px; background-color: var(--color-cream); }
    .quicklink-item:hover { background-color: var(--color-tan); }
    .quicklink-seeall { background-color: transparent; border: 1.5px solid var(--color-orange); }
}
@media (min-width: 1700px) {
    .hero-quicklinks { position: absolute; top: 0; right: 100%; margin-right: 48px; width: 280px; }
}


/* ==============================
   6. Messages/Offers floating callouts
   ============================== */
.right-sidebar-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.callout-stack { display: flex; flex-direction: column; gap: 10px; }
.callout-wrap { position: relative; }
.callout-btn {
    display: flex; align-items: center; gap: 10px; width: 100%; background: #fff;
    border: 1px solid var(--color-tan); border-radius: 28px; padding: 14px 20px;
    font-size: 1.05rem; font-weight: 600; color: var(--color-green); cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06); transition: background-color 0.15s, opacity 0.3s ease;
}
.callout-btn:hover { background-color: var(--color-cream); }
.callout-btn.dismissed { opacity: 0; pointer-events: none; }
.callout-badge {
    margin-left: auto; background-color: var(--color-orange); color: #fff; font-size: 0.8rem;
    font-weight: 700; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.callout-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; width: 320px;
    background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    z-index: 90; overflow: hidden;
}
.callout-dropdown.open { display: block; }
.callout-dropdown-header {
    padding: 14px 16px; font-weight: 700; font-size: 0.95rem; color: var(--color-green);
    border-bottom: 1px solid var(--color-tan);
}
.msgoffers-item { display: block; padding: 10px 16px; border-bottom: 1px solid #f0ede4; transition: background-color 0.15s; }
.msgoffers-item:last-child { border-bottom: none; }
.msgoffers-item:hover { background-color: var(--color-cream); }
.msgoffers-name { font-size: 0.85rem; font-weight: 600; color: var(--color-text-dark); margin: 0; }
.msgoffers-preview {
    font-size: 0.8rem; color: var(--color-text-muted); margin: 2px 0 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 1700px) {
    .right-sidebar-stack { position: absolute; top: 0; left: 100%; margin-left: 48px; margin-top: 0; width: 220px; }
}


/* ==============================
   7. Browse.aspx inline filter bar
   ============================== */
.browse-filter-bar-wrap { max-width: 1200px; margin: 24px auto 0; padding: 0 24px; }
.browse-filter-bar {
    display: flex; align-items: flex-end; gap: 20px; background: #fff;
    border: 1px solid var(--color-tan); border-radius: 14px; padding: 22px 26px; flex-wrap: wrap;
}
.bfb-field { display: flex; flex-direction: column; gap: 8px; }
.bfb-field label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--color-text-dark); }
.bfb-select {
    border: 1px solid var(--color-tan); border-radius: 10px; padding: 14px 16px; font-size: 1.15rem;
    font-family: 'Inter', sans-serif; color: var(--color-text-dark); background: #fff; min-width: 130px;
}
.bfb-offer-type .bfb-select { min-width: 150px; }
.bfb-location { flex: 1; min-width: 280px; }
.bfb-location-input {
    display: flex; align-items: center; border: 1px solid var(--color-tan); border-radius: 10px; padding: 4px 6px 4px 18px;
}
.bfb-text-input {
    flex: 1; border: none; outline: none; padding: 14px 6px; font-size: 1.15rem;
    font-family: 'Inter', sans-serif; color: var(--color-text-dark); background: transparent;
}
.bfb-search-btn {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border-radius: 8px; background: transparent; color: var(--color-orange); border: none; cursor: pointer; flex-shrink: 0;
}
.bfb-search-btn svg { width: 22px; height: 22px; }
.bfb-search-btn:hover { background-color: var(--color-cream); }
.bfb-narrow { min-width: 0; }
.bfb-advanced-btn {
    display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 10px; background: var(--color-green); color: #fff; border: none; cursor: pointer;
    flex-shrink: 0; align-self: flex-end;
}
.bfb-advanced-btn svg { width: 24px; height: 24px; }
.bfb-advanced-btn:hover { background-color: var(--color-green-dark); }
.bfb-advanced-panel {
    max-width: 1200px; background: #fff; border: 1px solid var(--color-tan); border-top: none;
    border-radius: 0 0 14px 14px; padding: 24px 26px; margin-top: -1px;
}
@media (max-width: 900px) {
    .browse-filter-bar { flex-direction: column; align-items: stretch; }
    .bfb-advanced-btn { align-self: stretch; width: 100%; }
}


/* ==============================
   8. Buttons (shared)
   ============================== */
.btn-primary {
    background-color: var(--color-green); color: #fff; border: none; padding: 14px 26px;
    border-radius: 20px; font-weight: 600; font-size: 1.2rem; cursor: pointer;
}
.btn-primary:hover { background-color: var(--color-green-dark); }
.btn-accent {
    background-color: var(--color-orange); color: #fff; border: none; padding: 14px 26px;
    border-radius: 20px; font-weight: 600; font-size: 1.2rem; cursor: pointer; width: 100%;
}
.btn-accent:hover { background-color: var(--color-orange-dark); }
.sidebar-card .btn-primary, .sidebar-card .btn-accent { padding: 10px 18px; font-size: 0.95rem; }


/* ==============================
   9. Featured Listings grid + cards
   ============================== */
.listings-section { max-width: 1200px; margin: 40px auto; padding: 0 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.see-all { color: var(--color-orange); font-size: 1.15rem; font-weight: 600; }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.property-card {
    background-color: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex; flex-direction: column; height: 100%;
}
.card-image-wrap { position: relative; aspect-ratio: var(--listing-photo-ratio, 4 / 3); width: 100%; overflow: hidden; }
.card-image-wrap-lg { aspect-ratio: var(--listing-photo-ratio, 4 / 3); }
.card-image-placeholder {
    background-color: var(--color-tan); width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; color: var(--color-text-muted); font-size: 1.05rem;
}
.tag-badge {
    position: absolute; top: 14px; left: 14px; background-color: var(--color-green); color: #fff;
    font-size: 0.95rem; font-weight: 600; padding: 5px 14px; border-radius: 14px; z-index: 2;
}
.tag-badge.rent { background-color: var(--color-orange); }
.save-icon {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background-color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-orange);
    font-size: 1.15rem; box-shadow: 0 1px 3px rgba(0,0,0,0.15); z-index: 2; cursor: pointer; border: none;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body .price { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700; color: var(--color-text-dark); margin: 0 0 4px 0; }
.card-body .prop-title { font-weight: 600; font-size: 1.15rem; margin: 0 0 4px 0; color: var(--color-text-dark); }
.card-body .prop-location { color: var(--color-orange); font-size: 1.05rem; margin: 0 0 6px 0; }
.card-body .prop-specs { color: var(--color-text-muted); font-size: 1.05rem; margin: 0 0 16px 0; }
.card-body .btn-accent { margin-top: auto; }
.card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-card .btn-accent {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center;
}
.property-card .card-body .price.price-highlight { color: #c9622a !important; font-weight: 700; font-size: 1.8rem !important; }
.prop-uploader { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 4px; }


/* ==============================
   10. Generic card / Footer
   ============================== */
.card { background-color: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }


/* ==============================
   11. Auth pages (Login / Register)
   ============================== */
.auth-page { display: flex; min-height: calc(100vh - 140px); }
.auth-side {
    flex: 1; background-color: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center; padding: 60px 50px;
}
.auth-eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--color-green);
    font-size: 1.25rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 36px;
}
.auth-eyebrow::before { content: ""; display: inline-block; width: 32px; height: 2px; background-color: var(--color-green); }
.auth-headline {
    font-family: 'Playfair Display', serif; font-size: 5.2rem; line-height: 1.15;
    color: var(--color-text-dark); margin-bottom: 32px; max-width: 640px;
}
.auth-headline em { color: var(--color-green); font-style: italic; }
.auth-body { color: var(--color-text-muted); font-size: 1.6rem; line-height: 1.7; max-width: 520px; }
.auth-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form-wrap { width: 100%; max-width: 480px; }
.auth-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--color-tan); margin-bottom: 28px; }
.auth-tabs a {
    padding-bottom: 12px; font-family: 'Playfair Display', serif; font-weight: 700;
    font-size: 1.45rem; color: var(--color-text-muted); position: relative;
}
.auth-tabs a.active { color: var(--color-green); }
.auth-tabs a.active::after {
    content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--color-orange);
}
.auth-switch { text-align: center; margin-top: 20px; font-size: 1.2rem; color: var(--color-text-muted); }
.auth-switch a { color: var(--color-orange); font-weight: 600; }
.auth-logo { width: 80px; height: auto; margin-bottom: 16px; }
.btn-auth {
    width: 100%; background-color: var(--color-orange); color: #fff; border: none;
    padding: 20px; border-radius: 24px; font-weight: 700; font-size: 1.4rem; cursor: pointer;
}
.btn-auth:hover { background-color: var(--color-orange-dark); }
.auth-link-small { font-size: 12px; color: var(--color-orange, #c1502e); text-decoration: none; }
.auth-link-small:hover { text-decoration: underline; }


/* ==============================
   12. Form inputs (shared: Login, Register, etc.)
   ============================== */
.form-input {
    width: 100%; padding: 18px 20px; border: 1px solid var(--color-tan); border-radius: 8px;
    font-size: 1.4rem; font-family: 'Inter', sans-serif; margin-bottom: 20px;
    background-color: #fff; color: var(--color-text-dark);
}
.form-input:focus { outline: none; border-color: var(--color-green); }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-group label { display: block; font-size: 1.2rem; font-weight: 600; color: var(--color-text-dark); margin-bottom: 8px; }
.field-error { display: block; color: #b02a2a; font-size: 1.1rem; margin-top: -14px; margin-bottom: 14px; }
.field-hint { display: block; font-size: 1.1rem; color: var(--color-text-muted); margin-top: -14px; margin-bottom: 14px; }
.form-message { display: block; margin-bottom: 16px; font-size: 1.2rem; }
.form-message.error { color: #b02a2a; background-color: #fbeaea; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.form-message.success { color: var(--color-green); background-color: #e6f0ec; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.radio-list label { margin-right: 24px; margin-left: 4px; display: inline-block; font-weight: 500; font-size: 1.1rem; }
.radio-list input[type="radio"] { vertical-align: middle; }


/* ==============================
   13. Dashboard layout (Buyer/Seller/Admin)
   ============================== */
.dashboard-layout { display: flex; max-width: 1200px; margin: 0 auto; padding: 32px 24px; gap: 28px; }
.dashboard-sidebar { width: 220px; flex-shrink: 0; }
.dashboard-sidebar a { display: block; padding: 12px 16px; border-radius: 8px; font-size: 1.1rem; font-weight: 500; color: var(--color-text-dark); margin-bottom: 6px; }
.dashboard-sidebar a.active { background-color: var(--color-green); color: #fff; }
.dashboard-sidebar a:hover:not(.active) { background-color: #fff; }
.dashboard-main { flex: 1; min-width: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background-color: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-card .stat-icon { color: var(--color-orange); font-size: 1.3rem; margin-bottom: 10px; }
.stat-card .stat-value { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--color-text-dark); }
.stat-card .stat-label { color: var(--color-text-muted); font-size: 0.95rem; margin-top: 4px; }
.upgrade-banner { display: flex; justify-content: space-between; align-items: center; background: #2d5c4f; color: #f5f1e6; padding: 20px 28px; border-radius: 8px; margin-top: 20px; }
.upgrade-banner-text h3 { margin: 0 0 4px 0; font-family: 'Georgia', serif; }
.upgrade-banner-text p { margin: 0; opacity: 0.85; font-size: 14px; }
.btn-upgrade {
    display: inline-block; background: #c9622a; color: #ffffff !important; padding: 10px 22px; border-radius: 6px;
    text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background 0.15s ease, transform 0.1s ease;
}
.btn-upgrade:hover { background: #b5541f; color: #ffffff !important; transform: translateY(-1px); }
.btn-upgrade::after { content: " →"; }
.upgrade-page { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.upgrade-page h1 { font-family: 'Georgia', serif; color: #2d5c4f; margin: 0 0 8px 0; }
.upgrade-page > p { color: #6b6b63; margin: 0 0 32px 0; font-size: 15px; }
.error-banner { display: block; background: #fce8e6; color: #a33; padding: 12px 16px; border-radius: 6px; margin-bottom: 24px; font-size: 14px; }
.plan-options { display: flex; gap: 24px; }
.plan-card { flex: 1; background: #fff; border: 1px solid #e2e0d8; border-radius: 12px; padding: 32px 28px; position: relative; }
.plan-card.featured { border: 2px solid #c9622a; }
.plan-card.featured::before {
    content: "Best value"; position: absolute; top: -12px; left: 28px; background: #c9622a; color: #fff;
    font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 12px;
}
.plan-card h2 { font-family: 'Georgia', serif; color: #2d5c4f; margin: 0 0 12px 0; font-size: 18px; }
.plan-card .price { font-size: 32px; font-weight: 600; color: #1a1a1a; margin: 0 0 24px 0; }
.plan-card .price span { font-size: 14px; font-weight: 400; color: #6b6b63; }
.plan-card .savings { font-size: 13px; color: #2d5c4f; font-weight: 600; margin: -16px 0 20px 0; }
.plan-card .btn-primary { width: 100%; background: #2d5c4f; color: #fff; border: none; padding: 12px 0; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.plan-card .btn-primary:hover { background: #234a3f; }
.plan-card.featured .btn-primary { background: #c9622a; }
.plan-card.featured .btn-primary:hover { background: #b5541f; }
.panels-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background-color: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-header h3 { margin: 0; font-size: 1.2rem; }
.panel-viewall { color: var(--color-orange); font-size: 0.95rem; font-weight: 600; }
.list-row { padding: 12px 0; border-bottom: 1px solid var(--color-tan); }
.list-row:last-child { border-bottom: none; }
.list-row-title { font-weight: 600; font-size: 1.05rem; color: var(--color-text-dark); }
.list-row-sub { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 2px; }
.offer-pill { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; margin-top: 6px; }
.offer-pill.you { background-color: var(--color-tan); color: var(--color-text-dark); }
.offer-pill.seller { background-color: #f5ddd3; color: var(--color-orange-dark); }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; }
.status-pill.pending { background-color: #f0e5c8; color: #7a5c0a; }
.status-pill.countered { background-color: #f5ddd3; color: var(--color-orange-dark); }
.status-pill.approved, .status-pill.accepted { background-color: #d9ecd9; color: #2d6b2d; }
.status-pill.rejected, .status-pill.declined { background-color: #f2d5d5; color: #a32d2d; }
.status-pill.active { background-color: #d9ecd9; color: #2d6b2d; }
.status-pill.suspended { background-color: #f2d5d5; color: #a32d2d; }
.status-pill.sold { background-color: #d6d6d6; color: #4a4a4a; }

.dash-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dash-topbar .dashboard-welcome { margin: 0; font-size: 2.1rem; }
.plan-pill { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--color-tan); padding: 8px 8px 8px 16px; border-radius: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.plan-pill-text { font-size: 1.05rem; color: var(--color-text-muted); }
.plan-pill-text strong { color: var(--color-text-dark); }
.plan-pill-btn { background-color: var(--color-orange); color: #fff !important; border: none; padding: 10px 20px; border-radius: 20px; font-weight: 700; font-size: 0.95rem; cursor: pointer; white-space: nowrap; }
.plan-pill-btn:hover { background-color: var(--color-orange-dark); }
.stat-strip { background-color: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); display: flex; margin-bottom: 22px; overflow: hidden; }
.stat-strip-item { flex: 1; padding: 24px 26px; text-align: left; border-right: 1px solid var(--color-tan); }
.stat-strip-item:last-child { border-right: none; }
.stat-strip-value { font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 700; color: var(--color-text-dark); margin: 0; font-variant-numeric: tabular-nums; }
.stat-strip-value.accent { color: var(--color-orange); }
.stat-strip-label { color: var(--color-text-muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.4px; margin: 6px 0 0; }
.activity-panel { background-color: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 6px 24px; }
.activity-panel-head { padding: 18px 0 6px; }
.activity-panel-head h3 { margin: 0; font-size: 1.45rem; }
.activity-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-tan); }
.activity-item:last-child { border-bottom: none; }
.activity-tag {
    flex-shrink: 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
    padding: 6px 12px; border-radius: 8px; width: 108px; text-align: center;
}
.activity-tag.sent { background-color: #e3ede9; color: var(--color-green); }
.activity-tag.received { background-color: #f7e3d9; color: var(--color-orange); }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-weight: 600; font-size: 1.1rem; color: var(--color-text-dark); }
.activity-sub { margin-top: 5px; font-size: 0.95rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; }
.activity-price { font-weight: 700; color: var(--color-text-dark); font-size: 1.1rem; white-space: nowrap; }
.activity-time { color: var(--color-text-muted); font-size: 0.9rem; white-space: nowrap; margin-left: 14px; }
@media (max-width: 900px) {
    .stat-strip { flex-direction: column; }
    .stat-strip-item { border-right: none; border-bottom: 1px solid var(--color-tan); }
    .stat-strip-item:last-child { border-bottom: none; }
    .activity-item { flex-wrap: wrap; }
    .activity-time { margin-left: 0; width: 100%; }
}


/* ==============================
   14. Property Detail page
   ============================== */
.detail-layout { max-width: 1200px; margin: 0 auto; padding: 32px 24px; display: flex; gap: 28px; }
.detail-main { flex: 2; min-width: 0; }
.detail-sidebar { flex: 1; min-width: 280px; }
.detail-below-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; }
.detail-below-section h3 { font-family: 'Playfair Display', serif; color: var(--color-green); margin-bottom: 16px; }
.detail-below-section + .detail-below-section { padding-top: 24px; border-top: 1px solid #eee; }
.back-link { display: inline-block; color: var(--color-green); font-weight: 600; margin-bottom: 16px; }
.gallery-main { width: 100%; height: 560px; border-radius: 10px; overflow: hidden; background-color: var(--color-tan); margin-bottom: 10px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main.placeholder { display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.gallery-thumbs { display: flex; gap: 8px; margin-bottom: 20px; }
.gallery-thumbs img { width: 100px; height: 76px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active-thumb { border-color: var(--color-orange); }
.detail-title { font-size: 1.7rem; margin-bottom: 4px; }
.detail-location { color: var(--color-orange); font-size: 1.1rem; margin-bottom: 16px; }
.detail-specs {
    display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid var(--color-tan);
    border-bottom: 1px solid var(--color-tan); margin-bottom: 20px; font-size: 1.05rem; color: var(--color-text-dark);
}
.detail-description { font-size: 1.1rem; line-height: 1.7; color: var(--color-text-dark); }
.sidebar-card { background-color: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 20px; }
.sidebar-price { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--color-text-dark); margin-bottom: 16px; }
.seller-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seller-avatar {
    width: 44px; height: 44px; border-radius: 50%; background-color: var(--color-tan);
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--color-green);
}
.seller-name { font-weight: 600; font-size: 1.05rem; }
.seller-role { color: var(--color-text-muted); font-size: 0.9rem; }
.offer-history-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--color-tan); font-size: 1rem; }


/* ==============================
   15. Messages page + chat input bar
   ============================== */
.messages-layout {
    display: flex; max-width: 1200px; margin: 0 auto; height: calc(100vh - 160px);
    background-color: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; width: 100%;
}
.conv-list { width: 320px; max-width: 35%; flex-shrink: 0; overflow-y: auto; background-color: #eaf2ee; }
.conv-item { display: block; padding: 16px 20px; border-bottom: 1px solid var(--color-tan); }
.conv-item:hover { background-color: #ffffff; }
.conv-item.active-conv { background-color: #ffffff !important; border-left: 4px solid var(--color-orange) !important; }
.conv-item-name { font-weight: 700; font-size: 1.2rem; color: var(--color-text-dark); }
.conv-item-property { color: var(--color-orange); font-size: 1rem; margin: 2px 0; }
.conv-item-preview { color: var(--color-text-muted); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-header { padding: 18px 24px; border-bottom: 1px solid var(--color-tan); }
.chat-header-name { font-weight: 700; font-size: 1.3rem; }
.chat-header-property { color: var(--color-orange); font-size: 1.05rem; }
.chat-thread { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.msg-bubble { max-width: 65%; padding: 14px 18px; border-radius: 14px; font-size: 1.25rem; line-height: 1.6; }
.msg-bubble.theirs { align-self: flex-start; background-color: var(--color-cream); color: var(--color-text-dark); }
.msg-bubble.mine { align-self: flex-end; background-color: var(--color-green); color: #fff; }
.msg-bubble.offer-bubble { border: 2px solid var(--color-orange); background-color: #fff; color: var(--color-text-dark) !important; }
.msg-bubble.offer-bubble .offer-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--color-orange); letter-spacing: 1px; margin-bottom: 4px; }
.msg-bubble .msg-time { font-size: 0.75rem; opacity: 0.7; margin-top: 4px; }
.msg-bubble img.attachment-thumb { max-width: 220px !important; max-height: 220px !important; width: auto !important; height: auto !important; border-radius: 8px; margin-top: 6px; display: block; object-fit: cover; }
.no-conv-selected { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); font-size: 1.1rem; }
@media (max-width: 768px) {
    /* Mobile Messages: true full-screen takeover, like a native app's
       conversation view — not just a tall in-flow block. The previous
       calc(100vh - 160px) approach guessed at header/footer height and
       still left .messages-layout inside the normal document flow, so
       the page could scroll past it and reveal the site header/footer/
       dashboard sidebar underneath (visible as the extra empty space +
       green footer bleeding in at the bottom). position:fixed + inset:0
       pins it to the actual device viewport at all times, completely
       covering everything behind it regardless of the underlying page's
       real height — the same effect a real app's full-screen modal has.
       100dvh (dynamic viewport height) is used over 100vh where
       supported so it accounts for the mobile browser's address bar
       instead of leaving a gap; the vh line above it is the fallback
       for browsers that don't understand dvh. Messages.aspx sets
       .conv-open on .messages-layout (server-side, via
       MessagesLayoutCssClass) whenever a conversation is selected,
       which flips which panel is visible. */
    .messages-layout {
        flex-direction: column; position: fixed; inset: 0; z-index: 1000;
        height: 100vh; height: 100dvh; background: #fff;
    }
    .conv-list { width: 100%; max-width: 100%; height: 100%; max-height: none; border-bottom: none; }
    .chat-panel { height: 100%; display: none; }
    .messages-layout.conv-open .conv-list { display: none; }
    .messages-layout.conv-open .chat-panel { display: flex; }

    /* Desktop-only collapse/expand controls for the two-panel layout
       don't apply once list and chat are mutually exclusive screens —
       the back arrow in the chat header replaces their purpose here. */
    .msgs-hamburger-btn, .msgs-expand-btn { display: none !important; }
    .msgs-mobile-back-btn { display: flex !important; }
}
.chat-input-row { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--color-tan); }
.chat-input-pill { flex: 1; display: flex; align-items: center; gap: 10px; background-color: var(--color-cream); border-radius: 30px; padding: 10px 12px; }
.chat-input-pill input[type="text"], .chat-input-pill .form-input {
    flex: 1; border: none; background: transparent; padding: 16px 12px; font-size: 1.5rem;
    font-family: 'Inter', sans-serif; margin-bottom: 0; outline: none; color: var(--color-text-dark);
}
.icon-btn {
    display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
    background-color: var(--color-green); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
    border: none; flex-shrink: 0; transition: background-color 0.15s;
}
.icon-btn:hover { background-color: var(--color-green-dark); }
.icon-btn.send-btn { background-color: var(--color-orange); }
.icon-btn.send-btn:hover { background-color: var(--color-orange-dark); }
.attach-hidden-input { display: none !important; }
.attach-filename { font-size: 0.9rem; color: var(--color-text-muted); padding: 0 8px; display: none; white-space: nowrap; }
.attach-preview-row { display: none; gap: 10px; padding: 12px 24px 0; overflow-x: auto; }
.attach-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background-color: var(--color-cream); flex-shrink: 0; }
.attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-thumb-file { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--color-text-muted); }
.attach-thumb-file span { font-size: 0.6rem; margin-top: 2px; color: var(--color-text-muted); text-align: center; padding: 0 2px; }
.attach-thumb-remove {
    position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
    background-color: rgba(0,0,0,0.6); color: #fff; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1;
}


/* ==============================
   16. Notification bell + dropdown
   ============================== */
.notif-bell-wrap { position: relative; }
.notif-bell {
    background-color: transparent; border: none; width: 60px; height: 60px; border-radius: 0; font-size: 1.5rem;
    cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center;
    color: var(--color-orange-light); transition: background-color 0.15s;
}
.notif-bell:hover { color: var(--color-orange-dark); }
.notif-badge {
    position: absolute; top: -2px; right: -2px; background-color: #fff; color: var(--color-green); font-size: 0.7rem;
    font-weight: 700; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; line-height: 1.3;
    border: 2px solid var(--color-orange-light);
}
.notif-dropdown {
    display: none; position: absolute; top: 54px; right: 0; width: 360px; max-height: 460px; overflow-y: auto;
    background-color: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.18); z-index: 100;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header { padding: 18px 22px; font-weight: 700; font-size: 1.15rem; color: var(--color-green); border-bottom: 1px solid var(--color-tan); }
.notif-item { display: block; padding: 14px 22px; border-bottom: 1px solid var(--color-tan); transition: background-color 0.15s; }
.notif-item:hover { background-color: var(--color-cream); }
.notif-item.unread { background-color: #fdf3e7; }
.notif-item-title { font-weight: 600; font-size: 1rem; color: var(--color-text-dark); }
.notif-item-msg { font-size: 0.9rem; color: var(--color-text-muted); margin-top: 3px; }
.notif-item-time { font-size: 0.8rem; color: var(--color-orange); margin-top: 5px; }
.notif-empty { padding: 24px 20px; text-align: center; color: var(--color-text-muted); font-size: 0.95rem; }
.notif-viewall { display: block; text-align: center; padding: 12px; font-weight: 600; color: var(--color-orange); font-size: 0.9rem; }


/* ==============================
   17. Property preview modal + comments
   ============================== */
.prop-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.65);
    z-index: 1000; align-items: center; justify-content: center; padding: 24px;
}
.prop-modal-overlay.open { display: flex; }
.prop-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 1320px; max-height: 94vh; overflow-y: auto; position: relative; }
.prop-modal-close {
    position: absolute; top: 14px; right: 18px; background: rgba(0,0,0,0.4); color: #fff; border: none;
    border-radius: 50%; width: 32px; height: 32px; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 3;
}
.prop-modal-content { display: flex; flex-wrap: wrap; }
.prop-modal-gallery { position: relative; background: #000; flex: 1 1 58%; min-width: 380px; min-height: 600px; }
.prop-modal-gallery img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; display: block; }
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: none;
    border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; z-index: 2;
}
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; }
.gallery-dot.active { background: #fff; }
.prop-modal-body { flex: 1 1 42%; min-width: 340px; padding: 36px; display: flex; flex-direction: column; }
.prop-modal-price { color: var(--color-orange, #b5522c); font-weight: 700; font-size: 1.9rem; margin: 0 0 6px; }
.prop-modal-title { margin: 0 0 8px; font-family: 'Playfair Display', serif; font-size: 1.7rem; }
.prop-modal-address { color: #666; margin: 0 0 16px; font-size: 0.95rem; }
.prop-modal-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.prop-modal-tag { background: var(--color-tan, #e8dcc8); color: var(--color-green, #2d5c4f); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.prop-modal-specs { color: #555; font-size: 0.9rem; }
.prop-modal-desc-wrap { margin-bottom: 24px; }
.prop-modal-desc-wrap h4 { margin: 0 0 8px; font-size: 0.95rem; color: var(--color-green, #2d5c4f); }
.prop-modal-description { color: #444; line-height: 1.6; font-size: 0.95rem; margin: 0; white-space: pre-line; }
.prop-modal-seller { display: flex; align-items: center; gap: 10px; margin: auto 0 20px; padding-top: 16px; border-top: 1px solid #eee; }
.seller-avatar-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.seller-avatar-fallback {
    width: 42px; height: 42px; border-radius: 50%; background: var(--color-tan, #e8dcc8); color: var(--color-green, #2d5c4f);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.prop-modal-seller-name { font-weight: 600; }
.prop-modal-actions { display: flex; gap: 10px; }
.prop-modal-actions a { flex: 1; text-align: center; text-decoration: none; }
.prop-modal-actions #propModalMessageBtn {
    background: #2d5c4f; color: #fff !important; text-decoration: none; text-align: center;
    padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 14px;
}
.prop-modal-actions #propModalMessageBtn:hover { background: #234a3f; }
.prop-modal-actions #propModalOfferBtn {
    background: #c9622a; color: #fff !important; text-decoration: none; text-align: center;
    padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 14px;
}
.prop-modal-actions #propModalOfferBtn:hover { background: #b5541f; }
@media (max-width: 720px) {
    .prop-modal-content { flex-direction: column; }
    .prop-modal-gallery, .prop-modal-gallery img { min-height: 300px; }
}
.prop-modal-comments { border-top: 1px solid var(--color-tan); margin-top: 20px; padding-top: 16px; }
.comments-list { max-height: 240px; overflow-y: auto; margin-bottom: 12px; }
.comment-item { padding: 10px 0; border-bottom: 1px solid #f0ede4; }
.comment-header { display: flex; justify-content: space-between; }
.comment-author { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--color-text-muted); }
.comment-text { margin: 6px 0; font-size: 1.5rem; line-height: 1.6; color: #2a2a2a; }
.comment-actions { display: flex; gap: 24px; margin-top: 4px; }
.comment-edit-link { font-size: 0.9rem; color: #c9622a; font-weight: 600; }
.comment-delete { font-size: 0.9rem; color: #a32d2d; font-weight: 600; }
.comment-input-row { display: flex; gap: 10px; align-items: flex-start; }
.comment-avatar-img { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-avatar-fallback {
    width: 32px; height: 32px; min-width: 32px; border-radius: 50%; background-color: var(--color-tan); color: var(--color-green);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.comment-menu-wrap { position: relative; display: inline-block; }
.comment-menu-toggle { font-size: 1.2rem; color: var(--color-text-muted); font-weight: 700; cursor: pointer; }
.comment-menu { position: absolute; top: 22px; left: 0; background: #fff; border: 1px solid #e2e0d8; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); z-index: 10; min-width: 100px; overflow: hidden; }
.comment-menu a { display: block; padding: 10px 16px; font-size: 0.9rem; color: #2a2a2a; text-decoration: none; }
.comment-menu a:hover { background: var(--color-cream); }
.reply-input-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.reply-input-row .edit-save-btn { width: auto; background: transparent; color: #2d5c4f; font-weight: 600; font-size: 1.2rem; padding: 0; border: none; border-radius: 0; }
.reply-input-row .edit-save-btn:hover { text-decoration: underline; }
.reply-send-btn { background: #2d5c4f; color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; flex-shrink: 0; }
.reply-send-btn:hover { background: #234a3f; }


/* ==============================
   18. Featured Listings carousel (lives in the hero)
   ============================== */
.featured-carousel-wrap { position: relative; max-width: 1100px; margin: 0 auto; }
.featured-carousel-viewport { overflow: hidden; border-radius: 14px; }
.featured-carousel-track { display: flex; transition: transform 0.6s ease; }
.carousel-slide { flex: 0 0 100%; width: 100%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.08); display: flex; align-items: stretch; flex-wrap: wrap; }
.carousel-slide-image { position: relative; width: 100%; height: 500px; cursor: pointer; overflow: hidden; }
.carousel-slide-image img, .carousel-slide-image .card-image-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide-info { position: relative; overflow: hidden; flex: 1 1 24%; min-width: 240px; display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; text-align: left; }
.carousel-slide-info .price { font-size: 1.9rem; color: var(--color-orange, #b5522c); font-weight: 700; margin: 0 0 6px; }
.carousel-slide-info .prop-title { font-size: 1.6rem; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--color-green, #2d5c4f); margin: 0 0 10px; }
.carousel-slide-info .prop-location { font-size: 1.15rem; color: #666; margin: 0 0 10px; }
.carousel-slide-info .prop-specs { font-size: 0.95rem; color: #555; margin: 0 0 24px; }
.carousel-slide-info .btn-accent { width: auto; align-self: flex-start; padding: 14px 36px; }
.carousel-slide-gallery { position: relative; flex: 1 1 76%; min-width: 320px; aspect-ratio: var(--listing-photo-ratio, 4 / 3); cursor: pointer; overflow: hidden; }
.carousel-slide-gallery img, .carousel-slide-gallery .card-image, .carousel-slide-gallery .card-image-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-featured-badge {
    position: absolute; top: 18px; left: -90px; width: 340px; transform: rotate(-45deg); display: flex; align-items: center;
    justify-content: center; gap: 5px; text-align: center; font-size: 1.4rem; font-weight: 700; padding: 14px 0; z-index: 2;
    white-space: nowrap; background-color: var(--color-green); color: #d9ece5;
}
.carousel-featured-badge.nearby { font-size: 1.2rem; letter-spacing: -0.2px; }
.carousel-featured-badge .badge-star { color: #FFD700; font-size: 1.7em; line-height: 1; }
.carousel-slide-gallery .tag-badge { font-size: 1.05rem; padding: 7px 18px; border-radius: 16px; top: 16px; left: 16px; }
.carousel-arrow {
    position: absolute; top: 45%; transform: translateY(-50%); background: #fff; border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); border-radius: 50%; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; z-index: 3;
}
.carousel-arrow-left { left: -20px; }
.carousel-arrow-right { right: -20px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; cursor: pointer; transition: background 0.2s; }
.carousel-dot.active { background: var(--color-orange, #b5522c); }
@media (max-width: 720px) {
    /* Root cause of the horizontal overflow: .carousel-slide-info and
       .carousel-slide-gallery each carry a desktop min-width (240px /
       320px). In nested flexbox, a child's min-width can force the row
       wider than its container even after wrapping onto separate lines
       — each wrapped item still refuses to shrink below its own
       minimum. Overriding both to min-width:0 lets them actually shrink
       to fit the phone's width instead of pushing content off-screen. */
    .carousel-slide-info, .carousel-slide-gallery { flex: 1 1 100%; width: 100%; min-width: 0; }
    .carousel-slide-info { padding: 20px; overflow: hidden; }

    /* The diagonal ribbon (fixed 340px wide, rotated -45deg) is sized
       for a wide desktop card and doesn't fit a phone screen at all —
       it was extending past the viewport and clipping through the
       title text. Swapped to a small flat pill above the price
       instead of trying to scale the rotated version down. */
    .carousel-featured-badge {
        position: static; display: inline-flex; width: auto; transform: none;
        padding: 5px 14px; border-radius: 14px; font-size: 0.85rem; margin-bottom: 10px; white-space: nowrap;
    }

    .carousel-arrow-left { left: 4px; }
    .carousel-arrow-right { right: 4px; }
}

.plan-explainer-panel { background-color: #fff; border-radius: 14px; padding: 32px; margin-top: 24px; border: 1px solid rgba(0,0,0,0.06); }
.plan-explainer-panel h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; color: var(--color-green); margin: 0 0 20px; font-weight: 700; }
.plan-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan-feature-col { border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 22px 24px; position: relative; transition: border-color 0.15s ease; }
.plan-feature-col h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; color: var(--color-text-dark, #1f2d28); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.plan-feature-col.current { border-color: var(--color-green); background-color: rgba(45, 92, 79, 0.03); }
.current-tag {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.65rem; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-green); background-color: rgba(45, 92, 79, 0.1); padding: 3px 10px; border-radius: 20px;
}
.plan-feature-col ul { list-style: none; margin: 0; padding: 0; }
.plan-feature-col ul li { font-size: 0.92rem; color: var(--color-text-muted, #6b7570); padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid rgba(0,0,0,0.04); }
.plan-feature-col ul li:last-child { border-bottom: none; }
.plan-feature-col ul li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background-color: var(--color-green); opacity: 0.5; }
.plan-feature-col.current ul li::before { opacity: 1; background-color: var(--color-orange, #c1541f); }
.plan-feature-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--color-orange, #c1541f); text-decoration: none; transition: gap 0.15s ease; }
.plan-feature-cta:hover { gap: 10px; }
@media (max-width: 720px) { .plan-feature-grid { grid-template-columns: 1fr; } }


/* ==============================
   19. Admin: Active Featured / Active Premium expiry cues
   ============================== */
.expiry-urgent { color: #a32d2d; font-weight: 600; }
.expiry-soon { color: var(--color-orange); font-weight: 600; }
.expiry-ok { color: var(--color-text-muted); }


/* ==============================================================
   20. Messages Redesign
   ============================================================== */
.msgs-v2 .conv-list { background-color: #fafaf9; display: flex; flex-direction: column; padding: 0; }
.msgs-sidebar-header { display: flex; align-items: center; gap: 12px; padding: 20px 20px 12px; }
.msgs-sidebar-header h3 { margin: 0; font-size: 1.4rem; }
.msgs-hamburger-btn { background: none; border: none; color: var(--color-text-dark); cursor: pointer; padding: 4px; display: flex; flex-shrink: 0; }
.msgs-search-wrap { display: flex; align-items: center; gap: 8px; margin: 0 16px 12px; padding: 12px 16px; background-color: #fff; border: 1px solid var(--color-tan); border-radius: 30px; }
.msgs-search-wrap svg { color: var(--color-text-muted); flex-shrink: 0; }
.msgs-search-wrap input { flex: 1; border: none; outline: none; background: transparent; font-size: 1rem; font-family: 'Inter', sans-serif; color: var(--color-text-dark); }
.msgs-filter-tabs { display: flex; gap: 8px; margin: 0 16px 14px; }
.msgs-tab { background: none; border: none; padding: 8px 16px; border-radius: 16px; font-size: 0.95rem; font-weight: 600; color: var(--color-text-muted); cursor: pointer; }
.msgs-tab.active { background-color: var(--color-green); color: #fff; }
.msgs-v2 .conv-item { display: flex; gap: 12px; padding: 12px 16px; margin: 0 8px 4px; border-radius: 14px; border: none; align-items: flex-start; }
.msgs-v2 .conv-item:hover { background-color: #fff; }
.msgs-v2 .conv-item.active-conv { background-color: #fdeee4; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.conv-item-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.conv-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.conv-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color: var(--color-tan); color: var(--color-green); font-weight: 700; font-size: 1.1rem; }
.conv-item-body { flex: 1; min-width: 0; }
.conv-item-toprow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conv-item-name { font-weight: 700; font-size: 1.1rem; color: var(--color-text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item-time { font-size: 0.8rem; color: var(--color-text-muted); flex-shrink: 0; }
.conv-item-property { color: var(--color-orange); font-size: 0.9rem; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item-bottomrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.conv-item-preview { color: var(--color-text-muted); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-unread-badge { flex-shrink: 0; background-color: var(--color-orange); color: #fff; font-size: 0.72rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.msgs-welcome-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--color-text-muted); text-align: center; padding: 40px; }
.msgs-welcome-state svg { color: var(--color-tan); margin-bottom: 16px; }
.msgs-welcome-state h3 { margin: 0 0 6px; color: var(--color-text-dark); }
.msgs-welcome-state p { margin: 0; font-size: 0.95rem; }
.msgs-header-v2 { padding: 18px 24px; display: flex; align-items: center; gap: 14px; }
.chat-header-avatar-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.chat-header-avatar-fallback { width: 60px; height: 60px; border-radius: 50%; background-color: var(--color-tan); color: var(--color-green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.msgs-header-v2 .chat-header-name { font-size: 1.4rem; }
.msgs-header-v2 .chat-header-property { font-size: 1.1rem; }
.pinned-prop-card { display: flex; gap: 16px; align-items: center; margin: 0 24px 16px; padding: 16px; background-color: #fafaf9; border: 1px solid var(--color-tan); border-radius: 14px; flex-wrap: wrap; }
.pinned-prop-img { width: 90px; height: 70px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background-color: var(--color-tan); }
.pinned-prop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pinned-prop-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--color-text-muted); }
.pinned-prop-info { flex: 1; min-width: 160px; }
.pinned-prop-title { font-weight: 700; font-size: 1rem; color: var(--color-text-dark); }
.pinned-prop-location { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 2px; }
.pinned-prop-price { color: var(--color-orange); font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.pinned-prop-specs { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 2px; }
.pinned-prop-actions { display: flex; flex-direction: column; gap: 8px; }
.pinned-btn-outline, .pinned-btn-accent { text-align: center; padding: 10px 22px; border-radius: 18px; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.pinned-btn-outline { background-color: #fff; border: 1px solid var(--color-tan); color: var(--color-text-dark); }
.pinned-btn-outline:hover { background-color: var(--color-cream); }
.pinned-btn-accent { background-color: var(--color-orange); color: #fff !important; }
.pinned-btn-accent:hover { background-color: var(--color-orange-dark); }
.emoji-picker-panel { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 24px; border-top: 1px solid var(--color-tan); max-height: 100px; overflow-y: auto; }
.emoji-picker-item { font-size: 1.3rem; cursor: pointer; padding: 4px; border-radius: 6px; }
.emoji-picker-item:hover { background-color: var(--color-cream); }
.icon-btn-flat { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: none; border: none; color: var(--color-text-muted); font-size: 1.9rem; line-height: 1; cursor: pointer; flex-shrink: 0; transition: color 0.15s; }
.icon-btn-flat:hover { color: var(--color-orange); }
.icon-btn-group { display: flex; align-items: center; gap: 0; }
.icon-btn-group .icon-btn-flat svg { width: 20px; height: 20px; }
.chat-input-pill input[type="text"] { font-size: 1.15rem; }
.msg-bubble:has(> img.attachment-thumb:first-child), .msg-bubble:has(> a:first-child > img.attachment-thumb) { background: transparent !important; padding: 0 !important; }
.msg-bubble:has(> img.attachment-thumb:first-child) .msg-time, .msg-bubble:has(> a:first-child > img.attachment-thumb) .msg-time { padding: 4px 8px 0; }
.msgs-v2 .conv-list.conv-list-collapsed { width: 0; max-width: 0; overflow: hidden; padding: 0; border: none; }
.msgs-expand-btn {
    display: none; position: absolute; top: 20px; left: 20px; z-index: 5; background: #fff; border: 1px solid var(--color-tan);
    border-radius: 50%; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--color-text-dark); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.conv-list.conv-list-collapsed ~ .chat-panel .msgs-expand-btn { display: flex; }
.chat-panel { position: relative; }
@media (max-width: 900px) {
    .pinned-prop-card { flex-direction: column; align-items: stretch; }
    .pinned-prop-actions { flex-direction: row; }
    .pinned-btn-outline, .pinned-btn-accent { flex: 1; }
}


/* ============================================================
   21. Featured Tier Badges
   ============================================================ */
.status-pill.tier-classic { background-color: #e8e0d0; color: #6b5f47; }
.status-pill.tier-homepage { background-color: #f0d9c0; color: var(--color-orange); }
.status-pill.tier-carousel { background-color: var(--color-green); color: #fff; }

/* SECTION 22 — Outline Button */
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; background-color: transparent; color: var(--color-green);
    border: 2px solid var(--color-green); border-radius: 20px; padding: 8px 16px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; text-decoration: none !important; transition: background-color 0.15s, color 0.15s;
}
.btn-outline:hover { background-color: var(--color-green); color: #fff; }


/* ==============================================================
   25. Site Footer (Full)
   ============================================================== */
.site-footer {
    background-color: var(--color-green);
    color: var(--color-cream);
    padding: 48px 24px 0;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
}
.footer-brand h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    margin: 0 0 6px;
    color: var(--color-cream);
}
.footer-brand .footer-tagline {
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}
.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    color: var(--color-tan);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a,
.footer-link-btn {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.92rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.footer-col a:hover,
.footer-link-btn:hover {
    color: var(--color-orange-light);
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid rgba(245, 240, 230, 0.2);
    padding: 18px 0;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.8;
}
@media (max-width: 800px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* Text-only variant of .prop-modal, used for the sitewide privacy
   modal. .prop-modal's base rule (Section 17) is sized for the wide
   property photo gallery modal (max-width:1320px) — this narrows it
   down to a readable text column and adds breathing room. */
#footerPrivacyModalOverlay .prop-modal {
    max-width: 640px;
    padding: 40px 44px;
}
#footerPrivacyModalOverlay .prop-modal-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}
#footerPrivacyModalOverlay .prop-modal-body h4 {
    color: var(--color-green);
    font-size: 1.05rem;
    margin: 22px 0 6px;
}
#footerPrivacyModalOverlay .prop-modal-body h4:first-child {
    margin-top: 0;
}
#footerPrivacyModalOverlay .prop-modal-body p {
    margin: 0 0 4px;
}
#footerPrivacyModalOverlay h2 {
    padding-right: 40px;
    margin-bottom: 0;
}
#footerPrivacyModalOverlay .prop-modal-close {
    background: var(--color-tan);
    color: var(--color-green);
}


/* 23. Share Widget */
.share-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--color-tan); background: #fff; color: var(--color-green); cursor: pointer; transition: background 0.15s ease, transform 0.1s ease;
}
.share-icon-btn:hover { background: var(--color-cream); transform: translateY(-1px); }
.share-icon-btn svg { width: 18px; height: 18px; }
.share-sidebar-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border: 1px solid var(--color-tan);
    border-radius: 8px; background: #fff; color: var(--color-green); font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.15s ease;
}
.share-sidebar-btn:hover { background: var(--color-cream); }
.share-sidebar-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.share-popover {
    position: absolute; z-index: 1000; min-width: 220px; background: #fff; border: 1px solid var(--color-tan);
    border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); padding: 6px;
}
.share-popover[hidden] { display: none; }
.share-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; background: transparent; border-radius: 6px; font-size: 14px; color: #333; cursor: pointer; text-align: left; }
.share-option:hover { background: var(--color-cream); }
.share-option svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-green); }
.share-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--color-green); color: #fff;
    padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 2000;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ==========================================================================
   24. Mobile Responsive Overhaul
   24a. Hamburger nav toggle | 24b. Header sizing | 24c. Layout stacking |
   24d. Font scale-down | 24e. Map.aspx overlay cards (add to Map.aspx too)
   ========================================================================== */
.mobile-nav-toggle {
    display: none; background: none; border: none; color: var(--color-green); cursor: pointer;
    padding: 6px; align-items: center; justify-content: center; flex-shrink: 0;
}
.mobile-nav-toggle .icon-close { display: none; }
.mobile-nav-toggle.open .icon-hamburger { display: none; }
.mobile-nav-toggle.open .icon-close { display: block; }
.mobile-nav-auth-link { display: none; }

@media (max-width: 900px) {
    .site-header { padding: 0 16px 12px; }
    .header-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; }
    .mobile-nav-toggle { display: flex; order: 1; }
    .brand { order: 2; flex: 1; min-width: 0; }
    .header-actions { order: 3; justify-self: auto; gap: 10px; min-height: auto; }
    .header-center { order: 4; flex: 1 1 100%; width: 100%; display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-tan); }
    .header-center.nav-open { display: flex; }
    .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--color-tan); font-size: 1.15rem; }
    .nav-dropdown { border-bottom: 1px solid var(--color-tan); }
    .nav-dropdown-toggle { display: block; padding: 12px 4px; font-size: 1.15rem; }
    .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }
    .mobile-nav-auth-link { display: block; padding: 12px 4px; color: var(--color-orange); font-weight: 600; font-size: 1.15rem; }
    .header-search-row { margin-top: 16px; max-width: none; }
}

@media (max-width: 900px) {
    .brand-logo { height: 38px; }
    .brand-tagline { font-size: 0.8rem; white-space: normal; }
    .header-user-name { display: none; }
    .notif-bell { width: 44px; height: 44px; }
    /* Was 26px — noticeably smaller than the bell/My Listings icons next
       to it (both 44px on mobile), reads as an odd mismatch in the row.
       Bumped to match; .header-user-link gets a matching tap area so the
       larger visual size and the actual tappable area line up. */
    .header-user-avatar { width: 40px; height: 40px; }
    .header-user-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
    .btn-signin { padding: 6px 12px; font-size: 1rem; }
    .search-input-big { padding: 12px 16px; font-size: 1.05rem; }
    /* Was anchored via `right:0` relative to the bell's own wrapper,
       which only worked while the bell was the LAST icon in the row.
       Now that My Listings, the avatar, and Sign Out sit to its right,
       that anchor point can land mid-header — so this pins the dropdown
       to the viewport edges directly instead, guaranteeing it can't
       overflow off either side regardless of where the bell sits. `top`
       is set dynamically by the notifBellBtn click handler in
       Site.master (positions it just under the header). */
    .notif-dropdown { position: fixed; left: 16px; right: 16px; width: auto; }
}

@media (max-width: 900px) {
    .dashboard-layout { flex-direction: column; padding: 20px 16px; gap: 16px; }
    .dashboard-sidebar { width: 100%; }
    .detail-layout { flex-direction: column; padding: 20px 16px; gap: 16px; }
    .detail-sidebar { min-width: 0; }
    .auth-page { flex-direction: column; min-height: auto; }
    .auth-side { padding: 40px 24px; }
    .auth-form-side { padding: 24px; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .panels-row { grid-template-columns: 1fr; }
    .plan-options { flex-direction: column; }
    .form-row { flex-direction: column; gap: 0; }
    .detail-specs { flex-wrap: wrap; gap: 12px 24px; }
    .amk-overlay-side { width: 260px; }
}

@media (max-width: 900px) {
    .auth-headline { font-size: 2.6rem; margin-bottom: 20px; }
    .auth-body { font-size: 1.1rem; }
    .auth-eyebrow { margin-bottom: 20px; font-size: 1rem; }
    .dash-topbar .dashboard-welcome { font-size: 1.6rem; }
    .stat-strip-value { font-size: 1.7rem; }
    .carousel-slide-info .prop-title { font-size: 1.3rem; }
    .carousel-slide-info .price { font-size: 1.5rem; }
    .msg-bubble { max-width: 82%; font-size: 1rem; }
}

/* NOTE: this block targets classes defined inline in Map.aspx's own
   <style> block, not Site.css's usual selectors — copy this same
   @media block into Map.aspx's <style> section too; it will not
   apply from here alone. */
@media (max-width: 900px) {
    #amkMapWrap { height: auto !important; }
    #amkMap { height: 60vh; }
    .amk-overlay-title, .amk-overlay-side { position: static; max-width: none; width: 100%; margin-bottom: 12px; }
    .amk-overlay-side { max-height: none; overflow-y: visible; }
}
/* Filled/saved state for .save-icon (Section 9) — toggled via JS
   (toggleSaveListing in Default.aspx) by adding/removing this class
   and swapping the heart SVG's fill attribute. */
.save-icon.saved {
    background-color: var(--color-orange);
    color: #fff;
}
.save-icon svg {
    transition: fill 0.15s;
}