/* =============================================
   HANA KOST - Dynamic Theme CSS
   Warna bisa diubah dari menu Konfigurasi Admin
   Default: Soft Pink Palette
   ============================================= */

:root {
    --hk-primary:    #E8768A;
    --hk-secondary:  #F4A7B9;
    --hk-accent:     #FDE8ED;
    --hk-dark:       #5C2D3E;
    --hk-light:      #FFF5F7;

    /* Computed variants */
    --hk-primary-hover:   #D4607A;
    --hk-primary-light:   rgba(232, 118, 138, 0.12);
    --hk-primary-border:  rgba(232, 118, 138, 0.35);
}

/* ---- Override Bootstrap primary ---- */
.btn-primary {
    background-color: var(--hk-primary) !important;
    border-color: var(--hk-primary) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--hk-primary-hover) !important;
    border-color: var(--hk-primary-hover) !important;
}
.btn-outline-primary {
    color: var(--hk-primary) !important;
    border-color: var(--hk-primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--hk-primary) !important;
    color: #fff !important;
}
.text-primary { color: var(--hk-primary) !important; }
.bg-primary { background-color: var(--hk-primary) !important; }
.border-primary { border-color: var(--hk-primary) !important; }

/* ---- Badges ---- */
.badge.bg-primary { background-color: var(--hk-primary) !important; }

/* ---- Form focus ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--hk-primary) !important;
    box-shadow: 0 0 0 0.2rem var(--hk-primary-border) !important;
}

/* ---- Links ---- */
a { color: var(--hk-primary); }
a:hover { color: var(--hk-primary-hover); }

/* ---- Nav active ---- */
.nav-link.active { color: var(--hk-primary) !important; }

/* =============================================
   ADMIN SIDEBAR
   ============================================= */
.admin-sidebar {
    background-color: var(--hk-dark);
    min-height: 100vh;
    width: 250px;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
    padding: 1.5rem 1.25rem;
    background-color: rgba(0,0,0,0.15);
    text-decoration: none;
}
.admin-sidebar .sidebar-brand h5 {
    color: var(--hk-secondary);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}
.admin-sidebar .sidebar-brand small {
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
}
.admin-sidebar .nav-item .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 0;
    transition: all 0.2s;
}
.admin-sidebar .nav-item .nav-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}
.admin-sidebar .nav-item .nav-link.active {
    background-color: var(--hk-primary) !important;
    color: #fff !important;
    font-weight: 600;
}
.admin-sidebar .nav-item .nav-link i {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}
.admin-sidebar .sidebar-section-title {
    color: rgba(255,255,255,0.35);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 1.25rem 0.25rem;
}

/* ---- Main content wrapper ---- */
.admin-main {
    margin-left: 250px;
    min-height: 100vh;
    background-color: #f8f9fa;
    transition: margin-left 0.3s ease;
}
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* =============================================
   LANDING PAGE
   ============================================= */
.landing-hero {
    background: linear-gradient(135deg, var(--hk-dark) 0%, var(--hk-primary) 100%);
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/hero-pattern.svg') center/cover;
    opacity: 0.07;
}
.landing-hero .hero-content {
    position: relative;
    z-index: 2;
}
.landing-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.landing-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
}

/* Room card */
.room-card {
    border: 1px solid #f0d6de;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    background: #fff;
}
.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(232,118,138,0.15);
}
.room-card .room-status-badge {
    position: absolute;
    top: 12px; right: 12px;
}
.room-card .price-tag {
    color: var(--hk-primary);
    font-weight: 700;
    font-size: 1.15rem;
}
.room-card .facilities-list span {
    background-color: var(--hk-accent);
    color: var(--hk-dark);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    display: inline-block;
    margin: 2px;
}

/* Section title */
.section-title {
    position: relative;
    font-weight: 700;
    color: var(--hk-dark);
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--hk-primary);
    border-radius: 2px;
    margin-top: 8px;
}
.section-title.text-center::after {
    margin: 8px auto 0;
}

/* Promo strip */
.promo-strip {
    background: linear-gradient(90deg, var(--hk-primary), var(--hk-secondary));
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Price calculator */
.price-calculator {
    background: var(--hk-light);
    border: 2px solid var(--hk-primary-border);
    border-radius: 16px;
    padding: 2rem;
}

/* WhatsApp floating button */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    text-decoration: none;
    transition: transform 0.2s;
}
.wa-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Testimonial card */
.testimonial-card {
    background: var(--hk-light);
    border-left: 4px solid var(--hk-primary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

/* =============================================
   RESPONSIVE – ADMIN
   ============================================= */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}

/* =============================================
   MOBILE LANDING PAGE
   ============================================= */

/* ---- Mobile Bottom CTA Bar ---- */
.mobile-cta-bar {
    display: none;
}
@media (max-width: 767.98px) {
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 1050;
        background: #fff;
        border-top: 2px solid var(--hk-accent);
        box-shadow: 0 -4px 24px rgba(92,45,62,0.12);
        padding: 10px 14px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
        align-items: center;
    }
    .mobile-cta-bar .cta-wa {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #25D366;
        color: #fff;
        border-radius: 50px;
        padding: 12px 10px;
        font-weight: 600;
        font-size: 0.88rem;
        text-decoration: none;
        transition: opacity .2s;
    }
    .mobile-cta-bar .cta-wa:hover { opacity: .88; color: #fff; }
    .mobile-cta-bar .cta-book {
        flex: 1.5;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--hk-primary);
        color: #fff;
        border-radius: 50px;
        padding: 12px 10px;
        font-weight: 700;
        font-size: 0.88rem;
        text-decoration: none;
        transition: opacity .2s;
    }
    .mobile-cta-bar .cta-book:hover { opacity: .88; color: #fff; }

    /* Space at bottom so content isn't hidden behind bar */
    .mobile-cta-spacer { height: 74px; }

    /* WA float hides on mobile — bottom bar covers it */
    .wa-float { display: none !important; }
}

/* ---- Stats row (always applied, Bootstrap d-flex/d-md-none handles show/hide) ---- */
.hero-stats-row {
    gap: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden;
}
.hero-stats-row .stat-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-stats-row .stat-item:last-child { border-right: none; }
.hero-stats-row .stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stats-row .stat-lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
}

/* ---- Hero mobile ---- */
@media (max-width: 767.98px) {
    .landing-hero {
        min-height: 100svh;
        min-height: 100vh; /* fallback */
    }
    .landing-hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    .landing-hero p.lead {
        font-size: 1rem !important;
    }
    .hero-mobile-img {
        display: block;
        border-radius: 16px;
        overflow: hidden;
        margin-top: 20px;
        max-height: 220px;
        width: 100%;
    }
    .hero-mobile-img img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center top;
    }
}

/* ---- Room cards — horizontal scroll on mobile ---- */
.room-scroll-wrap {
    display: none;
}
.room-grid-wrap {
    display: block;
}
@media (max-width: 767.98px) {
    .room-scroll-wrap {
        display: block;
        margin: 0 -12px;
    }
    .room-grid-wrap {
        display: none;
    }
    .room-scroll-inner {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding: 4px 12px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .room-scroll-inner::-webkit-scrollbar { display: none; }
    .room-scroll-item {
        min-width: 78vw;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    .room-scroll-hint {
        text-align: center;
        font-size: 0.75rem;
        color: var(--hk-primary);
        margin-bottom: 12px;
        opacity: .8;
        letter-spacing: 0.5px;
    }
    /* Room card tweaks for mobile */
    .room-card .card-body { padding: 12px !important; }
    .room-card .price-tag { font-size: 1rem; }
}

/* ---- Price calculator — mobile ---- */
@media (max-width: 767.98px) {
    .price-calculator {
        padding: 1.25rem;
        border-radius: 12px;
    }
}

/* ---- Section title — mobile ---- */
@media (max-width: 767.98px) {
    .section-title { font-size: 1.4rem; }
}

/* ---- Facilities — mobile: 3 per row ---- */
@media (max-width: 575.98px) {
    .facility-grid .col-6 { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* ---- Location — mobile: map full width ---- */
@media (max-width: 767.98px) {
    .maps-iframe-wrap { height: 260px !important; }
    .maps-iframe-wrap iframe { height: 260px !important; }
}

/* ---- Navbar — mobile ---- */
@media (max-width: 767.98px) {
    .navbar-brand img { height: 32px !important; width: 32px !important; }
    .navbar { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .navbar-collapse .btn { width: 100%; text-align: center; margin-top: 8px; }
}

/* ---- Booking form — mobile ---- */
@media (max-width: 767.98px) {
    .booking-sidebar { margin-top: 24px; }
}

/* ---- General mobile spacing ---- */
@media (max-width: 767.98px) {
    section.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .container { padding-left: 16px; padding-right: 16px; }
}
