* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom thin minimalist scrollbar for all elements */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.1);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.controls {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filters select,
.filters input {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.filters select:focus,
.filters input:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* Search dropdown styles */
.search-container {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.search-dropdown-item {
    padding: 12px 18px;
    margin: 6px 8px;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.search-dropdown-item:last-child {
    border-bottom: none;
    margin-bottom: 8px;
}

.search-dropdown-item:first-child {
    margin-top: 8px;
}

.search-dropdown-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.search-dropdown-details {
    font-size: 12px;
    color: #666;
}

.search-dropdown-religion {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.countdown-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.main-container {
    display: flex;
    height: calc(100vh - 200px);
    margin: 20px;
    gap: 20px;
}

#map {
    flex: none;
    width: 50%;
    height: 100%;
    border-radius: 15px;
    border: 3px solid #ddd;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.site-info {
    margin-bottom: 20px;
}

.site-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.site-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.detail-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.detail-value {
    color: #666;
}

.best-time {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 15px 0;
}

.countdown-timer {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(6,16,36,0.9));
    backdrop-filter: blur(10px);
    margin: 5% auto;
    width: 60%;
    max-width: 600px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: modalSlideIn 0.3s ease;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #e6eef8;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e6eef8;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.countdown-list {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}

.countdown-item-header {
    display: flex;
    align-items: stretch;
    gap: 15px;
    min-height: 100px;
}

.countdown-item-content {
    flex: 1;
}

.countdown-item-thumbnail {
    flex-shrink: 0;
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    order: -1;
}

.countdown-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.countdown-item h4 {
    color: #e6eef8;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.countdown-item .location {
    color: #9aa8c3;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.countdown-display {
    background: linear-gradient(90deg, rgba(255,209,102,0.8), rgba(255,180,162,0.8));
    color: #0f172a;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.countdown-display-structured {
    margin-top: 15px;
}

.countdown-structured {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 8px;
    min-width: 45px;
    text-align: center;
}

.countdown-unit .unit {
    background: rgba(255, 255, 255, 0.1);
    color: #e6eef8;
    font-weight: 700;
    font-size: 14px;
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.countdown-unit .label {
    font-size: 10px;
    color: #9aa8c3;
    font-weight: 600;
    text-transform: uppercase;
}

.rare-indicator {
    background: linear-gradient(90deg, rgba(255,107,53,0.8), rgba(247,147,30,0.8));
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 8px;
    display: inline-block;
}

.religion-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Custom marker styles */
.custom-marker {
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
}

.custom-marker div {
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.marker-hindu { background-color: #ff6b35; }
.marker-buddhist { background-color: #ffd700; }
.marker-jain { background-color: #00ff00; }
.marker-sikh { background-color: #ff8c00; }
.marker-christian { background-color: #0066cc; }
.marker-islamic { background-color: #00aa00; }
.marker-bahai { background-color: #9966ff; }
.marker-other { background-color: #9966cc; }

/* Responsive design */
@media (max-width: 768px) {
    .main-container {
        height: calc(100vh - 140px);
    }
    
    #map {
        width: 100%;
        height: 100%;
    }
    
    .filters {
        justify-content: center;
    }
    
    .modal-content, .site-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .site-modal-body {
        max-height: 75vh;
    }
}

@media (max-width: 480px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters select,
    .filters input,
    .countdown-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Photo gallery styles */
.photo-gallery {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.photo-main {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-main:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 10px;
    font-size: 0.9em;
}

.photo-credit {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 2px;
}

.photo-thumbnails {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #181f2f;
}

.photo-thumb {
    width: 60px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.photo-thumb:hover,
.photo-thumb.active {
    opacity: 1;
    border-color: #667eea;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Festival rarity indicators */
.festival-rarity {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 8px;
}

.rarity-annual {
    background: #e3f2fd;
    color: #1976d2;
}

.rarity-biannual {
    background: #f3e5f5;
    color: #7b1fa2;
}

.rarity-every_6_years {
    background: #fff3e0;
    color: #f57c00;
}

.rarity-every_12_years {
    background: #ffebee;
    color: #c62828;
}

.rarity-every_144_years {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
    }
}

.special-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 8px;
    margin-top: 5px;
    font-size: 0.85em;
    color: #ffe9a5;
}

.popup-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Enhanced countdown styles */
.countdown-item.rare-event {
    background: linear-gradient(135deg, #ffd166, #ffb4a2, #f7931e);
    border: 2px solid rgba(255, 209, 102, 0.4);
    color: #0f172a;
}

.countdown-item.rare-event .countdown-display {
    background: linear-gradient(135deg, #2D2419, #1F1810);
    color: #A0826D;
    position: relative;
    overflow: hidden;
}

/* Specific text styling for rare events */
.countdown-item.rare-event h4 {
    color: #5f4600 !important;
    font-weight: 600;
}

.countdown-item.rare-event .location {
    color: #83533d !important;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.countdown-item.rare-event p {
    color: #70351e !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.countdown-item.rare-event .special-note {
    background: rgb(255, 223, 164) !important;
    color: #2D1810 !important;
    border: 1px solid rgb(94, 62, 36);
}

/* Specific styling for every___years rarity indicators within rare events */
.countdown-item.rare-event .rarity-every_6_years {
    background: #86502b !important;
    color: #ffffff !important;
    font-weight: bold;
    animation: rare-glow 2s ease-in-out infinite alternate;
}

.countdown-item.rare-event .rarity-every_12_years {
    background: #86502b !important;
    color: #ffffff !important;
    font-weight: bold;
    animation: rare-glow 2s ease-in-out infinite alternate;

}

.countdown-item.rare-event .rarity-every_144_years {
    background: #86502b !important;
    color: #ffffff !important;
    font-weight: bold;
    animation: rare-glow 2s ease-in-out infinite alternate;
}

@keyframes rare-glow {
    from {
        box-shadow: 0 0 8px rgba(255, 252, 78, 0.6);
    }
    to {
        box-shadow: 0 0 25px rgba(255, 134, 20, 0.9);
    }
}

/* Enhanced countdown clock styling for rare events */
.countdown-item.rare-event .countdown-unit {
    background: rgba(95, 79, 57, 0.9) !important;
    border: 1px solid rgba(160, 130, 109, 0.5);
}

.countdown-item.rare-event .countdown-unit .unit {
    background: rgba(85, 68, 48, 0.9) !important;
    color: #ffcc80 !important;
    font-weight: 800;
    border: 1px solid rgba(255, 204, 128, 0.3);
}

.countdown-item.rare-event .countdown-unit .label {
    color: #d4af94 !important;
    font-weight: 700;
}

.countdown-item.rare-event .countdown-display::before {
    content: '⭐';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.2em;
    color: #5f4600;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Photo modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.photo-modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.photo-modal-close:hover {
    color: #ff6b35;
}

.photo-modal-caption {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.1em;
}

/* Responsive photo gallery */
@media (max-width: 768px) {
    .photo-main {
        height: 200px;
    }
    
    .photo-thumbnails {
        flex-wrap: wrap;
    }
    
    .photo-thumb {
        width: 50px;
        height: 35px;
    }
    
    .photo-modal-content {
        width: 95%;
        max-height: 70vh;
    }
    
    .photo-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Leaflet popup custom styles */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-content {
    text-align: center;
    padding: 10px;
}

.popup-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.popup-religion {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.popup-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

/* Icon circle styles */
.icon-circle {
    background-color: white !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2) !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.icon-circle img {
    border-radius: 50% !important;
    object-fit: contain !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.icon-circle span {
    line-height: 1 !important;
    text-align: center !important;
    display: block !important;
}

/* Site Details Modal */
.site-modal {
    z-index: 2000;
}

.site-modal-content {
    background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(6,16,36,0.9));
    backdrop-filter: blur(10px);
    margin: 5% auto;
    width: 60%;
    max-width: 600px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: modalSlideIn 0.3s ease;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #e6eef8;
}

.site-modal-body {
    padding: 20px;
    overflow-y: auto;
    line-height: 1.6;
    flex: 1;
}

.site-info {
    margin-bottom: 20px;
}

.site-title {
    font-size: 1.8em;
    color: #e6eef8;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.festival-name-gradient {
    background: linear-gradient(90deg, #fff 0%, #ffd166 30%, #ffb4a2 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.3;
}

.festival-location {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
    display: inline-block;
}

.site-details {
    margin: 20px 0;
}

.detail-item {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.detail-label {
    font-weight: bold;
    color: #ffd166;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    color: #e6eef8;
    line-height: 1.6;
}

.best-time {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.best-time h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.countdown-timer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6eef8;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.countdown-timer h4 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #e6eef8;
}

/* Side-by-side layout for festivals and best time */
.festivals-timing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}

.festivals-timing-container .best-time,
.festivals-timing-container .countdown-timer {
    margin: 0;
}

/* Compact detail items */
.detail-item.compact {
    padding: 10px 12px;
    margin: 8px 0;
}

.detail-item.compact .detail-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.detail-item.compact .detail-value {
    line-height: 1.4;
}

/* Side-by-side layout for location and religion */
.location-religion-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0;
}

.location-religion-container .detail-item {
    margin: 0;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .festivals-timing-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Transport info boxes */
.transport-box {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    margin: 4px 8px 4px 0;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Narrow festivals container */
.festivals-narrow {
    width: 100%;
    margin: 15px 0;
}

/* State hover label styles */
.state-label {
    pointer-events: none;
    z-index: 1000;
}

.state-name-text {
    color: white;
    font-family: 'Gotham', sans-serif;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 7px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.festival-rarity {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 10px;
}

.special-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 5px;
    margin-top: 8px;
    font-style: italic;
}

.photo-gallery {
    margin: 20px 0;
}

.photo-main {
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    font-size: 0.9em;
}

.photo-credit {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 5px;
}

.photo-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.photo-thumb {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.photo-thumb.active {
    border-color: #667eea;
}

.photo-thumb:hover {
    transform: scale(1.05);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Controls Islands */
.hero-controls {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.control-island {
    background: transparent;
    border-radius: 15px;
    padding: 15px 0;
    transition: all 0.3s ease;
}



.unified-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 600px;
    max-width: 600px;
}

/* Individual width controls for each element */
.search-bar-width {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    flex: none !important;
}

.religion-filter-width {
    width: 170px !important;
    min-width: 160px !important;
}

.state-filter-width {
    width: 160px !important;
    min-width: 160px !important;
}

/* Default search container */
.unified-controls .search-container {
    flex: 1;
    min-width: 220px;
    max-width: 240px;
}

.control-island input[type="text"] {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-island input[type="text"]:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.control-island input[type="text"] {
    width: 100%;
}

.control-island select {
    min-width: 120px;
}

.control-island input[type="text"]:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Custom dropdown styling to match search dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    padding: 10px 35px 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    width: 150px;
    text-align: left;
    position: relative;
}

.dropdown-button::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #667eea;
    transition: transform 0.3s ease;
}

.dropdown-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.dropdown-button:focus {
    background: rgba(255, 255, 255, 1);
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.dropdown-item {
    padding: 12px 18px;
    margin: 6px 8px;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-bottom: none;
    color: #333;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.dropdown-item:last-child {
    margin-bottom: 8px;
}

.dropdown-item:first-child {
    margin-top: 8px;
}

.dropdown-item[data-value="all"] {
    font-weight: 600;
    color: #333;
}

/* Map and Details Side-by-Side Layout */
.map-details-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.site-details-card {
    width: 350px;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
}

.site-details-card.show {
    display: block;
}

.card-header {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.card-content {
    padding: 20px;
    max-height: 550px;
    overflow-y: auto;
}

/* Responsive design for control islands */
@media (max-width: 768px) {
    .hero-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-island {
        width: 100%;
        max-width: 400px;
    }
    
    .filter-island {
        flex-direction: column;
        gap: 10px;
    }
    
    .control-island select {
        width: 100%;
    }
    
    .map-details-container {
        flex-direction: column;
    }
    
    .site-details-card {
        width: 100%;
    }
}

/* Festival Photo Styling */
.festival-photo-container {
    margin-top: 1rem;
}

.festival-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.festival-photo:hover {
    transform: scale(1.02);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Countdown Overlay Sidebar */
.countdown-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 20px;
    color: white;
    z-index: 1000;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.countdown-overlay .actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.countdown-overlay .actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.countdown-overlay .actions .btn.festival-name-gradient {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    /* White text when not hovered */
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    /* Disable gradient text initially */
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.countdown-overlay .actions .btn.festival-name-gradient:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 209, 102, 0.3);
    /* Apply Brahmotsavam gradient on hover */
    background: linear-gradient(90deg, #fff 0%, #ffd166 30%, #ffb4a2 60%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}

/* Title and Subtitle Styling */
.title-overlay h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: white;
    font-weight: 700;
}

.title-overlay .title {
    font-size: 5rem;
    line-height: 1.2;
}

.title-overlay .lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}