/*
 * GlobalTourBuddy — Royal Indian Luxury Theme
 * Premium travel agency design inspired by Indian royal heritage & palaces
 * Colors: Royal Gold, Royal Maroon, Royal Cream, Peacock Blue, Emerald Green
 */

/* ========== CSS VARIABLES ========== */
:root {
    --royal-gold: #C9A227;
    --royal-gold-light: #F2D16B;
    --royal-maroon: #7B1E2B;
    --royal-maroon-dark: #5a1620;
    --royal-cream: #F8F1E7;
    --peacock-blue: #1F4E79;
    --emerald-green: #0F6A4B;
    --text-dark: #333;
    --text-muted: #5c5c5c;
    --white: #fff;
    --card-shadow: 0 0.25rem 0.75rem rgba(123, 30, 43, 0.08);
    --card-hover-shadow: 0 0.75rem 2rem rgba(123, 30, 43, 0.18);
    --transition: 0.3s ease;
}

/* ========== TYPOGRAPHY ========== */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title, .hero-headline, .navbar-brand {
    font-family: 'Cinzel', 'Playfair Display', serif;
    color: var(--royal-maroon);
}

.section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}

/* ========== HEADER / NAVBAR ========== */
.navbar-royal {
    background: var(--royal-maroon) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.6rem 0;
    transition: box-shadow var(--transition);
}

.navbar-royal.scrolled {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.navbar-royal .navbar-brand {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--royal-gold) !important;
    letter-spacing: 0.03em;
}

.navbar-royal .navbar-brand:hover {
    color: var(--royal-gold-light) !important;
}

.navbar-royal .navbar-brand .brand-icon {
    color: var(--royal-gold);
    margin-right: 0.35rem;
}

.navbar-royal .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.navbar-royal .nav-link:hover,
.navbar-royal .nav-link:focus {
    color: var(--royal-gold) !important;
    background: rgba(201, 162, 39, 0.15);
}

.navbar-royal .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.navbar-royal .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-royal .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.navbar-royal .dropdown-item:hover {
    background: var(--royal-cream);
    color: var(--royal-maroon);
}

/* Register / CTA in nav */
.navbar-royal .btn-royal-nav {
    background: var(--royal-gold);
    color: var(--royal-maroon) !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem !important;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar-royal .btn-royal-nav:hover {
    background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-light) 100%);
    color: var(--royal-maroon) !important;
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.45);
}

/* ========== HERO SECTION ========== */
.hero-royal {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--peacock-blue) 0%, var(--royal-maroon-dark) 50%, var(--royal-maroon) 100%);
    background-size: cover;
    background-position: center;
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.hero-royal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(123, 30, 43, 0.75) 0%, rgba(31, 78, 121, 0.6) 100%);
    z-index: 2;
}

.hero-royal::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40L40 0z' fill='%23C9A227' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 2;
}

.hero-royal .container {
    position: relative;
    z-index: 1;
}

.hero-royal .hero-headline {
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-royal .hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--royal-gold);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-royal .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

/* Optional: add class "hero-royal has-bg-image" and set --hero-bg-url in inline style for Taj Mahal / palace image */
.hero-royal.has-bg-image {
    background-image: var(--hero-bg-url, none);
    background-size: cover;
    background-position: center;
}

/* Hero sliding background (admin-uploaded images) */
.hero-royal-with-slider {
    position: relative;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}

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

.hero-slide-video .hero-slide-video-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-royal-with-slider .container {
    position: relative;
    z-index: 3;
}

/* Hero search box */
.search-box-hero {
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.search-box-hero .form-control {
    border: none;
    font-size: 1rem;
}

.search-box-hero .form-control:focus {
    box-shadow: none;
    outline: none;
}

.search-box-hero .input-group-text {
    background: transparent;
    border: none;
    color: var(--royal-gold);
}

.search-box-hero .btn-hero-cta {
    background: var(--royal-gold);
    color: var(--royal-maroon);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    transition: all var(--transition);
}

.search-box-hero .btn-hero-cta:hover {
    background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-light) 100%);
    color: var(--royal-maroon);
    box-shadow: 0 6px 24px rgba(201, 162, 39, 0.5);
    transform: translateY(-1px);
}

/* ========== SECTION BACKGROUNDS ========== */
.section-cream {
    background: var(--royal-cream);
    position: relative;
}

.section-cream::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10c-5 0-10 5-10 10s5 10 10 10 10-5 10-10-5-10-10-10z' fill='%237B1E2B' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.section-white {
    background: var(--white);
    position: relative;
}

.section-white::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237B1E2B' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section-cream .container,
.section-white .container {
    position: relative;
    z-index: 1;
}

/* ========== CARDS — TOUR PACKAGE STYLE ========== */
.card {
    border: none;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

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

.destination-card .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition);
}

.destination-card:hover .card-img-top {
    transform: scale(1.05);
}

.tour-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

.tour-card:hover .card-img-top {
    transform: scale(1.05);
}

.guide-card .card-img-top {
    height: 160px;
    object-fit: cover;
    transition: transform var(--transition);
}

.guide-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    font-family: 'Playfair Display', serif;
    color: var(--royal-maroon);
    font-weight: 600;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--royal-gold);
}

/* Price in Emerald Green */
.tour-price,
.card .text-emerald {
    color: var(--emerald-green) !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Book Now button on cards */
.btn-royal-primary {
    background: var(--royal-gold);
    color: var(--royal-maroon);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.25rem;
    transition: all var(--transition);
}

.btn-royal-primary:hover {
    background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-light) 100%);
    color: var(--royal-maroon);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.45);
    transform: translateY(-1px);
}

.btn-outline-royal {
    color: var(--royal-maroon);
    border: 2px solid var(--royal-maroon);
    font-weight: 600;
    border-radius: 10px;
    background: transparent;
    transition: all var(--transition);
}

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

/* Badges */
.badge-royal {
    background: var(--royal-maroon);
    color: var(--white);
}

.badge-gold {
    background: var(--royal-gold);
    color: var(--royal-maroon);
}

/* ========== RATING STARS ========== */
.rating-stars {
    color: var(--royal-gold);
}

.rating-stars .bi-star-fill {
    color: var(--royal-gold);
}

/* ========== ICONS ========== */
.icon-gold {
    color: var(--royal-gold);
}

.icon-peacock {
    color: var(--peacock-blue);
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid rgba(123, 30, 43, 0.08);
    box-shadow: var(--card-shadow);
    transition: box-shadow var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--card-hover-shadow);
}

/* ========== BUTTONS (GLOBAL OVERRIDES) ========== */
.btn-primary {
    background: var(--royal-gold);
    color: var(--royal-maroon);
    border: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--royal-gold) 0%, var(--royal-gold-light) 100%);
    color: var(--royal-maroon);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.45);
}

.btn-outline-primary {
    color: var(--royal-maroon);
    border: 2px solid var(--royal-maroon);
    background: transparent;
    font-weight: 600;
    border-radius: 10px;
}

.btn-outline-primary:hover {
    background: var(--royal-maroon);
    color: var(--white);
    border-color: var(--royal-maroon);
}

/* ========== FOOTER ========== */
.footer-royal {
    background: var(--royal-maroon);
    color: var(--white);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
}

.footer-royal h5, .footer-royal h6 {
    font-family: 'Cinzel', 'Playfair Display', serif;
    color: var(--royal-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-royal a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-royal .footer-brand {
    color: var(--royal-gold);
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
}

.footer-royal .newsletter-form .form-control {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-royal .newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-royal .newsletter-form .btn {
    background: var(--royal-gold);
    color: var(--royal-maroon);
    font-weight: 600;
    border: none;
    border-radius: 8px;
}

.footer-royal .newsletter-form .btn:hover {
    background: var(--royal-gold-light);
    color: var(--royal-maroon);
}

.footer-royal hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-royal .footer-bottom {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-royal .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 0.5rem;
    transition: all var(--transition);
}

.footer-royal .social-link:hover {
    background: var(--royal-gold);
    color: var(--royal-maroon);
}

/* ========== FORMS ========== */
.form-control:focus, .form-select:focus {
    border-color: var(--royal-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.25);
}

/* ========== DASHBOARD / USER & GUIDE PANELS ========== */
.sidebar-panel {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    padding: 1rem 0;
    border: 1px solid rgba(123, 30, 43, 0.06);
}

.sidebar-panel .nav-link {
    color: var(--text-dark);
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all var(--transition);
}

.sidebar-panel .nav-link:hover {
    background: var(--royal-cream);
    color: var(--royal-maroon);
}

.sidebar-panel .nav-link.active {
    background: var(--royal-maroon);
    color: var(--white);
}

.stat-card {
    border-radius: 14px;
    padding: 1.25rem;
    color: var(--white);
    transition: transform var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.bg-primary { background: var(--royal-maroon) !important; }
.stat-card.bg-success { background: var(--emerald-green) !important; }
.stat-card.bg-warning { background: var(--royal-gold) !important; color: var(--royal-maroon) !important; }
.stat-card.bg-info { background: var(--peacock-blue) !important; }

/* ========== ALERTS ========== */
.alert-success { border-left: 4px solid var(--emerald-green); }
.alert-danger { border-left: 4px solid #dc3545; }
.alert-info { border-left: 4px solid var(--peacock-blue); }

/* ========== PAGINATION ========== */
.pagination .page-link {
    color: var(--royal-maroon);
}

.pagination .page-item.active .page-link {
    background: var(--royal-maroon);
    border-color: var(--royal-maroon);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.section-cream .card,
.section-white .card {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========== WISHLIST ========== */
.wishlist-btn {
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: var(--royal-maroon);
}

.wishlist-btn.active .bi-heart-fill {
    color: var(--royal-maroon);
}

/* ========== PLACEHOLDER IMAGE ========== */
.img-placeholder {
    background: linear-gradient(135deg, var(--royal-cream) 0%, rgba(201, 162, 39, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--royal-gold);
    font-size: 2rem;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--royal-maroon);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--royal-gold);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ========== MAIN CONTENT PADDING (for fixed nav) ========== */
main.main-with-nav {
    padding-top: 76px;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .hero-royal {
        min-height: 70vh;
        padding: 5rem 0 3rem;
    }

    .hero-royal .hero-headline {
        letter-spacing: 0.08em;
    }

    .hero-royal .hero-tagline {
        font-size: 1.15rem;
    }

    .search-box-hero .btn-hero-cta {
        width: 100%;
        margin-top: 0.5rem;
    }

    .navbar-royal .navbar-brand {
        font-size: 1.25rem;
    }

    .card:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
}
