/* ============================================
   AGENT PROFILE PAGE CSS - Redesigned
   Modern, clean, user-friendly design
============================================ */

:root {
    --hc-navy: #001f49;
    --hc-sky: #00aeef;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --radius: 6px;
}

.agent-profile-page {
    background: var(--bg);
    min-height: 100vh;
}

/* ============================================
   HERO SECTION
============================================ */
.agent-hero {
    position: relative;
    background: linear-gradient(135deg, var(--hc-navy) 0%, #003366 100%);
    padding: 60px 0 80px;
    overflow: hidden;
}

.agent-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 80%,
            rgba(0, 174, 239, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(0, 174, 239, 0.1) 0%,
            transparent 40%
        );
    pointer-events: none;
}

.agent-hero .hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .agent-hero .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 30px;
        align-items: flex-start;
    }
}

@media (min-width: 992px) {
    .agent-hero .hero-content {
        gap: 40px;
    }
}

/* Agent Photo */
.agent-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.agent-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .agent-photo {
        width: 160px;
        height: 160px;
    }
}

.status-badge {
    position: absolute;
    bottom: 8px;
    right: -8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.status-badge .pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Agent Info */
.agent-info {
    flex: 1;
    color: #fff;
}

.agent-header {
    margin-bottom: 12px;
}

.agent-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: #fff;
}

@media (min-width: 768px) {
    .agent-name {
        font-size: 2.5rem;
    }
}

.agent-title {
    display: inline-block;
    background: linear-gradient(135deg, var(--hc-sky) 0%, #0099d3 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

/* Achievement Badges */
.agent-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 768px) {
    .agent-achievements {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .agent-achievements {
        justify-content: flex-end;
    }
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.achievement-badge.gold {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.2) 0%,
        rgba(255, 193, 7, 0.15) 100%
    );
    border-color: rgba(0, 174, 239, 0.4);
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.2);
}

.achievement-badge.gold .achievement-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #7c5800;
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.4);
}

.achievement-badge.silver {
    background: linear-gradient(
        135deg,
        rgba(192, 192, 192, 0.2) 0%,
        rgba(169, 169, 169, 0.15) 100%
    );
    border-color: rgba(192, 192, 192, 0.4);
}

.achievement-badge.silver .achievement-icon {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    color: #4a4a4a;
}

.achievement-badge.bronze {
    background: linear-gradient(
        135deg,
        rgba(205, 127, 50, 0.2) 0%,
        rgba(184, 115, 51, 0.15) 100%
    );
    border-color: rgba(205, 127, 50, 0.4);
}

.achievement-badge.bronze .achievement-icon {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #5c3a1d;
}

.achievement-badge.sky {
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.2) 0%,
        rgba(0, 174, 239, 0.1) 100%
    );
    border-color: rgba(0, 174, 239, 0.4);
}

.achievement-badge.sky .achievement-icon {
    background: linear-gradient(135deg, #00aeef 0%, #0099d3 100%);
    color: #fff;
}

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

.achievement-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.achievement-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.achievement-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@media (max-width: 480px) {
    .achievement-badge {
        padding: 8px 12px;
    }

    .achievement-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .achievement-title {
        font-size: 12px;
    }

    .achievement-subtitle {
        font-size: 10px;
    }
}

/* Latest Achievement Display */
.latest-achievement {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 215, 0, 0.05) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.latest-achievement::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ffd700, #ffb300);
}

.latest-achievement.gold::before {
    background: linear-gradient(180deg, #ffd700, #ffb300);
}
.latest-achievement.sky::before {
    background: linear-gradient(180deg, #00aeef, #0088cc);
}
.latest-achievement.silver::before {
    background: linear-gradient(180deg, #c0c0c0, #a0a0a0);
}

.latest-achievement.gold {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.12) 0%,
        transparent 100%
    );
}
.latest-achievement.sky {
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.12) 0%,
        transparent 100%
    );
}
.latest-achievement.silver {
    background: linear-gradient(
        135deg,
        rgba(192, 192, 192, 0.12) 0%,
        transparent 100%
    );
}

.latest-achievement-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    flex-shrink: 0;
    position: relative;
}

.latest-achievement.gold .latest-achievement-icon {
    background: linear-gradient(145deg, #ffd700 0%, #e6ac00 100%);
    color: #6b4f00;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.latest-achievement.sky .latest-achievement-icon {
    background: linear-gradient(145deg, #00aeef 0%, #0088cc 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.latest-achievement.silver .latest-achievement-icon {
    background: linear-gradient(145deg, #d0d0d0 0%, #a8a8a8 100%);
    color: #4a4a4a;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.latest-achievement-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.latest-achievement-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.latest-achievement-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* View All Achievements Link */
.view-all-achievements {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 174, 239, 0.08);
    color: var(--hc-sky);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.view-all-achievements:hover {
    background: rgba(0, 174, 239, 0.18);
    color: #fff;
}

.view-all-achievements:hover .bi-chevron-right {
    transform: translateX(4px);
}

.view-all-achievements .bi-trophy {
    font-size: 13px;
}

.view-all-achievements .bi-chevron-right {
    font-size: 10px;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

/* Achievements Modal */
.achievements-modal-content {
    background: linear-gradient(135deg, var(--hc-navy) 0%, #003366 100%);
    border: none;
    border-radius: 4px;
}

.achievements-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
}

.achievements-modal-header .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievements-modal-header .modal-title i {
    color: var(--hc-sky);
}

.achievements-modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.achievement-card.gold {
    border-left-color: #ffd700;
}
.achievement-card.sky {
    border-left-color: #00aeef;
}
.achievement-card.silver {
    border-left-color: #c0c0c0;
}
.achievement-card.emerald {
    border-left-color: #34d399;
}
.achievement-card.ruby {
    border-left-color: #ff4d6d;
}

.achievement-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.achievement-card.gold .achievement-card-icon {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.achievement-card.sky .achievement-card-icon {
    background: rgba(0, 174, 239, 0.2);
    color: #00aeef;
}

.achievement-card.silver .achievement-card-icon {
    background: rgba(192, 192, 192, 0.2);
    color: #c0c0c0;
}

.achievement-card.emerald .achievement-card-icon {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.achievement-card.ruby .achievement-card-icon {
    background: rgba(255, 77, 109, 0.2);
    color: #ff4d6d;
}

.achievement-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.achievement-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.achievement-card-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Achievement Section - Separate Column */
.agent-achievements-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .agent-achievements-section {
        min-width: 260px;
        max-width: 300px;
        flex-shrink: 0;
    }
}

@media (min-width: 992px) {
    .agent-achievements-section {
        min-width: 280px;
        max-width: 320px;
    }
}

/* Badges Container */
.agent-badges-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

@media (min-width: 992px) {
    .agent-badges-container {
        align-items: flex-end;
    }
}

/* Lifetime Achievement Emblem */
.lifetime-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.lifetime-emblem.diamond {
    background: linear-gradient(
        135deg,
        rgba(185, 242, 255, 0.25) 0%,
        rgba(0, 191, 255, 0.15) 100%
    );
    border: 1px solid rgba(185, 242, 255, 0.5);
    color: #b9f2ff;
}

.lifetime-emblem.diamond .emblem-icon {
    color: #b9f2ff;
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(185, 242, 255, 0.6));
    animation: diamond-sparkle 2s ease-in-out infinite;
}

@keyframes diamond-sparkle {
    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(185, 242, 255, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(185, 242, 255, 0.9));
        transform: scale(1.1);
    }
}

.lifetime-emblem.platinum {
    background: linear-gradient(
        135deg,
        rgba(229, 228, 226, 0.25) 0%,
        rgba(192, 192, 192, 0.15) 100%
    );
    border: 1px solid rgba(229, 228, 226, 0.5);
    color: #e5e4e2;
}

.lifetime-emblem.platinum .emblem-icon {
    color: #e5e4e2;
    font-size: 14px;
}

.lifetime-emblem.gold {
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.25) 0%,
        rgba(255, 193, 7, 0.15) 100%
    );
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.lifetime-emblem.gold .emblem-icon {
    color: #ffd700;
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
    animation: gold-glow 2s ease-in-out infinite;
}

@keyframes gold-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
        transform: scale(1.1);
    }
}

.lifetime-emblem.ruby {
    background: linear-gradient(
        135deg,
        rgba(224, 17, 95, 0.25) 0%,
        rgba(255, 0, 64, 0.15) 100%
    );
    border: 1px solid rgba(224, 17, 95, 0.5);
    color: #ff4d6d;
}

.lifetime-emblem.ruby .emblem-icon {
    color: #ff4d6d;
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(255, 77, 109, 0.6));
    animation: ruby-glow 2s ease-in-out infinite;
}

@keyframes ruby-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 77, 109, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 77, 109, 0.9));
        transform: scale(1.1);
    }
}

.lifetime-emblem.emerald {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.25) 0%,
        rgba(5, 150, 105, 0.15) 100%
    );
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
}

.lifetime-emblem.emerald .emblem-icon {
    color: #34d399;
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.6));
    animation: emerald-glow 2s ease-in-out infinite;
}

@keyframes emerald-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.9));
        transform: scale(1.1);
    }
}

.emblem-label {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .lifetime-emblem {
        padding: 5px 12px;
        font-size: 10px;
    }

    .lifetime-emblem .emblem-icon {
        font-size: 12px;
    }
}

.office-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 8px 14px 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.office-link:hover {
    background: rgba(0, 174, 239, 0.15);
    border-color: rgba(0, 174, 239, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.office-link i {
    font-size: 16px;
    color: var(--hc-sky);
}

.office-link::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
    transition: transform 0.2s ease;
}

.office-link:hover::after {
    transform: translateX(3px);
    color: var(--hc-sky);
}

/* Meta Info */
.agent-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    justify-content: center;
}

@media (min-width: 768px) {
    .agent-meta-info {
        justify-content: flex-start;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.meta-item i {
    color: var(--hc-sky);
}

/* License Verified Badge */
.meta-item .verified-badge {
    color: var(--hc-sky);
    font-size: 14px;
}

/* Contact Actions */
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .contact-actions {
        justify-content: flex-start;
    }
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-email {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-email:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-listing {
    background: #fff;
    color: var(--hc-navy);
}

.btn-listing:hover {
    background: var(--hc-sky);
    color: #fff;
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-links {
        justify-content: flex-start;
    }
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--hc-sky);
    border-color: var(--hc-sky);
    transform: translateY(-2px);
}

.social-links a i {
    font-size: 16px;
}

/* ============================================
   STATS SECTION - Redesigned
============================================ */
.stats-section {
    margin-top: -30px;
    padding-bottom: 30px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.stat-card {
    background: #fff;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
    transition: all 0.25s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--hc-sky);
    transition: width 0.3s ease;
}

.stat-card:hover {
    background: #fafcff;
}

.stat-card:hover::before {
    width: 100%;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 16px;
    color: #fff;
}

.stat-sold .stat-icon {
    background: #10b981;
}
.stat-rented .stat-icon {
    background: #8b5cf6;
}
.stat-total .stat-icon {
    background: var(--hc-navy);
}
.stat-sale .stat-icon {
    background: var(--hc-sky);
}
.stat-rent .stat-icon {
    background: #f59e0b;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 575.98px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Make 5th item span full width on mobile */
    .stats-grid .stat-card:nth-child(5) {
        grid-column: span 2;
    }
    
    .stat-card {
        padding: 18px 12px;
        gap: 8px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .stat-icon i {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
    padding: 20px 0 100px;
}

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

@media (min-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr 400px;
    }
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.content-card + .content-card {
    margin-top: 24px;
}

.content-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.content-card .card-header i {
    font-size: 20px;
    color: var(--hc-sky);
}

.content-card .card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.content-card .card-body {
    padding: 20px 24px;
}

/* Bio Card */
.bio-content {
    color: var(--text-muted);
    line-height: 1.7;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bio-content.expanded {
    max-height: none;
}

.bio-content p {
    margin-bottom: 12px;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.btn-toggle-bio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    color: var(--hc-sky);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-toggle-bio:hover {
    color: var(--hc-navy);
}

/* Area Chips - Corporate Style */
.area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.area-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    background: #fff;
    border: none;
    border-radius: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(0, 31, 73, 0.08);
    transition: all 0.25s ease;
    overflow: hidden;
}

.area-chip::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--hc-sky);
    transition: width 0.25s ease;
}

.area-chip:hover {
    background: #f0f9ff;
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.15);
    transform: translateY(-2px);
}

.area-chip:hover::before {
    width: 6px;
}

@media (max-width: 576px) {
    .area-chip {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Type Grid */
.type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.type-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s ease;
}

.type-item:hover {
    border-color: var(--hc-sky);
    transform: translateY(-2px);
}

.type-item.top-type {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
}

.type-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.type-icon i {
    font-size: 22px;
    color: var(--hc-navy);
}

.type-item.top-type .type-icon {
    background: var(--hc-navy);
}

.type-item.top-type .type-icon i {
    color: #fff;
}

.type-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.type-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.type-count {
    font-size: 12px;
    color: var(--text-muted);
}

.top-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--hc-sky);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 174, 239, 0.4);
}

/* ============================================
   LISTINGS SIDEBAR
============================================ */
.listings-card .card-header {
    flex-wrap: wrap;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--hc-navy);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: var(--hc-sky);
    transform: translateX(4px);
}

.listings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listing-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.listing-item:hover {
    background: #f0f9ff;
    transform: translateX(4px);
}

.listing-image {
    position: relative;
    flex-shrink: 0;
}

.listing-image img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.listing-status {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    background: var(--hc-sky);
    color: #fff;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-status.status-disewa {
    background: #8b5cf6;
}

.listing-status.status-terjual,
.listing-status.status-tersewa {
    background: #10b981;
}

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

.listing-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-price {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 800;
    color: var(--hc-sky);
}

.listing-location {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-location i {
    font-size: 11px;
}

.empty-listings {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-listings i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.empty-listings p {
    margin: 0;
    font-size: 14px;
}

/* ============================================
   MOBILE CTA
============================================ */
.mobile-cta {
    position: fixed;
    bottom: 82px;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

@media (min-width: 992px) {
    .mobile-cta {
        display: none;
    }
}

.cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-call {
    background: #f1f5f9;
    color: var(--text);
}

.cta-call:hover {
    background: #e2e8f0;
    color: var(--text);
}

.cta-wa {
    background: #25d366;
    color: #fff;
}

.cta-wa:hover {
    background: #1fb855;
    color: #fff;
}

/* ============================================
   OFFCANVAS (ALL LISTINGS)
============================================ */
#agentAllListings {
    width: 100% !important;
    max-width: 100% !important;
}

@media (min-width: 768px) {
    #agentAllListings {
        width: 90vw !important;
        max-width: 1400px !important;
    }
}

#agentAllListings .offcanvas-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

#agentAllListings .offcanvas-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

#agentAllListings .offcanvas-body {
    padding: 20px;
    background: var(--bg);
}

/* Filter Panel */
.filter-panel {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .filter-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.filter-item label i {
    color: var(--hc-sky);
}

.filter-panel .form-control,
.filter-panel .form-select {
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-panel .form-control:focus,
.filter-panel .form-select:focus {
    border-color: var(--hc-sky);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-filter-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--hc-navy);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter-apply:hover {
    background: var(--hc-sky);
}

.btn-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f1f5f9;
    color: var(--text-muted);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter-reset:hover {
    background: #e2e8f0;
    color: var(--text);
}

/* Listings Info */
.listings-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Property Card - Matching Homepage Style */
.property-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 31, 73, 0.15);
}

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

.property-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.property-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 100%
    );
    pointer-events: none;
}

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

.property-status {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--hc-sky) 0%, #0099cc 100%);
    color: white;
}

.property-type {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-block;
    background: linear-gradient(
        135deg,
        rgba(0, 31, 73, 0.95) 0%,
        rgba(0, 61, 122, 0.95) 100%
    );
    color: #fff;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.property-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.property-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hc-navy);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-price {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hc-sky);
    letter-spacing: -0.02em;
}

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

.property-location i {
    color: var(--hc-sky);
    font-size: 12px;
}

.property-specs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.property-specs::-webkit-scrollbar {
    display: none;
}

.property-specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.property-specs i {
    color: var(--hc-sky);
    font-size: 10px;
}

/* Mobile Property Card */
@media (max-width: 768px) {
    .property-image {
        height: 180px;
    }
    
    .property-status {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .property-type {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .property-content {
        padding: 12px;
    }
    
    .property-title {
        font-size: 0.9rem;
    }
    
    .property-price {
        font-size: 1rem;
    }
    
    .property-location {
        font-size: 12px;
    }
    
    .property-specs span {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Pagination */
.pagination-wrapper {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 6px;
}

.pagination .page-link {
    border-radius: 4px !important;
    border: 1px solid var(--border);
    padding: 10px 16px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: var(--hc-sky);
    border-color: var(--hc-sky);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: var(--hc-navy);
    border-color: var(--hc-navy);
    color: #fff;
}

/* Content Sidebar Sticky */
@media (min-width: 992px) {
    .content-sidebar {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .agent-hero {
        padding: 40px 0 60px;
    }
    
    .content-card .card-header,
    .content-card .card-body {
        padding: 16px 18px;
    }
    
    .main-content {
        padding-bottom: 160px;
    }
}
