/* THADAM v3.0 - Light Theme Design System & Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;1,400&family=Noto+Sans+Tamil:wght@400;600;700&display=swap');

:root {
    /* Sacred Light Theme Color Palette */
    --bg-dark: #FAF8F5; /* Warm Creamy Ivory */
    --bg-card: #FFFFFF; /* Pure White */
    --bg-card-hover: #FFFDF9;
    --border-color: rgba(194, 94, 0, 0.16);
    --border-hover: rgba(194, 94, 0, 0.35);
    
    /* Accents */
    --primary: #C25E00; /* Deep Sacred Terracotta Saffron */
    --primary-grad: linear-gradient(135deg, #D97706 0%, #B91C1C 100%);
    --crimson: #991B1B; /* Rich Maroon */
    --gold: #B45309; /* Warm Amber Gold */
    --gold-grad: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    
    --text-main: #1F2937; /* Deep Charcoal for high contrast */
    --text-muted: #4B5563; /* Slate Gray */
    --text-dark: #6B7280; /* Light Muted Text */
    
    --visited-color: #059669; /* Emerald Green */
    --planned-color: #D97706; /* Amber Saffron */
    --not-visited-color: #9CA3AF;
    
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(194, 94, 0, 0.15);
    --shadow-premium: 0 10px 30px -5px rgba(194, 94, 0, 0.08), 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans Tamil', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.serif-font {
    font-family: 'Playfair Display', 'Noto Sans Tamil', serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header & Glass Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    padding: 4px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.logo-img {
    height: 80px;
    max-height: 80px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 5px rgba(194, 94, 0, 0.12));
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.footer-logo-img {
    height: 78px;
    max-height: 78px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(194, 94, 0, 0.15));
}

.mobile-top-bar {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 18px;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* --- Dropdown Navigation for THADAM+ and User Profile --- */
.nav-dropdown {
    position: relative;
}

.nav-arrow {
    font-size: 10px;
    margin-left: 3px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #ffffff;
    border: 1px solid rgba(194, 94, 0, 0.2);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(44, 24, 16, 0.14);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.dropdown-menu-right {
    left: auto;
    right: 0;
    transform: translateY(12px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.nav-dropdown:hover .dropdown-menu-right {
    transform: translateY(4px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--primary);
}

.dropdown-item:hover {
    background: rgba(194, 94, 0, 0.08);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* THADAM+ Navigation Button Styling */
.thadam-plus-link {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 25px;
    font-weight: 700 !important;
    font-size: 13px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
    transition: all 0.25s ease;
}

.thadam-plus-link:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
    transform: translateY(-1px);
}

.plus-tag {
    background: rgba(255, 255, 255, 0.3);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 2px;
}

/* User Profile Pill Button */
.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    white-space: nowrap;
    cursor: pointer;
}

.user-menu-btn:hover {
    border-color: var(--primary);
    background: rgba(194, 94, 0, 0.05);
}

.nav-btn {
    background: var(--primary-grad);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(194, 94, 0, 0.25);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 94, 0, 0.4);
}

.nav-btn-secondary {
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
    background: var(--bg-card);
}

.nav-btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(194, 94, 0, 0.08);
}

/* Language Switcher Badge */
.lang-switcher {
    display: inline-flex;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px;
    margin-left: 10px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Hero Section with Light Overlay */
.hero-section {
    position: relative;
    padding: 100px 0 70px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFDF8 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.12;
    background-size: cover;
    background-position: center;
    transition: background-image 1.5s ease-in-out;
}

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

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #1F2937 40%, #C25E00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto 35px auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: var(--primary-grad);
    color: white;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(194, 94, 0, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(194, 94, 0, 0.45);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(194, 94, 0, 0.12);
}

/* Form Controls */
.form-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(194, 94, 0, 0.12);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

/* Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-grad);
}

.stat-num {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Section Styling */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
}

.section-title {
    font-size: 30px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-premium);
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px -5px rgba(194, 94, 0, 0.15), 0 6px 18px rgba(0,0,0,0.06);
}

.card-img-wrap {
    height: 190px;
    overflow: hidden;
    position: relative;
    background: #F3F4F6;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.premium-card:hover .card-img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.card-action-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-action-link:hover {
    color: var(--gold);
}

/* Explore Split Layout */
.explore-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100vh - 75px);
    overflow: hidden;
}

.list-container {
    padding: 30px;
    overflow-y: auto;
    height: 100%;
}

.map-container-wrap {
    height: 100%;
    position: relative;
    border-left: 1px solid var(--border-color);
}

#map {
    width: 100%;
    height: 100%;
    background-color: #F3F4F6;
}

/* Filter Controls */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.search-input-wrap {
    flex-grow: 1;
    position: relative;
    min-width: 200px;
}

.search-input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-main);
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Team-BHP THADAM Stories Timeline */
.story-header-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-premium);
}

.story-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    background: var(--bg-dark);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 20px 0;
}

.story-meta-item {
    display: flex;
    flex-direction: column;
}

.story-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.story-meta-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.day-timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 55px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.day-number-badge {
    position: absolute;
    left: 15px;
    top: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* My Thadam Passport Completion Rings */
.completion-ring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.completion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-premium);
}

.completion-visual {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--bg-card) 78%, transparent 79% 100%),
        conic-gradient(var(--primary) calc(var(--pct) * 1%), #E5E7EB 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 14px;
}

/* AI Chat Styling */
.chat-container {
    max-width: 820px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    height: 620px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.chat-header {
    background: #FFFDF9;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-body {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-dark);
}

.chat-msg {
    max-width: 78%;
    padding: 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.chat-msg-user {
    background: var(--primary-grad);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(194, 94, 0, 0.2);
}

.chat-msg-ai {
    background: var(--bg-card);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-sources {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
}

/* Mobile Navigation & Bottom Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 11px;
    gap: 3px;
    flex: 1;
    font-weight: 500;
}

.mobile-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.mobile-toggle-btn {
    display: none;
    position: fixed;
    bottom: 82px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: var(--primary-grad);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 20px rgba(194, 94, 0, 0.4);
}

/* Detail Page Layouts & Widgets */
.temple-hero {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: #111;
}

.temple-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.temple-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
    color: white;
}

.temple-title {
    font-size: 38px;
    margin-bottom: 8px;
    color: #FFFFFF !important;
}

.temple-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.grid-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}

.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-premium);
}

.detail-section-title {
    font-size: 22px;
    margin-bottom: 18px;
    color: var(--primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.log-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.log-title {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.log-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.log-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.log-btn.active {
    background: var(--primary-grad);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(194, 94, 0, 0.3);
}

.planner-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.planner-controls {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-premium);
}

.stop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.stop-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stop-title {
    font-weight: 600;
    font-size: 14px;
}

/* Reviews List */
.review-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--primary);
}

.stars {
    color: var(--gold);
}

.review-comment {
    font-size: 14px;
    color: var(--text-main);
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.badge-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.badge-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.badge-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.badge-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.msg-banner {
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(194, 94, 0, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.msg-banner.success {
    background: rgba(5, 150, 105, 0.1);
    border-color: #059669;
    color: #059669;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: #FFFDF9;
    padding: 45px 0 90px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    header {
        padding: 4px 0;
    }
    
    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .logo-img {
        height: 48px;
        max-height: 48px;
        max-width: 220px;
    }
    
    .footer-logo-img {
        height: 56px;
        max-height: 56px;
        max-width: 250px;
    }

    .mobile-top-bar {
        display: flex;
        align-items: center;
    }

    .nav-menu { display: none; }
    .mobile-bottom-nav { display: flex; }
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 15px; }
    .cards-grid { grid-template-columns: 1fr; }
    .grid-2col { grid-template-columns: 1fr; }
    .planner-layout { grid-template-columns: 1fr; }
    
    .explore-layout { display: block; height: auto; }
    .list-container { padding: 15px; }
    .map-container-wrap { display: none; height: 70vh; }
    .explore-layout.map-active .list-container { display: none; }
    .explore-layout.map-active .map-container-wrap { display: block; }
    .mobile-toggle-btn { display: inline-flex; align-items: center; gap: 8px; }
}

/* Temple Detail Page Formatting & Readability */
.temple-subnav-wrap {
    position: sticky;
    top: 75px;
    z-index: 90;
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}

.temple-subnav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.temple-subnav::-webkit-scrollbar {
    display: none;
}

.temple-subnav-link {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.temple-subnav-link:hover, .temple-subnav-link.active {
    color: var(--primary);
    background: rgba(194, 94, 0, 0.08);
    border-color: rgba(194, 94, 0, 0.2);
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.quick-fact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.quick-fact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(194, 94, 0, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.quick-fact-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
}

.quick-fact-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    scroll-margin-top: 140px;
}

.detail-section-title {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.formatted-text-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
}

.bullet-item-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bullet-item-icon {
    color: var(--primary);
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 90px;
}

/* Custom Trishul (Trident) Sacred Icon */
.fa-trishul, .fa-trident {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L10.2 6.5V11H7C7 11 5.8 7 3.5 7C2.7 7 2 7.7 2 8.5C2 12 4.8 14.5 9 14.5H10.2V22H13.8V14.5H15C19.2 14.5 22 12 22 8.5C22 7.7 21.3 7 20.5 7C18.2 7 17 11 17 11H13.8V6.5L12 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L10.2 6.5V11H7C7 11 5.8 7 3.5 7C2.7 7 2 7.7 2 8.5C2 12 4.8 14.5 9 14.5H10.2V22H13.8V14.5H15C19.2 14.5 22 12 22 8.5C22 7.7 21.3 7 20.5 7C18.2 7 17 11 17 11H13.8V6.5L12 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
}


