/* =====================================================
   042 Diary - Mobile-First Stylesheet
   Marketplace Platform for Enugu State
   ===================================================== */

:root {
    --primary: #0D8ABC;
    --primary-dark: #0A6D96;
    --primary-light: #E8F4F8;
    --secondary: #2C3E50;
    --accent: #E67E22;
    --accent-dark: #D35400;
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    --light: #F8F9FA;
    --dark: #1A1A2E;
    --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;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: var(--white); padding: 8px 16px; z-index: 9999; transition: top 0.3s; }
.skip-link:focus { top: 0; }

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.top-bar { font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-bar a:hover { color: var(--primary-light) !important; }

.main-header {
    z-index: 1030;
    border-bottom: 2px solid var(--primary-light);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    flex-wrap: nowrap;
}
.header-brand { flex-shrink: 0; }
.brand-logo { display: flex; align-items: center; text-decoration: none; }
.brand-text { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.brand-accent { color: var(--primary); }

/* Desktop Navigation */
.header-nav {
    flex: 1 1 auto;
    display: none;
    align-items: center;
    min-width: 0;
    overflow: visible;
}
@media (min-width: 992px) {
    .header-nav { display: flex; }
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.875rem;
    flex-shrink: 1;
    white-space: nowrap;
    min-width: 0;
}

/* Nav links — inline-flex for perfect icon alignment */
.nav-link-custom {
    color: var(--gray-700);
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}
.nav-link-custom:hover, .nav-link-custom:focus {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}
.nav-link-custom.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: transparent;
    position: relative;
}
.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}
.nav-link-custom.active:hover {
    background: var(--primary-light);
}
.nav-link-custom i.bi-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Dropdowns */
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown:hover > .nav-link-custom i.bi-chevron-down {
    transform: rotate(180deg);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--gray-700);
    font-size: 0.82rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}
.nav-dropdown-menu a.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding-left: calc(1rem - 3px);
}
.nav-dropdown-active > .nav-link-custom {
    color: var(--primary);
    font-weight: 600;
}
.nav-dropdown-active > .nav-link-custom i.bi-chevron-down,
.nav-dropdown:hover > .nav-link-custom i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Header Actions (search + auth) */
.header-actions {
    flex-shrink: 0;
    display: none;
    align-items: center;
    gap: 0.4rem;
}
@media (min-width: 992px) {
    .header-actions { display: flex; }
}
.header-search {
    display: inline-flex;
    min-width: 130px;
}
.header-search input {
    border-right: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
}
.header-search button {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
}
.header-actions .btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
}

/* Mobile Menu Toggle */
.header-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--gray-800);
    border: none;
    background: none;
    flex-shrink: 0;
}
.header-mobile-toggle:hover { color: var(--primary); }
@media (min-width: 992px) {
    .header-mobile-toggle { display: none; }
}

/* Ad placeholder — shown when no ad exists in database */
.ad-placeholder-empty {
    border: 2px dashed #ced4da;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    margin: 1rem 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.ad-placeholder-empty::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle, #dee2e6 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}
.ad-placeholder-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.ad-placeholder-icon {
    font-size: 1.5rem;
    color: #adb5bd;
    opacity: 0.8;
}
.ad-placeholder-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ad-placeholder-subtext {
    font-size: 0.7rem;
    color: #adb5bd;
}
.ad-slot-top_banner .ad-placeholder-empty {
    padding: 2rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .ad-placeholder-empty { padding: 1rem 0.75rem; }
    .ad-placeholder-text { font-size: 0.7rem; }
    .ad-placeholder-icon { font-size: 1.2rem; }
    .ad-slot-top_banner .ad-placeholder-empty { padding: 1.25rem 0.75rem; }
}

/* =====================================================
   RESPONSIVE AD SLOTS
   ===================================================== */
.ad-container, .ad-slot {
    margin: 1rem 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.ad-container img, .ad-slot img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.ad-slot .ad-label {
    font-size: 0.65rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

/* Responsive image visibility */
.ad-img-desktop, .ad-img-tablet, .ad-img-mobile,
.ad-desktop, .ad-tablet, .ad-mobile {
    display: none;
}

/* Mobile: show mobile image */
@media (max-width: 576px) {
    .ad-img-mobile, .ad-mobile { display: block !important; }
    .ad-img-tablet, .ad-tablet,
    .ad-img-desktop, .ad-desktop { display: none !important; }
    .ad-slot-top_banner { margin: 0.75rem 0; }
    .ad-sidebar-slot { display: none; }
}

/* Tablet: show tablet image */
@media (min-width: 577px) and (max-width: 991px) {
    .ad-img-tablet, .ad-tablet { display: block !important; }
    .ad-img-mobile, .ad-mobile,
    .ad-img-desktop, .ad-desktop { display: none !important; }
}

/* Desktop: show desktop image */
@media (min-width: 992px) {
    .ad-img-desktop, .ad-desktop { display: block !important; }
    .ad-img-mobile, .ad-mobile,
    .ad-img-tablet, .ad-tablet { display: none !important; }
}

/* Fallback: if only one image is uploaded, show it everywhere */
.ad-slot img:not(.ad-img-desktop):not(.ad-img-tablet):not(.ad-img-mobile) {
    display: block !important;
}

/* Ad text banner */
.ad-text-banner {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.ad-text-banner:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

/* Ad slot positions */
.ad-slot-top_banner { max-width: 100%; margin: 0 auto; }
.ad-slot-sidebar { max-width: 300px; margin: 0 auto 1rem; }
.ad-slot-inline { max-width: 100%; margin: 1.5rem auto; }
.ad-slot-footer_ad { max-width: 100%; margin: 1rem auto 0; }
.ad-slot-between_content { max-width: 728px; margin: 1.5rem auto; }

/* Top banner full width on mobile */
@media (max-width: 576px) {
    .ad-slot-top_banner img,
    .ad-slot-inline img { max-width: 100%; }
}

/* Ad click tracking cursor */
.ad-click { display: block; cursor: pointer; }

.dashboard-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .dashboard-layout { grid-template-columns: 250px 1fr; } }
.sidebar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem; }
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 0.25rem; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    color: var(--gray-700); border-radius: var(--radius-sm); font-weight: 500; transition: var(--transition-fast);
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-light); color: var(--primary); }
.sidebar-nav a i { width: 20px; text-align: center; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-size: 1.25rem; }
.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: #E8F8EF; color: var(--success); }
.stat-icon.warning { background: #FEF5E7; color: var(--warning); }
.stat-icon.danger { background: #FDEDEC; color: var(--danger); }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }

.table-responsive { border-radius: var(--radius); overflow: hidden; }
.table { margin-bottom: 0; }
.table th { background: var(--gray-100); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); padding: 0.75rem 1rem; }
.table td { padding: 0.75rem 1rem; vertical-align: middle; font-size: 0.9rem; }
.table-hover tbody tr:hover { background: var(--primary-light); }

@media (max-width: 576px) {
    .table-mobile-cards thead { display: none; }
    .table-mobile-cards tbody, .table-mobile-cards tr, .table-mobile-cards td { display: block; width: 100%; }
    .table-mobile-cards tr { background: var(--white); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
    .table-mobile-cards td { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border: none; border-bottom: 1px solid var(--gray-200); }
    .table-mobile-cards td:last-child { border-bottom: none; }
    .table-mobile-cards td::before { content: attr(data-label); font-weight: 600; color: var(--gray-600); font-size: 0.8rem; }
}

.badge { font-weight: 500; padding: 0.35em 0.65em; border-radius: var(--radius-full); font-size: 0.75rem; }
.badge-soft-success { background: #E8F8EF; color: var(--success); }
.badge-soft-danger { background: #FDEDEC; color: var(--danger); }
.badge-soft-warning { background: #FEF5E7; color: var(--warning); }
.badge-soft-info { background: #EBF5FB; color: var(--info); }

.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state i { font-size: 3rem; color: var(--gray-400); margin-bottom: 1rem; }
.empty-state h4 { color: var(--gray-700); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 1.5rem; }

.pagination { gap: 0.25rem; }
.page-link { border: none; border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; color: var(--gray-700); font-weight: 500; }
.page-link:hover { background: var(--primary-light); color: var(--primary); }
.page-item.active .page-link { background: var(--primary); color: var(--white); }

.avatar { width: 40px; height: 40px; border-radius: var(--radius-full); object-fit: cover; }
.avatar-lg { width: 80px; height: 80px; }
.avatar-xl { width: 120px; height: 120px; }

.history-card .card-img-top { aspect-ratio: 16/9; }
.history-type-badge { position: absolute; top: 10px; left: 10px; padding: 0.25rem 0.6rem; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; background: var(--secondary); color: var(--white); }

.directory-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; }
.directory-card .logo { width: 50px; height: 50px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.directory-card .logo img { width: 100%; height: 100%; object-fit: cover; }
.directory-card .info h5 { font-size: 1rem; margin-bottom: 0.25rem; }
.directory-card .info p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0; }

.search-result-item { display: flex; gap: 1rem; padding: 1rem; background: var(--white); border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow-sm); transition: var(--transition); }
.search-result-item:hover { box-shadow: var(--shadow); }
.search-result-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }

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

/* =====================================================
   HERO CAROUSEL
   ===================================================== */
.hero-carousel-section { position: relative; overflow: hidden; }
.hero-slide {
    position: relative; min-height: 280px; max-height: 450px; background-size: cover;
    background-position: center; display: flex; align-items: center;
    justify-content: center; padding: 3rem 1rem;
}
.hero-ad-slide { overflow: hidden; }
.hero-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.7) 0%, rgba(13,138,188,0.5) 100%);
}
.hero-slide-title {
    font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700;
    line-height: 1.2; margin-bottom: 1rem;
}
.hero-slide-subtitle { font-size: 1rem; opacity: 0.9; margin-bottom: 1.5rem; }
.carousel-control-prev, .carousel-control-next { width: 48px; height: 48px; top: 50%; transform: translateY(-50%); opacity: 0.8; }
.carousel-indicators { bottom: 1rem; margin-bottom: 0; }
.carousel-indicators [data-bs-slide-to] { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--white); background: transparent; opacity: 0.6; }
.carousel-indicators [data-bs-slide-to].active { background: var(--white); opacity: 1; }

/* Hero Carousel Ad Slide */
.hero-ad-slide .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(26,26,46,0.75) 0%, rgba(13,138,188,0.45) 100%);
}
.hero-ad-link { text-decoration: none; color: inherit; display: block; }
.hero-ad-link:hover { text-decoration: none; color: inherit; }
.hero-ad-content { display: flex; flex-direction: column; align-items: center; }
.hero-ad-content .badge { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
.hero-ad-img {
    max-width: 85%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    flex-shrink: 0;
}
.hero-ad-placeholder {
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.95);
    border: 2px dashed #ccc;
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    color: var(--gray-700);
    text-align: center;
    flex-shrink: 0;
}
.hero-ad-placeholder i {
    font-size: 2.5rem !important;
    color: var(--primary);
    opacity: 0.6;
}
.hero-ad-placeholder h2 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--gray-800);
}
.hero-ad-placeholder p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* =====================================================
   SECTION HEADINGS
   ===================================================== */
.section { padding: 2.5rem 0; }
.section-title {
    font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
    color: var(--secondary); margin-bottom: 0; position: relative;
}
.section-title::after {
    content: ''; display: block; width: 40px; height: 3px;
    background: var(--primary); margin-top: 0.5rem; border-radius: 2px;
}
.section-subtitle { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 0; margin-top: 0.25rem; }

/* =====================================================
   QUICK ACCESS GRID
   ===================================================== */
.quick-access-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.quick-access-item {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 0.5rem; padding: 1.25rem 0.5rem;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: var(--transition);
    text-decoration: none; color: var(--gray-700); min-height: 80px;
}
.quick-access-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--primary); }
.quick-access-item:active { transform: scale(0.97); }
.quick-access-icon {
    width: 44px; height: 44px; display: flex; align-items: center;
    justify-content: center; background: var(--primary-light); color: var(--primary);
    border-radius: var(--radius); font-size: 1.3rem; transition: var(--transition);
}
.quick-access-item:hover .quick-access-icon { background: var(--primary); color: var(--white); }
.quick-access-label { font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 1.2; }

/* =====================================================
   CATEGORY PILLS
   ===================================================== */
.category-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.85rem; background: var(--gray-100); color: var(--gray-700);
    border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 500;
    transition: var(--transition); white-space: nowrap;
}
.category-pill:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.category-pill:active { transform: scale(0.95); }

/* =====================================================
   PROPERTY CARDS
   ===================================================== */
.property-card { border: none; overflow: hidden; transition: var(--transition); }
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img-wrapper { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .card-img-wrapper img { transform: scale(1.08); }
.property-badge {
    position: absolute; top: 10px; left: 10px; padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; color: var(--white);
}
.badge-rent { background: var(--primary); }
.badge-sale { background: var(--accent); }
.badge-short-let { background: var(--success); }
.badge-featured {
    position: absolute; top: 10px; right: 10px; padding: 0.2rem 0.5rem;
    background: var(--warning); color: var(--white); border-radius: var(--radius-full);
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
}
.property-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.property-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--gray-500); padding-top: 0.5rem; border-top: 1px solid var(--gray-200); }
.property-meta i { color: var(--primary); }

/* =====================================================
   BUSINESS CARDS
   ===================================================== */
.business-card { border: none; transition: var(--transition); }
.business-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.logo-wrapper {
    width: 52px; height: 52px; border-radius: var(--radius); overflow: hidden;
    flex-shrink: 0; background: var(--gray-100);
}
.logo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   HISTORY CARDS
   ===================================================== */
.history-card { border: none; overflow: hidden; transition: var(--transition); }
.history-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.history-card .card-img-top { aspect-ratio: 16/9; object-fit: cover; }
.history-card:hover .card-img-top { transform: scale(1.05); }
.history-type-badge {
    position: absolute; top: 10px; left: 10px; padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700;
    background: var(--secondary); color: var(--white);
}

/* =====================================================
   NEWS CARDS (Homepage)
   ===================================================== */
.news-card { border: none; overflow: hidden; transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .card-img-top { aspect-ratio: 16/9; object-fit: cover; }
.news-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.news-meta i { color: var(--primary); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-accent {
    background: var(--accent); color: var(--white); border: 2px solid var(--accent);
    border-radius: var(--radius-sm); font-weight: 600; padding: 0.6rem 1.5rem;
    transition: var(--transition);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn-accent:active { transform: scale(0.97); }
.btn-outline-primary { border-width: 2px; font-weight: 500; }
.btn-outline-primary:hover { transform: translateY(-1px); }
.btn-primary { font-weight: 600; transition: var(--transition); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary:active { transform: scale(0.97); }

/* View More / View All buttons - consistent styling */
.section-header .btn {
    min-height: 40px; display: inline-flex; align-items: center; gap: 0.35rem;
    white-space: nowrap; font-size: 0.85rem; font-weight: 600;
    border-radius: var(--radius-full); padding: 0.5rem 1rem;
    transition: var(--transition);
}
.section-header .btn:hover { transform: translateX(3px); }

/* =====================================================
   RATING
   ===================================================== */
.rating { display: flex; align-items: center; gap: 0.15rem; color: var(--warning); font-size: 0.85rem; }
.rating .bi-star { color: var(--gray-300); }
.rating .bi-star-fill { color: var(--warning); }
.rating-count { font-size: 0.75rem; color: var(--gray-500); margin-left: 0.35rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.main-footer { border-top: 3px solid var(--primary); }
.footer-title {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700;
    margin-bottom: 1rem; position: relative; padding-bottom: 0.75rem;
}
.footer-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 2px; background: var(--primary);
}
.footer-links a {
    color: rgba(255,255,255,0.7); font-size: 0.85rem; padding: 0.25rem 0;
    display: block; transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--primary); padding-left: 0.5rem; text-decoration: none; }
.footer-contact li { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* Footer Social Icons - Font Awesome 6 */
.footer-social-icons {
    display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.social-icon {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border-radius: 50%; color: var(--white);
    font-size: 1rem; transition: all 0.3s ease; text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.social-icon:hover {
    background: var(--primary); color: var(--white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 16px rgba(13,138,188,0.3);
}
.social-icon:active { transform: translateY(-1px) scale(1.05); }

/* Legacy social-links support */
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border-radius: 50%; color: var(--white);
    font-size: 1rem; transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.whatsapp-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1050;
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: #25D366; color: var(--white); border-radius: 50%;
    font-size: 1.75rem; box-shadow: var(--shadow-lg); transition: var(--transition);
}
.whatsapp-float:hover { color: var(--white); transform: scale(1.1); box-shadow: var(--shadow-xl); }
.whatsapp-float:active { transform: scale(0.95); }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed; bottom: 1.5rem; right: 5rem; z-index: 1050;
    width: 44px; height: 44px; display: none; align-items: center; justify-content: center;
    font-size: 1.25rem; box-shadow: var(--shadow); transition: var(--transition); opacity: 0;
}
.back-to-top.show { display: flex; opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* =====================================================
   MOBILE NAV LINKS
   ===================================================== */
.mobile-nav-link {
    display: flex; align-items: center; gap: 8px; padding: 0.85rem 1.25rem; color: var(--gray-700);
    font-size: 0.95rem; font-weight: 500; transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-link:hover, .mobile-nav-link:active { background: var(--primary-light); color: var(--primary); }
.mobile-nav-link i:first-child { width: 20px; text-align: center; flex-shrink: 0; }
.mobile-nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding-left: calc(1.25rem - 3px);
}

/* Mobile accordion styling */
.accordion-flush .accordion-button {
    display: inline-flex; align-items: center; gap: 8px; padding: 0.85rem 1.25rem; font-size: 0.95rem; font-weight: 500;
    color: var(--gray-700); background: transparent;
    border-bottom: 1px solid var(--gray-100);
}
.accordion-flush .accordion-button:not(.collapsed) {
    color: var(--primary); background: var(--primary-light);
    box-shadow: none;
}
.accordion-flush .accordion-button.active-accordion {
    color: var(--primary) !important;
    font-weight: 600;
    background: var(--primary-light);
    box-shadow: none;
}
.accordion-flush .accordion-button.active-accordion::after { filter: none; }
.accordion-flush .accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-flush .accordion-button::after { filter: grayscale(100%); }
.accordion-flush .accordion-button:not(.collapsed)::after { filter: none; }
.accordion-flush .accordion-item { border: none; }
.accordion-flush .accordion-body { padding: 0; }
.accordion-flush .accordion-body .mobile-nav-link { border-bottom: none; padding: 0.65rem 1.25rem; font-size: 0.9rem; }

/* =====================================================
   EMPTY STATE IMPROVEMENTS
   ===================================================== */
.empty-state {
    text-align: center; padding: 3rem 1.5rem; background: var(--white);
    border-radius: var(--radius-lg); border: 2px dashed var(--gray-300);
}
.empty-state i { font-size: 3.5rem; color: var(--gray-400); margin-bottom: 1rem; }
.empty-state h4 { font-family: var(--font-serif); color: var(--gray-700); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; }

/* Section empty state - lighter version */
.section-empty { text-align: center; padding: 2rem 1rem; }
.section-empty i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 0.75rem; }
.section-empty p { font-size: 0.9rem; color: var(--gray-500); }

/* =====================================================
   MOBILE FIRST RESPONSIVE (320px - 425px)
   ===================================================== */
@media (max-width: 375px) {
    .hero-title { font-size: 1.5rem; }
    .hero-section { padding: 2rem 0; }
    .section-title { font-size: 1.25rem; }
    .section-title::after { width: 30px; }
    .quick-access-grid { gap: 0.5rem; }
    .quick-access-item { padding: 0.85rem 0.35rem; min-height: 70px; }
    .quick-access-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .quick-access-label { font-size: 0.7rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-slide { min-height: 220px; max-height: 320px; padding: 2rem 0.75rem; }
    .hero-slide-title { font-size: 1.35rem; }
    .hero-slide-subtitle { font-size: 0.85rem; }
    .section { padding: 1.75rem 0; }
    .footer-title { font-size: 1rem; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 1rem; right: 1rem; }
    .back-to-top { right: 4.5rem; bottom: 1rem; width: 40px; height: 40px; }
    .hero-ad-img { max-height: 150px; max-width: 98%; }
    .hero-ad-placeholder { padding: 1rem 0.75rem; }
    .hero-ad-placeholder h2 { font-size: 1.05rem !important; }
    .hero-ad-placeholder p { font-size: 0.75rem !important; }
}

@media (min-width: 376px) and (max-width: 425px) {
    .hero-title { font-size: 1.75rem; }
    .hero-slide-title { font-size: 1.5rem; }
    .hero-slide { min-height: 250px; max-height: 340px; }
}

/* =====================================================
   TABLET RESPONSIVE (768px - 991px)
   ===================================================== */
@media (min-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-section { padding: 4rem 0; }
    .section-title { font-size: 1.75rem; }
    .section-title::after { width: 50px; }
    .quick-access-grid { grid-template-columns: repeat(3, 1fr); }
    .card-body { padding: 1.25rem; }
    .footer-title::after { width: 40px; }
    .hero-slide { min-height: 380px; max-height: 480px; padding: 4rem 1rem; }
    .hero-slide-title { font-size: 2.5rem; }
    .hero-slide-subtitle { font-size: 1.15rem; }
    .section { padding: 3.5rem 0; }
    .carousel-control-prev, .carousel-control-next { width: 56px; height: 56px; }
}

@media (min-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-section { padding: 5rem 0; }
    .quick-access-grid { grid-template-columns: repeat(6, 1fr); }
    .section-title { font-size: 2rem; }
    .header-search { min-width: 140px; }
    .hero-slide { min-height: 400px; max-height: 500px; }
    .hero-slide-title { font-size: 3rem; }
    .hero-slide-subtitle { font-size: 1.25rem; }
    .section { padding: 4rem 0; }
    .hero-ad-img { max-height: 240px; }
    .hero-ad-placeholder { max-width: 400px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
    .header-search { min-width: 160px; }
    .main-nav { font-size: 0.9rem; }
    .nav-link-custom { padding: 0.5rem 0.7rem; }
}

@media (min-width: 1400px) {
    .container { max-width: 1280px; }
    .header-search { min-width: 180px; }
}

/* =====================================================
   LISTING CARD COMPONENTS (card-item)
   ===================================================== */
.card-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.card-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-item-img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.card-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-item:hover .card-item-img img { transform: scale(1.05); }
.card-badge {
    position: absolute; top: 10px; left: 10px; padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; color: var(--white);
}
.badge-featured { background: var(--warning); }
.badge-new { background: var(--success); }
.badge-verified { background: var(--primary); }
.card-favorite {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
    background: rgba(255,255,255,0.9); border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: var(--transition); color: var(--gray-500);
}
.card-favorite:hover, .card-favorite.active { color: var(--danger); background: var(--white); }
.card-body-custom { padding: 1rem; }
.card-title-custom { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.card-title-custom a:hover { color: var(--primary); }
.card-location { font-size: 0.8rem; color: var(--gray-500); }
.card-location i { color: var(--primary); margin-right: 0.25rem; }
.card-price { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.property-features { display: flex; gap: 1rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--gray-600); }
.property-features span { display: flex; align-items: center; gap: 0.25rem; }
.property-features i { color: var(--primary); }
.business-rating { display: flex; align-items: center; gap: 0.25rem; color: var(--warning); font-size: 0.8rem; margin-top: 0.5rem; }
.business-rating span { color: var(--gray-500); margin-left: 0.25rem; }

/* =====================================================
   SIDEBAR WIDGETS
   ===================================================== */
.sidebar-widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem; margin-bottom: 1rem; }
.sidebar-title { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 0.25rem; }
.sidebar-links a { display: block; padding: 0.5rem 0.75rem; color: var(--gray-700); border-radius: var(--radius-sm); font-size: 0.9rem; transition: var(--transition-fast); }
.sidebar-links a:hover { background: var(--primary-light); color: var(--primary); padding-left: 1rem; }

/* Sidebar Popular Items */
.sidebar-popular-item { margin-bottom: 0.75rem; }
.sidebar-popular-item:last-child { margin-bottom: 0; }
.sidebar-popular-item a { display: flex; gap: 0.75rem; text-decoration: none; color: inherit; }
.sidebar-popular-thumb { width: 65px; height: 65px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.sidebar-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-popular-info { display: flex; flex-direction: column; justify-content: center; }
.sidebar-popular-title { font-size: 0.85rem; font-weight: 600; color: var(--gray-800); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-popular-item a:hover .sidebar-popular-title { color: var(--primary); }
.sidebar-popular-meta { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }

/* Sidebar CTA */
.sidebar-cta { border-radius: var(--radius); padding: 1.25rem; }
.sidebar-cta .sidebar-title { border-bottom-color: rgba(255, 255, 255, 0.3); }

/* =====================================================
   NEWS CARDS (Listing Page)
   ===================================================== */
.news-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow); }
.news-card-img { position: relative; overflow: hidden; }
.news-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 1.25rem; }
.news-card-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.news-card-title a { color: var(--gray-900); }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 0.75rem; }
.news-card-list { display: flex; gap: 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 1rem; transition: var(--transition); }
.news-card-list:hover { box-shadow: var(--shadow); }
.news-card-list-img { width: 120px; flex-shrink: 0; overflow: hidden; }
.news-card-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-list-body { padding: 0.75rem 0.75rem 0.75rem 0; flex-grow: 1; }
.news-card-list-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.news-card-list-title a { color: var(--gray-900); }
.news-card-list-title a:hover { color: var(--primary); }

/* Responsive news cards on mobile */
@media (max-width: 576px) {
    .news-card-list { flex-direction: row; gap: 0.75rem; }
    .news-card-list-img { width: 100px; flex-shrink: 0; }
    .news-card-list-title { font-size: 0.875rem; }
    .news-card-body { padding: 1rem; }
    .news-card-title { font-size: 1.05rem; }
}

/* =====================================================
   DASHBOARD NAV LINKS
   ===================================================== */
.dashboard-sidebar { background: #1a1f36; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem; position: sticky; top: 1rem; }
.dashboard-nav-link {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem;
    color: rgba(255,255,255,0.65); border-radius: var(--radius-sm); font-weight: 500;
    font-size: 0.9rem; transition: var(--transition-fast); margin-bottom: 0.25rem;
    text-decoration: none;
}
.dashboard-nav-link:hover, .dashboard-nav-link.active { background: var(--primary); color: #fff; }
.dashboard-nav-link i { width: 20px; text-align: center; }

.dashboard-sidebar hr { border-color: rgba(255,255,255,0.1); }

.sidebar-section-label {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,0.35); padding: 0.75rem 1rem 0.25rem;
}

/* Mobile dashboard sidebar toggle */
.dashboard-toggle {
    display: none; position: fixed; bottom: 1rem; right: 1rem; z-index: 1050;
    width: 50px; height: 50px; border-radius: 50%; background: var(--primary);
    color: var(--white); border: none; box-shadow: var(--shadow-lg); font-size: 1.25rem;
}
.dashboard-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1040; opacity: 0; transition: opacity 0.3s ease;
}
.dashboard-overlay.active { display: block; opacity: 1; }

@media (max-width: 991.98px) {
    .dashboard-sidebar {
        position: fixed; top: 0; left: -280px; width: 280px; height: 100vh;
        z-index: 1045; border-radius: 0; overflow-y: auto; transition: left 0.3s ease;
        padding-top: 1rem;
    }
    .dashboard-sidebar.open { left: 0; }
    .dashboard-toggle { display: flex; align-items: center; justify-content: center; }
    .dashboard-sidebar .close-sidebar {
        display: block; position: absolute; top: 0.5rem; right: 0.5rem;
        width: 36px; height: 36px; border-radius: 50%; background: var(--gray-200);
        border: none; font-size: 1.1rem; color: var(--gray-700);
    }
}
@media (min-width: 992px) {
    .dashboard-overlay { display: none !important; }
    .dashboard-toggle { display: none !important; }
    .dashboard-sidebar .close-sidebar { display: none; }
}

/* =====================================================
   TAG BADGES
   ===================================================== */
.tag-badge { display: inline-block; padding: 0.2rem 0.6rem; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 600; }
.card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--gray-500); margin-top: 0.5rem; flex-wrap: wrap; }
.card-meta i { margin-right: 0.25rem; }
.alert-sm { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
.section { padding: 2rem 0; }

@media print {
    .main-header, .main-footer, .back-to-top, .whatsapp-float, .advertisement, .mobile-nav { display: none !important; }
    body { background: white; color: black; }
    a { color: black; }
}

/* =====================================================
   AUTH FORMS (Login, Register, Forgot Password, Reset)
   ===================================================== */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%); padding: 1rem 0; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.auth-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 2rem 1.5rem; text-align: center; }
.auth-header h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.25rem; }
.auth-header p { opacity: 0.85; font-size: 0.9rem; margin: 0; }
.auth-body { padding: 1.5rem; }
@media (min-width: 768px) {
    .auth-wrapper { padding: 2rem 0; }
    .auth-header { padding: 2.5rem 2rem; }
    .auth-header h2 { font-size: 1.75rem; }
    .auth-body { padding: 2rem; }
}
.auth-form .form-label { font-weight: 500; font-size: 0.875rem; margin-bottom: 0.375rem; }
.auth-form .form-control, .auth-form .form-select {
    height: 48px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
    font-size: 1rem; padding: 0.625rem 0.875rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 138, 188, 0.15); }
.auth-form .input-group-text { height: 48px; border: 2px solid var(--gray-300); border-right: none; background: var(--gray-100); }
.auth-form .input-group .form-control { border-left: none; }
.auth-form .input-group:focus-within .input-group-text { border-color: var(--primary); background: var(--white); }
.auth-form textarea.form-control { height: auto; min-height: 100px; }
.auth-btn {
    height: 50px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-sm);
    letter-spacing: 0.3px; transition: all 0.2s;
}
.auth-btn:active { transform: scale(0.98); }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-300); }
.auth-divider span { color: var(--gray-500); font-size: 0.8rem; text-transform: uppercase; }
.auth-footer { text-align: center; padding: 1.25rem; border-top: 1px solid var(--gray-200); }
.auth-footer p { margin: 0; font-size: 0.9rem; }
.password-strength { height: 4px; border-radius: 2px; background: var(--gray-200); margin-top: 0.375rem; overflow: hidden; }
.password-strength-bar { height: 100%; border-radius: 2px; transition: width 0.3s, background-color 0.3s; }
.password-strength-bar.weak { width: 33%; background: var(--danger); }
.password-strength-bar.medium { width: 66%; background: var(--warning); }
.password-strength-bar.strong { width: 100%; background: var(--success); }
.toggle-password { height: 48px; border: 2px solid var(--gray-300); border-left: none; background: var(--gray-100); }
.auth-form:focus-within .toggle-password { border-color: var(--primary); background: var(--white); }
.auth-link { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-link:hover { color: var(--primary-dark); text-decoration: underline; }
.auth-icon-large { font-size: 3rem; margin-bottom: 0.75rem; }

/* Verification/Success pages */
.auth-success-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--success); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1rem; }
.auth-warning-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--warning); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1rem; }
.auth-error-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--danger); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1rem; }

/* Remember me checkbox larger */
.auth-form .form-check-input { width: 1.25em; height: 1.25em; margin-top: 0.125em; }
.auth-form .form-check-label { font-size: 0.9rem; cursor: pointer; padding-left: 0.25rem; }

/* Locked out notice */
.lockout-notice { background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.lockout-notice i { font-size: 2rem; color: var(--warning); }

/* =====================================================
   ADMIN DASHBOARD ENHANCEMENTS
   ===================================================== */
.stat-card-clickable { transition: transform 0.2s, box-shadow 0.2s; }
.stat-card-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow) !important; }

.quick-action-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 80px; border-radius: var(--radius); font-weight: 500;
    transition: all 0.2s;
}
.quick-action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-action-btn:active { transform: scale(0.97); }

.dashboard-toggle-btn { min-width: 80px; }

/* Admin user detail card */
.user-detail-avatar { width: 80px; height: 80px; object-fit: cover; }
@media (min-width: 768px) { .user-detail-avatar { width: 100px; height: 100px; } }

/* Password reset modal */
.password-reset-section { background: var(--gray-100); border-radius: var(--radius-sm); padding: 1rem; }

/* Admin mobile offcanvas */
#adminMenu .offcanvas-body .dashboard-sidebar {
    position: static; box-shadow: none; border-radius: 0;
    background: #1a1f36; min-height: 100%;
}
#adminMenu .offcanvas-body .dashboard-sidebar .dashboard-nav-link {
    color: rgba(255,255,255,0.65);
}
#adminMenu .offcanvas-body .dashboard-sidebar .dashboard-nav-link:hover,
#adminMenu .offcanvas-body .dashboard-sidebar .dashboard-nav-link.active {
    background: var(--primary); color: #fff;
}

/* Approval alert card */
.card[class*="border-left"] { border-left-width: 4px !important; border-left-style: solid !important; }

/* Mobile responsive admin tables */
@media (max-width: 576px) {
    .stat-card { padding: 0.75rem !important; }
    .stat-icon { width: 36px !important; height: 36px !important; font-size: 1rem !important; }
    .stat-value { font-size: 1.1rem !important; }
    .stat-label { font-size: 0.7rem !important; }
    .quick-action-btn { min-height: 70px; }
    .quick-action-btn i { font-size: 1.25rem !important; }

    /* Homepage mobile improvements */
    .section { padding: 1.5rem 0; }
    .section-title { font-size: 1.25rem; }
    .section-title::after { width: 30px; height: 2px; }
    .section-header { flex-direction: column; align-items: flex-start !important; gap: 0.75rem; }
    .section-header .btn { align-self: flex-start; }
    .hero-slide { min-height: 240px; max-height: 350px; padding: 2.5rem 1rem; }
    .hero-slide-title { font-size: 1.4rem; }
    .hero-slide-subtitle { font-size: 0.85rem; display: none; }
    .quick-access-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .quick-access-item { padding: 0.85rem 0.25rem; min-height: 72px; border-radius: var(--radius-sm); }
    .quick-access-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .quick-access-label { font-size: 0.7rem; }
    .category-pills { justify-content: flex-start !important; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .category-pills::-webkit-scrollbar { display: none; }
    .category-pill { flex-shrink: 0; }
    .card-body { padding: 0.85rem; }
    .property-price { font-size: 0.95rem; }
    .property-meta { font-size: 0.75rem; gap: 0.75rem; }
    .logo-wrapper { width: 44px; height: 44px; }
    .news-card-body { padding: 0.85rem; }
    .news-card-title { font-size: 1rem; }
    .news-card-list { flex-direction: column; }
    .news-card-list-img { width: 100%; aspect-ratio: 16/9; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 1rem; right: 1rem; }
    .back-to-top { bottom: 1rem; right: 4.25rem; width: 40px; height: 40px; font-size: 1rem; }
    .footer-title { font-size: 1rem; }
    .social-link { width: 34px; height: 34px; font-size: 0.9rem; }
    .social-icon { width: 38px; height: 38px; font-size: 0.9rem; }
    .footer-social-icons { gap: 0.5rem; }
    .carousel-control-prev, .carousel-control-next { width: 40px; height: 40px; }
    .carousel-indicators { bottom: 0.5rem; }
    .carousel-indicators [data-bs-slide-to] { width: 8px; height: 8px; }
}

/* Ensure touch targets are >=48px on mobile */
@media (max-width: 576px) {
    .btn, .form-control, .form-select, .page-link { min-height: 44px; }
    .btn-sm { min-height: 38px; }
    a, button { touch-action: manipulation; }
    .nav-link-custom { padding: 0.65rem 0.75rem; }
    .mobile-nav-link { padding: 1rem 1.25rem; min-height: 48px; display: flex; align-items: center; }

    /* Hero carousel ad mobile */
    .hero-ad-img { max-height: 180px; max-width: 95%; }
    .hero-ad-placeholder { padding: 1.25rem 1rem; border-radius: var(--radius); }
    .hero-ad-placeholder i { font-size: 2.5rem !important; }
    .hero-ad-placeholder h2 { font-size: 1.15rem !important; }
    .hero-ad-placeholder p { font-size: 0.8rem !important; }
    .hero-ad-content .badge { font-size: 0.7rem; padding: 0.25rem 0.6rem; }

    /* Desktop active underline thinner on smaller desktops */
    .nav-link-custom.active::after { height: 2px; width: 50%; }
}

/* Optimize images for responsive loading */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s ease; }
img[loading="lazy"].loaded, img[loading="lazy"]:not([src=""]) { opacity: 1; }

/* Ensure proper aspect ratios for all card images */
.card-img-top, .card-img-wrapper img { aspect-ratio: 16/10; object-fit: cover; }
.card .row .col-4 img { aspect-ratio: 4/3; }

/* Smooth scroll and performance */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Print styles */
@media print {
    .main-header, .main-footer, .back-to-top, .whatsapp-float, .advertisement, .mobile-nav,
    .ad-slot, .ad-container, .ad-placeholder-empty, .category-pills { display: none !important; }
    body { background: white; color: black; }
    a { color: black; }
    .section { padding: 1rem 0; page-break-inside: avoid; }
}

