/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #1a1a1a;
    --secondary: #f8f9fa;
    --accent: #ffc107;
    --accent-hover: #e0a800;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --success: #28a745;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    padding-bottom: 80px; /* Space untuk floating buttons di mobile */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.text-warning { color: var(--accent) !important; }
.bg-warning { background-color: var(--accent) !important; }
.bg-dark { background-color: var(--primary) !important; }

.hover-card {
    transition: var(--transition);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.hover-facility {
    transition: var(--transition);
}

.hover-facility:hover {
    background-color: #fff9e6;
    transform: scale(1.02);
}

/* =========================================
   3. NAVBAR & HEADER
   ========================================= */
.navbar {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Navbar Tweaks */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary);
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .btn-warning {
        width: 100%;
        margin-top: 1rem;
    }
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    height: 85vh;
    min-height: 500px;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    z-index: 0;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-content h1 {
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Mobile Hero Optimization */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* =========================================
   5. BOOKING WIDGET
   ========================================= */
.booking-widget-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.card {
    border: none;
    overflow: hidden;
}

.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

/* =========================================
   6. KAMAR SECTION (CARDS)
   ========================================= */
.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.hover-card:hover .card-img-top {
    transform: scale(1.05);
}

.badge.bg-warning {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5em 1em;
}

/* =========================================
   7. FASILITAS SECTION
   ========================================= */
.fac-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.hover-facility:hover .fac-icon {
    background: var(--accent);
    color: var(--text-dark);
}

/* =========================================
   8. CTA SECTION
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    position: relative;
    overflow: hidden;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding-top: 4rem;
}

footer h5 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

footer p, footer a {
    color: rgba(255,255,255,0.7);
}

footer a:hover {
    color: var(--accent);
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* =========================================
   10. WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   11. MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .col-md-3, .col-md-4, .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .booking-widget-section {
        margin-top: -30px;
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* =========================================
   12. ADMIN PANEL STYLES (Shared)
   ========================================= */
.admin-sidebar {
    min-height: 100vh;
    background: var(--primary);
    color: var(--white);
    transition: var(--transition);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 1rem 1.5rem;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--accent);
}

.admin-content {
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Tables Responsive */
.table-responsive {
    border-radius: var(--radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table thead th {
    background-color: var(--primary);
    color: var(--white);
    white-space: nowrap;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(255, 193, 7, 0.05);
}

/* Form Controls Admin */
.form-control:disabled,
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

.btn {
    border-radius: var(--radius);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
}

.btn-primary { background: var(--primary); border: none; }
.btn-warning { background: var(--accent); color: var(--text-dark); border: none; }
.btn-success { background: var(--success); border: none; }

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}