/**
 * Hotel Bintang Wisata Mandiri
 * Luxury Minimalist Theme
 * Color Palette: Deep Navy Blue & Gold
 */

/* =====================================================
   CSS VARIABLES & ROOT
   ===================================================== */
:root {
    /* Primary Colors */
    --navy-dark: #0a1628;
    --navy: #132743;
    --navy-light: #1e3a5f;
    --gold: #c9a962;
    --gold-light: #e5d4a1;
    --gold-dark: #a08339;
    
    /* Neutrals */
    --white: #ffffff;
    --warm-white: #fdfbf7;
    --cream: #f8f5f0;
    --gray-light: #e8e6e3;
    --gray: #9a9a9a;
    --gray-dark: #4a4a4a;
    --black: #1a1a1a;
    
    /* Functional */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.3);
}

/* =====================================================
   BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--warm-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.text-white { color: var(--white) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-cream { background-color: var(--cream) !important; }

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 15px auto;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 0;
    transition: var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-gold {
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: var(--navy-dark);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--navy-dark);
}

.btn-navy {
    background-color: var(--navy);
    border: 2px solid var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    color: var(--gold);
}

.btn-outline-navy {
    background-color: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}

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

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-hotel {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.95), rgba(10, 22, 40, 0.85));
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition-medium);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-hotel.scrolled {
    background: rgba(10, 22, 40, 0.98);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-hotel .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold) !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-hotel .navbar-brand span {
    color: var(--white);
    font-weight: 400;
}

.navbar-hotel .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-hotel .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-medium);
}

.navbar-hotel .nav-link:hover,
.navbar-hotel .nav-link.active {
    color: var(--gold) !important;
}

.navbar-hotel .nav-link:hover::after,
.navbar-hotel .nav-link.active::after {
    width: calc(100% - 36px);
}

.navbar-hotel .dropdown-menu {
    background: var(--navy-dark);
    border: none;
    border-radius: 0;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
}

.navbar-hotel .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 25px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.navbar-hotel .dropdown-item:hover {
    background: var(--navy);
    color: var(--gold);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201, 169, 98, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.7) 0%,
        rgba(10, 22, 40, 0.5) 50%,
        rgba(10, 22, 40, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content .subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-content .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-content .btn {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.hero-scroll .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 15px;
    margin: 10px auto 0;
    position: relative;
}

.hero-scroll .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================================
   ROOM CARDS
   ===================================================== */
.room-card {
    background: var(--white);
    border: none;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.room-card .room-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.room-card .room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.room-card:hover .room-image img {
    transform: scale(1.1);
}

.room-card .room-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--navy-dark);
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.room-card .room-price small {
    font-weight: 400;
    font-size: 0.75rem;
}

.room-card .card-body {
    padding: 25px;
}

.room-card .room-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.room-card .room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.room-card .room-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-card .room-features i {
    color: var(--gold);
}

.room-card .room-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================
   GALLERY MASONRY
   ===================================================== */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: var(--transition-medium);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 22, 40, 0.8) 100%);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--white);
    z-index: 2;
    transform: translateY(100%);
    transition: var(--transition-medium);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-item .gallery-caption h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-item .gallery-caption span {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   FACILITIES SECTION
   ===================================================== */
.facility-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    transition: var(--transition-medium);
    height: 100%;
    border: 1px solid var(--gray-light);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.facility-card .facility-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold);
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: var(--transition-medium);
}

.facility-card:hover .facility-icon {
    background: var(--gold);
    color: var(--navy-dark);
}

.facility-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.facility-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
}

/* =====================================================
   CONTACT & FORMS
   ===================================================== */
.contact-info-card {
    background: var(--navy);
    color: var(--white);
    padding: 40px;
    height: 100%;
}

.contact-info-card h4 {
    color: var(--gold);
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-info-item i {
    color: var(--gold);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-info-item h6 {
    color: var(--white);
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: 600;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border-radius: 0;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer h5 {
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition-medium);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   PAGE HEADERS
   ===================================================== */
.page-header {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-top: 76px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.7),
        rgba(10, 22, 40, 0.9)
    );
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.page-header-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header-content .breadcrumb {
    justify-content: center;
    background: none;
    margin: 0;
}

.page-header-content .breadcrumb-item,
.page-header-content .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.page-header-content .breadcrumb-item.active {
    color: var(--gold);
}

.page-header-content .breadcrumb-item + .breadcrumb-item::before {
    color: var(--gold);
}

/* =====================================================
   BOOKING FORM
   ===================================================== */
.booking-widget {
    background: var(--white);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.booking-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.booking-widget h4 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.date-picker-wrapper {
    position: relative;
}

.date-picker-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
}

/* =====================================================
   ALERTS & MESSAGES
   ===================================================== */
.alert-custom {
    border-radius: 0;
    border: none;
    padding: 15px 20px;
}

.alert-success-custom {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-error-custom {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .navbar-hotel .navbar-collapse {
        background: var(--navy-dark);
        padding: 20px;
        margin-top: 15px;
    }
    
    .gallery-grid {
        column-count: 2;
    }
    
    .page-header {
        height: 300px;
    }
    
    .page-header-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .subtitle {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }
    
    .gallery-grid {
        column-count: 1;
    }
    
    .contact-info-card {
        margin-bottom: 30px;
    }
    
    .booking-widget {
        padding: 25px;
    }
    
    .footer {
        padding-top: 50px;
    }
    
    .footer-col {
        margin-bottom: 40px;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.spinner-gold {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
