/* 
   assets/css/style.css
   Custom Responsive Glassmorphism Stylesheet for Tripathi Lodge
   Spiritual & Premium Theme: Deep Gold, Terracotta Accents, Glass Panels
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #d4af37; /* Royal Metallic Gold */
    --primary-dark: #aa841c;
    --accent: #b52b1b; /* Sacred Crimson Red (Sindoor/Devotion) */
    --bg-dark: #1c110e; /* Deep Charcoal Crimson */
    --bg-light: #faf8f5; /* Pure Ivory White */
    --text-dark: #331a15;
    --text-light: #fefcf9;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 10px 30px 0 rgba(181, 43, 27, 0.08);
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Glassmorphism Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: var(--transition);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px 0 rgba(181, 131, 83, 0.25);
}

/* Buttons */
.btn-custom {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    transform: scale(1.05);
    color: white;
    box-shadow: 0 6px 20px rgba(181, 43, 27, 0.4);
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid var(--primary);
    color: var(--text-dark);
    backdrop-filter: blur(5px);
}

.btn-secondary-custom:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Running Notice Marquee */
.notice-marquee-container {
    background: linear-gradient(90deg, var(--accent) 0%, #8d0801 50%, var(--accent) 100%);
    color: #fefae0;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.notice-marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
}

.notice-item {
    padding: 0 40px;
    display: inline-block;
}

.notice-item::after {
    content: "✦";
    margin-left: 40px;
    color: var(--primary);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Transparent Header / Navbar */
.navbar-custom {
    padding: 15px 0;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-custom.scrolled {
    padding: 10px 0;
    background: rgba(250, 248, 245, 0.98);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.08);
}

.navbar-brand-custom {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    text-decoration: none;
}

.navbar-brand-custom span {
    color: var(--accent);
}

.nav-link-custom {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 100%;
}

.nav-link-custom:hover {
    color: var(--accent) !important;
}

/* Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

.slide-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s ease-out;
}

.slide-item.active .slide-image {
    transform: scale(1);
}

.slide-caption-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 800px;
    text-align: center;
    color: white;
    z-index: 3;
}

.slide-caption-box h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fefae0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.3s ease-out;
}

.slide-caption-box p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #f8f9fa;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.5s ease-out;
}

.slide-caption-box .btn-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s 0.7s ease-out;
}

.slide-item.active .slide-caption-box h1,
.slide-item.active .slide-caption-box p,
.slide-item.active .slide-caption-box .btn-box {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* Card Transparencies and Animations */
.room-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(181, 43, 27, 0.12);
    border-color: var(--primary);
}

.room-card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-card-img {
    transform: scale(1.1);
}

.room-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--accent) 0%, #b53d1e 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(224, 122, 95, 0.4);
    z-index: 5;
}

.room-capacity {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.room-card-body {
    padding: 24px;
}

.room-card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.amenity-tag {
    background: rgba(181, 43, 27, 0.04);
    color: var(--text-dark);
    border: 1px solid rgba(181, 43, 27, 0.12);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.amenity-tag:hover {
    background: var(--accent);
    color: white !important;
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(181, 43, 27, 0.2);
}

.amenity-tag:hover i {
    color: white !important;
}

.room-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(212, 163, 115, 0.15);
    padding-top: 15px;
    margin-top: 15px;
}

.price-box .old-price {
    text-decoration: line-through;
    color: #8c8880;
    font-size: 0.9rem;
    margin-right: 5px;
}

.price-box .new-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.price-box .price-unit {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Gallery Section */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid var(--primary);
    color: #4a3728;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 55, 40, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fefae0;
    font-size: 2rem;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Booking Layout & transparent elements */
.booking-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
}

.form-control-custom {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(212, 163, 115, 0.4);
    border-radius: 10px;
    padding: 12px 18px;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(224, 122, 95, 0.2);
    outline: none;
}

.booking-summary-card {
    border-radius: 16px;
    padding: 24px;
    background: rgba(212, 163, 115, 0.1);
    border: 1px dashed var(--primary);
}

.bill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.bill-item.total-row {
    border-top: 1px solid rgba(212, 163, 115, 0.3);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* Footer styling */
.footer-custom {
    background-color: var(--bg-dark);
    color: #d1c8bd;
    padding: 80px 0 30px;
    border-top: 4px solid var(--primary);
}

.footer-custom h5 {
    color: #fefae0;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-custom h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-custom a {
    color: #bfae9b;
    text-decoration: none;
    transition: var(--transition);
}

.footer-custom a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .slide-caption-box h1 {
        font-size: 2.2rem;
    }
    .slide-caption-box p {
        font-size: 1rem;
    }
    .hero-slider {
        height: 60vh;
    }
    .gallery-filter-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Print Stylesheet for Invoices */
@media print {
    body * {
        visibility: hidden;
    }
    #invoice-print-area, #invoice-print-area * {
        visibility: visible;
    }
    #invoice-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    .no-print {
        display: none !important;
    }
}

/* Scroll Reveal Fade-in entries */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delay for grid layouts */
.row .reveal:nth-child(1) { transition-delay: 0.05s; }
.row .reveal:nth-child(2) { transition-delay: 0.15s; }
.row .reveal:nth-child(3) { transition-delay: 0.25s; }
.row .reveal:nth-child(4) { transition-delay: 0.35s; }
.row .reveal:nth-child(5) { transition-delay: 0.45s; }
.row .reveal:nth-child(6) { transition-delay: 0.55s; }

/* Elegant Sweeping Shine Effect & Hover Transitions */
.room-card, .gallery-item {
    position: relative;
}

.room-card::after, .gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.8s ease-in-out;
    z-index: 5;
    pointer-events: none;
}

.room-card:hover::after, .gallery-item:hover::after {
    left: 150%;
}

.room-card:hover .room-card-img, .gallery-item:hover img {
    transform: scale(1.08) rotate(0.5deg) !important;
}
