/* input(75,24): run-time error CSS1046: Expect comma, found '92'
input(75,30): run-time error CSS1046: Expect comma, found ')'
input(3910,26): run-time error CSS1030: Expected identifier, found ':'
input(3910,34): run-time error CSS1025: Expected comma or open brace, found ')'
input(3915,26): run-time error CSS1030: Expected identifier, found ':'
input(3915,34): run-time error CSS1025: Expected comma or open brace, found ')'
input(3990,30): run-time error CSS1030: Expected identifier, found ':'
input(3990,38): run-time error CSS1025: Expected comma or open brace, found ')' */
/* ============================================
   GMPKLIK - Real Estate Marketplace
   Modern CSS with Bootstrap 5.3 Compatible
   ============================================ */

/* CSS Variables */
:root {
    --primary: #049db5;
    --secondary: #033f46;
    --accent: #06c1dd;
    --light: #f4fbfc;
    --dark: #01292e;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1030;
    background: rgb(18 92 103);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.navbar.transparent {
    background: rgba(1, 41, 46, 0.62);
}

.navbar.scrolled {
    background: rgba(1, 41, 46, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
}

.navbar.scrolled .navbar-brand {
    color: var(--white) !important;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent) !important;
}

.navbar .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.navbar .btn-outline-primary:hover {
    border-color: var(--accent);
    background: rgba(6, 193, 221, 0.16);
    color: var(--white);
}

.navbar .btn-primary {
    box-shadow: 0 6px 16px rgba(4, 157, 181, 0.35);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(6, 193, 221, 0.25);
}

.navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

/* Mega Menu */
.has-megamenu {
    position: static !important;
}

.megamenu {
    width: 100%;
    padding: 2rem 0;
    border: none;
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--shadow-xl);
    margin-top: 0 !important;
    animation: slideDown 0.3s ease-out;
}

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

.megamenu .dropdown-header {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.megamenu .dropdown-item {
    padding: 0.5rem 0;
    color: var(--gray-600);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.megamenu .dropdown-item:hover {
    color: var(--primary);
    background: transparent;
    padding-left: 0.5rem;
}

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

.mini-property-card {
    background: var(--light);
    padding: 1rem;
    border-radius: 0.75rem;
}

.mini-property-card img {
    border-radius: 0.5rem;
    height: 120px;
    object-fit: cover;
    width: 100%;
}

.gmp-ad-slot {
    background: var(--light);
    border: 1px dashed #cdd5df;
    border-radius: 0.75rem;
    padding: 0.95rem;
    min-height: 150px;
    display: flex;
    align-items: stretch;
}

.gmp-ad-slot-fallback {
    width: 100%;
    background: linear-gradient(145deg, #ffffff, #f5f7fb);
    border-radius: 0.65rem;
    padding: 0.8rem 0.9rem;
}

.gmp-ad-slot-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b78c5;
    background: #e8f4ff;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.45rem;
}

.gmp-ad-slot-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.gmp-ad-slot-fallback p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.home-hero-ad-slot {
    margin-top: -0.75rem;
}

.marketplace-grid-ad-slot {
    margin-top: 0.25rem;
}

.blog-detail-ad-slot {
    margin-top: 0.35rem;
}

.quick-search-box {
    background: var(--light);
    padding: 1rem;
    border-radius: 0.75rem;
}

/* Backdrop Effect for Mega Menu */
.megamenu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.megamenu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 41, 46, 0.85) 0%, rgba(3, 63, 70, 0.75) 50%, rgba(4, 157, 181, 0.65) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 8rem 0 4rem;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Smart Search Card */
.smart-search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-tab {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-tab.active {
    background: var(--primary);
    color: var(--white);
}

.search-tab:hover:not(.active) {
    background: rgba(4, 157, 181, 0.1);
    color: var(--primary);
}

.search-input-group {
    position: relative;
    height: 100%;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 2;
}

.search-input-group .form-control,
.search-input-group .form-select {
    padding-left: 2.5rem;
    height: 50px;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.search-input-group .form-control:focus,
.search-input-group .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 157, 181, 0.15);
}

.search-btn {
    height: 50px;
    width: 100%;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-ai-btn {
    border-width: 1px;
    font-weight: 600;
}

.search-ai-btn i {
    font-size: 1rem;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin-bottom: 0.5rem;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(4, 157, 181, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 184, 0, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f4f8fb 100%);
    overflow: hidden;
}

.home-stats-sentinel {
    width: 100%;
    height: 1px;
}

.stats-section-heading {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.stats-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stats-title {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 800;
    color: var(--dark);
}

.stats-subtitle {
    margin: 0 auto;
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.75;
}

.stat-card-skeleton {
    pointer-events: none;
}

.home-skeleton-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    margin: 0 auto 1rem;
}

.home-skeleton-stat-number {
    width: 68%;
    height: 2.55rem;
    border-radius: 0.85rem;
    margin: 0 auto 0.75rem;
}

.home-skeleton-stat-label {
    width: 56%;
    height: 0.9rem;
    border-radius: 999px;
    margin: 0.4rem auto 0;
}

.home-skeleton-stat-note {
    width: 82%;
    height: 0.78rem;
    border-radius: 999px;
    margin: 0.8rem auto 0;
}

.stat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem 1.5rem 1.6rem;
    border-radius: 1.35rem;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(4, 157, 181, 0.08);
    backdrop-filter: blur(10px);
    min-height: 228px;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 1.35rem 1.35rem 0 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.stat-note {
    margin-top: 0.5rem;
    color: var(--gray-500);
    font-size: 0.78rem;
    line-height: 1.55;
    min-height: 2.4rem;
}

.home-stats-alert {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 193, 7, 0.28);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    max-width: 760px;
}

/* ============================================
   PROPERTY FILTERS
   ============================================ */
.property-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ============================================
   PROPERTY CARDS
   ============================================ */
.property-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.property-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    font-size: 0.7rem;
}

.btn-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 2;
}

.btn-favorite:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-favorite.active {
    background: var(--danger);
    color: var(--white);
}

.btn-favorite.active i::before {
    content: "\f415";
}

.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: center;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.property-content {
    padding: 1.25rem;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-features span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.property-features i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.property-footer-actions-only {
    justify-content: flex-end;
}

.property-agent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-agent img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.property-agent span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.property-card-actions {
    align-items: center;
}

.property-card-btn {
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
}

.property-card-btn i {
    font-size: 0.9rem;
    margin: 0 !important;
}

.property-card-btn-outline {
    min-width: 126px;
}

.property-card-btn-primary {
    min-width: 80px;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.map-section-panel {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.map-panel-copy {
    width: 100%;
    max-width: 820px;
    padding: 1.1rem 1.25rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(4, 157, 181, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.map-panel-kicker {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.map-panel-copy h3 {
    margin: 0.85rem 0 0.45rem;
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 700;
}

.map-panel-copy p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

.map-container {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

#propertyMap {
    height: 500px;
    width: 100%;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.map-location-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.12);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(4, 157, 181, 0.25);
    box-shadow: 0 10px 20px rgba(4, 157, 181, 0.08);
}

.map-location-link:hover {
    background: var(--primary);
    color: var(--white);
}

.map-controls button {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison-container {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.compare-empty-state {
    max-width: 520px;
    margin: 0 auto;
}

.compare-empty-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(4, 157, 181, 0.14), rgba(255, 184, 0, 0.18));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 0 0 1px rgba(4, 157, 181, 0.08);
}

.compare-action-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.compare-action-bar .btn {
    margin: 0 !important;
}

.compare-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    position: relative;
}

.compare-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.compare-card .remove-compare {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.compare-table {
    width: 100%;
    margin-top: 2rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.compare-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.compare-table td strong,
.compare-table td .text-primary {
    white-space: nowrap;
}

/* ============================================
   KPR CALCULATOR
   ============================================ */
.calculator-section {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.calculator-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.calculator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 110, 253, 0.1);
    color: var(--gray-700);
    font-size: 0.92rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.calculator-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-item i {
    color: var(--success);
    font-size: 1.25rem;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(14px);
}

.calculator-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calculator-card-header h3 {
    margin: 0.35rem 0 0;
    font-size: 1.45rem;
    color: var(--dark);
}

.calculator-card-kicker {
    display: inline-flex;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calculator-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: var(--light);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.calculator-submit-btn {
    min-height: 52px;
}

.calculator-result {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
    border-radius: 1.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.calculator-result-highlight {
    padding: 1.1rem 1.1rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(13, 110, 253, 0.08);
    margin-bottom: 1rem;
}

.result-highlight-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calculator-result-highlight strong {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    line-height: 1.1;
}

.calculator-result-highlight small {
    display: block;
    margin-top: 0.4rem;
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.6;
}

.calculator-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.result-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.92);
}

.result-item span {
    font-size: 0.86rem;
    color: var(--gray-600);
    font-weight: 600;
}

.result-item strong {
    color: var(--dark);
    font-size: 1.05rem;
}

.result-item-total {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 202, 240, 0.08));
    border-color: rgba(13, 110, 253, 0.12);
}

.stats-story-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.stats-story-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
}

.stats-story-pill i {
    color: var(--primary);
}

.kpr-scenario-showcase {
    display: grid;
    gap: 0.8rem;
    margin: 1.25rem 0 1.4rem;
}

.kpr-scenario-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.14);
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
    transition: all 0.22s ease;
}

.kpr-scenario-chip strong {
    color: var(--dark);
    font-size: 0.98rem;
}

.kpr-scenario-chip span {
    color: var(--gray-600);
    font-size: 0.86rem;
    line-height: 1.5;
}

.kpr-scenario-chip:hover,
.kpr-scenario-chip.active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 202, 240, 0.08));
    border-color: rgba(13, 110, 253, 0.28);
    box-shadow: 0 18px 34px rgba(13, 110, 253, 0.12);
}

.calculator-live-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.live-strip-item {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.live-strip-label {
    display: block;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 0.28rem;
}

.live-strip-item strong {
    color: var(--dark);
    font-size: 0.98rem;
}

.calculator-insight-banner {
    margin: 1rem 0 1.1rem;
    padding: 1rem 1rem 0.95rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.calculator-insight-banner p {
    margin: 0.7rem 0 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.insight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(13, 110, 253, 0.12);
    color: var(--primary);
}

.insight-badge.success {
    background: rgba(25, 135, 84, 0.14);
    color: #146c43;
}

.insight-badge.primary {
    background: rgba(13, 110, 253, 0.12);
    color: var(--primary);
}

.insight-badge.warning {
    background: rgba(255, 193, 7, 0.16);
    color: #9c6b00;
}

@media (max-width: 991.98px) {
    .calculator-live-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .stats-story-strip {
        justify-content: stretch;
    }

    .stats-story-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ============================================
   AGENTS SECTION
   ============================================ */
.agents-section {
    background: var(--light);
}

.agent-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.agent-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.agent-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--success);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.agent-content {
    padding: 1.5rem;
    text-align: center;
}

.agent-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.agent-title {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.agent-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.agent-stats .stat {
    text-align: center;
}

.agent-stats .number {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.agent-stats .label {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.5rem;
    padding: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.testimonial-card-real {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.testimonial-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.testimonial-role-agen {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

.testimonial-role-buyer,
.testimonial-role-member {
    background: rgba(25, 135, 84, 0.12);
    color: #157347;
}

.testimonial-role-tamu {
    background: rgba(255, 193, 7, 0.16);
    color: #b58105;
}

.testimonial-rating {
    color: var(--warning);
    font-size: 1rem;
    margin-bottom: 0;
    display: flex;
    gap: 0.2rem;
}

.testimonial-headline {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.45;
    color: var(--dark);
    text-align: left;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 0;
    line-height: 1.8;
    text-align: left;
}

.testimonial-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.testimonial-verified,
.testimonial-source {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--gray-600);
    font-weight: 600;
}

.testimonial-verified i {
    color: var(--primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-fallback,
.testimonial-avatar-skeleton {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: 0 0 56px;
}

.testimonial-author-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #5aa2ff);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author h6 {
    margin-bottom: 0.25rem;
    color: var(--dark);
    text-align: left;
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.9rem;
    text-align: left;
}

.testimonial-card-skeleton .home-skeleton {
    border-radius: 0.9rem;
}

.testimonial-empty-state {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.2rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

.testimonial-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    font-size: 2rem;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
    background: linear-gradient(180deg, #f7fafc 0%, #f1f6fb 100%);
}

.blog-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-link:hover {
    color: var(--secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    color: var(--white);
    box-shadow: 0 22px 54px rgba(4, 157, 181, 0.2);
}

.cta-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.85rem;
}

.cta-actions .btn {
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    opacity: 0.9;
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background:
        radial-gradient(circle at top left, rgba(4, 157, 181, 0.18), transparent 28%),
        linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: var(--white);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary);
    font-size: 1.75rem;
}

.footer-brand-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-cta-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-cta-link-secondary {
    background: transparent;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.footer-newsletter .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
}

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

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    border-radius: 1.5rem 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    font-size: 0.7rem;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary);
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-1px);
}

/* ============================================
   FLOATING AI ASSISTANT
   ============================================ */
.ai-assistant-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
}

.ai-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    font-size: 0.85rem;
    animation: tooltipFloat 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--white);
}

.ai-tooltip-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 0.5rem;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
    padding: 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.wishlist-item-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.wishlist-item-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 157, 181, 0.1);
    color: var(--primary);
    font-size: 1.2rem;
}

.wishlist-item-link {
    display: inline-flex;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.wishlist-remove-btn {
    flex-shrink: 0;
}

@keyframes tooltipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ai-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(4, 157, 181, 0.4);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(4, 157, 181, 0.5);
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* AI Chat Panel */
.ai-chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 520px;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.ai-chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.ai-chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.25rem;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.ai-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.ai-bubble {
    background: var(--light);
    padding: 1rem;
    border-radius: 1rem;
    border-top-left-radius: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    max-width: calc(100% - 50px);
}

.ai-bubble p {
    margin-bottom: 0.5rem;
}

.ai-bubble ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.ai-bubble li {
    margin-bottom: 0.25rem;
}

.user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.user-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-top-right-radius: 0.25rem;
    font-size: 0.9rem;
    max-width: 80%;
}

.ai-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 42px;
}

.ai-typing-bubble span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.75);
    animation: aiTyping 1.2s infinite ease-in-out;
}

.ai-typing-bubble span:nth-child(2) {
    animation-delay: 0.18s;
}

.ai-typing-bubble span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes aiTyping {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.55;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.ai-quick-suggestions {
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.ai-suggestion {
    background: var(--light);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.ai-suggestion:hover {
    background: var(--primary);
    color: var(--white);
}

.ai-chat-input {
    display: flex;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    gap: 0.75rem;
}

.ai-chat-input input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    outline: none;
}

.ai-chat-input input:focus {
    border-color: var(--primary);
}

.ai-chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-input button:hover {
    background: var(--secondary);
}

/* Property Recommendation Card in Chat */
.property-recommendation {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.property-recommendation img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.property-recommendation .info {
    padding: 0.75rem;
}

.property-recommendation .price {
    color: var(--primary);
    font-weight: 600;
}

.property-recommendation .title {
    font-size: 0.85rem;
    color: var(--dark);
    margin: 0.25rem 0;
}

.property-recommendation .location {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 157, 181, 0.4);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-light:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 157, 181, 0.15);
}

.input-group-text {
    background: var(--light);
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    color: var(--gray-600);
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.8rem 0;
        overflow-x: clip;
    }

    .navbar > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        padding-inline: 1rem;
    }

    .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 64px);
    }

    .brand-logo {
        height: 36px;
    }

    .navbar-toggler {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .navbar-collapse {
        background: rgba(1, 41, 46, 0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        width: 100%;
        flex-basis: 100%;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar .nav-link {
        color: var(--white) !important;
    }

    .navbar-collapse .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-collapse .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        border-radius: 0.85rem;
    }

    .navbar-collapse .d-flex.align-items-center.gap-2 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-top: 1rem;
        width: 100%;
    }

    .navbar-collapse .btn {
        width: 100%;
        justify-content: center;
    }
    
    .megamenu {
        width: auto;
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .hero-content {
        padding: 6.25rem 0 2.75rem;
    }
    
    .smart-search-card {
        margin: 0;
        padding: 1rem;
        border-radius: 1.15rem;
        box-shadow: 0 18px 42px rgba(1, 41, 46, 0.2);
    }

    .search-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .search-tab {
        width: 100%;
    }
    
    .search-filters .row > div {
        margin-bottom: 0.5rem;
    }

    .section-header {
        gap: 1rem;
    }

    .property-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .property-filters .filter-btn,
    .map-location-link {
        margin: 0;
    }

    .map-location-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .cta-card .btn {
        width: 100%;
        justify-content: center;
        margin-right: 0 !important;
    }
    
    .ai-chat-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 1060;
    }
    
    .ai-assistant-container {
        bottom: 5rem;
        right: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .ai-tooltip {
        display: none !important;
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 767.98px) {
    .navbar > .container {
        padding-inline: 0.85rem;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar,
    .hero-section,
    .hero-background,
    .hero-content,
    .hero-content > .container,
    .hero-content .row,
    .smart-search-card,
    .search-filters,
    .search-filters .row {
        max-width: 100%;
        overflow-x: clip;
    }

    .navbar-brand {
        max-width: calc(100% - 4.25rem);
    }

    .brand-logo {
        width: auto;
        max-width: min(160px, 52vw);
        height: 34px;
        object-fit: contain;
        object-position: left center;
    }

    .navbar-toggler {
        width: 48px;
        height: 48px;
        padding: 0.4rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content > .container {
        padding-inline: 1rem;
    }

    .hero-content .row,
    .search-filters .row {
        --bs-gutter-x: 0.75rem;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-content .row > *,
    .search-filters .row > * {
        padding-left: 0;
        padding-right: 0;
    }

    .section-title {
        font-size: 1.4rem;
        line-height: 1.25;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.15;
    }

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

    .hero-scroll-indicator {
        display: none;
    }

    .smart-search-card {
        padding: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    .search-input-group,
    .search-btn {
        min-height: 52px;
    }

    .search-input-group .form-control,
    .search-input-group .form-select,
    .search-btn {
        width: 100%;
        max-width: 100%;
    }

    .search-ai-btn span {
        display: none;
    }

    .search-ai-btn {
        display: none !important;
    }
    
    .stat-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .stats-section-heading {
        margin-bottom: 1.5rem;
    }

    .stats-title {
        font-size: 1.55rem;
        line-height: 1.3;
    }

    .stats-subtitle {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .map-panel-copy {
        padding: 1rem 1.1rem;
    }

    .map-panel-copy h3 {
        font-size: 1.05rem;
    }

    .map-panel-copy p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .home-skeleton-stat-number {
        height: 2.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .stat-note {
        min-height: initial;
        font-size: 0.76rem;
    }

    .property-card,
    .blog-card,
    .cta-card,
    .comparison-container,
    .map-container {
        border-radius: 1rem;
    }

    .property-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .property-card-btn {
        min-height: 38px;
        padding: 0.5rem 0.75rem;
        font-size: 0.84rem;
        border-radius: 0.8rem;
    }

    .property-card-btn-outline {
        min-width: 112px;
    }

    .property-card-btn-primary {
        min-width: 76px;
    }
    
    .cta-card {
        padding: 2rem;
        text-align: center;
    }

    .cta-actions {
        width: 100%;
        justify-content: center;
    }

    .cta-actions .btn {
        width: 100%;
        min-width: 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-cta-links {
        justify-content: center;
    }

    .footer-cta-link {
        width: 100%;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .ai-assistant-container {
        right: 0.75rem;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 5.35rem);
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .ai-button {
        width: 52px;
        height: 52px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        padding: 5.9rem 0 2.25rem;
    }

    .hero-content > .container {
        padding-inline: 0.85rem;
    }

    .search-tabs {
        justify-content: center;
    }
    
    .search-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .smart-search-card {
        padding: 0.85rem;
        border-radius: 1rem;
    }
    
    .property-filters {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }

    .calculator-card-header,
    .testimonial-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .calculator-result-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-author {
        align-items: center;
    }
    
    .comparison-container {
        padding: 1rem;
    }

    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   AUTHENTICATION PAGE STYLES
   ============================================ */

.auth-page {
    min-height: 100vh;
    background: var(--light);
}

.auth-container {
    min-height: 100vh;
    display: flex;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Auth Image Side */
.auth-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

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

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 41, 46, 0.85) 0%, rgba(4, 157, 181, 0.75) 100%);
}

.auth-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem;
    color: var(--white);
}

.auth-image-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-image-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.auth-stats {
    display: flex;
    gap: 2rem;
}

.auth-stats .stat {
    text-align: center;
}

.auth-stats .number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-stats .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-benefits .benefit i {
    color: var(--success);
    font-size: 1.25rem;
}

/* Auth Form Side */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-logo i {
    font-size: 2.25rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.auth-subtitle a {
    color: var(--primary);
    font-weight: 500;
}

/* Social Login */
.social-login {
    margin-bottom: 1.5rem;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.btn-google:hover {
    background: var(--light);
    border-color: var(--gray-400);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

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

.divider span {
    padding: 0 1rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Auth Form */
.auth-form .form-label {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.auth-form .input-group-text {
    background: var(--light);
    border-right: none;
    color: var(--gray-500);
}

.auth-form .form-control {
    border-left: none;
}

.auth-form .form-control:focus {
    box-shadow: none;
    border-color: var(--gray-300);
}

.auth-form .input-group:focus-within .input-group-text {
    border-color: var(--primary);
    color: var(--primary);
}

.auth-form .input-group:focus-within .form-control {
    border-color: var(--primary);
}

.toggle-password {
    border-left: none !important;
    background: transparent !important;
}

.toggle-password:hover {
    border-color: var(--gray-300) !important;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Forgot Link */
.forgot-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Button */
.btn-auth {
    padding: 0.875rem;
    font-weight: 600;
    font-size: 1rem;
}

/* Security Note */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.security-note i {
    color: var(--success);
}

/* Forgot Password Specific */
.forgot-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.forgot-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.success-message .success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-message .success-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.email-timer {
    margin-top: 1.5rem;
}

.email-timer .btn-link {
    color: var(--primary);
    font-weight: 500;
    padding: 0;
}

.timer-text {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.back-link {
    color: var(--gray-600);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.back-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-form-section {
        padding: 3rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   PASANG IKLAN / LISTING WIZARD STYLES
   ============================================ */

.page-header-sm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 100px 0 40px;
    color: var(--white);
}

.page-header-sm .page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header-sm .page-subtitle {
    opacity: 0.9;
}

/* Wizard Section */
.wizard-section {
    padding: 40px 0 80px;
    background: var(--light);
    min-height: 100vh;
}

/* Progress Steps */
.wizard-progress {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    z-index: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.step-link {
    text-decoration: none;
}

.step-link.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.55;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-500);
    transition: var(--transition);
}

.step-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

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

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step.completed .step-label {
    color: var(--success);
}

/* Wizard Form */
.wizard-form {
    max-width: 1000px;
    margin: 0 auto;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.step-card {
    position: relative;
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.step-card-busy {
    pointer-events: none;
}

.step-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
    backdrop-filter: blur(3px);
}

.step-card-overlay-body {
    width: min(100%, 560px);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid rgba(4, 157, 181, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.step-card-overlay-body .spinner-border {
    color: var(--primary);
    flex-shrink: 0;
}

.step-card-overlay-body strong {
    display: block;
    color: var(--dark);
}

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.step-header h3 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step-header h3 i {
    color: var(--primary);
}

.step-header p {
    color: var(--gray-600);
    margin: 0;
}

.api-hint-box {
    background: #f3f7fa;
    border: 1px solid #dbe5ee;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.step-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.step-actions-primary {
    align-items: center;
    justify-content: space-between;
    padding-top: 1.1rem;
    border-top: 1px solid var(--gray-200);
}

.step-actions-primary > .btn.btn-primary {
    min-width: 220px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(4, 157, 181, 0.16);
}

.step-links-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.step-links-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

.step-status-alert {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    border-width: 1px;
}

.wizard-context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.wizard-context-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
}

.wizard-context-chip i {
    color: #0f766e;
}

.wizard-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.wizard-primary-action {
    min-width: 180px;
    justify-content: center;
}

.listing-category-group .form-select {
    min-height: 48px;
}

.listing-category-group .btn-refresh-icon {
    width: 48px;
    min-width: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.duplicate-box,
.history-box,
.transfer-box {
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
}

/* Form Labels */
.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

/* Property Type Grid */
.property-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.type-option input {
    display: none;
}

.type-card {
    padding: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.type-card i {
    font-size: 1.75rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: 0.5rem;
}

.type-card span {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.type-option input:checked + .type-card {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.05);
}

.type-option input:checked + .type-card i {
    color: var(--primary);
}

.type-option input:checked + .type-card span {
    color: var(--primary);
}

/* Spec Input */
.spec-input label {
    display: block;
    margin-bottom: 0.25rem;
}

.spec-input .input-group {
    border-radius: 0.75rem;
    overflow: hidden;
}

.spec-input .btn {
    padding: 0.5rem 0.75rem;
}

.spec-input .form-control {
    text-align: center;
    font-weight: 600;
}

/* Facilities Checkboxes */
.facilities-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.facility-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.facility-check input {
    display: none;
}

.facility-check i {
    color: var(--gray-500);
    font-size: 1.1rem;
}

.facility-check span {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.facility-check:hover {
    border-color: var(--primary);
}

.facility-check input:checked + span,
.facility-check:has(input:checked) {
    background: rgba(4, 157, 181, 0.05);
    border-color: var(--primary);
}

.facility-check:has(input:checked) i {
    color: var(--primary);
}

/* Owner Type Options */
.owner-type-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.owner-type input {
    display: none;
}

.owner-card {
    padding: 1.5rem 2rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.owner-card i {
    font-size: 2rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: 0.5rem;
}

.owner-card span {
    font-weight: 500;
    color: var(--gray-700);
}

.owner-type input:checked + .owner-card {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.05);
}

.owner-type input:checked + .owner-card i {
    color: var(--primary);
}

/* Relationship Options */
.relationship-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.relationship-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.relationship-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.relationship-check span {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.relationship-check:has(input:checked) {
    background: rgba(4, 157, 181, 0.05);
    border-color: var(--primary);
}

/* File Upload Box */
.file-upload-box {
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.02);
}

.file-upload-box i {
    font-size: 2.5rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.file-upload-box p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.file-upload-box small {
    color: var(--gray-500);
}

/* Map Pin Container */
.map-pin-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 350px;
}

#propertyLocationMap {
    height: 100%;
    width: 100%;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

/* Main Photo Upload */
.main-photo-upload {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: var(--transition);
}

.main-photo-upload:hover {
    border-color: var(--primary);
}

.upload-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.upload-placeholder p {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-placeholder small {
    color: var(--gray-500);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* Gallery Upload */
.gallery-upload {
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 1rem;
    min-height: 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.add-photo-btn {
    aspect-ratio: 1;
    border: 2px dashed var(--gray-300);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
}

.add-photo-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.add-photo-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.add-photo-btn span {
    font-size: 0.75rem;
}

/* Video Upload */
.video-upload-options .nav-tabs {
    border: none;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.video-upload-options .nav-link {
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    color: var(--gray-600);
    padding: 0.5rem 1rem;
}

.video-upload-options .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.video-upload-box {
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

/* Document Upload */
.document-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 0.75rem;
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.doc-info {
    flex: 1;
}

.doc-name {
    display: block;
    font-weight: 500;
    color: var(--dark);
}

.doc-info small {
    color: var(--gray-500);
}

/* Description Editor */
.description-editor {
    border: 1px solid var(--gray-300);
    border-radius: 1rem;
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--light);
    border-bottom: 1px solid var(--gray-200);
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}

.toolbar-btn:hover {
    background: var(--white);
    color: var(--primary);
}

.toolbar-divider {
    width: 1px;
    background: var(--gray-300);
    margin: 0 0.25rem;
}

.ai-assist-btn {
    width: auto;
    padding: 0 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.ai-assist-btn:hover {
    color: var(--white);
    opacity: 0.9;
}

.editor-textarea {
    border: none;
    resize: vertical;
    min-height: 200px;
}

.editor-textarea:focus {
    box-shadow: none;
}

/* AI Suggestions */
.ai-suggestions-box {
    background: linear-gradient(135deg, rgba(4, 157, 181, 0.05), rgba(6, 193, 221, 0.05));
    border: 1px solid var(--primary);
    border-radius: 1rem;
    padding: 1.5rem;
}

.ai-suggestions-box h6 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.suggestion-item:hover {
    box-shadow: var(--shadow);
}

.suggestion-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    flex: 1;
}

.btn-use {
    padding: 0.35rem 0.75rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

/* Commission Type Options */
.commission-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.commission-type input {
    display: none;
}

.commission-card {
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.commission-card i {
    font-size: 2rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.commission-card .title {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.commission-card small {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.commission-type input:checked + .commission-card {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.05);
}

.commission-type input:checked + .commission-card i {
    color: var(--primary);
}

/* Urgency Options */
.urgency-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.urgency-check input {
    display: none;
}

.urgency-check span {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.badge-normal {
    background: var(--light);
    color: var(--gray-700);
}

.badge-urgent {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.badge-hot {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.urgency-check input:checked + .badge-normal {
    background: var(--primary);
    color: var(--white);
}

.urgency-check input:checked + .badge-urgent {
    background: #ffc107;
    color: var(--dark);
}

.urgency-check input:checked + .badge-hot {
    background: var(--danger);
    color: var(--white);
}

/* Preview Section */
.preview-section {
    background: var(--light);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.preview-section h6 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wizard-navigation .btn {
    padding: 0.875rem 2rem;
    font-weight: 500;
}

.btn-publish {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    font-size: 1.1rem;
    padding: 1rem 3rem !important;
}

.btn-publish:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Success Icon */
.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.success-icon i {
    font-size: 3rem;
    color: var(--white);
}

/* Step Hover Effect for Clickable */
.step {
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent;
    transition: var(--transition);
    z-index: -1;
}

.step:hover::before {
    background: rgba(4, 157, 181, 0.1);
}

.step:hover .step-number {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Gallery Photo */
.gallery-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
}

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

.gallery-photo .btn-remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

/* ====================
   MOBILE-FIRST RESPONSIVE
   ==================== */

/* Mobile (default) */
.page-header-sm {
    padding: 80px 0 30px;
}

.page-header-sm .page-title {
    font-size: 1.5rem;
}

.page-header-sm .page-subtitle {
    font-size: 0.875rem;
}

.wizard-progress {
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wizard-progress::-webkit-scrollbar {
    display: none;
}

.progress-line {
    top: 16px;
    left: 25px;
    right: 25px;
    height: 3px;
}

.steps {
    min-width: 500px;
    padding: 0 5px;
}

.step-number {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
}

.step-label {
    font-size: 0.65rem;
    max-width: 60px;
    white-space: normal;
    line-height: 1.2;
}

.step-card {
    padding: 1.25rem;
    border-radius: 1rem;
}

.step-card-overlay {
    padding: 0.9rem;
}

.step-card-overlay-body {
    align-items: flex-start;
    gap: 0.75rem;
}

.step-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.step-header h3 {
    font-size: 1.1rem;
}

.step-header p {
    font-size: 0.85rem;
}

/* Property Type Grid Mobile */
.property-type-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.type-card {
    padding: 0.875rem 0.5rem;
}

.type-card i {
    font-size: 1.25rem;
}

.type-card span {
    font-size: 0.75rem;
}

/* Spec Input Mobile */
.spec-input .input-group {
    border-radius: 0.5rem;
}

.spec-input .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

.spec-input .form-control {
    font-size: 0.875rem;
    padding: 0.375rem;
}

/* Facilities Mobile */
.facilities-checkboxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.facility-check {
    padding: 0.625rem;
}

.facility-check i {
    font-size: 0.9rem;
}

.facility-check span {
    font-size: 0.75rem;
}

/* Owner Type Mobile */
.owner-type-options {
    flex-direction: column;
    gap: 0.75rem;
}

.owner-card {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.owner-card i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* File Upload Mobile */
.file-upload-box {
    padding: 1.5rem 1rem;
}

.file-upload-box i {
    font-size: 2rem;
}

.file-upload-box p {
    font-size: 0.875rem;
}

/* Map Mobile */
.map-pin-container {
    height: 250px;
}

/* Main Photo Mobile */
.main-photo-upload {
    height: 200px;
}

.upload-placeholder i {
    font-size: 2rem;
}

/* Gallery Mobile */
.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* Video Upload Mobile */
.video-upload-box {
    padding: 1.5rem 1rem;
}

/* Document Upload Mobile */
.doc-item {
    flex-wrap: wrap;
    padding: 0.875rem;
}

.doc-icon {
    width: 40px;
    height: 40px;
}

.doc-icon i {
    font-size: 1.25rem;
}

.doc-name {
    font-size: 0.875rem;
}

/* Description Editor Mobile */
.editor-toolbar {
    flex-wrap: wrap;
    gap: 0.125rem;
    padding: 0.375rem;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
}

.ai-assist-btn {
    width: auto;
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

.editor-textarea {
    min-height: 150px;
    font-size: 0.875rem;
}

/* AI Suggestions Mobile */
.ai-suggestions-box {
    padding: 1rem;
}

.suggestion-item {
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item p {
    font-size: 0.85rem;
}

/* Commission Type Mobile */
.commission-type-options {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.commission-card {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.commission-card i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Urgency Options Mobile */
.urgency-options {
    gap: 0.5rem;
}

.urgency-check span {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
}

/* Navigation Buttons Mobile */
.wizard-navigation {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.wizard-navigation .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.btn-publish {
    font-size: 1rem !important;
    padding: 0.875rem 1.5rem !important;
}

/* Form Controls Mobile */
.form-control, .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.625rem 0.875rem;
}

.input-group-text {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
}

/* Relationship Options Mobile */
.relationship-check {
    padding: 0.875rem;
}

.relationship-check span {
    font-size: 0.875rem;
}

/* Preview Section Mobile */
.preview-section {
    padding: 1rem;
}

/* ====================
   TABLET (768px+)
   ==================== */
@media (min-width: 768px) {
    .page-header-sm {
        padding: 100px 0 40px;
    }
    
    .page-header-sm .page-title {
        font-size: 2rem;
    }
    
    .page-header-sm .page-subtitle {
        font-size: 1rem;
    }
    
    .steps {
        min-width: auto;
    }
    
    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
        max-width: none;
    }
    
    .step-card {
        padding: 2rem;
    }
    
    .property-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .type-card {
        padding: 1.25rem;
    }
    
    .type-card i {
        font-size: 1.75rem;
    }
    
    .type-card span {
        font-size: 0.9rem;
    }
    
    .facilities-checkboxes {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .owner-type-options {
        flex-direction: row;
    }
    
    .owner-card {
        flex-direction: column;
        text-align: center;
        min-width: 120px;
    }
    
    .owner-card i {
        margin-bottom: 0.5rem;
    }
    
    .map-pin-container {
        height: 350px;
    }
    
    .main-photo-upload {
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .commission-type-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .commission-card {
        flex-direction: column;
        text-align: center;
    }
    
    .commission-card i {
        margin-bottom: 0.75rem;
    }
    
    .wizard-navigation {
        flex-direction: row;
    }
    
    .wizard-navigation .btn {
        width: auto;
        padding: 0.875rem 2rem;
    }
    
    .suggestion-item {
        flex-direction: row;
    }
}

/* ====================
   DESKTOP (992px+)
   ==================== */
@media (min-width: 992px) {
    .step-card {
        padding: 2.5rem;
    }
    
    .step-header h3 {
        font-size: 1.25rem;
    }
    
    .editor-textarea {
        min-height: 200px;
    }
}

/* ====================
   SMALL MOBILE (360px)
   ==================== */
@media (max-width: 360px) {
    .step-label {
        font-size: 0.6rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .progress-line {
        top: 14px;
    }
    
    .property-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .type-card {
        padding: 0.625rem 0.375rem;
    }
    
    .type-card i {
        font-size: 1rem;
    }
    
    .type-card span {
        font-size: 0.7rem;
    }
    
    .facilities-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.upload-progress-box {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 44%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d5e7f5;
    border-radius: 0.95rem;
    padding: 0.95rem 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.upload-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.upload-progress-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.upload-progress-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.upload-progress-track {
    height: 0.56rem;
    border-radius: 999px;
    background: #e7eef7;
    overflow: hidden;
}

.upload-progress-track .progress-bar {
    border-radius: 999px;
    transition: width 0.25s ease-in-out;
}

.upload-progress-bar-image {
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
}

.upload-progress-bar-doc {
    background: linear-gradient(90deg, #10b981 0%, #22c55e 100%);
}

.upload-progress-meta {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
}

.upload-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background:
        radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.18), transparent 36%),
        radial-gradient(circle at 84% 82%, rgba(16, 185, 129, 0.12), transparent 34%),
        rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.upload-lock-card {
    width: min(520px, 100%);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1.1rem;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
    padding: 1.35rem 1.3rem;
    text-align: center;
}

.upload-lock-icon-wrap {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
}

.upload-lock-subtitle {
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.upload-lock-progress-label {
    text-align: left;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.38rem;
}

.upload-lock-warning {
    font-size: 0.78rem;
    color: #b91c1c;
    font-weight: 600;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.65rem;
    padding: 0.45rem 0.55rem;
}

body.upload-lock-active {
    overflow: hidden;
}

/* Compact variant for upload progress UI on mobile */
@media (max-width: 576px) {
    .upload-progress-box {
        border-radius: 0.78rem;
        padding: 0.62rem 0.66rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .upload-progress-head {
        gap: 0.4rem;
    }

    .upload-progress-title {
        font-size: 0.78rem;
        font-weight: 700;
    }

    .upload-progress-value {
        font-size: 0.67rem;
        padding: 0.16rem 0.42rem;
    }

    .upload-progress-track {
        height: 0.43rem;
        margin-top: 0.34rem !important;
    }

    .upload-progress-meta {
        margin-top: 0.34rem !important;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .upload-lock-overlay {
        padding: 0.74rem;
        align-items: flex-end;
        opacity: 0;
    }

    .upload-lock-card {
        width: 100%;
        border-radius: 0.95rem;
        padding: 0.92rem 0.82rem;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
        transform: translateY(22px);
        opacity: 0;
    }

    .upload-lock-card h5 {
        font-size: 0.98rem;
    }

    .upload-lock-subtitle {
        font-size: 0.79rem;
        margin-bottom: 0.66rem;
    }

    .upload-lock-icon-wrap {
        width: 2.42rem;
        height: 2.42rem;
        margin-bottom: 0.64rem !important;
    }

    .upload-lock-icon-wrap .spinner-border {
        width: 1.12rem;
        height: 1.12rem;
        border-width: 0.14em;
    }

    .upload-lock-progress-label {
        font-size: 0.7rem;
        margin-bottom: 0.28rem;
    }

    .upload-lock-card .progress.upload-progress-track {
        margin-bottom: 0.58rem !important;
    }

    .upload-lock-warning {
        margin-top: 0.6rem !important;
        font-size: 0.68rem;
        border-radius: 0.56rem;
        padding: 0.34rem 0.42rem;
    }

    .quill-editor-host {
        min-height: 220px;
    }

    .quill-editor-host .ql-container.ql-snow {
        min-height: 170px;
        font-size: 0.88rem;
    }

    .upload-lock-overlay.is-active {
        animation: uploadOverlayFadeInMobile 240ms ease forwards;
    }

    .upload-lock-overlay.is-active .upload-lock-card {
        animation: uploadCardSlideInMobile 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .upload-lock-overlay.is-exiting {
        animation: uploadOverlayFadeOutMobile 220ms ease forwards;
    }

    .upload-lock-overlay.is-exiting .upload-lock-card {
        animation: uploadCardSlideOutMobile 220ms ease forwards;
    }
}

@media (max-width: 420px) {
    .upload-progress-title {
        max-width: 62%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .upload-progress-meta {
        font-size: 0.66rem;
    }
}

@keyframes uploadOverlayFadeInMobile {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes uploadOverlayFadeOutMobile {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

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

/* Step5 editor */
.quill-editor-wrapper {
    border: 1px solid #dbe3ea;
    border-radius: 0.8rem;
    background: #fff;
    overflow: hidden;
}

.quill-editor-host {
    min-height: 260px;
}

.quill-editor-host .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e4ebf2;
    background: #f8fafc;
}

.quill-editor-host .ql-container.ql-snow {
    border: 0;
    min-height: 210px;
    font-family: inherit;
    font-size: 0.95rem;
}

.description-preview-box {
    margin-top: 0.25rem;
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-radius: 0.7rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.86rem;
    color: #334155;
}

/* ====================
   STEP 4 UPLOAD - CLEAN LAYOUT
   ==================== */
.wizard-form-upload {
    max-width: 1080px;
}

.wizard-form-upload .upload-step-card {
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.wizard-form-upload .upload-step-header {
    margin-bottom: 1.15rem;
    padding-bottom: 0.9rem;
}

.wizard-form-upload .upload-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.wizard-form-upload .upload-header-title {
    min-width: 0;
}

.wizard-form-upload .upload-step-header h3 {
    font-size: 1.12rem;
    margin-bottom: 0.36rem;
}

.wizard-form-upload .upload-step-header p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    word-break: break-word;
}

.wizard-form-upload .upload-header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.wizard-form-upload .upload-header-actions .btn {
    border-radius: 0.62rem;
    min-width: 136px;
}

.wizard-form-upload .upload-tab-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    background: #eff5fb;
    border: 1px solid #dbe5ef;
    border-radius: 0.72rem;
    padding: 0.32rem;
}

.wizard-form-upload .upload-tab-btn {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 700;
    border-radius: 0.58rem;
    padding: 0.44rem 0.66rem;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    transition: all 0.2s ease;
}

.wizard-form-upload .upload-tab-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
}

.wizard-form-upload .upload-tab-btn.active {
    background: linear-gradient(135deg, #0ea5b7 0%, #0b7d8a 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(14, 165, 183, 0.26);
}

.wizard-form-upload .upload-tab-count {
    border-radius: 999px;
    padding: 0.04rem 0.43rem;
    background: rgba(100, 116, 139, 0.16);
    font-size: 0.72rem;
    line-height: 1.2;
}

.wizard-form-upload .upload-tab-btn.active .upload-tab-count {
    background: rgba(255, 255, 255, 0.24);
}

.wizard-form-upload .upload-section-card {
    border: 1px solid #d7e0ea;
    border-radius: 0.9rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wizard-form-upload .upload-form-grid .form-label {
    font-size: 0.83rem;
    margin-bottom: 0.32rem;
    font-weight: 600;
}

.wizard-form-upload .upload-form-grid .form-control {
    border-radius: 0.62rem;
    min-height: 40px;
}

.wizard-form-upload .upload-inline-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wizard-form-upload .upload-inline-metrics span {
    font-size: 0.79rem;
    color: #475569;
    background: #eef4fb;
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.wizard-form-upload .upload-actions-row .btn {
    min-width: 136px;
    border-radius: 0.65rem;
    font-weight: 600;
}

.wizard-form-upload .upload-limit-alert {
    border-radius: 0.7rem;
    font-size: 0.82rem;
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.wizard-form-upload .upload-mini-list {
    border: 1px dashed #cfe0ef;
    border-radius: 0.88rem;
    padding: 0.72rem;
    margin-bottom: 0.8rem;
    background: #fbfdff;
}

.wizard-form-upload .upload-mini-empty {
    border: 1px dashed #d8e5f2;
    border-radius: 0.72rem;
    padding: 0.92rem 0.8rem;
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
}

.wizard-form-upload .upload-image-list,
.wizard-form-upload .upload-doc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.62rem;
}

.wizard-form-upload .upload-mini-card {
    border: 1px solid #d9e6f2;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0.62rem;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 0.65rem;
    align-items: start;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.wizard-form-upload .upload-mini-thumb {
    width: 76px;
    height: 76px;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid #d6e3f0;
    background: linear-gradient(180deg, #f8fafc 0%, #edf4fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-form-upload .upload-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-form-upload .upload-mini-thumb i {
    font-size: 1.25rem;
    color: #6b7280;
}

.wizard-form-upload .upload-mini-thumb.doc i {
    font-size: 1.5rem;
    color: #dc2626;
}

.wizard-form-upload .upload-mini-content {
    min-width: 0;
    display: grid;
    gap: 0.32rem;
}

.wizard-form-upload .upload-mini-title {
    font-size: 0.84rem;
    line-height: 1.32;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-form-upload .upload-mini-title a {
    color: #0f172a;
    text-decoration: none;
}

.wizard-form-upload .upload-mini-title a:hover {
    color: #0284c7;
}

.wizard-form-upload .upload-mini-meta {
    font-size: 0.74rem;
    color: #64748b;
}

.wizard-form-upload .upload-mini-actions {
    margin-top: 0.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.wizard-form-upload .upload-mini-actions .btn {
    border-radius: 0.52rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.71rem;
}

.wizard-form-upload .upload-cover-badge {
    border-radius: 999px;
    font-size: 0.68rem;
    align-self: center;
}

.wizard-form-upload .upload-meta-editor {
    border-radius: 0.86rem;
    padding: 0.85rem;
    border: 1px solid #d9e4ef;
    background: #f8fbff;
}

.wizard-form-upload .upload-pager {
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.wizard-form-upload .upload-pager .btn {
    min-width: 66px;
    border-radius: 0.55rem;
}

.wizard-form-upload .upload-footer-actions {
    justify-content: flex-end;
    align-items: center;
    border-top: 1px dashed #dbe4ef;
    padding-top: 0.8rem;
}

.wizard-form-upload .upload-footer-actions .btn {
    border-radius: 0.62rem;
    min-width: 136px;
}

@media (max-width: 991.98px) {
    .wizard-form-upload .upload-step-card {
        padding: 1rem;
    }

    .wizard-form-upload .upload-image-list,
    .wizard-form-upload .upload-doc-list {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .wizard-form-upload .upload-header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-form-upload .upload-header-actions {
        width: 100%;
    }

    .wizard-form-upload .upload-header-actions .btn {
        min-width: 0;
        flex: 1 1 0;
    }

    .wizard-form-upload .upload-tab-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .wizard-form-upload .upload-tab-btn {
        justify-content: center;
    }

    .wizard-form-upload .upload-step-header h3 {
        font-size: 1rem;
    }

    .wizard-form-upload .upload-section-card {
        padding: 0.72rem;
    }

    .wizard-form-upload .upload-actions-row .btn {
        min-width: 0;
        flex: 1 1 0;
    }

    .wizard-form-upload .upload-image-list,
    .wizard-form-upload .upload-doc-list {
        grid-template-columns: 1fr;
    }

    .wizard-form-upload .upload-mini-card {
        grid-template-columns: 70px 1fr;
        padding: 0.55rem;
        gap: 0.52rem;
    }

    .wizard-form-upload .upload-mini-thumb {
        width: 70px;
        height: 70px;
    }

    .wizard-form-upload .upload-footer-actions {
        justify-content: stretch;
    }

    .wizard-form-upload .upload-footer-actions .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .wizard-form-upload .upload-step-card {
        padding: 0.82rem;
    }

    .wizard-form-upload .upload-step-header p {
        font-size: 0.75rem;
    }

    .wizard-form-upload .upload-inline-metrics span {
        font-size: 0.74rem;
    }

    .wizard-form-upload .upload-mini-actions .btn {
        font-size: 0.68rem;
    }
}

/* ============================================
   PRIMARY STEP 5
   ============================================ */

.primary-step5-form-wrap {
    max-width: 1120px;
}

.primary-variant-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.primary-variant-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #cfd8e3;
    background: #fff;
    color: #1f2937;
    border-radius: 0.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.primary-variant-tab-btn:hover {
    border-color: var(--primary);
}

.primary-variant-tab-btn.active {
    border-color: var(--primary);
    background: rgba(4, 157, 181, 0.1);
    color: #0f172a;
}

.primary-variant-tab-btn.incomplete {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(255, 247, 237, 0.95);
}

.primary-variant-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
    font-size: 0.67rem;
    font-weight: 700;
    white-space: nowrap;
}

.primary-variant-tab-remove {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.primary-variant-panel {
    border: 1px solid #dbe3ea;
    border-radius: 0.85rem;
    padding: 1rem;
    background: #f9fbfd;
}

.primary-variant-section-head h6 {
    font-size: 1rem;
}

.primary-variant-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(4, 157, 181, 0.08);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
}

.primary-variant-empty {
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.primary-variant-quickhint {
    max-width: 540px;
}

.primary-variant-stat-card {
    height: 100%;
    border: 1px solid #dbe3ea;
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.primary-variant-stat-card strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.primary-variant-stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.primary-image-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.7rem;
}

.primary-image-picker-item {
    border: 1px solid #dbe3ea;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0.4rem;
    text-align: left;
    transition: all 0.2s ease;
}

.primary-image-picker-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 0.55rem;
    display: block;
    margin-bottom: 0.4rem;
}

.primary-image-picker-item span {
    display: block;
    font-size: 0.74rem;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary-image-picker-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(4, 157, 181, 0.25);
    background: rgba(4, 157, 181, 0.06);
}

.publish-checklist-card {
    height: 100%;
    border: 1px solid #dbe3ea;
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.publish-checklist-card.is-ready {
    border-color: rgba(22, 163, 74, 0.22);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.9), #ffffff);
}

.publish-checklist-card.is-missing {
    border-color: rgba(220, 38, 38, 0.16);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.92), #ffffff);
}

.publish-checklist-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.publish-checklist-missing {
    line-height: 1.5;
}

.publish-checklist-cta {
    min-width: 168px;
}

.publish-success-card .success-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.25rem 0.25rem;
}

.publish-success-card .success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.publish-success-card .share-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.publish-success-card .copy-item {
    border: 1px solid #dce7ef;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    background: #fff;
}

.publish-success-card .copy-text {
    font-size: 0.93rem;
    color: #203046;
    line-height: 1.45;
}

.wizard-guide-box {
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.82);
    padding: 0.75rem 0.9rem;
}

.wizard-guide-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.wizard-guide-summary-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.wizard-guide-icon {
    color: #64748b;
    font-size: 1rem;
    flex-shrink: 0;
}

.wizard-guide-toggle {
    padding: 0;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.wizard-guide-toggle:hover {
    color: var(--accent);
    text-decoration: underline;
}

.wizard-guide-detail {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #d7e0ea;
}

.wizard-guide-list {
    display: grid;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .step-actions-primary-mobile-sticky {
        position: sticky;
        bottom: 0.75rem;
        z-index: 6;
        padding: 0.9rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    }

    .publish-success-card .success-head {
        align-items: flex-start;
    }

    .publish-success-card .copy-item {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-guide-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .wizard-guide-toggle {
        padding-left: 1.55rem;
    }
}

@media (max-width: 991.98px) {
    .primary-step5-form-wrap {
        max-width: 100%;
    }

    .primary-variant-panel {
        padding: 0.85rem;
    }

    .primary-image-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .primary-variant-stat-card strong {
        font-size: 0.95rem;
    }

    .primary-variant-tab-badge {
        font-size: 0.63rem;
    }
}

@media (max-width: 575.98px) {
    .step-actions-primary {
        align-items: stretch;
    }

    .step-actions-primary > .btn.btn-primary {
        width: 100%;
        min-width: 0;
    }

    .step-links-row {
        width: 100%;
        justify-content: flex-start;
    }

    .step-links-label {
        width: 100%;
    }

    .step-links-row .btn {
        flex: 1 1 100%;
    }

    .wizard-context-chips {
        gap: 0.5rem;
    }

    .wizard-context-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .wizard-top-actions {
        width: 100%;
        justify-content: stretch;
    }

    .wizard-top-actions .btn {
        width: 100%;
    }

    .primary-variant-tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.65rem;
    }

    .primary-image-picker-item img {
        height: 82px;
    }

    .publish-checklist-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .publish-checklist-cta {
        width: 100%;
        min-width: 0;
    }

    .upload-mini-actions {
        width: 100%;
    }

    .upload-mini-actions .btn {
        flex: 1 1 calc(50% - 0.3rem);
        min-width: 0;
    }

    .upload-pager {
        align-items: stretch;
    }

    .upload-pager .btn {
        flex: 1 1 100%;
    }
}

/* Compact wizard/page header override */
.page-header-sm {
    padding: 16px 0 12px !important;
}
.page-header-sm .page-title {
    font-size: 1.22rem !important;
    line-height: 1.18 !important;
    margin-bottom: 0.08rem !important;
}
.page-header-sm .page-subtitle {
    font-size: 0.84rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
}
.wizard-section {
    padding-top: 18px !important;
}
.wizard-progress {
    margin-bottom: 1.25rem !important;
}
@media (max-width: 767.98px) {
    .page-header-sm { padding: 12px 0 10px !important; }
    .page-header-sm .page-title { font-size: 1.08rem !important; }
    .page-header-sm .page-subtitle { font-size: 0.78rem !important; }
}

/* =====================================================
   Compact wizard step indicator + form width
   Agar lebar step wizard pas dengan area form
   ===================================================== */
.wizard-progress {
    width: min(100%, 860px) !important;
    margin: 0 auto 0.95rem !important;
    padding: 0 8px !important;
}

.wizard-progress .steps {
    min-width: auto !important;
    gap: 0.2rem;
    padding: 0 !important;
}

.wizard-progress .progress-line {
    top: 14px !important;
    left: 32px !important;
    right: 32px !important;
    height: 2px !important;
}

.wizard-progress .step {
    max-width: 108px;
}

.wizard-progress .step-number {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.72rem !important;
    border-width: 1.5px !important;
}

.wizard-progress .step-label {
    margin-top: 0.32rem;
    font-size: 0.64rem !important;
    line-height: 1.12 !important;
    max-width: 74px !important;
}

.wizard-form {
    max-width: 860px !important;
}

.wizard-form-upload {
    max-width: 860px !important;
}

@media (min-width: 992px) {
    .wizard-progress {
        width: min(100%, 820px) !important;
    }

    .wizard-form {
        max-width: 820px !important;
    }

    .wizard-form-upload {
        max-width: 820px !important;
    }

    .wizard-progress .step {
        max-width: 96px;
    }

    .wizard-progress .step-label {
        font-size: 0.62rem !important;
        max-width: 68px !important;
    }
}

@media (max-width: 767.98px) {
    .wizard-progress {
        width: 100% !important;
        margin-bottom: 0.8rem !important;
        padding: 0 0 0.35rem !important;
    }

    .wizard-progress .steps {
        min-width: 420px !important;
        gap: 0;
    }

    .wizard-progress .progress-line {
        top: 13px !important;
        left: 24px !important;
        right: 24px !important;
    }

    .wizard-progress .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.68rem !important;
    }

    .wizard-progress .step-label {
        font-size: 0.58rem !important;
        max-width: 58px !important;
    }
}

/* =====================================================
   Compact wizard form internals
   Agar seluruh step pasang iklan terasa lebih padat
   ===================================================== */
.wizard-form,
.wizard-form-upload {
    gap: 0.9rem !important;
}

.step-card,
.wizard-form-upload .upload-step-card {
    padding: 1rem !important;
    border-radius: 0.95rem !important;
}

.step-card-overlay {
    border-radius: 0.95rem !important;
}

.step-card-overlay-body {
    padding: 0.95rem !important;
}

.step-header,
.wizard-form-upload .upload-step-header {
    margin-bottom: 0.9rem !important;
    padding-bottom: 0.65rem !important;
}

.step-header h3,
.wizard-form-upload .upload-step-header h3 {
    font-size: 1rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.18rem !important;
}

.step-header p,
.wizard-form-upload .upload-step-header p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
}

.wizard-section .form-label,
.wizard-form-upload .upload-form-grid .form-label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.28rem !important;
}

.wizard-section .form-control,
.wizard-section .form-select,
.wizard-form-upload .upload-form-grid .form-control,
.wizard-form-upload .upload-form-grid .form-select {
    min-height: 38px !important;
    padding: 0.42rem 0.72rem !important;
    font-size: 0.82rem !important;
    border-radius: 0.62rem !important;
}

.wizard-section textarea.form-control,
.wizard-section textarea.form-select,
.wizard-form-upload textarea.form-control {
    min-height: 104px !important;
}

.listing-category-group .form-select {
    padding-right: 2.15rem !important;
}

.listing-category-group .btn-refresh-icon {
    width: 34px !important;
    height: 34px !important;
}

.wizard-context-chips {
    gap: 0.45rem !important;
    margin-bottom: 0.8rem !important;
}

.wizard-context-chip {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.74rem !important;
    border-radius: 999px !important;
}

.property-type-grid {
    gap: 0.5rem !important;
}

.owner-card {
    padding: 0.72rem !important;
    border-radius: 0.8rem !important;
}

.owner-card i {
    font-size: 1.1rem !important;
}

.step-actions {
    gap: 0.45rem !important;
}

.step-actions-primary {
    padding-top: 0.75rem !important;
    gap: 0.5rem !important;
}

.step-actions-primary > .btn.btn-primary,
.wizard-navigation .btn,
.wizard-form-upload .upload-footer-actions .btn,
.wizard-form-upload .upload-header-actions .btn,
.wizard-form-upload .upload-actions-row .btn {
    min-height: 40px !important;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.8rem !important;
    border-radius: 0.68rem !important;
}

.step-actions-primary > .btn.btn-primary {
    min-width: 160px !important;
}

.btn-publish {
    font-size: 0.88rem !important;
    padding: 0.62rem 1rem !important;
    border-radius: 0.75rem !important;
}

.wizard-form-upload .upload-section-card {
    padding: 0.72rem !important;
    border-radius: 0.85rem !important;
}

.wizard-form-upload .upload-header-actions,
.wizard-form-upload .upload-actions-row,
.wizard-form-upload .upload-footer-actions {
    gap: 0.45rem !important;
}

@media (max-width: 767.98px) {
    .step-card,
    .wizard-form-upload .upload-step-card {
        padding: 0.85rem !important;
        border-radius: 0.85rem !important;
    }

    .step-card-overlay-body,
    .wizard-form-upload .upload-section-card {
        padding: 0.78rem !important;
    }

    .step-header,
    .wizard-form-upload .upload-step-header {
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.55rem !important;
    }

    .step-header h3,
    .wizard-form-upload .upload-step-header h3 {
        font-size: 0.94rem !important;
    }

    .step-header p,
    .wizard-form-upload .upload-step-header p,
    .wizard-section .form-label {
        font-size: 0.75rem !important;
    }

    .wizard-section .form-control,
    .wizard-section .form-select,
    .wizard-form-upload .upload-form-grid .form-control,
    .wizard-form-upload .upload-form-grid .form-select {
        min-height: 36px !important;
        padding: 0.38rem 0.68rem !important;
        font-size: 0.8rem !important;
    }

    .step-actions-primary > .btn.btn-primary,
    .wizard-navigation .btn,
    .wizard-form-upload .upload-footer-actions .btn,
    .wizard-form-upload .upload-header-actions .btn,
    .wizard-form-upload .upload-actions-row .btn {
        min-height: 38px !important;
        padding: 0.46rem 0.78rem !important;
        font-size: 0.78rem !important;
    }
}

/* =====================================================
   Compact form grid + advanced wizard panels
   Menyamakan kerapatan field dari Step 1 sampai Step 6
   ===================================================== */
.wizard-form.mt-4,
.wizard-form-upload.mt-4 {
    margin-top: 0.75rem !important;
}

.wizard-form .row,
.wizard-form-upload .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.65rem;
}

.wizard-form .row.g-3,
.wizard-form-upload .row.g-3 {
    --bs-gutter-x: 0.72rem;
    --bs-gutter-y: 0.62rem;
}

.wizard-form .mb-4,
.wizard-form-upload .mb-4 {
    margin-bottom: 0.75rem !important;
}

.wizard-form .mt-4,
.wizard-form-upload .mt-4 {
    margin-top: 0.75rem !important;
}

.wizard-form .mb-3,
.wizard-form-upload .mb-3 {
    margin-bottom: 0.58rem !important;
}

.wizard-form .mt-3,
.wizard-form-upload .mt-3 {
    margin-top: 0.58rem !important;
}

.api-hint-box,
.duplicate-box,
.history-box,
.transfer-box,
.wizard-guide-box,
.primary-variant-panel,
.publish-checklist-card,
.location-search-card,
.location-item-card,
.location-empty-card {
    padding: 0.68rem 0.78rem !important;
    border-radius: 0.78rem !important;
}

.api-hint-box,
.wizard-guide-box {
    font-size: 0.78rem !important;
    line-height: 1.38 !important;
}

.wizard-guide-summary {
    gap: 0.55rem !important;
}

.wizard-guide-summary-copy strong,
.wizard-guide-summary-copy span,
.wizard-guide-detail,
.owner-guide-detail {
    font-size: 0.76rem !important;
    line-height: 1.42 !important;
}

.wizard-guide-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.9rem !important;
}

.wizard-guide-toggle {
    min-height: 32px !important;
    padding: 0.32rem 0.58rem !important;
    font-size: 0.74rem !important;
}

.step-links-row .btn,
.wizard-top-actions .btn,
.wizard-primary-action {
    min-height: 36px !important;
    padding: 0.42rem 0.72rem !important;
    font-size: 0.78rem !important;
    border-radius: 0.62rem !important;
}

.step-links-label {
    font-size: 0.76rem !important;
}

.step-status-alert {
    padding: 0.58rem 0.72rem !important;
    border-radius: 0.72rem !important;
    font-size: 0.8rem !important;
}

.wizard-section .form-text,
.wizard-form .small,
.wizard-form-upload .small {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
}

.wizard-section .form-check {
    min-height: 1.15rem !important;
}

.wizard-section .form-check-input {
    width: 0.95rem !important;
    height: 0.95rem !important;
    margin-top: 0.18rem !important;
}

.wizard-section .form-check-label {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
}

.owner-type-options,
.relationship-options,
.facilities-checkboxes {
    gap: 0.5rem !important;
}

.type-card,
.owner-card,
.relationship-check,
.facility-check {
    padding: 0.62rem 0.72rem !important;
    border-radius: 0.72rem !important;
    border-width: 1px !important;
}

.type-card i,
.owner-card i {
    font-size: 1.05rem !important;
    margin-bottom: 0.25rem !important;
}

.type-card span,
.owner-card span,
.relationship-check span,
.facility-check span {
    font-size: 0.76rem !important;
}

.file-upload-box,
.video-upload-box,
.gallery-upload {
    padding: 0.82rem !important;
    border-radius: 0.78rem !important;
}

.file-upload-box i,
.upload-placeholder i {
    font-size: 1.65rem !important;
    margin-bottom: 0.45rem !important;
}

.file-upload-box p,
.upload-placeholder p {
    font-size: 0.82rem !important;
    margin-bottom: 0.2rem !important;
}

.main-photo-upload {
    height: 230px !important;
    border-radius: 0.78rem !important;
}

.map-pin-container {
    height: 280px !important;
    border-radius: 0.78rem !important;
}

.location-card-list,
.wizard-form-upload .upload-mini-list {
    gap: 0.45rem !important;
}

.wizard-form-upload .upload-mini-card {
    padding: 0.48rem !important;
    border-radius: 0.72rem !important;
    gap: 0.55rem !important;
}

.wizard-form-upload .upload-mini-thumb {
    width: 58px !important;
    height: 58px !important;
    border-radius: 0.55rem !important;
}

.wizard-form-upload .upload-mini-title {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
}

.wizard-form-upload .upload-mini-meta {
    font-size: 0.68rem !important;
}

.wizard-form-upload .upload-mini-actions {
    gap: 0.3rem !important;
}

.wizard-form-upload .upload-mini-actions .btn {
    min-height: 30px !important;
    padding: 0.26rem 0.46rem !important;
    font-size: 0.7rem !important;
    border-radius: 0.5rem !important;
}

.quill-editor-wrapper,
.quill-editor-host,
.description-editor {
    border-radius: 0.75rem !important;
}

.quill-editor-host .ql-toolbar.ql-snow {
    padding: 0.38rem !important;
}

.quill-editor-host .ql-container.ql-snow {
    min-height: 180px !important;
}

.primary-variant-tabs {
    gap: 0.38rem !important;
}

.primary-variant-tab-btn {
    min-height: 36px !important;
    padding: 0.42rem 0.62rem !important;
    font-size: 0.74rem !important;
    border-radius: 0.62rem !important;
}

.primary-variant-panel {
    margin-top: 0.65rem !important;
}

.primary-variant-stat-card {
    padding: 0.54rem 0.62rem !important;
    border-radius: 0.68rem !important;
}

.primary-variant-stat-card strong {
    font-size: 0.88rem !important;
}

.primary-variant-stat-label {
    font-size: 0.66rem !important;
}

.primary-image-picker-grid {
    gap: 0.48rem !important;
}

.primary-image-picker-item {
    border-radius: 0.62rem !important;
}

.primary-image-picker-item img {
    height: 94px !important;
}

.publish-checklist-card-head {
    gap: 0.45rem !important;
}

.publish-checklist-card-head strong {
    font-size: 0.78rem !important;
}

.publish-checklist-missing {
    margin-top: 0.35rem !important;
}

.publish-checklist-cta {
    margin-top: 0.5rem !important;
    min-height: 32px !important;
    padding: 0.28rem 0.55rem !important;
    font-size: 0.72rem !important;
}

@media (min-width: 992px) {
    .wizard-form .row.g-3,
    .wizard-form-upload .row.g-3 {
        --bs-gutter-x: 0.8rem;
        --bs-gutter-y: 0.66rem;
    }
}

@media (max-width: 767.98px) {
    .wizard-form.mt-4,
    .wizard-form-upload.mt-4 {
        margin-top: 0.6rem !important;
    }

    .wizard-form .row,
    .wizard-form-upload .row,
    .wizard-form .row.g-3,
    .wizard-form-upload .row.g-3 {
        --bs-gutter-x: 0.62rem;
        --bs-gutter-y: 0.55rem;
    }

    .api-hint-box,
    .duplicate-box,
    .history-box,
    .transfer-box,
    .wizard-guide-box,
    .primary-variant-panel,
    .publish-checklist-card,
    .location-search-card,
    .location-item-card,
    .location-empty-card {
        padding: 0.58rem 0.65rem !important;
    }

    .main-photo-upload {
        height: 200px !important;
    }

    .map-pin-container {
        height: 240px !important;
    }

    .primary-image-picker-item img {
        height: 78px !important;
    }
}

:root {
    --gmp-font-stack: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
}

html, body, button, input, select, textarea {
    font-family: var(--gmp-font-stack) !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =====================================================
   APP-WIDE COMPACT HEADERS
   Global override terakhir agar semua header halaman dashboard/public
   lebih padat seperti halaman Listing Saya.
   ===================================================== */
.member-header {
    min-height: 48px !important;
    padding: 0.45rem 0.85rem !important;
}
.member-header-title {
    font-size: 0.98rem !important;
    line-height: 1.15 !important;
}
.member-header-actions {
    gap: 0.45rem !important;
}
.member-user-dropdown,
.member-ai-link,
.member-notify {
    min-height: 34px !important;
    padding-top: 0.32rem !important;
    padding-bottom: 0.32rem !important;
}

.dashboard-header,
.page-header,
.page-header-sm,
.agent-profile-header,
.breadcrumb-section {
    padding-top: 16px !important;
    padding-bottom: 12px !important;
}

.dashboard-header .page-title,
.page-header .page-title,
.page-header-sm .page-title,
.agent-profile-header h1,
.breadcrumb-section h1 {
    font-size: 1.18rem !important;
    line-height: 1.18 !important;
    margin-bottom: 0.08rem !important;
}

.dashboard-header .page-subtitle,
.page-header .page-subtitle,
.page-header-sm .page-subtitle,
.agent-profile-header p,
.breadcrumb-section p {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
}

/* Header berbasis CSS isolation / dashboard khusus */
.agent-dashboard-hero,
.ai-admin-header,
.blog-admin-header,
.blog-editor-header,
.menu-visibility-hero,
.notif-header,
.gateway-header,
.wa-header,
.wa-ai-header-card,
.wa-ai-admin-header,
.public-feed-header,
.upload-header,
.kpr-header,
.ref-tree-header,
.profile-hero,
.testimonial-page-header {
    padding: 0.85rem 1rem !important;
    margin-bottom: 0.9rem !important;
    gap: 0.75rem !important;
    border-radius: 1rem !important;
}

.agent-dashboard-hero h1,
.ai-admin-header h1,
.blog-admin-header h1,
.blog-editor-header h1,
.menu-visibility-hero h1,
.notif-header h1,
.gateway-header h1,
.wa-header h1,
.public-feed-header h1,
.upload-header h1,
.kpr-header h1,
.ref-tree-header h1,
.profile-hero h1,
.testimonial-page-header h1,
.wa-ai-header-card h3,
.wa-ai-admin-header h3 {
    font-size: 1.18rem !important;
    line-height: 1.18 !important;
    margin-bottom: 0.12rem !important;
}

.agent-dashboard-hero p,
.ai-admin-header p,
.blog-admin-header p,
.blog-editor-header p,
.menu-visibility-hero p,
.notif-header p,
.gateway-header p,
.wa-header p,
.public-feed-header p,
.upload-header p,
.kpr-header p,
.ref-tree-header p,
.profile-hero p,
.testimonial-page-header p,
.wa-ai-header-card p,
.wa-ai-admin-header p {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
}

.agent-dashboard-hero-actions,
.ai-admin-header-actions,
.blog-admin-header-actions,
.blog-editor-header-actions,
.menu-visibility-hero-actions,
.gateway-header-actions,
.wa-actions,
.wa-ai-header-actions,
.wa-ai-admin-actions {
    gap: 0.45rem !important;
}

.agent-dashboard-hero .btn,
.ai-admin-header .btn,
.blog-admin-header .btn,
.blog-editor-header .btn,
.menu-visibility-hero .btn,
.notif-header .btn,
.gateway-header .btn,
.wa-header .btn,
.wa-ai-header-card .btn,
.wa-ai-admin-header .btn,
.public-feed-header .btn,
.upload-header .btn,
.kpr-header .btn,
.ref-tree-header .btn,
.testimonial-page-header .btn {
    padding: 0.34rem 0.62rem !important;
    font-size: 0.8rem !important;
}

/* Bagian awal konten setelah header juga dibuat tidak terlalu turun */
.data-section,
.profile-section,
.storage-section,
.wizard-section,
.listing-section,
.filter-section {
    padding-top: 14px !important;
}

.stats-bar {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

@media (max-width: 767.98px) {
    .member-header {
        min-height: 44px !important;
        padding: 0.38rem 0.65rem !important;
    }

    .dashboard-header,
    .page-header,
    .page-header-sm,
    .agent-profile-header,
    .breadcrumb-section {
        padding-top: 12px !important;
        padding-bottom: 10px !important;
    }

    .agent-dashboard-hero,
    .ai-admin-header,
    .blog-admin-header,
    .blog-editor-header,
    .menu-visibility-hero,
    .notif-header,
    .gateway-header,
    .wa-header,
    .wa-ai-header-card,
    .wa-ai-admin-header,
    .public-feed-header,
    .upload-header,
    .kpr-header,
    .ref-tree-header,
    .profile-hero,
    .testimonial-page-header {
        padding: 0.72rem !important;
        margin-bottom: 0.75rem !important;
    }

    .dashboard-header .page-title,
    .page-header .page-title,
    .page-header-sm .page-title,
    .agent-dashboard-hero h1,
    .ai-admin-header h1,
    .blog-admin-header h1,
    .blog-editor-header h1,
    .menu-visibility-hero h1,
    .notif-header h1,
    .gateway-header h1,
    .wa-header h1,
    .public-feed-header h1,
    .upload-header h1,
    .kpr-header h1,
    .ref-tree-header h1,
    .profile-hero h1,
    .testimonial-page-header h1,
    .wa-ai-header-card h3,
    .wa-ai-admin-header h3 {
        font-size: 1.05rem !important;
    }
}

