/* ============================================
   OFFICE 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: 4px;
}

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

/* ============================================
   HERO SECTION
============================================ */
.office-hero {
    position: relative;
    background: var(--hc-navy);
    padding: 0;
    overflow: hidden;
}

.office-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(0,51,102,0.9) 0%, rgba(0,31,73,0.95) 50%, rgba(0,20,50,1) 100%);
    pointer-events: none;
}

.office-hero .hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,174,239,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.office-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 50px;
    padding-bottom: 50px;
}

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

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

    .office-hero .container {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

/* Office Logo */
.office-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.office-logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,174,239,0.4), rgba(255,255,255,0.1));
    z-index: -1;
}

.office-logo {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: #fff;
}

@media (min-width: 768px) {
    .office-logo {
        width: 130px;
        height: 130px;
        border-radius: 14px;
    }
}

/* Office Info */
.office-info {
    flex: 1;
    color: #fff;
    min-width: 0;
}

.office-header {
    margin-bottom: 14px;
}

.office-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

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

/* Meta Info */
.office-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .office-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 18px;
    }
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
}

.meta-item i {
    color: var(--hc-sky);
    font-size: 13px;
    flex-shrink: 0;
}

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

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

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-email {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

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

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

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

.btn-listing {
    background: #fff;
    color: var(--hc-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-listing:hover {
    background: var(--hc-sky);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 174, 239, 0.3);
}

/* Service Area Tags */
.service-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

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

.area-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 174, 239, 0.12);
    border: 1px solid rgba(0, 174, 239, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.area-tag.area-more {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255,255,255,0.6);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 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: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 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;
}

/* Office Hero Achievements */
.office-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) {
    .office-achievements-section {
        min-width: 260px;
        max-width: 300px;
        flex-shrink: 0;
    }
}

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

.lifetime-emblem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lifetime-emblem .emblem-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.lifetime-emblem .emblem-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lifetime-emblem.gold .emblem-icon {
    background: linear-gradient(145deg, #ffd700 0%, #e6ac00 100%);
    color: #6b4f00;
}

.lifetime-emblem.platinum .emblem-icon {
    background: linear-gradient(145deg, #e2e8f0 0%, #94a3b8 100%);
    color: #334155;
}

.lifetime-emblem.ruby .emblem-icon {
    background: linear-gradient(145deg, #ff4d6d 0%, #c9184a 100%);
    color: #fff;
}

.lifetime-emblem.emerald .emblem-icon {
    background: linear-gradient(145deg, #34d399 0%, #059669 100%);
    color: #fff;
}

.lifetime-emblem.diamond .emblem-icon {
    background: linear-gradient(145deg, #dbeafe 0%, #60a5fa 100%);
    color: #0f172a;
}

.stat-members .stat-icon { background: var(--hc-navy); }
.stat-active .stat-icon { background: var(--hc-sky); }
.stat-sold .stat-icon { background: #10b981; }
.stat-year .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) {
    .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 380px;
    }
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: 4px;
    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;
}

/* Achievement - Etalase Piala (Trophy Showcase) */
.achievement-showcase-card .card-body {
    padding: 28px;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 1px solid var(--border);
    position: relative;
}

.achievement-showcase-card .card-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 50%);
    pointer-events: none;
}

.achievement-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .achievement-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .achievement-showcase {
        grid-template-columns: 1fr;
    }
}

.achievement-trophy {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 31, 73, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 31, 73, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: all 0.25s ease;
    position: relative;
}

.achievement-trophy:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 31, 73, 0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}

.achievement-trophy .trophy-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 14px;
}

.achievement-trophy.gold .trophy-icon {
    color: #b8860b;
    filter: drop-shadow(0 2px 6px rgba(184, 134, 11, 0.5));
}

.achievement-trophy.silver .trophy-icon {
    color: #94a3b8;
    filter: drop-shadow(0 2px 6px rgba(148, 163, 184, 0.5));
}

.achievement-trophy.bronze .trophy-icon {
    color: #b45309;
    filter: drop-shadow(0 2px 6px rgba(180, 83, 9, 0.5));
}

.achievement-trophy .trophy-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
    width: 100%;
    max-width: 100%;
}

.achievement-trophy .trophy-detail {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
}

.latest-achievement {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    min-height: 76px;
}

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

.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;
    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-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.latest-achievement-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.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-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 #ffd700;
    transition: all 0.2s ease;
}

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

.achievement-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffd700 0%, #e6ac00 100%);
    color: #6b4f00;
    flex-shrink: 0;
}

.achievement-card-title {
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
}

/* 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 */
.area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 4px;
    color: #0369a1;
    font-size: 14px;
    font-weight: 600;
}

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

/* Type Grid */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 2fr);
    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);
}

/* ============================================
   TEAM SECTION
============================================ */
.team-total-badge {
    background: var(--hc-navy);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.team-body {
    padding: 16px 24px !important;
}

.team-group {
    margin-bottom: 12px;
}

.team-group:last-child {
    margin-bottom: 0;
}

.team-role-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-role-btn:hover {
    background: #f1f5f9;
    border-color: var(--hc-sky);
}

.team-role-btn[aria-expanded="true"] {
    border-color: var(--hc-sky);
    background: #f0f9ff;
}

.team-role-btn i {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.team-role-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.role-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.role-count {
    background: var(--hc-sky);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.team-panel {
    max-height: 500px;
    overflow-y: auto;
}

.team-panel::-webkit-scrollbar {
    width: 6px;
}

.team-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 0;
}

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

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

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.team-card:hover {
    border-color: var(--hc-sky);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hc-navy);
    margin-bottom: 10px;
}

.team-card-info {
    text-align: center;
}

.member-name {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.3;
}

.member-role {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   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: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-status.status-disewa {
    background: var(--hc-navy);
}

.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;
    display: block;
}

.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)
============================================ */
#officeAllListings {
    width: 100% !important;
    max-width: 100% !important;
}

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

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

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

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

/* Filter Panel */
.filter-panel {
    background: #fff;
    border-radius: 4px;
    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);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 56px;
    opacity: 0.3;
    display: block;
    margin-bottom: 16px;
}

.empty-state h6 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 0;
}

/* 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: 4px;
    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: 4px;
    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: 4px;
    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) {
    .office-hero .container {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .office-hero .hero-content {
        gap: 20px;
    }

    .office-logo {
        width: 90px;
        height: 90px;
        border-radius: 12px;
        border-width: 2px;
    }

    .office-logo-wrapper::after {
        inset: -4px;
        border-radius: 14px;
    }

    .office-name {
        font-size: 1.35rem;
    }

    .office-meta {
        gap: 6px;
        margin-bottom: 16px;
    }

    .meta-item {
        font-size: 12px;
    }

    .contact-actions {
        gap: 8px;
        margin-bottom: 16px;
    }

    .btn-contact {
        padding: 9px 14px;
        font-size: 12px;
        border-radius: 8px;
        gap: 5px;
    }

    .service-areas {
        gap: 5px;
    }

    .area-tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    .content-card .card-header,
    .content-card .card-body {
        padding: 16px 18px;
    }

    .main-content {
        padding-bottom: 160px;
    }

    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card img {
        width: 60px;
        height: 60px;
    }

    .member-name {
        font-size: 12px;
    }
}
