* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 90px;
}

:root {
    --crimson: #880000;
    --crimson-dark: #5c0000;
    --crimson-light: #b22222;
    --gold: #caa035;
    --gold-light: #ffd700;
    --gold-pale: rgba(202, 160, 53, 0.12);
    --ivory: #fdf8f1;
    --white: #ffffff;
    --text-dark: #2a1a1a;
    --text-mid: #5c4040;
    --text-muted: #8a7070;
    --border: #e8ddd5;
    --shadow-sm: 0 2px 12px rgba(136, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(136, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(136, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}


header {
    background: #880000;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: top 0.4s ease-in-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-left: 0;
    flex-shrink: 0;
}


    .logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: white;
    }



.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: visible;
    white-space: nowrap;
    justify-content: flex-start;
    margin-left: 0.5rem;
}

    .nav-links a {
        display: inline-flex;
        align-items: center;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-size: 0.9rem;
        white-space: nowrap;
        position: relative;
        background: none !important;
    }


        .nav-links a:hover:not(.active) {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }


        .nav-links a::before,
        .nav-links a::after {
            content: none !important;
            background: none !important;
        }


        .nav-links a.active {
            color: #ffd700 !important;
            border: 2px solid #caa035;
            background: transparent !important;
            border-radius: 50px;
            padding: 0.6rem 1.2rem;
            font-weight: 600;
            box-shadow: 0 0 10px rgba(202, 160, 53, 0.6);
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }


            .nav-links a.active:hover {
                background: rgba(202, 160, 53, 0.1);
                transform: scale(1.05);
                box-shadow: 0 0 15px rgba(202, 160, 53, 0.8);
            }

@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(202,160,53,0.6);
    }

    50% {
        box-shadow: 0 0 20px rgba(202,160,53,0.9);
    }
}

.nav-links a.active {
    animation: goldPulse 3s infinite ease-in-out;
}



.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}


.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}


.policies-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../Photos/policies/bhadkeshwar_temple.jpg');
    background-size: cover;
    background-position: center;
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
}

    .policies-hero h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
        color: white;
    }

    .policies-hero p {
        font-size: 1.2rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        max-width: 600px;
        margin: 0 auto;
    }


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


.policies-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.policy-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #preloader img {
        width: 200px;
        height: auto;
    }

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, #880000, #caa035);
    z-index: 10000;
    transition: width 0.2s ease-out;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.policy-card.check-in {
    border-left-color: #4caf50;
}

.policy-card.cancellation {
    border-left-color: #ffd700;
}

.policy-card.payment {
    border-left-color: #b8860b;
}

.policy-card.guest {
    border-left-color: #9c27b0;
}

.policy-card.safety {
    border-left-color: #f44336;
}

.policy-card.additional {
    border-left-color: #607d8b;
}

.policy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.policy-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #8b0000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.policy-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

    .policy-list li {
        margin-bottom: 1rem;
        padding-left: 1.5rem;
        position: relative;
        font-size: 1rem;
        line-height: 1.6;
    }

        .policy-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: #4caf50;
            font-weight: bold;
        }

    .policy-list.warning li::before {
        content: '⚠️';
    }

    .policy-list.info li::before {
        content: 'ℹ️';
    }

.policy-note {
    background: linear-gradient(45deg, #ffd700, #daa520);
    color: #8b0000;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-top: 1rem;
    font-weight: 600;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

    .breadcrumb a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        font-weight: 500;
    }

        .breadcrumb a:hover {
            color: white;
        }

    .breadcrumb i {
        color: #fff;
        margin: 0 8px;
    }

    .breadcrumb span {
        color: #fff;
        font-weight: 600;
    }

.important-notice {
    padding: 4rem 0;
    background: linear-gradient(135deg, #660000, #8B0000);
    color: white;
}

.notice-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

    .notice-content h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

.notice-box {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 2rem;
}

    .notice-box h3 {
        color: #ffd700;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .notice-box p {
        font-size: 1rem;
        line-height: 1.6;
    }


.contact-section {
    padding: 4rem 0;
    background: #caa035;
    color: #8b0000;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    background: rgba(139,0,0,0.2);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

    .contact-item h3 {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }

    .contact-item p {
        font-size: 1rem;
    }


footer {
    background: #8b0000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p, .footer-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-section a:hover {
        color: #ffd700;
    }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding: 25px 15px;
    background: #8b1c10;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.4px;
    color: #f1f1f1;
}


.footer-tagline {
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 8px;
    color: #ffd7a0;
}


.footer-text span {
    font-weight: 600;
    color: #ffffff;
}


.footer-text a {
    color: gold;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .footer-text a:hover {
        color: #ffd700;
        text-decoration: underline;
    }

 /* ═══════════════════════════════════════════════════════
   CHAT BOT
════════════════════════════════════════════════════════ */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    z-index: 9998;
    overflow: hidden;
    display: none;
    flex-direction: column;
    max-height: 520px;
    border: 1.5px solid var(--border);
}

.chat-container.show {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-icons {
    display: flex;
    gap: 14px;
}

.contact-icons a {
    color: white;
    font-size: 18px;
    transition: opacity 0.2s;
}

.contact-icons a:hover {
    opacity: 0.8;
}

.chat-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.chat-header button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.chat-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 280px;
    background: #f9f5f0;
}

.bot-message {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 4px 16px 16px 16px;
    font-size: 0.88rem;
    color: var(--text-dark);
    max-width: 85%;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.user-message {
    background: linear-gradient(135deg, var(--crimson), #a00000);
    color: white;
    padding: 10px 14px;
    border-radius: 16px 4px 16px 16px;
    font-size: 0.88rem;
    max-width: 85%;
    align-self: flex-end;
    line-height: 1.5;
}

.chat-input {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--border);
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-family: 'Jost', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(202, 160, 53, 0.15);
}

.chat-input button {
    background: var(--crimson);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.chat-input button:hover {
    background: var(--crimson-dark);
    transform: scale(1.04);
}

.chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--gold), #ffd700);
    color: var(--crimson);
    border: none;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 8px 28px rgba(202, 160, 53, 0.45);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 35px rgba(202, 160, 53, 0.6);
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

.back-to-top {
    position: fixed;
    left: 30px;
    top: -80px;
    width: 50px;
    height: 50px;
    background-color: #b30000;
    color: #ffd700;
    border: 1px solid #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    z-index: 999;
    transition: top 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

    .back-to-top.show {
        top: calc(100vh - 80px);
    }


    .back-to-top:hover {
        background-color: transparent;
        color: var(--primary);
        transform: translateY(-5px);
    }


.mobile-nav-header,
.close-menu {
    display: none;
}

.brand span {
    display: none;
}

.menu-toggle {
    width: 34px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    position: relative;
}

    .menu-toggle span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #ffd700;
        border-radius: 3px;
        transition: all 0.35s cubic-bezier(0.77, 0, 0.18, 1);
    }

        .menu-toggle span:nth-child(1) {
            top: 0;
        }

        .menu-toggle span:nth-child(2) {
            top: 11px;
            width: 70%;
        }

        .menu-toggle span:nth-child(3) {
            bottom: 0;
        }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 11px;
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 11px;
    }


@media (max-width: 1024px) {

    .menu-toggle {
        display: block;
    }

    .logo {
        margin: 0 auto;
        justify-content: center;
    }


    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .brand img {
            height: 48px;
            border-radius: 50%;
        }

        .brand span {
            display: inline-block;
            font-size: 1.4rem;
            font-weight: 600;
            color: #fff;
            letter-spacing: 0.5px;
        }

    nav {
        padding: 0 1rem;
        justify-content: space-between;
    }

    .logo {
        margin-left: 0;
        font-size: 1.4rem;
        flex-shrink: 0;
    }

        .logo img {
            height: 35px;
            margin-right: 8px;
        }

    .nav-links {
        gap: 0.1rem;
        overflow-x: auto !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0.5rem;
    }

        .nav-links::-webkit-scrollbar {
            display: none;
        }

        .nav-links a {
            padding: 0.4rem 0.8rem;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

    .policies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    .chat-container {
        width: 330px;
        right: 20px;
        bottom: 95px;
        max-height: 480px;
    }

    .chat-messages {
        height: 260px;
    }

    .chat-toggle {
        width: 60px;
        height: 60px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1101;
    }

    body.menu-open {
        overflow: hidden;
    }

    .menu-toggle {
        display: block;
        z-index: 1100;
    }


    .nav-links {
        position: fixed;
        top: 0;
        left: -120%;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(160deg, #8b0000, #5c0000);
        flex-direction: column;
        padding: 2.5rem 2rem;
        transition: left 0.45s cubic-bezier(0.77, 0, 0.18, 1);
        z-index: 1050;
    }


        .nav-links.active {
            left: 0;
        }


    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 3rem;
    }

        .mobile-nav-header img {
            height: 50px;
            border-radius: 50%;
        }

    .close-menu {
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }


    .nav-links li {
        list-style: none;
        margin-bottom: 1.4rem;
        opacity: 0;
        transform: translateX(-30px);
        animation: slideFade 0.5s ease forwards;
        margin-top: -5px;
    }


    .nav-links.active li:nth-child(2) {
        animation-delay: 0.1s;
    }

    .nav-links.active li:nth-child(3) {
        animation-delay: 0.15s;
    }

    .nav-links.active li:nth-child(4) {
        animation-delay: 0.2s;
    }

    .nav-links.active li:nth-child(5) {
        animation-delay: 0.25s;
    }

    .nav-links.active li:nth-child(6) {
        animation-delay: 0.3s;
    }

    .nav-links.active li:nth-child(7) {
        animation-delay: 0.35s;
    }

    .nav-links.active li:nth-child(8) {
        animation-delay: 0.4s;
    }

    .nav-links.active li:nth-child(9) {
        animation-delay: 0.45s;
    }

    .nav-links a {
        font-size: 1.25rem;
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        letter-spacing: 0.5px;
        display: inline-block;
        position: relative;
    }


        .nav-links a::after {
            content: "";
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 0%;
            height: 2px;
            background: gold;
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }



    @keyframes slideFade {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .policies-hero h1 {
        font-size: 2.5rem;
    }

    .policies-hero p {
        font-size: 1.1rem;
    }

    .policy-card {
        padding: 2rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .policies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chat-container {
        width: 94%;
        right: 3%;
        bottom: 85px;
        max-height: 80vh;
        border-radius: 18px;
    }

    .chat-header {
        padding: 14px;
    }

    .contact-icons a {
        font-size: 16px;
        margin-right: 12px;
    }

    .chat-messages {
        height: 55vh;
        padding: 16px;
        font-size: 14px;
    }

    .chat-input input {
        font-size: 14px;
    }

    .chat-input button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 20px;
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 600px) {
    #preloader img {
        width: 100px;
    }
}

@media (max-width: 480px) {

    .chat-container {
        width: 96%;
        right: 2%;
        bottom: 75px;
        max-height: 85vh;
        border-radius: 16px;
    }

    .chat-messages {
        height: 58vh;
        padding: 14px;
        font-size: 13px;
    }

    .bot-message,
    .user-message {
        font-size: 13px;
        max-width: 92%;
    }

    .chat-input {
        padding: 10px;
    }

        .chat-input input {
            padding: 9px 12px;
            font-size: 13px;
        }

        .chat-input button {
            padding: 9px 14px;
            font-size: 13px;
        }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }

    /* Prevent clash with back-to-top */
    .back-to-top {
        left: 15px;
    }
}
