/* ==============================================================================
   MITRA SENTRA PROPERTI - Website propertimalangbatu.com
   File: assets/css/style.css
   Deskripsi: Styling CSS Utama Portal Properti Malang & Batu (Ringan, Modern & Responsif)
   ============================================================================== */

:root {
    --primary-color: #0f766e;
    --primary-hover: #115e59;
    --primary-light: #ccfbf1;
    --primary-glow: rgba(15, 118, 110, 0.15);
    --secondary-color: #0f172a;
    --secondary-light: #1e293b;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --text-color: #334155;
    --text-light: #64748b;
    --text-dark: #0f172a;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 20px -3px rgba(0,0,0,0.12), 0 4px 6px -2px rgba(0,0,0,0.05);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Navbar Header ================= */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary-color), #14b8a6);
    color: white;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(15, 118, 110, 0.2);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.brand-sub {
    font-size: 0.76rem;
    color: var(--text-light);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 6px;
    line-height: 1.4;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.84rem;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 1rem;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    box-shadow: 0 4px 8px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    border-color: var(--border-light);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-whatsapp {
    background-color: #22c55e;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.25);
}

.btn-whatsapp:hover {
    background-color: #16a34a;
    color: white;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.35);
}

/* ================= Hero Section (Property Split Layout) ================= */
.hero-section {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
    color: white;
    padding: 70px 0 75px 0;
    position: relative;
    overflow: hidden;
}

.hero-container-split {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #5eead4;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-color), #0d9488);
    font-size: 1.02rem;
    padding: 13px 26px;
    border: none;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.4);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #0f766e);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.5);
    transform: translateY(-1px);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 13px 22px;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.hero-quick-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
}

.quick-stat-item {
    display: flex;
    flex-direction: column;
}

.quick-stat-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.quick-stat-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.quick-stat-divider {
    width: 1px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hero Visual Card */
.hero-visual-col {
    display: flex;
    justify-content: center;
}

.hero-featured-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.hero-featured-card:hover {
    transform: translateY(-4px);
}

.hero-card-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    background-color: #0f172a;
}

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

.hero-card-badge-row {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.hero-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.hero-card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.hero-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.hero-card-title a {
    color: var(--secondary-color);
}

.hero-card-title a:hover {
    color: var(--primary-color);
}

.hero-card-loc {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.hero-showcase-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.showcase-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.hero-showcase-placeholder h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.hero-showcase-placeholder p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ================= Sections Generic ================= */
.section {
    padding: 65px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 38px auto;
}

.section-badge {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.section-desc {
    color: var(--text-light);
    font-size: 0.96rem;
}

/* ================= Categories Grid ================= */
.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.cat-icon {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.category-card p {
    font-size: 0.86rem;
    color: var(--text-light);
    margin-bottom: 14px;
    flex-grow: 1;
}

.cat-link-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ================= Page Banner & Breadcrumbs ================= */
.page-banner {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
    color: white;
    padding: 42px 0;
    margin-bottom: 30px;
}

.page-banner-content {
    max-width: 800px;
}

.badge-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: #5eead4;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.page-banner h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.page-banner p {
    font-size: 0.96rem;
    color: #cbd5e1;
}

.breadcrumb-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 24px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 8px;
    font-size: 0.84rem;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--text-light);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ================= Catalog Filter Card (Property Search Style) ================= */
.catalog-filter-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 26px;
}

.filter-card-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-header-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.filter-header-hint {
    font-size: 0.82rem;
    color: var(--text-light);
}

.filter-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input-wrap {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
}

.form-control-public {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #f8fafc;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.search-main-input {
    padding-left: 42px;
    font-size: 0.95rem;
}

.form-control-public:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-search {
    padding: 10px 24px;
    flex-shrink: 0;
    font-weight: 700;
}

.filter-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

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

.filter-group label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.active-filter-bar {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-light);
}

.active-filter-label {
    font-weight: 700;
    color: var(--secondary-color);
}

.filter-pill {
    background-color: #e0f2fe;
    color: #075985;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.reset-filter-link {
    color: #ef4444;
    font-weight: 600;
    margin-left: auto;
    font-size: 0.82rem;
}

.reset-filter-link:hover {
    text-decoration: underline;
}

/* Catalog Result Header */
.catalog-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ================= Property Cards & Grid ================= */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.property-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #0f172a;
    overflow: hidden;
}

.card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.property-card:hover .card-thumb-img {
    transform: scale(1.04);
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.badge-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: white;
}

.badge-type-jual {
    background-color: var(--primary-color);
}

.badge-type-sewa {
    background-color: #0284c7;
}

.badge-cat {
    background-color: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-feat {
    background-color: #f59e0b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

.property-card .card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 1. Concise Primary Price on Cards */
.card-price-primary {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

/* 2. Title */
.card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-title a {
    color: var(--secondary-color);
}

.card-title a:hover {
    color: var(--primary-color);
}

/* 3. Location */
.card-location {
    font-size: 0.84rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

/* 4. Specs */
.card-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: var(--text-color);
    margin-top: auto;
}

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

.spec-label {
    color: var(--text-light);
}

.spec-val {
    font-weight: 600;
}

/* Secondary Meta: Property Code */
.card-meta-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.card-code-text {
    font-family: monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    background-color: #f8fafc;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
}

.property-card .card-footer {
    padding: 10px 20px 18px 20px;
    background-color: var(--bg-white);
    border-top: none;
}

/* ================= Pagination ================= */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.page-link:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-ellipsis {
    padding: 0 6px;
    color: var(--text-light);
}

/* ================= Empty / Not Found Box ================= */
.catalog-empty-box,
.not-found-box {
    background-color: var(--bg-white);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 50px 30px;
    text-align: center;
}

.empty-icon,
.not-found-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.catalog-empty-box h3,
.not-found-box h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.catalog-empty-box p,
.not-found-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ================= Property Detail Page ================= */
.detail-container {
    padding-bottom: 60px;
}

.sold-banner-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #f87171;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sold-banner-icon {
    font-size: 1.8rem;
}

.sold-banner-text {
    flex-grow: 1;
}

.sold-banner-text h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 2px;
}

.sold-banner-text p {
    font-size: 0.85rem;
    color: #7f1d1d;
}

.detail-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.detail-header-left {
    flex-grow: 1;
    max-width: 760px;
}

.detail-meta-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.prop-code-pill {
    background-color: #f1f5f9;
    color: #0f172a;
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.detail-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.detail-location-text {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-header-right {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    text-align: right;
    box-shadow: var(--shadow-sm);
    min-width: 230px;
}

.detail-price-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.detail-price-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.detail-price-compact {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Detail Layout Grid */
.detail-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 28px;
    align-items: start;
}

.detail-main-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Gallery Component */
.gallery-wrapper {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-main-view {
    position: relative;
    width: 100%;
    height: 440px;
    background-color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #0f172a;
    transition: opacity 0.2s ease;
}

.gallery-sold-watermark {
    position: absolute;
    background-color: rgba(220, 38, 38, 0.9);
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 6px;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.gallery-thumbs-track {
    display: flex;
    gap: 10px;
    padding: 14px;
    overflow-x: auto;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
}

.thumb-btn {
    width: 84px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background-color: #0f172a;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-btn:hover {
    border-color: #94a3b8;
}

.thumb-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.3);
}

/* Detail Card & Specs */
.detail-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.card-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.specs-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.spec-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.spec-tile-icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.spec-tile-info {
    display: flex;
    flex-direction: column;
}

.tile-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

.tile-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.description-content {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* ================= Video Properti Click-to-Load Embed ================= */
.video-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.video-embed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-poster-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
}

.video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.video-poster-wrapper:hover .video-poster-img {
    transform: scale(1.03);
    filter: brightness(0.85);
}

.video-play-btn {
    position: absolute;
    width: 68px;
    height: 68px;
    background: rgba(220, 38, 38, 0.9);
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.video-play-btn .play-icon {
    color: #ffffff;
    font-size: 1.6rem;
    margin-left: 4px;
    line-height: 1;
}

.video-poster-wrapper:hover .video-play-btn {
    transform: scale(1.1);
    background: #dc2626;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.video-poster-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background-color: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.video-iframe-element {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-noscript-box {
    padding: 30px;
    text-align: center;
    background-color: #0f172a;
    color: #cbd5e1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Sidebar Sticky Box */
.sidebar-sticky-box {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inquiry-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.inquiry-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.inquiry-header p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.inquiry-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inquiry-guarantee {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: #f8fafc;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #475569;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guarantee-item span:first-child {
    color: var(--primary-color);
    font-weight: 800;
}

.sold-sidebar-notice {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.agent-brand-card {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mini-logo {
    background: linear-gradient(135deg, var(--primary-color), #14b8a6);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.agent-brand-info {
    display: flex;
    flex-direction: column;
}

.agent-brand-info strong {
    font-size: 0.88rem;
    color: var(--secondary-color);
}

.agent-brand-info small {
    font-size: 0.72rem;
    color: var(--text-light);
}

.sidebar-help-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-help-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.sidebar-help-card p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.help-contact-item {
    font-size: 0.95rem;
    color: var(--primary-color);
}

/* ================= Footer ================= */
.site-footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 60px 0 24px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #334155;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-heading {
    color: white;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    font-size: 0.88rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

/* ================= Responsive Queries ================= */
@media (max-width: 992px) {
    .hero-container-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-text-col {
        align-items: center;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-quick-stats {
        justify-content: center;
    }

    /* Target Flow Mobile Detail Properti:
       1. Breadcrumb & Header Meta
       2. Galeri & Thumbnail
       3. WhatsApp Inquiry Box (Sticky di desktop, posisi strategis di mobile)
       4. Spesifikasi & Legalitas
       5. Deskripsi
       6. Video YouTube
       7. Bantuan / Kontak Agen
    */
    .detail-layout-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .detail-main-col {
        display: contents;
    }

    .detail-sidebar-col {
        display: contents;
    }

    .sidebar-sticky-box {
        display: contents;
    }

    .gallery-wrapper {
        order: 1;
        width: 100%;
    }

    .specs-card {
        order: 2;
        width: 100%;
    }

    .description-card {
        order: 3;
        width: 100%;
    }

    .video-card {
        order: 4;
        width: 100%;
    }

    .inquiry-card {
        order: 5;
        width: 100%;
    }

    .sidebar-help-card {
        order: 6;
        width: 100%;
    }

    .gallery-main-view {
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    /* 1. Mobile Header Ringkas & Compact */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .navbar-container {
        height: 58px;
        padding: 0 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .brand {
        gap: 8px;
    }

    .brand-badge {
        font-size: 0.95rem;
        padding: 5px 9px;
        border-radius: 4px;
    }

    .brand-title {
        font-size: 0.98rem;
        font-weight: 800;
        letter-spacing: -0.2px;
    }

    .brand-sub {
        font-size: 0.68rem;
        color: var(--text-light);
    }

    /* Tombol Hamburger Toggle */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 38px;
        height: 38px;
        background: #f8fafc;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        cursor: pointer;
        padding: 0;
        transition: all 0.2s ease;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle.active {
        background: #f1f5f9;
        border-color: var(--border-light);
    }

    .hamburger-bar {
        display: block;
        width: 18px;
        height: 2px;
        background-color: var(--secondary-color);
        border-radius: 2px;
        transition: all 0.25s ease;
        transform-origin: center;
    }

    .mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Navigasi Dropdown Menu Mobile */
    .site-nav {
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.25s ease;
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        gap: 0;
        z-index: 999;
    }

    .site-nav.nav-open {
        max-height: 460px;
        opacity: 1;
        visibility: visible;
        padding: 12px 16px 18px 16px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 2px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 9px 12px;
        font-size: 0.92rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
        color: var(--text-color);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: #f1f5f9;
        color: var(--primary-color);
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-actions {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-actions .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 9px 14px;
        font-size: 0.88rem;
    }

    /* 2. Homepage Hero Section Mobile Polish */
    .hero-section {
        padding: 24px 0 32px 0;
    }

    .hero-container-split {
        gap: 24px;
    }

    .hero-badge {
        font-size: 0.76rem;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.22;
        margin-bottom: 10px;
        letter-spacing: -0.3px;
    }

    .hero-subtitle {
        font-size: 0.90rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .hero-cta-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-bottom: 20px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 11px 18px;
        font-size: 0.92rem;
        justify-content: center;
        text-align: center;
    }

    .hero-quick-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-top: 16px;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
    }

    .quick-stat-divider {
        display: none;
    }

    .quick-stat-item {
        text-align: center;
    }

    .quick-stat-num {
        font-size: 0.92rem;
        font-weight: 800;
    }

    .quick-stat-desc {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    /* 3. Detail Properti Mobile Layout */
    .breadcrumb-bar {
        padding: 8px 0;
        font-size: 0.76rem;
    }

    .breadcrumb-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .breadcrumb-list::-webkit-scrollbar {
        display: none;
    }

    .detail-container {
        padding-top: 12px;
        padding-bottom: 36px;
    }

    .detail-header-block {
        flex-direction: column;
        margin-bottom: 14px;
        gap: 10px;
    }

    .detail-meta-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        align-items: center;
    }

    .detail-title {
        font-size: 1.38rem;
        line-height: 1.28;
        margin: 6px 0;
        word-break: break-word;
    }

    .detail-location-text {
        font-size: 0.85rem;
        gap: 5px;
    }

    .detail-header-right {
        width: 100%;
        text-align: left;
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 12px 14px;
        box-shadow: var(--shadow-sm);
    }

    .detail-price-label {
        font-size: 0.68rem;
    }

    .detail-price-value {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .detail-price-compact {
        font-size: 0.80rem;
    }

    /* Galeri Foto Responsif */
    .gallery-wrapper {
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .gallery-main-view {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: 220px;
        max-height: 380px;
        background-color: #0f172a;
    }

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

    .gallery-thumbs-track {
        display: flex;
        gap: 8px;
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .thumb-btn {
        flex: 0 0 68px;
        height: 50px;
        border-radius: 4px;
        scroll-snap-align: start;
    }

    /* Inquiry Card WhatsApp CTA */
    .inquiry-card {
        padding: 16px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .inquiry-header h3 {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }

    .inquiry-header p {
        font-size: 0.80rem;
        margin-bottom: 12px;
    }

    .inquiry-actions .btn-whatsapp {
        font-size: 0.95rem;
        padding: 12px 16px;
        font-weight: 700;
    }

    .inquiry-guarantee {
        padding: 10px;
        font-size: 0.78rem;
    }

    /* 4. Spesifikasi & Legalitas Grid */
    .detail-card {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .card-section-title {
        font-size: 1.02rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .specs-grid-full {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .spec-tile {
        padding: 10px 10px;
        gap: 8px;
        min-width: 0;
    }

    .spec-tile-icon {
        font-size: 1.15rem;
        width: 32px;
        height: 32px;
    }

    .tile-label {
        font-size: 0.65rem;
        line-height: 1.15;
    }

    .tile-value {
        font-size: 0.82rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .description-content {
        font-size: 0.90rem;
        line-height: 1.65;
    }

    .video-card {
        padding: 16px;
    }

    /* 5. Katalog & Filter Mobile */
    .filter-search-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-dropdown-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .filter-actions-row {
        display: flex;
        gap: 8px;
    }

    .btn-filter-submit,
    .btn-filter-reset {
        flex: 1;
        justify-content: center;
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .property-card .card-img-wrap {
        aspect-ratio: 16 / 10;
        height: auto;
        min-height: 190px;
    }

    .property-card .card-body {
        padding: 14px;
    }

    .property-card .card-title {
        font-size: 1.05rem;
    }

    .property-card .card-price {
        font-size: 1.25rem;
    }

    .property-card .card-actions-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 36px 0 20px 0;
        margin-top: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.62rem;
    }

    .specs-grid-full {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .spec-tile {
        padding: 8px;
        gap: 6px;
    }

    .spec-tile-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .tile-label {
        font-size: 0.62rem;
    }

    .tile-value {
        font-size: 0.78rem;
    }

    .filter-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
/* ==========================================================================
   Property Detail - Share Buttons
   ========================================================================== */
.property-share-box {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.share-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
}
.btn-share svg {
    flex-shrink: 0;
}
.btn-share-wa {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
    background-color: rgba(37, 211, 102, 0.05);
}
.btn-share-wa:hover {
    background-color: #25D366;
    color: #fff;
}
.btn-share-fb {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.3);
    background-color: rgba(24, 119, 242, 0.05);
}
.btn-share-fb:hover {
    background-color: #1877F2;
    color: #fff;
}
.btn-share-x {
    color: #0f1419;
    border-color: rgba(15, 20, 25, 0.3);
    background-color: rgba(15, 20, 25, 0.05);
}
.btn-share-x:hover {
    background-color: #0f1419;
    color: #fff;
}
.btn-share-copy {
    color: var(--text-color);
    border-color: var(--border-color);
    background-color: #fff;
}
.btn-share-copy:hover {
    background-color: var(--border-color);
}

@media (max-width: 991px) {
    .detail-layout-grid .share-card {
        order: 8;
        width: 100%;
    }
}
