/* SecondHomeMurree Hotel - Black & Gold Theme with Animations */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #000000;
    --secondary: #D4AF37;
    --accent: #FFD700;
    --light: #FFFFFF;
    --dark: #1a1a1a;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --bg-main: #f8f8f8;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --card-bg: #FFFFFF;
    --hover: #f5f5f5;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

/* Navigation Styles */
nav {
    animation: fadeInDown 0.5s ease-out;
    background: linear-gradient(135deg, #f5e6c8, #f0d9a8) !important;
    border-bottom: 3px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

nav a {
    color: #1a1a1a !important;
    font-weight: 500;
}

nav .text-gray-800 {
    color: #1a1a1a !important;
}

nav button {
    color: #1a1a1a !important;
}

nav a {
    transition: all 0.3s ease;
    color: #1a1a1a !important;
}

nav a:hover {
    color: #D4AF37 !important;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

/* Navigation logo */
nav .font-serif {
    color: #1a1a1a !important;
    font-weight: 700;
}

/* Navigation active/border states */
nav .border-b-2,
nav .border-gray-800 {
    border-color: #D4AF37 !important;
}

/* Navigation active link */
nav a.border-b-2 {
    color: #D4AF37 !important;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    animation: fadeIn 0.6s ease-out;
}

/* Cards */
.room-card, .card, .service-box, .testimonial-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
}

.room-card:nth-child(1), .card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2), .card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3), .card:nth-child(3) { animation-delay: 0.3s; }
.room-card:nth-child(4), .card:nth-child(4) { animation-delay: 0.4s; }
.room-card:nth-child(5), .card:nth-child(5) { animation-delay: 0.5s; }
.room-card:nth-child(6), .card:nth-child(6) { animation-delay: 0.6s; }

.room-card:hover, .card:hover, .service-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary);
}

/* Buttons */
button, .btn, a[class*="bg-"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button:hover, .btn:hover, a[class*="bg-"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
}

/* Black & Gold Button Theme */
.bg-gray-800, .bg-black {
    background: linear-gradient(135deg, var(--primary), var(--dark)) !important;
    border: 2px solid var(--secondary);
    color: var(--light) !important;
}

.bg-gray-800:hover, .bg-black:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent)) !important;
    color: var(--primary) !important;
}

/* Navigation specific overrides */
nav.bg-white {
    background: linear-gradient(135deg, #f5e6c8, #f0d9a8) !important;
}

nav .bg-white {
    background: linear-gradient(135deg, #f5e6c8, #f0d9a8) !important;
}

nav.shadow-lg,
nav.shadow-sm {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
}

/* Navigation Book Now button */
nav .bg-gray-800 {
    background: linear-gradient(135deg, #D4AF37, #FFD700) !important;
    color: #000 !important;
    border: 2px solid #B8941F;
}

nav .bg-gray-800:hover {
    background: linear-gradient(135deg, #000, #1a1a1a) !important;
    color: #FFD700 !important;
    border-color: #FFD700;
}

/* Navigation btn-primary styling - Dark Golden */
nav .btn-primary,
.navbar .btn-primary,
.navbar-actions .btn-primary {
    background: linear-gradient(135deg, #B8860B, #DAA520) !important;
    color: white !important;
    border: 2px solid #B8860B !important;
}

nav .btn-primary:hover,
.navbar .btn-primary:hover,
.navbar-actions .btn-primary:hover {
    background: linear-gradient(135deg, #DAA520, #FFD700) !important;
    color: #000 !important;
    border-color: #DAA520 !important;
    box-shadow: 0 4px 8px rgba(184, 134, 11, 0.4) !important;
}

/* Mobile menu btn-primary styling */
.mobile-menu .btn-primary,
.mobile-menu-actions .btn-primary {
    background: linear-gradient(135deg, #B8860B, #DAA520) !important;
    color: white !important;
    border: 2px solid #B8860B !important;
}

.mobile-menu .btn-primary:hover,
.mobile-menu-actions .btn-primary:hover {
    background: linear-gradient(135deg, #DAA520, #FFD700) !important;
    color: #000 !important;
    border-color: #DAA520 !important;
    box-shadow: 0 4px 8px rgba(184, 134, 11, 0.4) !important;
}

/* Override any bg-gray-800 Book Now buttons with dark golden */
a[href="booking.html"].bg-gray-800,
.bg-gray-800[href="booking.html"],
nav a.bg-gray-800,
.navbar a.bg-gray-800 {
    background: linear-gradient(135deg, #B8860B, #DAA520) !important;
    color: white !important;
    border: 2px solid #B8860B !important;
}

a[href="booking.html"].bg-gray-800:hover,
.bg-gray-800[href="booking.html"]:hover,
nav a.bg-gray-800:hover,
.navbar a.bg-gray-800:hover {
    background: linear-gradient(135deg, #DAA520, #FFD700) !important;
    color: #000 !important;
    border-color: #DAA520 !important;
    box-shadow: 0 4px 8px rgba(184, 134, 11, 0.4) !important;
}

/* Text Colors */
.text-gray-800 {
    color: var(--text-primary) !important;
}

/* Sections */
section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

section:nth-of-type(1) { animation-delay: 0.2s; }
section:nth-of-type(2) { animation-delay: 0.3s; }
section:nth-of-type(3) { animation-delay: 0.4s; }
section:nth-of-type(4) { animation-delay: 0.5s; }

/* Images */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Service Box Enhancements */
.service-box {
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -70%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.service-box:hover::before {
    opacity: 0.15;
}

.service-box h3 {
    color: var(--secondary);
    position: relative;
    z-index: 1;
}

.service-box ul li {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-box ul li:hover {
    color: var(--secondary);
    transform: translateX(8px);
}

.service-box ul li i {
    color: var(--secondary);
}

/* Footer */
footer {
    background: #000000 !important;
    border-top: 3px solid var(--secondary);
    color: #FFFFFF !important;
}

footer * {
    color: #FFFFFF !important;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer span,
footer div,
footer a {
    color: #FFFFFF !important;
}

footer a:hover {
    color: var(--secondary) !important;
    text-decoration: underline;
}

footer .text-gray-400,
footer .text-gray-300,
footer .text-gray-500,
footer .text-gray-600 {
    color: #FFFFFF !important;
}

/* Footer specific classes */
.bg-gray-900 {
    background: #000000 !important;
}

footer.bg-gray-900 {
    background: #000000 !important;
}

/* Footer div class (for about.html) */
.footer {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-top: 3px solid var(--secondary);
    padding: 40px 20px;
    text-align: center;
}

.footer * {
    color: #FFFFFF !important;
}

.footer p {
    color: #FFFFFF !important;
    margin: 10px 0;
}

.footer a {
    color: #FFFFFF !important;
}

.footer a:hover {
    color: var(--secondary) !important;
}

/* Testimonials */
.testimonial-card {
    background: var(--card-bg);
    border: 2px solid var(--secondary);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance Optimization */
.card, .room-card, button, img {
    will-change: transform;
}

/* Icon Animations */
i {
    transition: all 0.3s ease;
}

button:hover i, .btn:hover i {
    transform: scale(1.2);
}

/* Gold Accent Highlights */
.border-gray-800 {
    border-color: var(--secondary) !important;
}

.border-gray-800:hover {
    background: var(--secondary) !important;
    color: var(--primary) !important;
}

/* Mobile Menu Styling */
nav .md\:hidden {
    background: linear-gradient(135deg, #f5e6c8, #f0d9a8) !important;
}

nav [class*="absolute"] {
    background: linear-gradient(135deg, #f5e6c8, #f0d9a8) !important;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

nav .block {
    color: #1a1a1a !important;
}

nav .block:hover {
    background: rgba(212, 175, 55, 0.3) !important;
    color: #D4AF37 !important;
}

/* Hamburger menu icon */
nav button i,
nav button svg {
    color: #1a1a1a !important;
    stroke: #1a1a1a !important;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .room-card:hover, .card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    /* Mobile navigation */
    nav {
        background: linear-gradient(135deg, #f5e6c8, #f0d9a8) !important;
    }
    
    nav a {
        color: #1a1a1a !important;
    }
    
    nav a:hover {
        color: #D4AF37 !important;
    }
}

/* ============================================
   DISCOUNT PRICING STYLES
   ============================================ */

.discount-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discount-price {
    color: #16a085 !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(22, 160, 133, 0.2);
}

.original-price {
    color: #95a5a6 !important;
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 500;
}

.savings-amount {
    color: #e74c3c !important;
    font-weight: 700;
    font-size: 0.75rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-container {
    position: relative;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.price-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(238, 90, 82, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Room Card Pricing Enhancements */
.room-card .flex.justify-between.items-center {
    align-items: flex-start;
    gap: 15px;
}

.room-card .discount-pricing {
    flex: 1;
    min-width: 0;
}

/* Mobile Responsive Pricing */
@media (max-width: 768px) {
    .discount-price {
        font-size: 1rem;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
    
    .savings-amount {
        font-size: 0.7rem;
    }
    
    .room-card .flex.justify-between.items-center {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* Booking Form Option Styling */
select option {
    padding: 8px;
    font-weight: 500;
}

select option:hover {
    background-color: #f8f9fa;
}