/* ==============================================================================
   GORONTALO PROPERTY HUB - MODERN STYLESHEET
   Palet: Dominan Biru Elegan + Kombinasi Hitam, Kuning, Merah
   ============================================================================== */

:root {
    --primary: #0284c7;         /* Biru Elegan */
    --primary-dark: #0369a1;    /* Biru Tua */
    --primary-deep: #0c4a6e;    /* Biru Pekat */
    --primary-light: #e0f2fe;   /* Biru Muda */
    --accent-yellow: #f59e0b;   /* Kuning Emas */
    --accent-yellow-light: #fef3c7;
    --accent-red: #ef4444;      /* Merah Aksen */
    --accent-red-dark: #dc2626;
    --dark: #0f172a;            /* Hitam Elegan / Slate */
    --dark-light: #1e293b;
    --gray-bg: #f8fafc;
    --gray-border: #e2e8f0;
    --gray-text: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--dark);
    line-height: 1.5;
}

/* NAVBAR */
.navbar {
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    border-bottom: 3px solid var(--accent-yellow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.nav-brand .brand-logo {
    background: linear-gradient(135deg, var(--primary), var(--accent-yellow));
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.nav-brand .brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.nav-brand .brand-text span {
    font-size: 11px;
    color: var(--accent-yellow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-nav-primary {
    background: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-nav-primary:hover {
    background: var(--primary-dark) !important;
}

.btn-nav-yellow {
    background: var(--accent-yellow) !important;
    color: var(--dark) !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
}

.btn-nav-yellow:hover {
    background: #d97706 !important;
    color: var(--white) !important;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-deep) 60%, var(--primary) 100%);
    color: var(--white);
    padding: 45px 20px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 25px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* 3 CORE BUSINESS CARDS */
.core-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto 20px;
    text-align: left;
}

.core-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.core-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-yellow);
}

.core-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.core-pill-1 { background: #dcfce7; color: #15803d; }
.core-pill-2 { background: #dbeafe; color: #1e40af; }
.core-pill-3 { background: #ffedd5; color: #c2410c; }

.core-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.core-card p {
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0;
}

/* SEARCH & FILTER BAR */
.filter-container {
    background: var(--white);
    max-width: 1100px;
    margin: -25px auto 30px;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-border);
    position: relative;
    z-index: 10;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.2fr auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 900px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--dark-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus, .filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-filter-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    height: 40px;
    align-self: flex-end;
}

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

/* CATEGORY TABS */
.category-tabs-wrapper {
    max-width: 1100px;
    margin: 0 auto 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tab-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-border);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dark-light);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

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

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* PROPERTY GRID */
.listing-section {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

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

.section-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

/* PROPERTY CARD */
.prop-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.prop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.prop-img-box {
    position: relative;
    width: 100%;
    height: 190px;
    background: #e2e8f0;
    overflow: hidden;
}

.prop-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.prop-card:hover .prop-img-box img {
    transform: scale(1.04);
}

.badge-overlay-left {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-overlay-right {
    position: absolute;
    top: 10px;
    right: 10px;
}

.badge-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.badge-direct-owner {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.badge-developer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.badge-admin {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
}

.badge-category {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
}

.badge-transaksi {
    background: var(--accent-red);
}

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

.prop-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.prop-price-per-m {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-yellow);
    background: #fef3c7;
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
}

.prop-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prop-location {
    font-size: 12.5px;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.prop-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed var(--gray-border);
    border-bottom: 1px dashed var(--gray-border);
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--dark-light);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 8px;
}

.btn-detail {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-wa {
    flex: 1;
    padding: 8px 12px;
    background: #25d366;
    color: var(--white);
    font-weight: 700;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-wa:hover {
    background: #1da851;
}

/* ESTIMASI HARGA TANAH BOX */
.calc-box-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
}

.calc-box {
    background: linear-gradient(135deg, var(--white) 0%, #f0fdf4 100%);
    border: 1.5px solid #86efac;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    padding: 24px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
