/* ========================================================
   GruhSetu - Master Stylesheet
   Theme:
   - Primary: #0F2747 (Deep Navy)
   - Secondary: #C9A227 (Muted Gold)
   - Background: #F8F8F6 (Off White)
   - Text: #171A1D (Near Black)
   - Success / CTA: #174A3A (Deep Green)
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0F2747;
    --primary-light: #1A385C;
    --primary-dark: #09182C;
    --secondary: #C9A227;
    --secondary-hover: #b8911f;
    --secondary-light: rgba(201, 162, 39, 0.12);
    --bg: #F8F8F6;
    --bg-card: #FFFFFF;
    --text: #171A1D;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --success: #174A3A;
    --success-light: #E8F5E9;
    --danger: #B91C1C;
    --danger-light: #FEE2E2;
    --warning: #B45309;
    --warning-light: #FEF3C7;
    --border: #E5E7EB;
    --border-gold: rgba(201, 162, 39, 0.35);
    
    --shadow-sm: 0 1px 3px rgba(15, 39, 71, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 39, 71, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 39, 71, 0.12);
    --shadow-gold: 0 6px 20px rgba(201, 162, 39, 0.22);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ========================================================
   GLOBAL SCROLLBAR DISPLAY RULE: HIDE VISIBLE SCROLLBARS
   Hides the visual scrollbar indicators across all screens and devices
   while preserving complete scrolling functionality (mouse wheel, touch swipe, keyboard).
======================================================== */
html,
body,
* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ and Edge Legacy */
}

/* WebKit browsers (Chrome, Edge, Safari, Opera, Android WebKit, iOS WebKit) */
::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: transparent !important;
    border: none !important;
    display: none !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
    display: none !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ========================================================
   SHIMMER EFFECT & SPLASH SCREEN (OFF WHITE THEME)
======================================================== */
.splash-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #FFFFFF 0%, #F8F8F6 60%, #EFEFEA 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: hidden;
}

/* Ambient subtle warm gold glow in splash background */
.splash-container::before {
    content: '';
    position: absolute;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.16) 0%, rgba(248, 248, 246, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.splash-logo-wrap {
    position: relative;
    max-width: 360px;
    width: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    padding: 10px;
}

.splash-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(15, 39, 71, 0.16));
    transition: transform 0.5s ease;
}

/* Shimmer overlay animation */
.splash-logo-wrap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 250%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 15%,
        rgba(201, 162, 39, 0.4) 42%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(201, 162, 39, 0.4) 58%,
        rgba(255, 255, 255, 0) 85%
    );
    transform: rotate(25deg);
    animation: shimmerEffect 2.2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shimmerEffect {
    0% {
        transform: translateX(-150%) rotate(25deg);
    }
    100% {
        transform: translateX(150%) rotate(25deg);
    }
}

.splash-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    width: 0%;
    animation: splashProgress 3s linear forwards;
}

@keyframes splashProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ========================================================
   PROMINENT LOGO FOR LOGIN & REGISTRATION SCREENS
======================================================== */
.auth-header-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-prominent-logo {
    display: inline-block;
    max-width: 260px;
    height: 84px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(15, 39, 71, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.auth-prominent-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 16px rgba(201, 162, 39, 0.25));
}

@media (max-width: 640px) {
    .auth-prominent-logo {
        max-width: 220px;
        height: 72px;
    }
}

/* ========================================================
   HEADER & NAVBAR
======================================================== */
.site-header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Buyer Home: Transparent Floating Navbar on top of Hero Slider */
.page-buyer-home .site-header,
.navbar-over-slider {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    transition: background 0.35s ease, border-bottom 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.page-buyer-home .site-header:not(.scrolled),
.navbar-over-slider:not(.scrolled) {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-buyer-home .site-header .nav-link,
.navbar-over-slider .nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.page-buyer-home .site-header .brand-logo-img,
.navbar-over-slider .brand-logo-img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.page-buyer-home .site-header .mobile-nav-toggle,
.navbar-over-slider .mobile-nav-toggle {
    color: #FFFFFF;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}

/* Sticky state when scrolling down past slider: Charcoal Black background appears */
.page-buyer-home .site-header.scrolled,
.navbar-over-slider.scrolled {
    position: fixed;
    top: 0;
    background: #181818 !important; /* Charcoal Black */
    background-color: #181818 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.page-buyer-home .site-header.scrolled .nav-link,
.navbar-over-slider.scrolled .nav-link {
    text-shadow: none;
}

.navbar-container {
    max-width: 1480px;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 12px;
    width: 100%;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 4px 0;
    height: auto;
    border-radius: 0;
    border: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    box-shadow: none;
    flex-shrink: 0;
}

.brand-logo-link:hover {
    background: transparent;
    opacity: 0.95;
    transform: scale(1.02);
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 165px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 768px) {
    .navbar {
        height: 66px;
    }
    .brand-logo-img {
        height: 30px;
        max-width: 135px;
    }
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.brand-text span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: clamp(10px, 1.4vw, 22px);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14.5px;
    font-weight: 500;
    padding: 7px 11px;
    border-radius: 7px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap !important;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #F3C952;
    background: rgba(201, 162, 39, 0.14);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 11px;
    right: 11px;
    height: 2px;
    background: #E2B755;
    border-radius: 2px;
}

.nav-unread-badge {
    background: #D4AF37;
    color: #0F2747;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-user-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Luxury Post Property CTA */
.btn-post-property {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    border-radius: 8px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #0B1C33 !important;
    font-size: 13.5px;
    flex-shrink: 0;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-post-property:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #E2B755 0%, #C99718 100%);
}

.btn-post-property .btn-icon {
    font-size: 14px;
    font-weight: 800;
}

/* User Profile Trigger & Dropdown Menu */
.user-dropdown-container {
    position: relative;
    flex-shrink: 0;
}

.user-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.38);
    border-radius: 28px;
    padding: 4px 12px 4px 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #FFFFFF;
    flex-shrink: 0;
    font-family: inherit;
    font-size: 13.5px;
    text-decoration: none;
    outline: none;
    user-select: none;
}

.user-profile-trigger:hover,
.user-profile-trigger.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(201, 162, 39, 0.7);
}

.user-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #996515 100%);
    color: #0B1C33;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
}

.user-profile-name {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-role {
    font-size: 10px;
    color: #D4AF37;
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.dropdown-chevron {
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.user-profile-trigger.active .dropdown-chevron {
    transform: rotate(180deg);
    color: #D4AF37;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: #0B1C33;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    padding: 8px;
    z-index: 1050;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-user-header {
    padding: 10px 12px 8px;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    word-break: break-word;
}

.dropdown-user-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11.5px;
}

.dropdown-role-badge {
    background: rgba(201, 162, 39, 0.2);
    color: #D4AF37;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dropdown-user-city {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.dropdown-item .item-icon {
    font-size: 14px;
}

.dropdown-item-logout {
    color: #F87171;
}

.dropdown-item-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
}

/* Fast Logout Button */
.btn-nav-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1;
}

.btn-nav-logout svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.btn-nav-logout:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #FCA5A5;
    transform: translateY(-1px);
}

/* Guest Group Buttons */
.nav-guest-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-nav-login:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #FFFFFF;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.mobile-nav-toggle:hover {
    opacity: 0.8;
}

/* Mobile Navigation Drawer */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 39, 71, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.drawer-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-link {
    color: #E2E8F0;
    font-size: 17px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.drawer-link:hover, .drawer-link.active {
    background-color: rgba(201, 162, 39, 0.15);
    color: var(--secondary);
}

/* ========================================================
   BUTTONS & BADGES
======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-success {
    background-color: var(--success);
    color: #FFFFFF;
}

.btn-success:hover {
    background-color: #11362a;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
}

.btn-outline-white:hover {
    background-color: #FFFFFF;
    color: var(--primary);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background-color: var(--secondary-light);
    color: #927216;
    border: 1px solid var(--border-gold);
}

.badge-active {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-rejected {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-suspended {
    background-color: #E2E8F0;
    color: #475569;
}

/* ========================================================
   CARDS & FORMS
======================================================== */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

/* Password Input Group & Visibility Eye Button */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-group .form-control {
    padding-right: 48px !important;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #64748b;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s, background-color 0.2s, transform 0.1s;
    z-index: 2;
}

.btn-toggle-password:hover {
    color: var(--primary);
    background-color: rgba(15, 62, 55, 0.06);
}

.btn-toggle-password:focus {
    outline: none;
    color: var(--secondary);
}

.btn-toggle-password.visible {
    color: var(--secondary);
}

.btn-toggle-password svg {
    display: block;
    width: 19px;
    height: 19px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

/* Alerts */
.alert-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.alert-success {
    background-color: #DEF7EC;
    color: #03543F;
    border: 1px solid #BCF0DA;
}

.alert-error {
    background-color: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #FBD5D5;
}

.alert-warning {
    background-color: #FEF08A;
    color: #854D0E;
    border: 1px solid #FDE047;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

/* ========================================================
   ROLE SELECTION SCREEN
======================================================== */
.auth-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(15, 39, 71, 0.03) 0%, rgba(201, 162, 39, 0.04) 100%);
}

.auth-card-wide {
    width: 100%;
    max-width: 920px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.auth-card-narrow {
    width: 100%;
    max-width: 480px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.auth-toggle-switch {
    display: inline-flex;
    background: #EEF2F6;
    padding: 5px;
    border-radius: 30px;
    margin: 12px auto 20px;
    gap: 4px;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.auth-toggle-switch .toggle-pill {
    padding: 9px 26px;
    border-radius: 24px;
    font-size: 14.5px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-toggle-switch .toggle-pill.active {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(15, 39, 71, 0.25);
}

.auth-toggle-switch .toggle-pill:hover:not(.active) {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.7);
}

.role-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.role-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: #FFFFFF;
}

.role-card:hover {
    border-color: var(--secondary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
}

.role-icon-box {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 20px;
    border: 2px solid var(--secondary);
    color: var(--primary);
    transition: var(--transition);
}

.role-card:hover .role-icon-box {
    background-color: var(--secondary);
    color: #FFFFFF;
}

.role-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.role-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ========================================================
   BUILDER STEPPER REGISTRATION UI
======================================================== */
.stepper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 36px;
    padding: 0 10px;
}

.stepper-track {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: #E2E8F0;
    z-index: 1;
}

.stepper-track-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--secondary);
    transition: width 0.4s ease;
    width: 0%;
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #64748B;
    transition: var(--transition);
}

.step-item.active .step-circle {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

.step-item.completed .step-circle {
    border-color: var(--success);
    background-color: var(--success);
    color: #FFFFFF;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    text-align: center;
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-pane.active {
    display: block;
}

.stepper-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ========================================================
   VERIFICATION PENDING SCREEN
======================================================== */
.status-card {
    text-align: center;
    padding: 50px 30px;
    max-width: 600px;
    margin: 40px auto;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--secondary);
}

.status-icon-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

.status-icon-pending {
    background-color: #FEF3C7;
    color: #D97706;
}

.status-icon-active {
    background-color: #DEF7EC;
    color: #03543F;
}

.status-icon-rejected {
    background-color: #FDE8E8;
    color: #9B1C1C;
}

/* ========================================================
   PROPERTY LISTINGS & CARDS
======================================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

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

.property-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.property-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #0F2747;
    overflow: hidden;
}

.property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.property-tag-listing {
    position: absolute;
    top: 14px;
    left: 14px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
    line-height: 1.2;
}

.property-tag-listing.tag-sale {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.property-tag-listing.tag-rent {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.property-badge-type {
    position: absolute;
    top: 14px;
    left: 74px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.property-badge-price {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--success);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.property-like-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.property-like-btn.liked {
    background-color: #FEE2E2;
    color: #DC2626;
}

/* Card Body Topbar: Price & Inline Like Button (Below Image) */
.property-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
}

.property-card-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.property-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.property-card-type-chip {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #F1F5F9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

.property-like-btn-inline {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex-shrink: 0;
    width: 38px !important;
    height: 38px !important;
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-like-btn-inline:hover {
    background: #FFF1F2 !important;
    border-color: #FECDD3 !important;
    transform: scale(1.08);
}

.property-like-btn-inline.liked {
    background: #FEE2E2 !important;
    border-color: #FCA5A5 !important;
    color: #DC2626 !important;
}

.property-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.property-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: #475569;
    margin-bottom: 16px;
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* ========================================================
   STREAMLINED FOOTER
======================================================== */
.site-footer {
    background-color: var(--primary);
    color: #E2E8F0;
    padding: 48px 0;
    margin-top: auto;
    border-top: 3px solid var(--secondary);
}

.footer-streamlined-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 36px;
}

/* Off-white container behind the logo */
.footer-offwhite-container {
    background-color: #F8F8F6;
    padding: 18px 32px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(201, 162, 39, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-offwhite-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(201, 162, 39, 0.25);
}

.footer-brand-logo {
    height: 96px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
}

/* Quick links styling */
.footer-heading {
    color: #FFFFFF;
    font-size: 16px;
    font-family: var(--font-heading);
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 6px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--secondary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list a {
    color: #CBD5E1;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

/* Social media icon buttons */
.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #FFFFFF;
    border-color: transparent;
}

.footer-social-btn.facebook:hover {
    background: #1877F2;
    color: #FFFFFF;
    border-color: #1877F2;
}

.footer-social-btn.whatsapp:hover {
    background: #25D366;
    color: #FFFFFF;
    border-color: #25D366;
}

@media (max-width: 768px) {
    .footer-streamlined-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .footer-offwhite-container {
        padding: 14px 24px;
    }

    .footer-brand-logo {
        height: 78px;
        max-width: 250px;
    }

    /* 2-Column Mobile Property Grid (Point 19) */
    .property-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .property-thumb {
        height: 135px !important;
    }
    .property-tag-listing {
        top: 8px !important;
        left: 8px !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    .property-badge-type {
        top: 8px !important;
        left: 54px !important;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    .property-badge-price {
        bottom: 8px !important;
        right: 8px !important;
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
    .property-like-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        top: 8px !important;
        right: 8px !important;
    }
    .property-body {
        padding: 10px !important;
    }
    .property-title {
        font-size: 13px !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .property-location {
        font-size: 10px !important;
        margin-bottom: 6px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .property-features {
        font-size: 10px !important;
        gap: 4px !important;
        margin-bottom: 8px !important;
        flex-wrap: wrap !important;
    }
    .property-features span {
        padding: 2px 5px !important;
    }
    .property-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        margin-top: auto !important;
    }
    .property-footer .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Medium-large screens & small laptops: tighten navbar menu and action gaps to prevent overflow */
@media (max-width: 1240px) {
    .nav-menu {
        gap: 8px;
    }
    .nav-link {
        padding: 6px 8px;
        font-size: 13.5px;
    }
    .nav-actions {
        gap: 8px;
    }
    .nav-user-group {
        gap: 6px;
    }
    .btn-post-property {
        padding: 6px 11px;
        font-size: 12.5px;
    }
    .btn-nav-logout {
        padding: 6px 10px;
        font-size: 12.5px;
        gap: 5px;
    }
}

/* Collapse full text menu into mobile toggle when width is insufficient */
@media (max-width: 1140px) {
    .nav-menu {
        display: none;
    }
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .role-selection-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet view adjustments */
@media (max-width: 991px) {
    .user-profile-role {
        display: none;
    }
    .user-profile-trigger {
        padding: 3px 8px 3px 4px;
    }
    .btn-nav-logout {
        padding: 6px 9px;
    }
}

/* Mobile & Small Tablet devices (<= 768px): Logout transforms into compact icon pill */
@media (max-width: 768px) {
    .user-profile-info {
        display: none;
    }
    .user-profile-trigger {
        padding: 3px;
        border-radius: 50%;
        gap: 0;
    }
    .dropdown-chevron {
        display: none;
    }
    .btn-nav-logout {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .btn-nav-logout .btn-logout-text {
        display: none;
    }
}

/* Small mobile devices (<= 576px): Compact post property and logout buttons fit comfortably */
@media (max-width: 576px) {
    .navbar-container {
        padding: 0 10px;
        gap: 6px;
    }
    .nav-actions {
        gap: 6px;
    }
    .nav-user-group {
        gap: 6px;
    }
    .btn-post-property {
        padding: 6px 8px;
        font-size: 11.5px;
        border-radius: 6px;
    }
    .btn-post-property .btn-post-text {
        display: none;
    }
    .btn-post-property {
        width: 34px;
        height: 34px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    .btn-post-property .btn-icon {
        font-size: 15px;
        margin: 0;
    }
    .btn-nav-logout {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .btn-nav-logout .btn-logout-text {
        display: none;
    }
}

@media (max-width: 640px) {
    .stepper-header {
        padding: 0;
    }
    .step-label {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .auth-card-wide, .auth-card-narrow {
        padding: 24px 18px;
    }
}

/* ========================================================
   MODERN HERO SEARCH & FILTER CONSOLE (LUXURY THEME)
======================================================== */
.hero-search-wrapper {
    position: relative;
    z-index: 25;
    margin-top: -60px;
    margin-bottom: 45px;
    padding: 0 16px;
}

@media (max-width: 992px) {
    .hero-search-wrapper {
        margin-top: -25px;
    }
}

@media (max-width: 768px) {
    .hero-search-wrapper {
        margin-top: 18px;
        margin-bottom: 30px;
        padding: 0 12px;
    }
}

.hero-search-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 45px -10px rgba(15, 39, 71, 0.16), 0 0 0 1px rgba(201, 162, 39, 0.25);
    border: 1px solid rgba(201, 162, 39, 0.22);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.hero-search-card:hover {
    box-shadow: 0 25px 50px -10px rgba(15, 39, 71, 0.22), 0 0 0 1px rgba(201, 162, 39, 0.35);
}

/* Mode Switcher Tabs */
.hero-search-tabs {
    display: flex;
    align-items: center;
    background: #F8F8F6;
    border-bottom: 1px solid #E2E8F0;
    padding: 6px 14px 0;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.hero-search-tabs::-webkit-scrollbar {
    display: none;
}

.hero-search-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #64748B;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
}

.hero-search-tab:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.6);
}

.hero-search-tab.active {
    color: var(--primary);
    background: #FFFFFF;
    border-bottom: 3px solid var(--secondary);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

/* Fields Grid */
.hero-search-body {
    padding: 20px 24px;
}

@media (max-width: 768px) {
    .hero-search-body {
        padding: 16px 14px;
    }
}

.hero-search-form {
    display: grid;
    grid-template-columns: 1.5fr 1.15fr 1.15fr auto;
    align-items: stretch;
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px solid #CBD5E1;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

@media (max-width: 1100px) {
    .hero-search-form {
        grid-template-columns: 1fr 1fr;
        border: none;
        box-shadow: none;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .hero-search-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Individual Search Segment */
.hero-search-segment {
    position: relative;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #E2E8F0;
    transition: background-color 0.2s ease;
}

.hero-search-segment:last-of-type {
    border-right: none;
}

.hero-search-segment:hover, .hero-search-segment:focus-within {
    background-color: #F8FAFC;
}

@media (max-width: 1100px) {
    .hero-search-segment {
        border: 1px solid #CBD5E1;
        border-radius: 12px;
        background: #F8F8F6;
        padding: 10px 14px;
    }
}

.hero-search-segment-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.hero-search-input,
.hero-search-select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    padding: 4px 0;
    outline: none;
    font-family: inherit;
}

.hero-search-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.hero-search-select {
    cursor: pointer;
    text-overflow: ellipsis;
}

.hero-search-subtext {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Actions */
.hero-search-actions {
    display: flex;
    align-items: stretch;
    padding: 6px;
    background: transparent;
    gap: 6px;
}

@media (max-width: 1100px) {
    .hero-search-actions {
        grid-column: span 2;
        padding: 0;
        margin-top: 4px;
    }
}

@media (max-width: 768px) {
    .hero-search-actions {
        grid-column: span 1;
        flex-direction: column;
        gap: 8px;
    }
}

.btn-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary) 0%, #D4AF37 100%);
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
    width: 100%;
}

.btn-search-submit:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B89320 100%);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.45);
}

.btn-search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-search-reset:hover {
    background: #E2E8F0;
    color: var(--primary);
}

@media (max-width: 768px) {
    .btn-search-reset {
        width: 100%;
        padding: 12px;
    }
}

/* Quick Hubs Bar inside Card */
.hero-search-hubs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #E2E8F0;
    overflow-x: auto;
    scrollbar-width: none;
}
.hero-search-hubs::-webkit-scrollbar {
    display: none;
}

.hero-search-hubs-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-search-hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: #F8F8F6;
    border: 1px solid #E2E8F0;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hero-search-hub-pill:hover, .hero-search-hub-pill.active {
    background: var(--secondary-light);
    color: #927216;
    border-color: var(--secondary);
    transform: translateY(-1px);
}

/* ========================================================
   MODAL DIALOGS: AUTHENTICATION & OTP VERIFICATION
======================================================== */
@keyframes authModalFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(-8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-dialog-overlay, .otp-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 39, 71, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.otp-dialog-overlay {
    z-index: 10005; /* higher than auth modal if nested */
}

.auth-dialog-card, .otp-dialog-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 540px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.35);
    animation: authModalFadeIn 0.22s ease-out;
    margin: auto;
}

.auth-dialog-header {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #17385E 100%);
    color: #FFFFFF;
    padding: 20px 24px 16px;
    position: relative;
    border-bottom: 3px solid var(--secondary);
}

.auth-dialog-close, .otp-dialog-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #CBD5E1;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.auth-dialog-close:hover, .otp-dialog-close:hover {
    color: #FFFFFF;
}

.auth-dialog-tabs {
    flex-shrink: 0;
    display: flex;
    background: #F1F5F9;
    border-bottom: 1px solid var(--border);
    padding: 4px 6px;
    gap: 4px;
}

.auth-dialog-tab {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 13.5px;
    border: none;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.auth-dialog-tab.active {
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-dialog-body {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: calc(92vh - 125px);
    padding: 20px 24px 24px;
}

.auth-dialog-body::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
}

.otp-box-wrapper {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 16px 0;
    text-align: center;
}

.otp-input-code {
    width: 100%;
    max-width: 240px;
    height: 52px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 14px;
    text-align: center;
    border: 2px solid #CBD5E1;
    border-radius: 8px;
    outline: none;
    background: #FFFFFF;
    color: var(--primary);
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
}

.otp-input-code:focus {
    border-color: var(--secondary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.otp-input-code.is-invalid {
    border-color: #DC2626 !important;
    background-color: #FEF2F2 !important;
}

@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}

.shake-animation {
    animation: otpShake 0.35s ease-in-out;
}

.otp-resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748B;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.otp-resend-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.otp-resend-btn:disabled {
    color: #94A3B8;
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.7;
}

.role-fields-container {
    animation: fadeInRole 0.2s ease-in-out;
}

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

@media (max-width: 576px) {
    .auth-dialog-card, .otp-dialog-card {
        max-width: 100%;
        border-radius: 12px;
        margin: 8px;
    }
    .auth-dialog-header {
        padding: 16px 18px 14px;
    }
    .auth-dialog-body {
        padding: 16px 16px 20px;
    }
    .otp-input-code {
        font-size: 24px;
        letter-spacing: 10px;
        height: 48px;
    }
}

.badge-mobile-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #DCFCE7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #86EFAC;
    margin-top: 6px;
}

/* ========================================================
   CLIENT AGENT RATING MODULE & RATING CARDS
======================================================== */
.agent-rating-section {
    padding: 50px 0 60px 0;
    background: #F8F9FB;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    margin: 40px 0 50px 0;
}

.agent-rating-master-card {
    background: linear-gradient(135deg, #0F2747 0%, #1A365D 60%, #0D2038 100%);
    border-radius: 16px;
    padding: 34px 38px;
    color: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(15, 39, 71, 0.2);
    border: 1px solid rgba(201, 162, 39, 0.35);
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.agent-rating-master-score {
    display: flex;
    align-items: center;
    gap: 18px;
}

.agent-score-big {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    color: #F8FAFC;
    letter-spacing: -1px;
}

.agent-stars-cluster {
    color: #F59E0B;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 6px;
}

.agent-rating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
}

.agent-rating-card {
    background: #FFFFFF;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-rating-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(15, 39, 71, 0.12);
    border-color: #CBD5E1;
}

.agent-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.agent-avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(15, 39, 71, 0.18);
    border: 2px solid #FFFFFF;
}

.agent-card-info {
    flex: 1;
    min-width: 0;
}

.agent-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.agent-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 10px 0 14px 0;
}

.agent-score-pill .stars {
    color: #D97706;
}

.agent-review-snippet {
    background: #F8FAFC;
    border-left: 3px solid var(--secondary);
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
    font-style: italic;
}

.agent-reviewer-author {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
    margin-top: 6px;
    font-style: normal;
    display: flex;
    justify-content: space-between;
}

.agent-card-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #F1F5F9;
    padding-top: 14px;
}

/* Star Rating Selector in Rating Modal */
.star-picker-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    margin: 6px 0 10px 0;
}

.star-picker-item {
    color: #D1D5DB;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-picker-item:hover,
.star-picker-item.active {
    color: #F59E0B;
}

.star-picker-item:hover {
    transform: scale(1.15);
}

.star-rating-hint {
    font-size: 13px;
    font-weight: 700;
    color: #92400E;
    margin-left: 8px;
}

/* Real Estate Agent Rating Card on Property Details (Only Agent Name & Star Rating) */
.agent-rating-card-box {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 100%);
    border: 1.5px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    user-select: none;
}
.agent-rating-card-box:hover {
    transform: translateY(-2px);
    border-color: #F59E0B;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22);
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 100%);
}
.agent-rating-card-box:active {
    transform: translateY(0);
}
.agent-rating-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}
.agent-rating-card-stars {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.agent-stars-gold {
    color: #F59E0B;
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1;
}
.agent-score-num {
    font-size: 15px;
    font-weight: 800;
    color: #92400E;
    line-height: 1;
}

/* Real Estate Agent Reviews Modal on Property Details */
.agent-reviews-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 39, 71, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.agent-reviews-modal-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 620px;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    flex-direction: column;
    margin: auto;
    animation: authModalFadeIn 0.22s ease-out;
}
.agent-reviews-modal-header {
    background: linear-gradient(135deg, #0F2747 0%, #17385E 100%);
    color: #FFFFFF;
    padding: 18px 24px;
    position: relative;
    border-bottom: 3px solid #F59E0B;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.agent-reviews-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.agent-reviews-modal-close {
    background: none;
    border: none;
    color: #CBD5E1;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0;
}
.agent-reviews-modal-close:hover {
    color: #FFFFFF;
}
.agent-reviews-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.agent-reviews-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 12px;
}
.agent-reviews-summary-score {
    display: flex;
    align-items: center;
    gap: 10px;
}
.agent-reviews-score-big {
    font-size: 28px;
    font-weight: 800;
    color: #92400E;
    line-height: 1;
}
.agent-write-review-btn {
    background: #0F2747;
    color: #FFFFFF;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.agent-write-review-btn:hover {
    background: #D97706;
    color: #FFFFFF;
}
.agent-review-form-card {
    display: none;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px 20px;
    animation: authModalFadeIn 0.2s ease-out;
}
.agent-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.agent-review-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.agent-review-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}
.agent-reviewer-name {
    font-weight: 700;
    color: #0F2747;
    font-size: 14px;
}
.agent-review-date {
    font-size: 12px;
    color: #94A3B8;
}
.agent-review-item-stars {
    color: #F59E0B;
    font-size: 15px;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.agent-review-item-title {
    font-weight: 600;
    color: #1E293B;
    font-size: 13px;
    margin-bottom: 4px;
}
.agent-review-item-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}
