/* Detail Property Page Styles */

.detail-container {
    padding: 120px 0 60px;
    background: var(--bg-light);
    min-height: 100vh;
}

.detail-container .container {
    max-width: 1400px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

.detail-main {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.property-gallery {
    margin-bottom: 30px;
}

.main-image {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    background: #f0f0f0;
    display: block;
    transition: opacity 0.3s;
}

.gallery-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.gallery-controls button {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.gallery-controls button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 20px;
    background: var(--white);
}

.property-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}

.property-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.video-section {
    padding: 20px;
    background: var(--bg-light);
}

.video-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.video-section iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.property-info {
    padding: 40px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.property-header h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.property-header .location {
    color: var(--text-light);
    font-size: 16px;
}

.property-badges {
    display: flex;
    gap: 10px;
}

.badge-type, .badge-status, .badge-property-type {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-property-type {
    background: #455a64;
    color: var(--white);
}

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

.badge-status {
    background: var(--secondary-color);
    color: var(--white);
}

.property-price-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price-box .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
}

.nego-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.key-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 32px;
    color: var(--primary-color);
}

.feature-item strong {
    display: block;
    font-size: 24px;
    color: var(--primary-color);
}

.feature-item span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.property-section {
    margin-bottom: 40px;
}

.property-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.property-section p {
    line-height: 1.8;
    color: var(--text-dark);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tags .tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

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

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.spec-item strong {
    color: var(--text-dark);
}

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

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.agent-card, .quick-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.agent-card h3, .quick-info-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.agent-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.agent-info p {
    font-size: 13px;
    color: var(--text-light);
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-whatsapp, .btn-call, .btn-email, .btn-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.btn-instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff !important;
}

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

.btn-call:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-email {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item i {
    color: var(--primary-color);
    font-size: 18px;
}

.info-item span {
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .property-header {
        flex-direction: column;
    }
    
    .property-badges {
        margin-top: 15px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
}

/* ================================
   KPR SIMULATION
   ================================ */
.kpr-calculator {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}
.kpr-input-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.kpr-input-group {
    flex: 1;
    min-width: 200px;
}
.kpr-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}
.kpr-input-group input,
.kpr-input-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.kpr-input-group input[type="range"] {
    padding: 0;
    accent-color: #0A396F;
}
.kpr-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.kpr-bank-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}
.kpr-bank-card:hover {
    border-color: #E3AC16;
}
.kpr-bank-card h4 {
    color: #0A396F;
    font-size: 16px;
    margin-bottom: 8px;
}
.kpr-bank-rate {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.kpr-bank-amount {
    font-size: 28px;
    font-weight: 800;
    color: #0A396F;
    line-height: 1.2;
}
.kpr-bank-detail {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}
.kpr-bank-detail div {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}
.kpr-bank-detail span {
    font-weight: 600;
    color: #333;
}
@media (max-width: 768px) {
    .kpr-input-row { flex-direction: column; gap: 15px; }
    .kpr-bank-amount { font-size: 22px; }
}

/* ================================
   MAP BLUR CARD
   ================================ */
.map-blur-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.map-blur-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
}
.map-blur-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 220px;
}
.map-blur-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.05);
}
.map-blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 57, 111, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-blur-content {
    text-align: center;
    padding: 20px;
}
.btn-tanya-lokasi {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-tanya-lokasi:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}
