/* public/css/layanan-detail.css */
:root {
    --primary: #0f172a;
    --accent: #c5a059;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-light);
}

.layanan-detail-container {
    max-width: 1200px;
    margin: 30px auto 60px; /* Offset for fixed header dikurangi */
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb .separator {
    margin: 0 10px;
    font-size: 0.75rem;
}
.breadcrumb .current {
    font-weight: 600;
    color: var(--primary);
}

/* Header */
.detail-header {
    margin-bottom: 25px;
}
.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.rating-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}
.text-warning { color: #f59e0b; }
.rating-score { font-weight: 700; color: var(--primary); }
.rating-count { color: var(--text-muted); }

/* Gallery Layout */
.gallery-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    height: 450px;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-main {
    height: 100%;
    width: 100%;
}
.gallery-main img, .gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-main:hover img, .gallery-sub:hover img {
    transform: scale(1.03);
}

.gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 100%;
}
.gallery-sub {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.more-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.more-overlay:hover {
    background: rgba(15, 23, 42, 0.8);
}

.placeholder-img, .placeholder-sub {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
    height: 100%;
}
.placeholder-sub { font-size: 2rem; }

/* Content Wrapper */
.detail-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Main Content */
.content-section {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.04);
}
.content-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.description-text {
    color: var(--text-main);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Facilities */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}
.facility-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}
.facility-item:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}
.facility-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}
.facility-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Sub-Layanan Cards */
.sub-layanan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.sub-layanan-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}
.sub-layanan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    border-color: var(--accent);
}
.sub-layanan-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.sub-layanan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sub-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
}
.sub-layanan-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.sub-layanan-info {
    padding: 15px;
}
.sub-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}
.sub-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}
.sub-price small {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.sub-stock {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.btn-sub-pesan {
    display: block;
    text-align: center;
    background: var(--primary);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.btn-sub-pesan:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Booking Card (Sidebar) */
.booking-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}
.booking-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.price-display {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.unit-label {
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn-pesan {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.btn-pesan i {
    margin-right: 8px;
}
.btn-pesan:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.stock-info {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 8px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.lightbox-modal.show { display: flex; }
.close-lightbox {
    position: absolute;
    top: 25px; right: 35px;
    color: #fff; font-size: 2.5rem; cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}
.close-lightbox:hover { color: var(--accent); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 60px; height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
    z-index: 10001;
}
.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 20px;
    z-index: 10001;
}

/* Responsiveness */
@media (max-width: 900px) {
    .detail-content-wrapper {
        grid-template-columns: 1fr;
    }
    .booking-card {
        position: static;
        margin-top: 30px;
    }
}
@media (max-width: 768px) {
    .gallery-layout {
        height: auto;
        grid-template-columns: 1fr;
    }
    .gallery-main {
        height: 300px;
    }
    .gallery-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 150px;
    }
    .gallery-sub {
        height: 100%;
    }
}
