/* ============================================================
   Kenya House Connect — Main CSS  |  Mobile-first
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --primary: #1E73BE;
    --primary-dark: #0D4F8B;
    --primary-light: #2F8BC7;
    --secondary: #003B4D;
    --accent: #F39C12;
    --success: #28A745;
    --success-light: #34C759;
    --warning: #F39C12;
    --danger: #1E73BE;
    --info: #2F8BC7;
    --dark: #003B4D;
    --gray-100: #FAFAFA;
    --gray-200: #F2F2F2;
    --gray-300: #CCCCCC;
    --gray-500: #555555;
    --gray-700: #555555;
    --gray-900: #333333;
    --light: #FFFFFF;
    --off-white: #FAFAFA;
    --border-gray: #CCCCCC;
    --tag-blue: #D9EAF7;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 4px rgba(13, 79, 139, .08);
    --shadow: 0 4px 16px rgba(13, 79, 139, .10);
    --shadow-lg: 0 8px 32px rgba(13, 79, 139, .14);
    --header-h: 64px;
    --sidebar-w: 240px;
    --transition: .2s ease;
}

/* ── BASE ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-main);
    color: var(--gray-900);
    background: #fff;
    overflow-x: hidden
}

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

a:hover {
    color: var(--primary-dark)
}

img {
    max-width: 100%
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    z-index: 9999;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 8px 0
}

.skip-link:focus {
    top: 0
}

.offline-banner {
    background: var(--warning);
    color: var(--dark);
    text-align: center;
    padding: 8px;
    font-size: .9rem
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    z-index: 1030
}

.site-header .navbar {
    padding: 0;
    min-height: var(--header-h)
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary) !important
}

.brand-icon {
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem
}

.brand-accent {
    color: var(--primary)
}

.navbar-toggler {
    border: none;
    padding: 6px
}

.navbar-toggler:focus {
    box-shadow: none
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: .5rem .8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition)
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important
}

.mega-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 240px
}

.mega-menu .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: .9rem
}

.mega-menu .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary)
}

.nav-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition)
}

.nav-icon-btn:hover {
    background: var(--primary);
    color: #fff
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: #fff;
    font-size: .6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

.user-avatar-btn {
    background: none;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    overflow: hidden;
    cursor: pointer
}

.user-avatar-btn::after {
    display: none
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.avatar-initials {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem
}

.user-dropdown {
    box-shadow: var(--shadow-lg);
    border: none;
    border-radius: var(--radius);
    min-width: 220px
}

.user-dropdown-header {
    padding: 12px 16px
}

.user-dropdown .dropdown-item {
    padding: 8px 16px;
    border-radius: var(--radius-sm)
}

/* Mobile dropdown fix */
@media (max-width: 991.98px) {
    .user-dropdown {
        position: fixed !important;
        top: var(--header-h) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        border-radius: 0 0 var(--radius) var(--radius) !important;
        max-height: 70vh;
        overflow-y: auto;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
        box-shadow: var(--shadow-lg);
    }

    .user-dropdown.show {
        transform: translateY(0);
    }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    height: 45vh;
    min-height: 280px;
    max-height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 53, 87, .2) 0%, rgba(30, 115, 190, .1) 100%);
    z-index: 1
}

/* Mobile overlay override - force no overlay */
@media (max-width: 768px) {
    .hero-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

.hero-content {
    position: absolute;
    top: calc(50% + var(--header-h) / 2);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 0 16px
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    margin-bottom: .5rem
}

.hero-subtitle {
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    opacity: .9;
    margin-bottom: 1.5rem
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap
}

.hero-stat {
    text-align: center
}

.hero-stat span {
    font-size: 1.5rem;
    font-weight: 800;
    display: block
}

.hero-stat small {
    opacity: .8;
    font-size: .8rem
}

/* Compact hero section on small screens */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        display: none;
    }

    .hero-search-box {
        padding: 12px;
        border-radius: var(--radius);
    }

    .search-tabs {
        gap: 2px;
        margin-bottom: 8px;
    }

    .search-tab {
        padding: 4px 12px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }

    .search-fields {
        gap: 6px;
        flex-wrap: wrap;
    }

    .search-field {
        min-width: calc(50% - 3px);
        flex: 1 1 calc(50% - 3px);
    }

    /* Hide county, town, category fields on mobile by default */
    .search-field:nth-child(2),
    .search-field:nth-child(3),
    .search-field:nth-child(4) {
        display: none;
    }

    .search-field-main {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .search-input,
    .search-select {
        padding: 10px 12px 10px 32px;
        font-size: 0.85rem;
    }

    .search-field>i {
        left: 10px;
        font-size: 0.85rem;
    }

    .search-btn {
        width: calc(50% - 3px);
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .advanced-search-link {
        font-size: 0.75rem;
        margin-top: 0;
        display: inline-flex;
        align-items: center;
        width: calc(50% - 3px);
        justify-content: center;
        padding: 10px 16px;
        background: var(--gray-100);
        border-radius: var(--radius-sm);
        color: var(--primary);
        font-weight: 600;
    }

    .hero-stats {
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero-stat span {
        font-size: 1.2rem;
    }

    .hero-stat small {
        font-size: 0.7rem;
    }
}

/* ── SEARCH BOX ──────────────────────────────────────────── */
.hero-search-box {
    background: rgba(255, 255, 255, .97);
    border-radius: var(--radius-lg);
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px)
}

.search-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px
}

.search-tab {
    background: none;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    padding: 6px 18px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    font-size: .9rem
}

.search-tab.active,
.search-tab:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.search-fields {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.search-field {
    position: relative;
    flex: 1;
    min-width: 140px
}

.search-field>i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    z-index: 1;
    pointer-events: none
}

.search-input,
.search-select {
    width: 100%;
    padding: 12px 12px 12px 36px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    background: #fff;
    appearance: none
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, .12)
}

.search-field-main {
    flex: 2;
    min-width: 200px
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition)
}

.search-btn:hover {
    background: var(--primary-dark)
}

.advanced-search-link {
    display: inline-block;
    margin-top: 8px;
    font-size: .85rem;
    color: var(--primary)
}

.advanced-search-panel {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px
}

.advanced-search-panel .form-label {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 4px
}

.advanced-search-panel .form-control,
.advanced-search-panel .form-select {
    border-color: var(--gray-300);
    background: #fff;
    color: var(--gray-900)
}

.advanced-search-panel .form-control:focus,
.advanced-search-panel .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 190, .25)
}

.amenity-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.amenity-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    cursor: pointer;
    color: var(--gray-900);
    font-weight: 500
}

.amenity-checkboxes input[type="checkbox"] {
    accent-color: var(--primary)
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: .9rem;
    border-bottom: 1px solid var(--gray-100)
}

.suggestion-item:hover {
    background: var(--gray-100);
    color: var(--primary)
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section-pad {
    padding: 60px 0
}

.section-header h2 {
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem)
}

/* ── CATEGORY CARDS ──────────────────────────────────────── */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    color: var(--gray-700);
    transition: var(--transition);
    min-height: 120px
}

.category-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow)
}

.category-icon {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: var(--transition)
}

.category-card:hover .category-icon {
    background: var(--secondary)
}

.category-name {
    font-weight: 700;
    font-size: .9rem
}

.category-count {
    font-size: .75rem;
    color: var(--gray-500)
}

/* ── PROPERTY CARDS ──────────────────────────────────────── */
.property-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200)
}

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

.property-card-img {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: var(--gray-200)
}

.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease
}

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

.card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.badge-type {
    padding: 3px 8px;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 4px
}

.badge-rent {
    background: #2196F3;
    color: #fff
}

.badge-sale {
    background: #4CAF50;
    color: #fff
}

.badge-airbnb {
    background: #FF5A5F;
    color: #fff
}

.badge-lease {
    background: #9C27B0;
    color: #fff
}

.badge-featured {
    background: var(--warning);
    color: var(--dark)
}

.badge-verified {
    background: rgba(255, 255, 255, .9);
    color: #2dc653;
    font-size: .65rem
}

.badge-lg {
    font-size: .8rem;
    padding: 5px 12px
}

.card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: var(--gray-700);
    transition: var(--transition)
}

.card-action-btn:hover,
.card-action-btn.active {
    background: var(--primary);
    color: #fff
}

.card-love-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #e63946;
    transition: var(--transition);
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2)
}

.card-love-btn:hover {
    transform: scale(1.15);
    color: #dc2626
}

.card-love-btn.active {
    background: #e63946;
    color: #fff
}

.card-whatsapp {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #25D366;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition)
}

.card-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1)
}

.property-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.property-meta {
    margin-bottom: 4px
}

.property-category {
    font-size: .75rem;
    color: var(--primary);
    font-weight: 600
}

.property-title {
    font-size: .9rem;
    font-weight: 700;
    margin: 4px 0;
    line-height: 1.3
}

.property-title a {
    color: var(--gray-900)
}

.property-title a:hover {
    color: var(--primary)
}

.property-location {
    font-size: .78rem;
    color: var(--gray-500);
    margin-bottom: 6px
}

.property-location i {
    color: var(--primary)
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px
}

.property-features span {
    font-size: .75rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 4px
}

.property-features i {
    color: var(--primary);
    font-size: .7rem
}

.property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100)
}

.property-price {
    font-size: .95rem;
    font-weight: 800;
    color: var(--primary)
}

.property-price small {
    font-size: .7rem;
    font-weight: 400;
    color: var(--gray-500)
}

.negotiable-tag {
    font-size: .65rem;
    background: #e8f5e9;
    color: #2dc653;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px
}

.property-card-btns {
    display: flex;
    gap: 6px;
    margin-top: 8px
}

.property-card-btns .btn {
    flex: 1;
    padding: 4px 6px;
    font-size: .7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

@media(max-width:575.98px) {
    .property-card-btns .btn {
        font-size: .65rem;
        padding: 3px 4px
    }

    .property-card-btns .btn i {
        display: none
    }
}

/* ── SWIPER ──────────────────────────────────────────────── */
.properties-swiper .swiper-button-prev,
.properties-swiper .swiper-button-next {
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    --swiper-navigation-size: 16px;
    box-shadow: var(--shadow)
}

.swiper-btn-white {
    --swiper-navigation-color: #fff
}

.gallery-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: zoom-in
}

.gallery-thumbs {
    height: 80px
}

.gallery-thumbs .swiper-slide {
    width: 80px !important;
    border-radius: 6px;
    overflow: hidden;
    opacity: .6;
    cursor: pointer
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary)
}

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

.testimonials-swiper .swiper-slide {
    padding: 8px
}

/* ── LOCATION CARDS ──────────────────────────────────────── */
.location-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    padding-top: 65%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transition: var(--transition)
}

.location-card-2 {
    background: linear-gradient(135deg, #2dc653, #118ab2)
}

.location-card-3 {
    background: linear-gradient(135deg, var(--warning), var(--primary))
}

.location-card-4 {
    background: linear-gradient(135deg, #9C27B0, #1d3557)
}

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

.location-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center
}

.location-name {
    font-size: 1rem;
    font-weight: 800
}

.location-count {
    font-size: .8rem;
    opacity: .85
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow)
}

.testimonial-body {
    font-size: .95rem;
    color: var(--gray-700);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 16px
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover
}

.testimonial-avatar-init {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem
}

/* ── FEATURE / BLOG / CTA ────────────────────────────────── */
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition)
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px)
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto
}

.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%
}

.blog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px)
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover
}

.blog-card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary))
}

.blog-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.blog-meta {
    font-size: .78rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: 6px
}

.blog-card-body h5 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 8px
}

.blog-card-body h5 a {
    color: var(--gray-900)
}

.blog-card-body h5 a:hover {
    color: var(--primary)
}

.related-post-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700)
}

.related-post-item:hover {
    background: var(--gray-100);
    color: var(--primary)
}

.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center
}

.cta-section h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 800
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, .8)
}

.footer-main {
    padding: 60px 0 40px
}

.footer-brand {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 8px
}

.footer-brand i {
    color: var(--primary)
}

.footer-tagline {
    color: rgba(255, 255, 255, .6);
    font-size: .9rem
}

.footer-contact p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px
}

.footer-contact i {
    color: var(--primary)
}

.footer-social {
    display: flex;
    gap: 10px
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    transition: var(--transition)
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px)
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0
}

.footer-links li {
    margin-bottom: 8px
}

.footer-links a {
    color: rgba(255, 255, 255, .65);
    font-size: .88rem;
    transition: var(--transition)
}

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

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    color: #fff
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, .5)
}

.footer-newsletter .form-control:focus {
    background: rgba(255, 255, 255, .15)
}

.footer-bottom {
    background: rgba(0, 0, 0, .2);
    padding: 16px 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .5)
}

/* ── SKELETON ────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #e8eaf6 25%, #f5f5f5 50%, #e8eaf6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 4px
}

.skeleton-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200)
}

.skeleton-img {
    height: 200px;
    width: 100%
}

.skeleton-body {
    padding: 12px
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px
}

.w-40 {
    width: 40%
}

.w-75 {
    width: 75%
}

.w-60 {
    width: 60%
}

.w-50 {
    width: 50%
}

.w-25 {
    width: 25%
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* ── PROPERTY DETAIL ─────────────────────────────────────── */
.breadcrumb-bar .breadcrumb-item a {
    color: var(--primary)
}

.property-detail-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800
}

.property-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 16px
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 600
}

.stat-item i {
    color: var(--primary);
    font-size: 1.1rem
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 16px
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: .88rem
}

.property-map-container {
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200)
}

.sticky-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px)
}

.price-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 6px
}

.price-amount {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary)
}

.price-period {
    color: var(--gray-500);
    font-size: .9rem
}

.price-posted {
    font-size: .8rem
}

.contact-actions .btn {
    font-weight: 600
}

.property-social-actions {
    display: flex;
    gap: 8px
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    font-size: .75rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700)
}

.action-btn:hover,
.action-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.action-btn i {
    font-size: 1rem
}

.agent-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 16px
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 12px
}

.agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary)
}

.agent-avatar-init {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem
}

.star-rating i {
    font-size: 1.5rem;
    color: var(--gray-300);
    cursor: pointer
}

.star-rating i.active,
.star-rating i:hover {
    color: var(--warning)
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .col,
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12,
    .col-auto,
    .col-sm,
    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-sm-auto,
    .col-md,
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-md-auto,
    .col-lg,
    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12,
    .col-lg-auto,
    .col-xl,
    .col-xl-1,
    .col-xl-2,
    .col-xl-3,
    .col-xl-4,
    .col-xl-5,
    .col-xl-6,
    .col-xl-7,
    .col-xl-8,
    .col-xl-9,
    .col-xl-10,
    .col-xl-11,
    .col-xl-12,
    .col-xl-auto {
        padding-left: 15px;
        padding-right: 15px;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix swiper overflow */
    .swiper,
    .swiper-container {
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
        width: 100%;
    }

    .swiper-wrapper {
        width: 100%;
    }

    .swiper-slide {
        width: auto;
        flex-shrink: 0;
    }

    /* Gallery specific fixes */
    .gallery-img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }

    /* Thumbnail fixes */
    .gallery-thumbs {
        margin: 0;
        overflow: hidden;
    }

    .gallery-thumbs .swiper-slide {
        width: 60px !important;
        height: 60px;
        margin-right: 8px;
    }

    /* Text and content overflow fixes */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .property-detail-title,
    .section-title {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Prevent tables from causing horizontal scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Fix form elements */
    .form-control,
    .form-select,
    .btn {
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Fix modals on mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    /* Lightbox fixes */
    #khcLightbox {
        padding: 10px;
        box-sizing: border-box;
    }

    #khcLightbox img {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 80px);
        width: auto;
        height: auto;
    }

    /* Fix lightbox thumbnail strip */
    #khcLightbox>div:last-child {
        max-width: calc(100vw - 20px);
        overflow-x: auto;
        padding: 4px;
        margin: 10px 0 0 0;
    }
}

/* Mobile Property Detail Fixes */
@media (max-width: 768px) {
    .breadcrumb-bar {
        padding: 8px 0 !important;
        overflow: hidden;
    }

    .breadcrumb-bar .container {
        padding: 0 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 0;
        overflow: hidden;
        width: 100%;
    }

    .breadcrumb-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    .property-detail-title {
        font-size: 1.4rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .property-stats-bar {
        gap: 8px;
        padding: 12px;
        font-size: 0.8rem;
    }

    .stat-item {
        gap: 4px;
        font-size: 0.8rem;
        min-width: 0;
        flex-shrink: 1;
    }

    .stat-item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .amenity-item {
        padding: 8px 10px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .property-social-actions {
        gap: 4px;
    }

    .action-btn {
        padding: 8px 4px;
        font-size: 0.7rem;
        min-width: 0;
        flex: 1;
    }

    .action-btn span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .price-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .price-amount {
        font-size: 1.4rem;
    }

    .contact-actions .btn {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .agent-card {
        padding: 12px;
    }

    .agent-header {
        gap: 8px;
        align-items: flex-start;
    }

    .agent-avatar,
    .agent-avatar-init {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {

    /* Override Bootstrap container padding on very small screens */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .property-stats-bar {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .stat-item {
        justify-content: flex-start;
        width: 100%;
        font-size: 0.75rem;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .property-social-actions {
        flex-direction: column;
        gap: 8px;
    }

    .action-btn {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 10px 16px;
        width: 100%;
    }

    /* Gallery mobile fixes */
    .gallery-img {
        height: 240px;
        width: 100%;
        object-fit: cover;
    }

    .gallery-thumbs .swiper-slide {
        width: 50px !important;
        height: 50px;
    }

    /* Breadcrumb mobile fixes */
    .breadcrumb-bar {
        padding: 5px 0;
    }

    .breadcrumb {
        font-size: 0.7rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .breadcrumb-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }

    .breadcrumb-item:last-child {
        max-width: 150px;
    }

    /* Price card mobile */
    .price-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .price-amount {
        font-size: 1.2rem;
    }

    /* Agent card mobile */
    .agent-card {
        padding: 10px;
    }

    .agent-avatar,
    .agent-avatar-init {
        width: 40px;
        height: 40px;
    }
}

/* Extreme small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .property-detail-title {
        font-size: 1.2rem;
    }

    .gallery-img {
        height: 200px;
    }

    .price-amount {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .stat-item {
        font-size: 0.7rem;
    }

    .amenity-item {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}

/* ── FILTER SIDEBAR ──────────────────────────────────────── */
.filter-sidebar {
    padding: 20px;
    background: #fff;
    border-right: 1px solid var(--gray-200);
    min-height: 100vh
}

.sticky-sidebar {
    position: sticky;
    top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto
}

.filter-section {
    margin-bottom: 20px
}

.filter-heading {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    margin-bottom: 10px
}

.bed-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.bed-btn {
    padding: 5px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    font-size: .82rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700)
}

.bed-btn.active,
.bed-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.amenity-filter-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.amenity-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    cursor: pointer
}

.amenity-filter-item input {
    accent-color: var(--primary)
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.filter-chip {
    background: rgba(230, 57, 70, .1);
    color: var(--primary);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .78rem;
    font-weight: 600
}

.view-toggle {
    display: flex;
    gap: 4px
}

.view-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition)
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.search-results-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: var(--header-h);
    z-index: 10
}

.empty-state i {
    color: var(--gray-300)
}

/* ── AUTH ────────────────────────────────────────────────── */
.auth-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%)
}

.auth-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 40px 0
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 480px;
    width: 100%
}

.auth-card-wide {
    max-width: 640px
}

.auth-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    display: inline-block
}

.auth-brand i {
    color: var(--primary)
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200)
}

.auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: var(--gray-500);
    font-size: .85rem
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: var(--transition)
}

.strength-weak {
    background: var(--primary);
    width: 33%
}

.strength-medium {
    background: var(--warning);
    width: 66%
}

.strength-strong {
    background: var(--success);
    width: 100%
}

/* ── DASHBOARD ───────────────────────────────────────────── */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--header-h))
}

.dashboard-sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--secondary);
    flex-shrink: 0;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column
}

.dashboard-main {
    flex: 1;
    padding: 24px;
    background: var(--gray-100);
    min-height: 100vh
}

.dash-topbar {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200)
}

.dash-user-info {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0
}

.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary)
}

.dash-avatar-init {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

.dash-user-meta strong {
    color: #fff;
    font-size: .9rem;
    display: block
}

.dash-user-meta span {
    color: rgba(255, 255, 255, .6);
    font-size: .78rem
}

.dash-nav {
    padding: 12px 8px;
    flex: 1;
    overflow-y: auto
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .7);
    font-size: .88rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px
}

.dash-nav-item:hover,
.dash-nav-item.active {
    background: rgba(255, 255, 255, .12);
    color: #fff
}

.dash-nav-item.active {
    border-left: 3px solid var(--primary);
    padding-left: 9px
}

.dash-nav-item i {
    width: 18px;
    text-align: center
}

.dash-nav-footer {
    padding: 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    flex-shrink: 0
}

/* ── DASHBOARD MOBILE MENU ───────────────────────────────── */
.dash-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column
}

.dash-mobile-menu.open {
    transform: translateX(0)
}

.dash-mobile-header {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-100)
}

.dash-mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px
}

.dash-mobile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--gray-800);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: var(--transition);
    font-weight: 500
}

.dash-mobile-item:hover,
.dash-mobile-item.active {
    background: var(--gray-100);
    color: var(--primary)
}

.dash-mobile-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem
}

.dash-mobile-menu hr {
    border-color: var(--gray-200);
    margin: 12px 0
}

.dash-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px
}

.dash-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100)
}

.dash-card-body {
    padding: 20px
}

/* ── DASHBOARD RESPONSIVE ────────────────────────────────── */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        position: fixed;
        left: -100%;
        top: var(--header-h);
        width: 280px;
        z-index: 1050;
        transition: left 0.3s ease;
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .dashboard-main {
        width: 100%;
        padding: 16px;
    }

    .dashboard-overlay {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .dashboard-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile dashboard quick links */
    .mobile-dashboard-links .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
        border-radius: var(--radius-sm);
    }

    .mobile-dashboard-links .btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-main {
        padding: 12px;
    }

    .dashboard-sidebar {
        width: 260px;
    }
}

/* ── STAT CARDS ──────────────────────────────────────────── */
.stat-card {
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    color: #fff
}

.stat-card-primary {
    background: #3B82F6
}

.stat-card-primary .stat-icon {
    color: #fff
}

.stat-card-success {
    background: #10B981
}

.stat-card-success .stat-icon {
    color: #fff
}

.stat-card-warning {
    background: #F59E0B
}

.stat-card-warning .stat-icon {
    color: #fff
}

.stat-card-danger {
    background: #EF4444
}

.stat-card-danger .stat-icon {
    color: #fff
}

.stat-card-info {
    background: #06B6D4
}

.stat-card-info .stat-icon {
    color: #fff
}

.stat-card-secondary {
    background: #6B7280
}

.stat-card-secondary .stat-icon {
    color: #fff
}

.stat-card-purple {
    background: #A855F7
}

.stat-card-purple .stat-icon {
    color: #fff
}

.stat-card-orange {
    background: #FF8C00
}

.stat-card-orange .stat-icon {
    color: #fff
}

.stat-icon {
    font-size: 1.5rem;
    position: absolute;
    right: 16px;
    top: 16px
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff
}

.stat-label {
    font-size: .78rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em
}

.status-badge-approved {
    background: #d4edda;
    color: #155724
}

.status-badge-pending {
    background: #fff3cd;
    color: #856404
}

.status-badge-rejected {
    background: #f8d7da;
    color: #721c24
}

.status-badge-archived {
    background: var(--gray-200);
    color: var(--gray-700)
}

.status-badge-suspended {
    background: #cce5ff;
    color: #004085
}

.status-badge-draft {
    background: #e2e3e5;
    color: #383d41
}

/* ── MESSAGES ────────────────────────────────────────────── */
.messages-layout {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-height: 60vh
}

.conversations-list {
    width: 320px;
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column
}

.conversation-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit
}

.conversation-item:hover,
.conversation-item.active {
    background: rgba(230, 57, 70, .06)
}

.conv-avatar {
    position: relative;
    flex-shrink: 0
}

.conv-avatar img,
.conv-avatar-init {
    width: 44px;
    height: 44px;
    border-radius: 50%
}

.conv-avatar-init {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

.conv-unread {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: #fff;
    font-size: .6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700
}

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

.conv-name {
    font-size: .88rem
}

.conv-preview {
    font-size: .78rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0
}

.message-thread {
    flex: 1;
    display: flex;
    flex-direction: column
}

.thread-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600
}

.thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: .9rem;
    line-height: 1.4;
    position: relative
}

.message-bubble small {
    font-size: .7rem;
    color: var(--gray-500);
    display: block;
    margin-top: 4px
}

.msg-sent {
    align-self: flex-end;
    background: #1E73BE;
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 2px 8px rgba(30, 115, 190, .2)
}

.msg-sent small {
    color: rgba(255, 255, 255, .8)
}

.msg-recv {
    align-self: flex-start;
    background: #f0f2f5;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05)
}

.message-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    font-size: .75rem
}

.message-delete-btn:hover {
    background: rgba(255, 255, 255, .3)
}

.message-bubble:hover .message-delete-btn {
    opacity: 1
}

.thread-reply {
    padding: 12px;
    border-top: 1px solid var(--gray-200)
}

.thread-reply textarea {
    resize: none
}

/* ── NOTIFICATIONS ───────────────────────────────────────── */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    transition: var(--transition)
}

.notification-item.unread {
    background: rgba(30, 115, 190, .04)
}

.notification-item:hover {
    background: var(--gray-100)
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    color: var(--primary)
}

/* ── PROPERTY FORM ───────────────────────────────────────── */
.form-section {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px
}

.form-section-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-700);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100)
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition)
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(30, 115, 190, .04)
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%
}

.upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px
}

.upload-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: grab;
    border: 2px solid transparent;
    transition: var(--transition)
}

.upload-preview-item:active {
    cursor: grabbing
}

.upload-preview-item.dragging {
    opacity: .4;
    border-color: var(--primary)
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.upload-preview-item .btn-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: .6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.img-order-badge {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 5px
}

.amenities-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px
}

.amenity-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: .85rem;
    border: 1.5px solid transparent
}

.amenity-check-item input {
    accent-color: var(--primary)
}

.amenity-check-item:has(input:checked) {
    background: rgba(30, 115, 190, .08);
    border-color: var(--primary);
    color: var(--primary)
}

.existing-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.existing-img-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200)
}

.existing-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.btn-remove-img {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: .65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

/* ── IMAGE SLOTS ─────────────────────────────────────────── */
.image-slots-container {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 20px
}

.image-slot {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px;
    transition: var(--transition);
    position: relative;
    cursor: move
}

.image-slot.selected-for-swap {
    border-color: var(--primary);
    background: rgba(30, 115, 190, .05)
}

.image-slot:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow)
}

.image-slot.dragging {
    opacity: 0.5;
    transform: rotate(3deg) scale(1.05);
    border-color: var(--warning);
    z-index: 100
}

.image-slot.drag-over {
    border-color: var(--success);
    background: rgba(40, 167, 69, .05);
    transform: scale(1.02)
}

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

.slot-number {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    user-select: none
}

.slot-number:hover {
    color: var(--primary)
}

.btn-clear-slot {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition)
}

.btn-clear-slot:hover {
    background: var(--primary-dark);
    transform: scale(1.1)
}

.slot-preview {
    width: 100%;
    height: 120px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    transition: var(--transition);
    margin-bottom: 8px
}

.slot-preview:hover {
    border-color: var(--primary);
    background: rgba(30, 115, 190, .02)
}

.upload-placeholder {
    text-align: center;
    color: var(--gray-500)
}

.upload-placeholder i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px
}

.slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px
}

/* Drag feedback */
.image-slot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 2px dashed transparent;
    border-radius: var(--radius);
    pointer-events: none;
    transition: var(--transition)
}

.image-slot.drag-over::after {
    border-color: var(--success);
    background: rgba(40, 167, 69, .1)
}

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: calc(100vh - var(--header-h))
}

.admin-sidebar {
    width: 220px;
    background: var(--dark);
    flex-shrink: 0;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto
}

.admin-main {
    flex: 1;
    padding: 24px;
    background: var(--gray-100)
}

.admin-topbar {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200)
}

.admin-brand {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.admin-nav {
    padding: 12px 8px
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .7);
    font-size: .88rem;
    transition: var(--transition);
    margin-bottom: 2px
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255, 255, 255, .12);
    color: #fff
}

.admin-nav-item.active {
    border-left: 3px solid var(--primary)
}

.admin-nav-item i {
    width: 18px;
    text-align: center
}

.listing-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0
}

.listing-thumb-sm {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0
}

.btn-xs {
    padding: 3px 8px;
    font-size: .75rem;
    border-radius: 4px
}

/* ── MISC ────────────────────────────────────────────────── */
.error-page {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1
}

.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow)
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary)
}

.profile-avatar-init {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto
}

.pagination .page-link {
    color: var(--primary);
    border-color: var(--gray-200)
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary)
}

.pagination .page-link:hover {
    background: rgba(230, 57, 70, .1);
    color: var(--primary)
}

/* ── STATIC / LEGAL PAGES ────────────────────────────────── */
.legal-icon {
    width: 56px;
    height: 56px;
    background: rgba(230, 57, 70, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.legal-toc {
    border-left: 3px solid var(--primary)
}

.legal-toc a {
    text-decoration: none
}

.legal-toc a:hover {
    text-decoration: underline
}

.static-page-body {
    line-height: 1.85;
    font-size: .97rem
}

.static-page-body h5 {
    font-weight: 700;
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--gray-200)
}

.static-page-body ul {
    padding-left: 1.4rem
}

.static-page-body ul li {
    margin-bottom: .4rem
}

.static-page-body p {
    color: var(--gray-700)
}

.static-page-body a {
    color: var(--primary)
}

.static-page-body hr {
    margin: 1.5rem 0;
    border-color: var(--gray-200)
}

.page-content-inner h5 {
    font-weight: 700;
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--gray-200)
}

.page-content-inner ul {
    padding-left: 1.4rem
}

.page-content-inner p {
    color: var(--gray-700)
}

.page-content-inner a {
    color: var(--primary)
}

/* ── CONTACT PAGE ────────────────────────────────────────── */
.ct-topbar {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
    padding: 28px 0 24px;
    color: #fff
}

.ct-topbar .breadcrumb-item a {
    color: rgba(255, 255, 255, .6)
}

.ct-topbar .breadcrumb-item.active {
    color: rgba(255, 255, 255, .85)
}

.ct-topbar .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .4)
}

.ct-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: .25rem
}

.ct-sub {
    color: rgba(255, 255, 255, .65);
    font-size: .95rem;
    margin: 0
}

.ct-strip {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    box-shadow: var(--shadow-sm)
}

.ct-strip-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--gray-800);
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid transparent;
    height: 100%
}

.ct-strip-card:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--primary);
    transform: translateY(-2px)
}

.ct-strip-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0
}

.ct-strip-card small {
    font-size: .72rem;
    color: var(--gray-500);
    display: block
}

.ct-strip-card strong {
    font-size: .82rem;
    display: block;
    line-height: 1.2
}

.ct-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-100)
}

.ct-form-head {
    background: linear-gradient(135deg, var(--gray-100), #fff);
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--gray-100)
}

.ct-form-body {
    padding: 20px 24px 24px
}

.ct-side-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 18px
}

.ct-side-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-600);
    margin-bottom: 12px
}

.ct-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.ct-social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: .83rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    border: 1.5px solid transparent
}

.ct-social-btn:hover {
    background: var(--sc, var(--primary));
    color: #fff;
    border-color: var(--sc, var(--primary));
    transform: translateY(-2px)
}

.ct-social-btn i {
    font-size: .95rem
}

.ct-faq-list {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.ct-faq-item {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    color: var(--gray-700);
    transition: var(--transition);
    text-decoration: none
}

.ct-faq-item:hover {
    background: rgba(230, 57, 70, .06);
    color: var(--primary);
    padding-left: 14px
}

.ct-location-box {
    background: linear-gradient(135deg, #f0f4ff, #e8f4fd);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center
}

.ct-online-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm)
}

.ct-online-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(45, 198, 83, .2);
    animation: pulse-dot 2s infinite
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(45, 198, 83, .2)
    }

    50% {
        box-shadow: 0 0 0 6px rgba(45, 198, 83, .08)
    }
}

/* ── ABOUT HERO ─────────────────────────────────────────── */
.about-hero {
    position: relative;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    overflow: hidden
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #fff);
    z-index: 1
}

.about-hero-overlay {
    display: none
}

.about-hero-content {
    position: relative;
    z-index: 2
}

.about-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(4px)
}

.about-hero-title {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .15)
}

.about-hero-sub {
    font-size: clamp(.85rem, 1.8vw, 1rem);
    color: rgba(255, 255, 255, .85);
    max-width: 600px;
    margin: 0 auto 8px
}

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.section-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    background: rgba(230, 57, 70, .1);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px
}

.about-section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem
}

.about-page-topbar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 24px 0
}

.about-topbar-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800
}

.about-stats-strip {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm)
}

.about-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center
}

.about-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 24px 16px;
    border-right: 1px solid var(--gray-100)
}

.about-stat:last-child {
    border-right: none
}

.about-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1
}

.about-stat-label {
    display: block;
    font-size: .75rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px
}

.about-mission-visual {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center
}

.about-mission-bg-shape {
    position: absolute;
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, rgba(230, 57, 70, .08), rgba(33, 150, 243, .06));
    border-radius: 40% 60% 70% 30%/40% 50% 60% 50%;
    z-index: 0
}

.about-mission-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    border: 1px solid var(--gray-100);
    min-width: 150px
}

.about-mission-card strong {
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-900)
}

.about-mission-card small {
    font-size: .75rem;
    color: var(--gray-500);
    margin-top: 2px
}

.about-mission-card-1 {
    top: 10px;
    left: 10px;
    transform: rotate(-4deg)
}

.about-mission-card-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: var(--shadow-lg)
}

.about-mission-card-3 {
    bottom: 10px;
    right: 10px;
    transform: rotate(3deg)
}

.about-mission-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.about-mission-pills span {
    background: var(--gray-100);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .83rem;
    font-weight: 500;
    color: var(--gray-700)
}

.how-it-works-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1.5px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
    height: 100%
}

.how-it-works-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px)
}

.hiw-featured {
    border-color: var(--primary);
    background: linear-gradient(160deg, #fff9f9, #fff);
    box-shadow: var(--shadow)
}

.hiw-step {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center
}

.hiw-step-featured {
    background: var(--primary);
    color: #fff
}

.hiw-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-500);
    margin: 0 auto 16px
}

.hiw-icon-featured {
    background: rgba(230, 57, 70, .1);
    color: var(--primary)
}

.how-it-works-card h5 {
    font-weight: 700;
    margin-bottom: .6rem
}

.role-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    border: 1.5px solid var(--gray-100);
    transition: var(--transition)
}

.role-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px)
}

.role-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 12px
}

.role-title {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 6px
}

.role-desc {
    font-size: .78rem;
    line-height: 1.55;
    margin: 0
}

.about-values-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1a3e 100%)
}

.value-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    transition: var(--transition)
}

.value-card:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-4px)
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(230, 57, 70, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ff6b78;
    margin: 0 auto
}

.prop-type-badge {
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center
}

.prop-type-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 115, 190, .04)
}

.about-cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0
}

/* ── FAQ PAGE ────────────────────────────────────────────── */
.faq-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 60px 0 40px;
    color: #fff
}

.faq-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    margin-bottom: .5rem
}

.faq-hero-sub {
    font-size: 1rem;
    opacity: .85;
    margin-bottom: 1.5rem
}

.faq-search-wrap {
    max-width: 520px;
    margin: 0 auto
}

.faq-search-box {
    position: relative
}

.faq-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500)
}

.faq-search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: #fff;
    box-shadow: var(--shadow-lg);
    outline: none
}

.faq-search-input:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, .25), var(--shadow-lg)
}

.faq-category-nav {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px
}

.faq-cat-link {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: .9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    text-decoration: none
}

.faq-cat-link:hover {
    background: rgba(230, 57, 70, .08);
    color: var(--primary)
}

.faq-still-stuck {
    margin-top: 16px
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 12px
}

.faq-cat-icon {
    width: 40px;
    height: 40px;
    background: rgba(230, 57, 70, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0
}

.faq-accordion .accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius) !important;
    margin-bottom: 8px;
    overflow: hidden
}

.faq-btn {
    font-weight: 600;
    font-size: .95rem;
    color: var(--gray-900);
    background: #fff;
    padding: 16px 20px;
    gap: 12px
}

.faq-btn:not(.collapsed) {
    background: rgba(230, 57, 70, .06);
    color: var(--primary)
}

.faq-btn:focus {
    box-shadow: none
}

.faq-btn::after {
    flex-shrink: 0;
    margin-left: auto
}

.faq-number {
    min-width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0
}

.faq-answer {
    padding: 4px 20px 20px 60px
}

.faq-answer p {
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: .5rem
}

.faq-answer p:last-child {
    margin-bottom: 0
}

.faq-list {
    padding-left: 1.2rem;
    margin: .5rem 0
}

.faq-list li {
    color: var(--gray-700);
    margin-bottom: .35rem;
    line-height: 1.6
}

.faq-cta {
    background: linear-gradient(135deg, var(--gray-100), #fff);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 32px
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width:991.98px) {
    .hero-section {
        height: 40vh;
        min-height: 240px
    }

    .hero-search-box {
        padding: 16px
    }

    .search-btn {
        width: 100%
    }

    .dashboard-sidebar {
        position: fixed;
        top: var(--header-h);
        transform: translateX(calc(-1 * var(--sidebar-w)));
        z-index: 1040;
        transition: var(--transition)
    }

    .dashboard-sidebar.open {
        transform: translateX(0)
    }

    .admin-sidebar {
        position: fixed;
        top: var(--header-h);
        left: 0;
        transform: translateX(-220px);
        z-index: 1040;
        transition: var(--transition)
    }

    .admin-sidebar.open {
        transform: translateX(0)
    }

    .dashboard-main,
    .admin-main {
        padding: 16px
    }

    .conversations-list {
        width: 100%
    }

    .ct-strip-card strong {
        font-size: .75rem
    }
}

@media (max-width:575.98px) {
    .hero-title {
        font-size: 1.6rem
    }

    .gallery-img {
        height: 260px
    }

    .section-pad {
        padding: 40px 0
    }

    .property-card-body {
        padding: 10px
    }

    .property-title {
        font-size: .85rem
    }

    .property-price {
        font-size: .88rem
    }

    .auth-card {
        padding: 24px 16px
    }

    .stat-value {
        font-size: 1.3rem
    }

    .ct-social-grid {
        grid-template-columns: 1fr
    }

    .ct-form-body {
        padding: 16px
    }

    .ct-form-head {
        padding: 16px
    }

    .about-stat {
        min-width: 90px;
        padding: 16px 8px
    }

    .about-stat-num {
        font-size: 1.4rem
    }

    .about-mission-visual {
        height: 280px
    }

    .about-mission-card {
        padding: 14px 16px;
        min-width: 120px
    }

    .faq-answer {
        padding: 4px 16px 16px 16px
    }
}



/* ── DEMO ACCOUNTS PANEL ─────────────────────────────────── */
.demo-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.demo-panel-header {
    background: linear-gradient(135deg, var(--secondary), #16213e);
    padding: 20px 24px;
    color: #fff;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.demo-panel-header h5 {
    color: #fff;
    font-weight: 700;
}

.demo-panel-header p {
    color: rgba(255, 255, 255, .7);
}

.demo-accounts {
    padding: 8px;
}

.demo-account-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 6px;
    text-align: left;
}

.demo-account-btn:last-child {
    margin-bottom: 0;
}

.demo-account-btn:hover {
    border-color: var(--primary);
    background: rgba(230, 57, 70, .03);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.demo-account-btn.active {
    border-color: var(--primary);
    background: rgba(230, 57, 70, .06);
}

.demo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.demo-arrow {
    flex-shrink: 0;
    transition: var(--transition);
}

.demo-account-btn:hover .demo-arrow {
    transform: translateX(3px);
}

.demo-footer {
    padding: 12px 16px;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bootstrap subtle backgrounds fallback */
.bg-danger-subtle {
    background: rgba(30, 115, 190, .1) !important;
}

.bg-primary-subtle {
    background: rgba(13, 110, 253, .1) !important;
}

.bg-success-subtle {
    background: rgba(25, 135, 84, .1) !important;
}

.bg-warning-subtle {
    background: rgba(255, 193, 7, .1) !important;
}

.bg-secondary-subtle {
    background: rgba(108, 117, 125, .1) !important;
}

.text-danger {
    color: var(--primary) !important;
}



@media (max-width:575.98px) {
    .demo-account-btn {
        padding: 10px 12px;
        gap: 10px;
    }

    .demo-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ── UPDATED BRAND COLOR USAGE ──────────────────────────── */

/* Header and Navigation Updates */
.navbar-brand {
    color: var(--primary-dark) !important;
}

.brand-icon {
    background: var(--primary);
}

.brand-accent {
    color: var(--accent);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
}

/* Button Color Updates */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-success:hover {
    background-color: var(--success-light);
    border-color: var(--success-light);
}

.btn-danger {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-danger:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
}

/* Search Button Updates */
.search-btn {
    background: var(--primary-dark);
}

.search-btn:hover {
    background: var(--primary);
}



/* Property Cards and Tags */
.badge-rent {
    background: var(--primary);
    color: #fff;
}

.badge-sale {
    background: var(--success);
    color: #fff;
}

.badge-airbnb {
    background: var(--primary);
    color: #fff;
}

.badge-lease {
    background: var(--info);
    color: #fff;
}

.badge-featured {
    background: var(--warning);
    color: var(--dark);
}

.badge-verified {
    background: var(--tag-blue);
    color: var(--primary-dark);
}

/* Property Category Tags */
.property-category {
    color: var(--primary);
}

.category-card:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-icon {
    background: var(--primary);
}

.category-card:hover .category-icon {
    background: var(--primary-dark);
}

/* Footer Updates */
.site-footer {
    background: var(--dark);
}

.footer-brand i {
    color: var(--accent);
}

.footer-social a:hover {
    background: var(--primary);
}

/* Contact and Action Buttons */
.card-whatsapp {
    background: var(--success-light);
}

.card-whatsapp:hover {
    background: var(--success);
}

/* Favorite Icons */
.fav-btn.active i,
.card-action-btn.active {
    color: #e63946;
}

.fav-btn {
    color: #e63946;
}

.fav-btn:hover {
    color: #dc2626;
}

.fav-btn.active {
    background: #e63946;
    color: #fff;
}

/* Links and Accents */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--primary) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-danger {
    background-color: var(--primary) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-info {
    background-color: var(--info) !important;
}

/* Background and Card Updates */
body {
    background-color: var(--gray-200);
}

.dash-card,
.property-card,
.auth-card {
    background: var(--light);
}

.contact-method-card,
.benefit-card {
    background: var(--off-white);
}

/* Border Updates */
.property-card {
    border: 1px solid var(--border-gray);
}

.form-control {
    border: 1px solid var(--border-gray);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(30, 115, 190, 0.15);
}

/* CTA Section Updates */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Authentication Pages */
.auth-brand {
    color: var(--primary-dark);
}

.auth-brand i {
    color: var(--accent);
}

/* Contact Page Hero Updates */
.contact-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-stats .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* About Page Hero Updates */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.mission-card::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.vision-card::before {
    background: linear-gradient(90deg, var(--info), var(--primary-light));
}

/* Property Detail Page */
.property-price {
    color: var(--primary);
}

.stat-item i {
    color: var(--primary);
}

.section-title {
    border-left-color: var(--primary);
}

.price-card {
    border-color: var(--border-gray);
}

.action-btn:hover,
.action-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: var(--dark);
}

.dash-nav-item.active {
    border-left-color: var(--primary);
}

.dash-nav-item:hover,
.dash-nav-item.active {
    background: rgba(30, 115, 190, 0.12);
}

/* Status Badges */
.status-badge-approved {
    background: var(--tag-blue);
    color: var(--success);
}

.status-badge-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge-rejected {
    background: rgba(30, 115, 190, 0.1);
    color: var(--primary);
}

/* Stat Cards */
.stat-card-primary {
    border-left-color: var(--primary);
}

.stat-card-success {
    border-left-color: var(--success);
}

.stat-card-warning {
    border-left-color: var(--warning);
}

.stat-card-danger {
    border-left-color: var(--primary);
}

.stat-card-info {
    border-left-color: var(--info);
}

/* Enhanced Color Consistency */
.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.alert-primary {
    background-color: var(--tag-blue);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(30, 115, 190, 0.1);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Search and Filter Components */
.search-tab.active,
.search-tab:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.search-input:focus,
.search-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.12);
}

.filter-chip {
    background: rgba(30, 115, 190, 0.1);
    color: var(--primary);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Location Cards with Brand Colors */
.location-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.location-card-2 {
    background: linear-gradient(135deg, var(--success), var(--info));
}

.location-card-3 {
    background: linear-gradient(135deg, var(--warning), var(--primary));
}

.location-card-4 {
    background: linear-gradient(135deg, var(--info), var(--primary-dark));
}

/* Enhanced Accessibility with New Colors */
.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.pagination .page-link {
    color: var(--primary);
}

.pagination .page-link:hover {
    background-color: var(--tag-blue);
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ── MOBILE HERO FIXES ──────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 40vh;
        /* More compact */
        max-height: none;
        padding: 15px 0;
        margin-top: 0;
        background: var(--primary);
        /* Solid background */
    }

    .hero-overlay {
        display: none;
        /* Remove overlay completely on mobile */
    }

    .hero-content {
        position: static;
        transform: none;
        padding: 15px 16px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 35vh;
        /* More compact */
    }

    .hero-title {
        font-size: 1.8rem;
        /* Smaller */
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        /* Smaller */
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }

    .hero-search-box {
        margin-top: 1.5rem;
        /* Less spacing */
        padding: 14px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-stats {
        gap: 0.8rem;
        margin-top: 1.2rem;
        /* Less spacing */
        flex-direction: row;
        justify-content: space-around;
    }

    .hero-stats .hero-stat {
        margin: 0;
        flex: 1;
        min-width: 0;
    }

    .hero-stats .hero-stat span {
        font-size: 1.1rem;
    }

    .hero-stats .hero-stat small {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 35vh;
        /* Very compact */
        padding: 10px 0;
    }

    .hero-overlay {
        display: none;
        /* No overlay on small screens */
    }

    .hero-content {
        min-height: 30vh;
        /* Very compact */
        padding: 10px 12px;
    }

    .hero-title {
        font-size: 1.6rem;
        /* Smaller */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        /* Smaller */
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .hero-search-box {
        padding: 10px;
        margin-top: 1rem;
        /* Less spacing */
    }

    .hero-stats {
        flex-direction: row;
        /* Keep horizontal on small screens */
        gap: 0.5rem;
        margin-top: 0.8rem;
    }

    .hero-stats .hero-stat span {
        font-size: 0.9rem;
    }

    .hero-stats .hero-stat small {
        font-size: 0.65rem;
    }
}

/* Landscape mobile phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 50vh;
        padding: 10px 0;
    }

    .hero-content {
        min-height: calc(100vh - 80px);
        justify-content: center;
        padding: 10px 16px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-search-box {
        margin-top: 1rem;
        padding: 12px;
    }

    .hero-stats {
        margin-top: 0.5rem;
        gap: 1rem;
        flex-direction: row;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-section {
        padding: 8px 0;
        min-height: 30vh;
        /* Super compact */
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        padding: 8px 8px;
        min-height: 25vh;
        /* Super compact */
    }

    .hero-title {
        font-size: 1.4rem;
        /* Even smaller */
        margin-bottom: 0.4rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-search-box {
        padding: 8px;
        margin-top: 0.8rem;
    }

    .hero-stats {
        margin-top: 0.6rem;
        gap: 0.4rem;
    }

    .hero-stats .hero-stat span {
        font-size: 0.85rem;
    }

    .hero-stats .hero-stat small {
        font-size: 0.6rem;
    }
}

/* Extra safe mobile spacing */
@media (max-width: 480px) and (max-height: 700px) {
    .hero-section {
        min-height: 25vh;
        /* Ultra compact for small screens */
        padding: 8px 0;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        min-height: 20vh;
        padding: 8px;
    }

    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .hero-search-box {
        padding: 8px;
        margin-top: 0.6rem;
    }

    .hero-stats {
        margin-top: 0.4rem;
        gap: 0.3rem;
    }

    .hero-stats .hero-stat span {
        font-size: 0.8rem;
    }

    .hero-stats .hero-stat small {
        font-size: 0.55rem;
    }
}

/* ── HERO SEARCH BOX MOBILE FIXES ──────────────────────── */
@media (max-width: 768px) {
    .hero-search-box {
        max-width: 100%;
        margin-left: 12px;
        margin-right: 12px;
        border-radius: 12px;
        padding: 12px;
    }

    .search-tabs {
        justify-content: center;
        gap: 4px;
        margin-bottom: 10px;
    }

    .search-tab {
        flex: 1;
        font-size: 0.8rem;
        padding: 5px 8px;
        text-align: center;
    }

    .search-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .search-field-main {
        grid-column: 1 / -1;
    }

    .search-field {
        min-width: 0;
        width: 100%;
    }

    .search-input,
    .search-select {
        padding: 10px 10px 10px 32px;
        font-size: 0.85rem;
    }

    .search-btn {
        grid-column: 1 / -1;
        width: 100%;
        padding: 11px;
        font-size: 0.95rem;
    }

    .advanced-search-link {
        text-align: center;
        margin-top: 8px;
        font-size: 0.8rem;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    .hero-section {
        overflow-x: hidden;
    }

    .hero-content {
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Ensure no elements extend beyond viewport */
    .hero-search-box,
    .search-fields,
    .search-field {
        box-sizing: border-box;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-appearance: none) {
    @media (max-width: 768px) {
        .hero-section {
            min-height: -webkit-fill-available;
        }
    }
}

/* Android Chrome specific fixes */
@media (max-width: 768px) {
    .hero-section {
        min-height: 35vh;
        /* Compact for all mobile */
    }

    .hero-overlay {
        display: none;
        /* No overlay on mobile */
    }
}

/* ── WATERMARK SETTINGS PAGE ─────────────────────────────── */
.wm-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    background: var(--gray-100);
}

.wm-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(230, 57, 70, .03);
}

.wm-file-input {
    display: none;
}

.wm-upload-inner {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-empty {
    text-align: center;
    padding: 20px;
}

.wm-current {
    text-align: center;
    width: 100%;
}

.wm-preview-bg {
    background: #1d3557;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: inline-block;
}

.wm-preview-bg img {
    max-height: 80px;
    max-width: 100%;
    display: block;
}

/* Position grid */
.wm-position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 320px;
}

.wm-pos-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700);
    text-align: center;
    background: #fff;
}

.wm-pos-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(230, 57, 70, .04);
}

.wm-pos-btn.active {
    border-color: var(--primary);
    background: rgba(230, 57, 70, .1);
    color: var(--primary);
    font-weight: 700;
}

/* Live preview canvas */
.wm-live-preview {}

.wm-preview-canvas {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: block;
}

.wm-bg-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.wm-overlay-img {
    position: absolute;
    bottom: 16px;
    right: 16px;
    max-width: 30%;
    pointer-events: none;
}

/* Logo upload preview */
.upload-preview-box {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 14px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--gray-200);
}

.upload-preview-box img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.btn-clear-upload {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: .65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-placeholder {
    text-align: center;
}



/* Create Listing Sidebar Styles */
.sticky-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.tips-list .tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tip-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.guideline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guideline-list li {
    padding: 4px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.process-steps .step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.process-steps .step:last-child {
    margin-bottom: 0;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Mobile sidebar adjustments */
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static;
        top: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .tip-item {
        margin-bottom: 16px !important;
    }

    .tip-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-steps .step {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ── LARGE SCREEN HERO COMPACT ──────────────────────────── */
@media (min-width: 1200px) {
    .hero-section {
        height: 51vh;
        max-height: 420px
    }

    .hero-title {
        font-size: 2rem
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem
    }

    .hero-stats {
        margin-top: 1.2rem;
        gap: 1.5rem
    }

    .hero-stat span {
        font-size: 1.2rem
    }

    .hero-search-box {
        padding: 16px;
        max-width: 860px
    }
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 2.2rem
    }

    .hero-section {
        max-height: 440px
    }
}

/* ── CLICKABLE STAT CARDS ────────────────────────────────── */
.stat-card-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
}

.stat-card-link:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

.stat-card-link:hover .stat-card {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.stat-card-link .stat-value,
.stat-card-link .stat-label {
    color: inherit;
}

.stat-card-link .stat-value {
    color: #fff;
}

.stat-card-link .stat-label {
    color: #fff;
}

.stat-card-link:hover .stat-value {
    color: #fff;
}

.stat-card-link:hover .stat-label {
    color: #fff;
}

/* Ensure stat cards maintain their styling when inside links */
.stat-card-link .stat-card {
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    color: #fff;
    height: 100%;
}

.stat-card-link .stat-card-primary {
    background: #1E73BE;
}

.stat-card-link .stat-card-success {
    background: #16A34A;
}

.stat-card-link .stat-card-warning {
    background: #F59E0B;
}

.stat-card-link .stat-card-danger {
    background: #DC2626;
}

.stat-card-link .stat-card-info {
    background: #0891B2;
}

.stat-card-link .stat-card-secondary {
    background: #4B5563;
}

.stat-card-link .stat-card-purple {
    background: #7C3AED;
}

.stat-card-link .stat-card-orange {
    background: #EA580C;
}

.stat-card-link:hover .stat-card-primary {
    background: #195F9F;
}

.stat-card-link:hover .stat-card-success {
    background: #15803D;
}

.stat-card-link:hover .stat-card-warning {
    background: #D97706;
}

.stat-card-link:hover .stat-card-info {
    background: #0E7490;
}

/* Focus states for accessibility */
.stat-card-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.stat-card-link:focus .stat-card {
    box-shadow: var(--shadow-lg);
}

/* Active state */
.stat-card-link:active .stat-card {
    transform: translateY(1px);
}

/* ── CLICKABLE DASHBOARD CARDS ───────────────────────────── */
.dash-card-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
}

.dash-card-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.dash-card-link:hover .dash-card {
    box-shadow: var(--shadow-lg);
}

.dash-card-link .dash-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.dash-card-link .dash-card-header {
    padding: 16px 20px 8px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.dash-card-link .dash-card-header h6 {
    color: var(--gray-900);
    margin: 0;
}

.dash-card-link .dash-card-header small {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.dash-card-link .dash-card-body {
    padding: 20px;
}

.dash-card-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.dash-card-link:focus .dash-card {
    box-shadow: var(--shadow-lg);
}

.dash-card-link:active .dash-card {
    transform: translateY(1px);
}

/* ── CLICKABLE TABLE ROWS ────────────────────────────────── */
.table-row-clickable {
    cursor: pointer;
    transition: var(--transition);
}

.table-row-clickable:hover {
    background-color: var(--gray-100) !important;
    transform: translateX(2px);
}

.table-row-clickable:active {
    background-color: var(--gray-200) !important;
}

.table-row-clickable td {
    position: relative;
}

/* Add a subtle indicator for clickable rows */
.table-row-clickable::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.table-row-clickable:hover::before {
    opacity: 1;
}