/* GLOBAL VARS */
:root {
    --primary: #0f172a; --accent: #c0a062; --light: #f8fafc; --text: #334155;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
body { font-family: 'Playfair Display', serif; margin: 0; padding: 0; background: var(--light); color: var(--text); overflow-x: hidden; }

/* NAVBAR */
.main-header { background: rgba(15, 23, 42, 0.95); padding: 15px 40px; width: 100%; position: fixed; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.2); box-sizing: border-box; }
.header-container { max-width: 1600px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.site-logo { color: var(--accent); font-family: 'Cinzel', serif; font-size: 1.8rem; text-decoration: none; border: 2px solid var(--accent); padding: 5px 15px; }
.brand-name { color: white; font-family: 'Cinzel', serif; font-size: 1.5rem; letter-spacing: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.hamburger { font-size: 2rem; color: white; cursor: pointer; display: block; }

/* CURRENCY DROPDOWN */
.currency-dropdown { position: relative; display: inline-block; }
.currency-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: white; padding: 5px 10px; cursor: pointer; border-radius: 4px; }
.currency-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 120px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; border-radius: 4px; right:0; }
.currency-content a { color: black; padding: 10px 15px; text-decoration: none; display: block; font-size: 0.9rem; font-family: 'Segoe UI'; }
.currency-content a:hover { background-color: #ddd; }
.currency-dropdown:hover .currency-content { display: block; }

/* SPACERS FOR FIXED HEADER */
.hero-slider-container { position: relative; height: 100vh; width: 100%; overflow: hidden; margin-top: 0; } /* Hero handles itself */
.container, .booking-page-container, .admin-container, .services-header { padding-top: 100px; } /* Pushes content down */

/* SIDE NAV */
.side-nav { height: 100%; width: 0; position: fixed; z-index: 2000; top: 0; right: 0; background-color: #0b0f19; overflow-x: hidden; transition: 0.5s; padding-top: 60px; box-shadow: -5px 0 15px rgba(0,0,0,0.5); }
.side-nav a { padding: 15px 40px; text-decoration: none; font-size: 1.2rem; color: #94a3b8; display: block; transition: 0.3s; font-family: 'Cinzel', serif; border-bottom: 1px solid #1e293b; }
.side-nav a:hover { color: var(--accent); background: #1e293b; padding-left: 50px; }
.side-nav .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; border: none; }
.user-welcome { padding: 20px 40px; color: white; margin-bottom: 20px; border-bottom: 2px solid var(--accent); }

/* SLIDER */
.hero-slider-container { 
    position: relative; 
    height: 100vh; 
    width: 100%; 
    overflow: hidden; 
    margin-top: 0; 
}

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

.slide.active { 
    opacity: 1; 
}

/* UPDATED: Darker overlay (0.5) for better text contrast */
.slide::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.5); /* Was 0.3 */
}

.hero-content { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center; 
    z-index: 10; 
    color: white; 
    width: 80%; 
}

.hero-title { 
    font-size: 4rem; 
    margin-bottom: 15px; 
    font-family: 'Cinzel', serif; 
    text-shadow: 2px 2px 20px rgba(0,0,0,0.9); /* Stronger shadow */
}

/* HERO BUTTON */
.btn-hero { 
    padding: 18px 50px; 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    font-weight: bold; 
    background: var(--accent); /* Solid Gold initially */
    color: var(--primary);     /* Dark Text initially */
    border: 2px solid var(--accent); 
    text-decoration: none; 
    transition: 0.3s; 
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* HOVER EFFECT: Transparent Background + Yellow Borders */
.btn-hero:hover { 
    background: transparent;       /* See-through */
    color: white;                  /* White text for contrast */
    border-color: var(--accent);   /* Yellow/Gold Border */
    transform: translateY(-2px);   /* Slight lift */
}
/* CARDS */
.services-grid, .room-grid, .views-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.service-card, .room-card, .view-card, .activity-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s; }
.service-card:hover, .room-card:hover, .view-card:hover, .activity-card:hover { transform: translateY(-10px); }
.service-img, .room-card img, .view-img, .activity-img { height: 250px; width: 100%; object-fit: cover; }
.view-card { position: relative; height: 300px; } .view-img { height: 100%; }
.view-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, black); color: white; padding: 20px; box-sizing: border-box; }
.service-content, .room-info, .activity-content { padding: 30px; text-align: center; }

/* UTILS */
.btn-nav-login { color: white; border: 1px solid var(--accent); padding: 8px 20px; text-decoration: none; transition: 0.3s; }
.btn-nav-login:hover { background: var(--accent); color: var(--primary); }
.btn-cool { display: inline-block; padding: 10px 25px; background: var(--primary); color: white; text-decoration: none; border-radius: 30px; border: 1px solid var(--accent); transition: 0.3s; width: 100%; text-align: center; }
.btn-cool:hover { background: var(--accent); color: var(--primary); transform: scale(1.05); }
.about-container { max-width: 800px; margin: 0 auto; text-align: center; padding: 20px; }

/* ADMIN & DASHBOARD */
.admin-container { max-width: 1400px; margin: 40px auto; padding: 0 20px; font-family: 'Segoe UI', sans-serif; } /* Margin adjusted for header */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 40px; }
.dash-card { background: white; padding: 25px; border-radius: 12px; box-shadow: var(--card-shadow); border-left: 5px solid var(--primary); }
.dash-value { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin: 5px 0; }
.table-card { background: white; border-radius: 12px; box-shadow: var(--card-shadow); overflow: hidden; padding: 20px; margin-bottom: 30px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f8fafc; color: #64748b; padding: 15px; text-align: left; }
.admin-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; }

/* LOGIN & REGISTER */
.login-bg { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover; height: 100vh; display: flex; justify-content: center; align-items: center; }
.glass-form { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 50px 40px; border-radius: 20px; width: 100%; max-width: 380px; text-align: center; color: white; }
.glass-input { width: 100%; padding: 12px 15px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: white; margin-bottom: 15px; }
.btn-glass { width: 100%; padding: 14px; background: var(--accent); color: var(--primary); font-weight: bold; border: none; border-radius: 8px; cursor: pointer; }

/* FOOTER */
.footer { background: #0b1120; color: #64748b; padding: 60px 0; text-align: center; margin-top: 50px; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; display: flex; justify-content: center; align-items: center; text-decoration: none; }
.tooltip-container { position: relative; display: inline-block; cursor: help; }
.tooltip-text { visibility: hidden; width: 240px; background-color: var(--primary); color: #fff; text-align: left; border-radius: 6px; padding: 12px; position: absolute; bottom: 140%; left: 50%; margin-left: -120px; opacity: 0; transition: opacity 0.3s; z-index: 100; }
.tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }
.partners-section { padding: 60px 0; background: #fff; overflow: hidden; }
.partners-track { display: flex; width: calc(250px * 10); animation: scroll 20s linear infinite; }
.partner-logo { width: 250px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; font-family: 'Cinzel', serif; font-weight: bold; font-size: 1.2rem; }
.partner-icon { font-size: 3rem; color: var(--primary); margin-bottom: 10px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 5)); } }
/* --- MODERN HISTORY CARDS --- */
.history-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.history-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.history-img-wrapper {
    width: 220px;
    position: relative;
    flex-shrink: 0;
}

.history-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--primary);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.history-details {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile Responsive for History Cards */
@media (max-width: 768px) {
    .history-card {
        flex-direction: column;
    }
    .history-img-wrapper {
        width: 100%;
        height: 180px;
    }
}
/* BOOKING FORM DESIGN */
.booking-form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.booking-form-card label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary);
    font-family: 'Segoe UI', sans-serif;
}

.booking-page-container, 
.dashboard-container,
.admin-container {
    padding-top: 120px !important; /* Pushes content down below the Navbar */
    min-height: 80vh; /* Ensures footer doesn't float up on empty pages */
}

/* Ensure the admin tables don't touch the sides */
.dashboard-container {
    padding-left: 5%;
    padding-right: 5%;
}

.booking-form-card input, 
.booking-form-card select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box; /* Fixes width issues */
    transition: border 0.3s;
}

.booking-form-card input:focus, 
.booking-form-card select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1; /* Ensures side-by-side inputs take equal space */
}

/* Mobile responsive for form */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
}