*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden { display: none !important; }

:root {
    --navy: #1a2332;
    --navy-light: #243044;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #dbeafe;
    --blue-50: #eff6ff;
    --gold: #c8a45e;
    --gold-light: #f5ecd7;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
    --shadow-xl: 0 20px 50px rgba(0,0,0,.15);
    --transition: 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

/* ========== Header ========== */
.site-header {
    padding: 10px 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.95);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
}

.logo-charleston {
    color: var(--navy);
    font-size: 1.6rem;
}

.logo-realty {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: 'Inter', sans-serif;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    padding: 8px 14px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

nav a:hover {
    color: var(--navy);
    background: var(--gray-50);
}

.nav-cta {
    background: var(--navy) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 24px !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--navy-light) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background: var(--navy);
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('images/hero-charleston.jpg') center/cover no-repeat;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,.12);
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 24px;
    border: 1px solid rgba(200,164,94,.3);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
}

/* ========== Search ========== */
.search-box {
    display: flex;
    align-items: center;
    max-width: 660px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 60px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    padding: 6px 6px 6px 20px;
    transition: box-shadow var(--transition);
}

.search-box:focus-within {
    box-shadow: 0 20px 50px rgba(0,0,0,.2), 0 0 0 3px rgba(37,99,235,.3);
}

.search-icon {
    color: var(--gray-400);
    flex-shrink: 0;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 14px 12px;
    font-size: 1rem;
    border: none;
    outline: none;
    font-family: inherit;
    color: var(--gray-800);
    background: transparent;
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.search-box button {
    padding: 14px 32px;
    background: var(--blue);
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-radius: 50px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-box button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.search-box button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.btn-loading.hidden { display: none; }
.btn-text.hidden { display: none; }

.spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,.4);
    font-family: 'Inter', sans-serif;
}

.suggestion {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.82rem;
    color: rgba(255,255,255,.75);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.suggestion:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.3);
    color: #fff;
}

/* ========== Results ========== */
.results-section {
    padding: 60px 0 80px;
    background: var(--gray-50);
}

.results-section.hidden {
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.results-header h2 {
    font-size: 1.8rem;
    color: var(--navy);
}

.results-header p {
    color: var(--gray-500);
    margin-top: 4px;
    font-size: 0.95rem;
}

.clear-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.clear-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ========== Property Card ========== */
.property-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .card-img img {
    transform: scale(1.05);
}

.card-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-body {
    padding: 20px;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    margin-bottom: 2px;
}

.card-address {
    color: var(--gray-500);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.card-details {
    display: flex;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.card-details .detail {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--gray-50);
    border-radius: 6px;
    font-weight: 500;
}

.card-details .detail svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-img-loading {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    position: relative;
}

.card-img-loading img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-img-loading img[src]:not([src=""]) {
    opacity: 1;
}

.card-img-loading img:not([complete]) + .img-loader,
.card-img-loading .img-loader {
    display: flex;
}

.card-img-loading img[complete] ~ .img-loader {
    display: none;
}

.img-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
    color: rgba(255,255,255,.5);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.img-loader-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.card-dom {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
}

.card-sold {
    background: rgba(220,38,38,.85);
}

.card-hoa {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-left: 4px;
}

.card-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-match {
    font-size: 0.85rem;
    color: var(--green);
    background: var(--green-light);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    line-height: 1.5;
    border-left: 3px solid var(--green);
}

.card-area {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    line-height: 1.5;
}

/* ========== Follow-ups ========== */
.follow-ups {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    justify-content: center;
}

.follow-ups.hidden {
    display: none;
}

.follow-up-chip {
    background: var(--blue-50);
    color: var(--blue);
    border: 1px solid var(--blue-light);
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.follow-up-chip:hover {
    background: var(--blue-light);
    border-color: var(--blue);
}

.followup-bar {
    max-width: 660px;
    margin: 32px auto 0;
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: 60px;
    overflow: hidden;
    padding: 4px 4px 4px 20px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.followup-bar:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: #fff;
}

.followup-bar.hidden {
    display: none;
}

.followup-bar input {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.92rem;
    border: none;
    outline: none;
    font-family: inherit;
    color: var(--gray-800);
    background: transparent;
}

.followup-bar input::placeholder {
    color: var(--gray-400);
}

.followup-bar button {
    padding: 10px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border-radius: 50px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.followup-bar button:hover {
    background: var(--blue-dark);
}

/* ========== Loading ========== */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--blue);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.loading-state p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ========== Featured ========== */
.featured-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== Neighborhoods ========== */
.neighborhoods-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.neighborhood-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}

.neighborhood-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.nh-icon {
    width: 44px;
    height: 44px;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 14px;
}

/* Photo-backed neighborhood cards */
.nh-photo-card {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0;
    border: none;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nh-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.nh-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.05) 100%);
    transition: background 0.3s ease;
}

.nh-photo-card:hover .nh-photo-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.1) 100%);
}

.nh-photo-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.nh-photo-content h3 {
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 4px;
}

.nh-photo-content p {
    color: rgba(255,255,255,.8);
    font-size: 0.82rem;
    margin: 0;
}

.neighborhood-card h3 {
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.neighborhood-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ========== Alerts Section ========== */
.alerts-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}

.alert-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.alert-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.alert-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-50) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.alert-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.alert-card:hover::before {
    opacity: 1;
}

.alert-card.alert-card--selected {
    border-color: var(--blue);
    background: var(--blue-50);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.alert-card-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}

.alert-card-icon--water {
    background: #ecfeff;
    color: #0891b2;
}

.alert-card-icon--build {
    background: var(--green-light);
    color: var(--green);
}

.alert-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.alert-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.alert-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.alert-divider::before,
.alert-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.alert-divider span {
    font-size: 0.88rem;
    color: var(--gray-400);
    white-space: nowrap;
    text-transform: lowercase;
}

.alert-form {
    max-width: 720px;
    margin: 0 auto;
}

.alert-form-row {
    display: flex;
    gap: 10px;
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    padding: 6px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.alert-form-row:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.alert-form-query {
    flex: 1.5;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: transparent;
    min-width: 0;
}

.alert-form-email {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: transparent;
    border-left: 1px solid var(--gray-200);
    min-width: 0;
}

.alert-form-query::placeholder,
.alert-form-email::placeholder {
    color: var(--gray-400);
}

.alert-form-btn {
    padding: 12px 28px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.alert-form-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.alert-form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.alert-privacy svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 28px;
    background: var(--green-light);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    color: #166534;
}

.alert-success svg {
    flex-shrink: 0;
    color: var(--green);
}

.alert-success strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.alert-success p {
    font-size: 0.88rem;
    color: #166534;
    opacity: 0.8;
}

/* Post-search alert banner */
.search-alert-banner {
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--blue-50);
    border: 1px solid var(--blue-light);
    border-radius: var(--radius);
    text-align: center;
}

.search-alert-banner p {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 14px;
    font-weight: 500;
}

.search-alert-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.search-alert-form input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.search-alert-form input:focus {
    border-color: var(--blue);
}

.search-alert-form input::placeholder {
    color: var(--gray-400);
}

.search-alert-form button {
    padding: 10px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.search-alert-form button:hover {
    background: var(--blue-dark);
}

.search-alert-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-alert-privacy {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 10px;
}

.search-alert-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #166534;
    font-weight: 500;
    font-size: 0.95rem;
}

.search-alert-success svg {
    color: var(--green);
}

/* Alerts responsive */
@media (max-width: 768px) {
    .alert-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .alert-card {
        padding: 24px 20px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .alert-card-icon {
        margin: 0;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .alert-form-row {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 8px;
    }

    .alert-form-email {
        border-left: none;
        border-top: 1px solid var(--gray-200);
    }

    .alert-form-btn {
        width: 100%;
    }

    .search-alert-form {
        flex-direction: column;
    }

    .search-alert-form button {
        width: 100%;
    }
}

/* ========== How It Works ========== */
.how-section {
    padding: 80px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 24px;
    color: var(--gray-300);
    flex-shrink: 0;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--navy);
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-bottom: 18px;
    font-family: 'Playfair Display', serif;
}

.step h3 {
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

.step p {
    color: var(--gray-500);
    font-size: 0.92rem;
}

/* ========== About ========== */
.about-section {
    padding: 80px 0;
    background: var(--navy);
    color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
}

.about-text p {
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.cta-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
}

.cta-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.cta-card p {
    color: rgba(255,255,255,.6);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.cta-btn:hover {
    background: #d4b06a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,164,94,.3);
}

/* ========== Footer ========== */
.site-footer {
    padding: 48px 0 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.footer-links a,
.footer-links p {
    display: block;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--gray-400);
}

/* ========== Listing Detail Page ========== */
.listing-gallery { background: var(--gray-800); }
.gallery-wrapper { max-width: 1200px; margin: 0 auto; }
.gallery-main { position: relative; height: 500px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-type-badge { position: absolute; top: 16px; left: 16px; }
.gallery-sold-badge { position: absolute; top: 16px; right: 16px; padding: 6px 14px; background: rgba(220,38,38,.9); color: #fff; font-size: 0.8rem; font-weight: 600; border-radius: 20px; }
.gallery-thumbs { display: flex; gap: 4px; padding: 4px 0; overflow-x: auto; background: var(--gray-800); }
.gallery-thumb { flex-shrink: 0; width: 100px; height: 70px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; padding: 0; background: none; }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { height: 300px; background: var(--gray-200); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 1.1rem; }

.listing-content { padding: 48px 0 80px; }
.listing-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.listing-header { margin-bottom: 24px; }
.listing-price { font-size: 2.4rem; font-weight: 700; color: var(--navy); font-family: 'Inter', sans-serif; }
.listing-hoa { font-size: 0.9rem; color: var(--gray-400); margin-left: 8px; }
.listing-address { font-size: 1.3rem; color: var(--navy); margin-top: 4px; font-family: 'Playfair Display', serif; }
.listing-city { color: var(--gray-500); font-size: 0.95rem; }

.listing-stats { display: flex; gap: 24px; padding: 20px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); margin-bottom: 24px; flex-wrap: wrap; }
.listing-stat { text-align: center; min-width: 70px; }
.listing-stat-value { display: block; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.listing-stat-label { display: block; font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

.listing-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }

.listing-description { margin-bottom: 32px; }
.listing-description h2, .listing-details-grid h2, .listing-area h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; font-family: 'Inter', sans-serif; font-weight: 600; }
.listing-description p { color: var(--gray-600); line-height: 1.7; font-size: 0.95rem; }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--gray-50); border-radius: var(--radius-sm); }
.detail-label { font-size: 0.85rem; color: var(--gray-500); }
.detail-value { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.listing-details-grid { margin-bottom: 32px; }

.listing-area { margin-bottom: 32px; }
.area-neighborhood { display: flex; align-items: center; gap: 6px; color: var(--gray-600); font-size: 0.95rem; margin-bottom: 12px; }
.area-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); }
.area-map img { width: 100%; display: block; }
.map-coords { padding: 8px 12px; font-size: 0.8rem; color: var(--gray-400); background: var(--gray-50); }
.map-fallback { padding: 40px; text-align: center; background: var(--gray-50); color: var(--gray-400); display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Agent CTA Sidebar */
.listing-sidebar { position: sticky; top: 80px; }
.agent-cta-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.agent-cta-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 600; }
.agent-cta-card > p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 20px; line-height: 1.5; }
.agent-form { display: flex; flex-direction: column; gap: 10px; }
.agent-form input, .agent-form textarea { padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem; color: var(--gray-800); }
.agent-form input:focus, .agent-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.agent-form-btn { padding: 14px; background: var(--blue); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--transition); }
.agent-form-btn:hover { background: var(--blue-dark); }
.agent-form-success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; text-align: center; }
.agent-form-success h4 { color: var(--green); font-family: 'Inter', sans-serif; }
.agent-form-success p { color: var(--gray-500); font-size: 0.9rem; }
.agent-contact-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.agent-link { display: flex; align-items: center; gap: 8px; color: var(--gray-600); text-decoration: none; font-size: 0.88rem; transition: color var(--transition); }
.agent-link:hover { color: var(--blue); }

/* Similar Listings */
.similar-section { padding: 60px 0; background: var(--gray-50); }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.listing-not-found { padding: 120px 0; text-align: center; }
.listing-not-found h1 { font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.listing-not-found p { color: var(--gray-500); margin-bottom: 24px; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .featured-grid,
    .neighborhoods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .listing-layout { grid-template-columns: 1fr; }
    .listing-sidebar { position: static; }
    .similar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .featured-grid,
    .neighborhoods-grid {
        grid-template-columns: 1fr;
    }

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

    .search-box {
        margin-left: 8px;
        margin-right: 8px;
    }

    .search-suggestions {
        padding: 0 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-stats {
        gap: 24px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 8px;
    }

    .search-icon { display: none; }

    .search-box input {
        padding: 14px;
        text-align: center;
    }

    .search-box button {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}

/* ========== Listing Detail Page ========== */

/* 404 state */
.listing-not-found {
    text-align: center;
    padding: 120px 0;
}

.listing-not-found h1 {
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.listing-not-found p {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* Photo Gallery */
.listing-gallery {
    background: var(--gray-800);
}

.gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--navy);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.gallery-sold-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(220, 38, 38, .9);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
}

.gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 4px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-600) transparent;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition);
    background: var(--navy);
    overflow: hidden;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
}

.gallery-thumb.active {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .4);
    font-size: 1rem;
    font-weight: 500;
}

/* Listing Content Layout */
.listing-content {
    padding: 48px 0 80px;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: flex-start;
}

/* Listing Details (left column) */
.listing-header {
    margin-bottom: 32px;
}

.listing-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    margin-bottom: 4px;
}

.listing-hoa {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
}

.listing-address {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 8px;
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
}

.listing-city {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Key Stats Row */
.listing-stats {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.listing-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    min-width: 90px;
}

.listing-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    font-family: 'Inter', sans-serif;
}

.listing-stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Badges */
.listing-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.listing-badges .badge {
    padding: 5px 14px;
    font-size: 0.78rem;
}

/* Description */
.listing-description {
    margin-bottom: 40px;
}

.listing-description h2,
.listing-details-grid h2,
.listing-area h2 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.listing-description p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Property Details Grid */
.listing-details-grid {
    margin-bottom: 40px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fff;
}

.detail-label {
    font-size: 0.88rem;
    color: var(--gray-500);
    font-weight: 500;
}

.detail-value {
    font-size: 0.88rem;
    color: var(--gray-800);
    font-weight: 600;
}

/* Area / Location */
.listing-area {
    margin-bottom: 40px;
}

.area-neighborhood {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.area-neighborhood svg {
    color: var(--blue);
    flex-shrink: 0;
}

.area-map {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.area-map img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.map-coords {
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--gray-400);
    font-weight: 500;
}

.map-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    color: var(--gray-400);
    font-size: 0.88rem;
}

/* Agent CTA Card (right sidebar) */
.listing-sidebar {
    position: sticky;
    top: 80px;
}

.agent-cta-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.agent-cta-card h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.agent-cta-card > p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Agent Form */
.agent-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.agent-form input,
.agent-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-800);
    transition: border-color var(--transition);
    resize: vertical;
}

.agent-form input:focus,
.agent-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.agent-form input::placeholder,
.agent-form textarea::placeholder {
    color: var(--gray-400);
}

.agent-form-btn {
    padding: 14px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
}

.agent-form-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.agent-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 0;
}

.agent-form-success h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
}

.agent-form-success p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.agent-contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.agent-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
}

.agent-link:hover {
    color: var(--blue);
}

.agent-link svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

/* Similar Listings */
.similar-section {
    padding: 60px 0 80px;
    background: var(--gray-50);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== Listing Responsive ========== */
@media (max-width: 1024px) {
    .listing-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .listing-sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    .gallery-main {
        height: 320px;
    }

    .gallery-thumbs {
        padding: 4px 8px;
    }

    .gallery-thumb {
        width: 90px;
        height: 60px;
    }

    .listing-content {
        padding: 32px 0 60px;
    }

    .listing-price {
        font-size: 2rem;
    }

    .listing-address {
        font-size: 1.15rem;
    }

    .listing-stats {
        gap: 4px;
    }

    .listing-stat {
        padding: 12px 14px;
        min-width: 75px;
    }

    .listing-stat-value {
        font-size: 1rem;
    }

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

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

@media (max-width: 480px) {
    .gallery-main {
        height: 240px;
    }

    .listing-price {
        font-size: 1.7rem;
    }

    .agent-cta-card {
        padding: 24px;
    }
}

/* ========== Neighborhood Guide Page ========== */

.nh-breadcrumb { padding: 12px 0; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.nh-breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.nh-breadcrumb a { color: var(--gray-500); text-decoration: none; transition: color var(--transition); }
.nh-breadcrumb a:hover { color: var(--blue); }
.nh-breadcrumb svg { color: var(--gray-300); flex-shrink: 0; }
.nh-breadcrumb span { color: var(--gray-800); font-weight: 500; }

.nh-hero { background: var(--navy); padding: 80px 0; text-align: center; }
.nh-hero-index { padding: 100px 0 80px; }
.nh-hero h1 { font-size: 3rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: -0.02em; }
.nh-hero h1 em { color: var(--gold); font-style: normal; }
.nh-hero .subtitle { max-width: 560px; }
.nh-hero-tagline { font-size: 1.15rem; color: rgba(255,255,255,.65); margin-bottom: 24px; font-family: 'Inter', sans-serif; }
.nh-hero .hero-badge { margin-bottom: 20px; }
.nh-hero-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nh-hero-tag { display: inline-block; padding: 6px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75); font-size: 0.82rem; font-weight: 500; border-radius: 24px; font-family: 'Inter', sans-serif; }

.nh-stats-bar { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.nh-stats-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nh-stat-pill { display: flex; flex-direction: column; align-items: center; padding: 12px 24px; background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-200); min-width: 120px; }
.nh-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--navy); font-family: 'Inter', sans-serif; white-space: nowrap; }
.nh-stat-label { font-size: 0.72rem; font-weight: 500; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

.nh-description { padding: 60px 0; }
.nh-description-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.nh-description-text h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 20px; }
.nh-description-text p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.75; margin-bottom: 16px; }

.nh-highlights { background: var(--green-light); border: 1px solid #dcfce7; border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.nh-highlights h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.nh-highlights-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nh-highlights-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--gray-700); line-height: 1.5; }
.nh-highlights-list li svg { flex-shrink: 0; margin-top: 2px; }

.nh-quick-info { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.nh-info-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--gray-200); }
.nh-info-row:last-child { border-bottom: none; }
.nh-info-label { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }
.nh-info-value { font-size: 0.85rem; color: var(--navy); font-weight: 600; }

.nh-search { padding: 60px 0; background: var(--blue-50); text-align: center; }
.nh-search h2 { font-size: 1.6rem; color: var(--navy); margin-bottom: 8px; }
.nh-search > .container > p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 28px; }
.nh-search-form { display: flex; align-items: center; max-width: 640px; margin: 0 auto 20px; background: #fff; border-radius: 60px; box-shadow: var(--shadow-md); overflow: hidden; padding: 6px 6px 6px 20px; transition: box-shadow var(--transition); }
.nh-search-form:focus-within { box-shadow: var(--shadow-lg), 0 0 0 3px rgba(37,99,235,.2); }
.nh-search-form .search-icon { color: var(--gray-400); flex-shrink: 0; display: flex; }
.nh-search-form input { flex: 1; padding: 14px 12px; font-size: 1rem; border: none; outline: none; font-family: 'Inter', sans-serif; color: var(--gray-800); background: transparent; }
.nh-search-form button { padding: 14px 32px; background: var(--blue); color: #fff; border: none; font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; border-radius: 50px; transition: all var(--transition); flex-shrink: 0; }
.nh-search-form button:hover { background: var(--blue-dark); }

.nh-search-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nh-chip { display: inline-block; padding: 8px 18px; background: #fff; border: 1px solid var(--gray-200); border-radius: 24px; font-size: 0.85rem; font-weight: 500; color: var(--gray-600); text-decoration: none; transition: all var(--transition); }
.nh-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.nh-listings { padding: 60px 0; background: var(--gray-50); }
.nh-listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nh-listings-more { text-align: center; margin-top: 32px; }

.nh-subdivisions { padding: 60px 0; }
.nh-subdivisions h2 { font-size: 1.6rem; color: var(--navy); margin-bottom: 8px; text-align: center; }
.nh-subdivisions > .container > p { text-align: center; color: var(--gray-500); font-size: 0.95rem; margin-bottom: 32px; }
.nh-subdivisions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nh-subdivision-card { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); text-decoration: none; color: var(--gray-700); font-size: 0.9rem; font-weight: 500; transition: all var(--transition); }
.nh-subdivision-card:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow); }
.nh-subdivision-card svg { flex-shrink: 0; color: var(--gray-400); }
.nh-subdivision-card:hover svg { color: var(--blue); }
.nh-sub-arrow { margin-left: auto; }
.nh-subdivision-card span { flex: 1; }

.nh-faq { padding: 60px 0; background: var(--gray-50); }
.nh-faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.nh-faq-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.nh-faq-item.open { border-color: var(--blue); }
.nh-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 24px; background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--navy); text-align: left; line-height: 1.4; }
.nh-faq-q:hover { color: var(--blue); }
.nh-faq-chevron { flex-shrink: 0; color: var(--gray-400); transition: transform 0.25s ease; }
.nh-faq-item.open .nh-faq-chevron { transform: rotate(180deg); }
.nh-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.nh-faq-item.open .nh-faq-a { max-height: 500px; }
.nh-faq-a p { padding: 0 24px 20px; color: var(--gray-600); font-size: 0.92rem; line-height: 1.7; }

.nh-cta { padding: 60px 0; }
.nh-cta-card { background: var(--navy); border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.nh-cta-card h2 { color: #fff; font-size: 1.8rem; margin-bottom: 12px; }
.nh-cta-card p { color: rgba(255,255,255,.6); font-size: 1rem; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.nh-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btn-outline { background: transparent !important; border: 2px solid rgba(255,255,255,.3); color: #fff !important; }
.cta-btn-outline:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08) !important; box-shadow: none; }

.nh-index { padding: 60px 0 80px; }
.nh-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nh-index-card { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); text-decoration: none; transition: all 0.25s ease; }
.nh-index-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.nh-index-card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 6px; }
.nh-index-tagline { font-size: 0.88rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.nh-index-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.nh-index-tag { padding: 4px 12px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 20px; font-size: 0.75rem; font-weight: 500; color: var(--gray-500); }
.nh-index-link { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--blue); }
.nh-index-card:hover .nh-index-link { gap: 10px; }

/* Subdivision-specific styles */
.nh-hero-parent { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; font-weight: 500; letter-spacing: 0.03em; }

.nh-back-parent { margin-top: 20px; }
.nh-back-parent a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); text-decoration: none; color: var(--blue); font-size: 0.88rem; font-weight: 600; transition: all var(--transition); }
.nh-back-parent a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.nh-back-parent a:hover svg { stroke: #fff; }

.nh-subdivision-has-page { border-color: var(--blue-100, #dbeafe); background: #f8faff; }
.nh-sub-badge { flex: 0 !important; padding: 2px 8px; background: var(--blue); color: #fff; border-radius: 10px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

/* Index page subdivision links under parent cards */
.nh-index-group { display: flex; flex-direction: column; }
.nh-index-subs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; background: var(--gray-50); border: 1px solid var(--gray-200); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.nh-index-group .nh-index-card { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.nh-index-group:not(:has(.nh-index-subs)) .nh-index-card { border-radius: var(--radius-lg); }
.nh-index-sub-link { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; background: #fff; border: 1px solid var(--gray-200); border-radius: 20px; text-decoration: none; color: var(--gray-600); font-size: 0.78rem; font-weight: 500; transition: all var(--transition); }
.nh-index-sub-link:hover { border-color: var(--blue); color: var(--blue); background: #f0f7ff; }
.nh-index-sub-link svg { flex-shrink: 0; color: var(--gray-400); width: 12px; height: 12px; }
.nh-index-sub-link:hover svg { color: var(--blue); }

/* ========== Neighborhood Responsive ========== */
@media (max-width: 1024px) {
    .nh-description-layout { grid-template-columns: 1fr; gap: 32px; }
    .nh-listings-grid { grid-template-columns: repeat(2, 1fr); }
    .nh-subdivisions-grid { grid-template-columns: repeat(3, 1fr); }
    .nh-index-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nh-hero { padding: 60px 0; }
    .nh-hero-index { padding: 70px 0 60px; }
    .nh-hero h1 { font-size: 2.2rem; }
    .nh-stats-row { gap: 8px; }
    .nh-stat-pill { padding: 10px 16px; min-width: 100px; }
    .nh-stat-value { font-size: 0.95rem; }
    .nh-listings-grid { grid-template-columns: 1fr; }
    .nh-subdivisions-grid { grid-template-columns: repeat(2, 1fr); }
    .nh-index-grid { grid-template-columns: 1fr; }
    .nh-cta-card { padding: 32px 24px; }
    .nh-cta-card h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .nh-hero h1 { font-size: 1.8rem; }
    .nh-search-form { flex-direction: column; border-radius: var(--radius); padding: 8px; }
    .nh-search-form .search-icon { display: none; }
    .nh-search-form input { text-align: center; }
    .nh-search-form button { width: 100%; justify-content: center; }
    .nh-subdivisions-grid { grid-template-columns: 1fr; }
    .nh-stat-pill { min-width: 80px; padding: 8px 12px; }
    .nh-faq-q { padding: 16px 18px; font-size: 0.88rem; }
    .nh-faq-a p { padding: 0 18px 16px; font-size: 0.85rem; }
}

/* ========== Blog ========== */

/* Blog Index */
.blog-hero {
    background: var(--navy);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/hero-charleston.jpg') center/cover no-repeat;
    opacity: 0.3;
}

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

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.blog-hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.blog-hero .subtitle {
    color: rgba(255,255,255,.6);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.blog-hero .hero-badge {
    margin-bottom: 20px;
}

.blog-index {
    padding: 60px 0 80px;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-card {
    display: flex;
    gap: 28px;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}

.blog-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card-img {
    flex-shrink: 0;
    width: 320px;
    min-height: 220px;
    background: var(--gray-100);
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: color-mix(in srgb, var(--cat-color, #2563eb) 12%, transparent);
    color: var(--cat-color, #2563eb);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.blog-card-content h2 {
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-400);
    font-weight: 500;
}

.blog-meta-sep {
    color: var(--gray-300);
}

/* Single Post */
.post-hero {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,35,50,.9) 0%, rgba(26,35,50,.5) 50%, rgba(26,35,50,.3) 100%);
}

.post-header {
    position: relative;
    z-index: 2;
}

.post-header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin: 12px 0 16px;
    line-height: 1.2;
    max-width: 720px;
}

.post-header .blog-category {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.6);
    font-size: 0.88rem;
}

/* Post Body Layout */
.post-body {
    padding: 48px 0 80px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* Post Content Typography */
.post-content {
    max-width: 720px;
}

.post-content h2 {
    font-size: 1.6rem;
    color: var(--navy);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin: 32px 0 12px;
    line-height: 1.3;
}

.post-content p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px 20px;
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.75;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content li strong {
    color: var(--gray-800);
}

.post-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--gold);
    background: var(--gray-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content blockquote p {
    color: var(--gray-700);
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 0;
}

.post-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.post-content a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(37,99,235,.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition);
}

.post-content a:hover {
    text-decoration-color: var(--blue);
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 80px;
}

/* Related Posts */
.related-posts-section {
    padding: 60px 0 80px;
    background: var(--gray-50);
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
}

.related-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.related-card-img {
    height: 180px;
    background: var(--gray-100);
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-img img {
    transform: scale(1.05);
}

.related-card-content {
    padding: 20px;
}

.related-card-content h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.35;
}

/* From the Blog section on homepage */
.blog-section {
    padding: 80px 0;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-preview-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
}

.blog-preview-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.blog-preview-img {
    height: 200px;
    background: var(--gray-100);
    overflow: hidden;
}

.blog-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-preview-card:hover .blog-preview-img img {
    transform: scale(1.05);
}

.blog-preview-content {
    padding: 20px;
}

.blog-preview-content .blog-category {
    margin-bottom: 8px;
}

.blog-preview-content h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.35;
}

.blog-preview-content p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Active nav state */
nav a.active {
    color: var(--navy);
    font-weight: 600;
}

/* ========== Blog Responsive ========== */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        max-width: 480px;
    }

    .related-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero { padding: 60px 0; }
    .blog-hero h1 { font-size: 2.2rem; }

    .blog-card {
        flex-direction: column;
    }

    .blog-card-img {
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-content h2 {
        font-size: 1.15rem;
    }

    .post-hero {
        padding: 80px 0 48px;
        min-height: 320px;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-body {
        padding: 32px 0 60px;
    }

    .post-content h2 {
        font-size: 1.35rem;
        margin-top: 32px;
    }

    .related-posts,
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 { font-size: 1.8rem; }

    .post-header h1 { font-size: 1.5rem; }

    .post-content h2 { font-size: 1.2rem; }
    .post-content p { font-size: 0.95rem; }
    .post-content ul, .post-content ol { font-size: 0.95rem; }
}

/* ========== Login Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.modal-overlay.hidden { display: none; }
.modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,.15);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
    line-height: 1;
}
.modal-close:hover { color: var(--gray-700); }
.modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0 0 8px;
    color: var(--navy);
}
.modal p {
    color: var(--gray-500);
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.modal input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 12px;
    outline: none;
    transition: border-color var(--transition);
    box-sizing: border-box;
}
.modal input[type="email"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.modal .cta-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}
.modal-success {
    text-align: center;
    padding: 20px 0;
}
.modal-success svg { margin-bottom: 12px; }
.modal-success p {
    color: var(--gray-600);
    text-align: center;
}
.modal-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ========== Nav Auth ========== */
.nav-login, .nav-account {
    white-space: nowrap;
}

/* ========== Favorite Button (card overlay) ========== */
.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--gray-400);
    transition: all var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.fav-btn:hover { background: #fff; color: #ef4444; }
.fav-btn.fav-active { color: #ef4444; background: #fff; }

/* ========== Favorite Button (listing detail) ========== */
.fav-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.fav-btn-detail:hover,
.fav-btn-detail.fav-active {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

/* ========== Save Search Button ========== */
.save-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--blue);
    color: var(--blue);
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.save-search-btn:hover { background: var(--blue); color: #fff; }
.save-search-btn.saved {
    background: #f0fdf4;
    border-color: var(--green);
    color: var(--green);
    pointer-events: none;
}

/* ========== Account Dashboard ========== */
.account-section { padding: 60px 0; min-height: 60vh; }
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.account-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--navy);
    margin: 0;
}
.account-email {
    color: var(--gray-500);
    font-size: 0.95rem;
}
.account-logout {
    background: none;
    border: 1px solid var(--gray-300);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.account-logout:hover { border-color: #ef4444; color: #ef4444; }

.account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 32px;
}
.account-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.account-tab:hover { color: var(--gray-700); }
.account-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.account-tab-content { display: none; }
.account-tab-content.active { display: block; }

.account-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}
.account-empty svg { margin-bottom: 12px; }
.account-empty p { margin: 4px 0; }

.saved-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: box-shadow var(--transition);
}
.saved-search-item:hover { box-shadow: var(--shadow); }
.saved-search-query {
    font-weight: 500;
    color: var(--gray-800);
    flex: 1;
}
.saved-search-date {
    color: var(--gray-400);
    font-size: 0.8rem;
    margin-left: 12px;
}
.saved-search-actions {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}
.saved-search-actions a,
.saved-search-actions button {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.ss-search-btn {
    background: var(--blue);
    color: #fff;
    border: none;
}
.ss-search-btn:hover { background: var(--blue-dark); }
.ss-delete-btn {
    background: none;
    border: 1px solid var(--gray-300);
    color: var(--gray-500);
}
.ss-delete-btn:hover { border-color: #ef4444; color: #ef4444; }

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.alert-item-query { font-weight: 500; color: var(--gray-800); flex: 1; }
.alert-item-type {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0f9ff;
    color: var(--blue);
    margin-left: 12px;
}

/* Favorites grid on account page */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .account-header { flex-direction: column; align-items: flex-start; }
    .account-tabs { overflow-x: auto; }
    .account-tab { padding: 12px 16px; font-size: 0.85rem; }
    .saved-search-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .saved-search-actions { margin-left: 0; }
    .favorites-grid { grid-template-columns: 1fr; }
}
