*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{font-family:"IBM Plex Sans Arabic",sans-serif;background:#f4f6f4;color:#172d35}button{font:inherit}.site-header{background:#fff;border-bottom:1px solid #e7eeeb}.header-inner,.page-shell,.footer-inner{width:min(1440px,calc(100% - 80px));margin:auto}.header-inner{height:82px;display:flex;align-items:center;justify-content:space-between}.brand,.footer-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#142e35}.brand-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#167b67;color:#fff;font-size:25px;line-height:1}.brand strong,.footer-brand strong{display:block;direction:ltr;font-family:Arial,sans-serif;letter-spacing:1.2px;font-size:15px}.brand em{color:#18856f;font-style:normal}.brand small,.footer-brand small{display:block;color:#81918f;font-size:11px;margin-top:4px}.header-tag,.map-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:#55716b}.header-tag span,.map-label span{width:7px;height:7px;background:#45b993;border-radius:50%;box-shadow:0 0 0 4px #e7f6ef}.page-shell{padding:48px 0 64px}.intro{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:35px}.eyebrow,.section-kicker{font-size:12px;font-weight:700;color:#17806b}.eyebrow{display:flex;align-items:center;gap:9px}.eyebrow span{width:25px;height:2px;background:#36a388}.intro h1{font-size:clamp(30px,3.2vw,46px);line-height:1.35;letter-spacing:-1px;margin:9px 0}.intro h1 span{color:#19846e}.intro p{margin:0;color:#71827f;font-size:14px;line-height:2}.intro-note{display:flex;align-items:center;gap:12px;padding:15px 20px;border-right:1px solid #dce7e2}.note-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e3f1eb;color:#16806b;font-size:25px}.intro-note strong,.intro-note small{display:block}.intro-note strong{font-size:13px}.intro-note small{font-size:11px;color:#8a9a96;margin-top:5px}.explorer{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;align-items:stretch}.locations-panel,.map-panel{background:#fff;border:1px solid #e6eeea;border-radius:16px;box-shadow:0 12px 35px rgba(28,64,52,.045);overflow:hidden}.locations-panel{padding:25px 22px;display:flex;flex-direction:column}.panel-heading,.map-heading{display:flex;justify-content:space-between;align-items:center}.panel-heading h2,.map-heading h2{font-size:19px;margin:4px 0 0}.count-badge{background:#e9f5ef;color:#147a64;border-radius:8px;padding:5px 10px;font-size:12px;font-weight:700}.panel-description{color:#91a09c;font-size:12px;margin:12px 0 22px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:right}th{color:#9aa9a5;font-size:11px;font-weight:500;padding:0 8px 12px;border-bottom:1px solid #edf1ef}td{padding:0;border-bottom:1px solid #edf1ef}.location-button{width:100%;border:0;background:transparent;display:flex;text-align:right;align-items:center;gap:10px;padding:16px 8px;cursor:pointer;color:#223a3d}.location-button:hover,.location-button:focus-visible,tr.selected .location-button{background:#f0f8f4;outline:none}.location-icon{flex:none;display:grid;place-items:center;width:35px;height:35px;background:#edf6f1;color:#16806b;border-radius:10px;font-size:18px}.location-name{font-weight:700;font-size:13px;white-space:nowrap}.location-sub{display:block;color:#9baba5;font-size:10px;font-weight:400;margin-top:3px}.coordinates{direction:ltr;white-space:nowrap;color:#8b9b97;font:10px Arial,sans-serif}.row-arrow{color:#19846e;font-size:18px;padding:0 8px}.panel-tip{display:flex;gap:10px;background:#f5f9f6;color:#82938c;border-radius:11px;padding:13px;margin-top:auto;font-size:11px;line-height:1.8}.panel-tip span{color:#39a888;font-size:18px}.panel-tip p{margin:0}.panel-tip strong{color:#527067}.map-panel{padding:20px}.map-heading{padding:0 3px 18px}.map-container{height:510px;position:relative;border-radius:11px;overflow:hidden;background:#dce8df}#map{width:100%;height:100%;z-index:0}.map-hint{position:absolute;z-index:400;bottom:17px;right:17px;background:#fff;padding:9px 13px;border-radius:9px;box-shadow:0 4px 18px #263d3030;font-size:11px;color:#506762;pointer-events:none}.map-hint span{color:#15846d;font-size:17px;vertical-align:middle;margin-left:5px}.site-footer{background:#10292e;color:#fff}.footer-inner{min-height:110px;display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-brand{color:#fff}.footer-brand .brand-icon{background:#244b47;width:38px;height:38px;font-size:21px}.footer-brand strong{font-size:12px}.footer-brand small{color:#91aaa5}.footer-copy{font-size:11px;color:#a1b3ae}.footer-copy span{padding:0 8px;color:#4f7770}.footer-copy a{color:#d5e7de;text-decoration:none}.footer-copy a:hover{text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:850px){.header-inner,.page-shell,.footer-inner{width:calc(100% - 36px)}.intro-note{display:none}.explorer{grid-template-columns:1fr}.locations-panel{min-height:0}.panel-tip{margin-top:20px}.map-container{height:450px}.page-shell{padding:35px 0 45px}}@media(max-width:500px){.header-inner{height:70px}.header-tag{font-size:10px}.brand strong{font-size:12px}.brand-icon{width:38px;height:38px}.intro h1{font-size:30px}.intro p{font-size:13px}.locations-panel{padding:20px 15px}.map-panel{padding:15px}.map-container{height:380px}.map-label{font-size:10px}.footer-inner{padding:24px 0;align-items:flex-start;flex-direction:column}.stadium-popup{min-width:0!important}.leaflet-popup-content{min-width:200px!important}}
        .leaflet-popup-content-wrapper {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
        }

        .leaflet-popup-content {
            font-size: 14px;
            text-align: center;
            line-height: 1.6;
            padding: 5px;
            min-width: 220px;
        }
        
        .popup-title {
            font-weight: bold;
            color: #2c3e50;
            font-size: 15px;
            border-bottom: 2px solid #3498db;
            padding-bottom: 5px;
            margin-bottom: 8px;
            display: flex;
            align-items: center; 
            justify-content: center;
            gap: 8px;
        }

        .popup-time {
            color: #27ae60;
            font-size: 18px;
            font-weight: bold;
            margin-top: 5px;
            background: #ebf5fb;
            padding: 6px 10px;
            border-radius: 6px;
            display: inline-block;
            border: 1px dashed #3498db;
        }

        .popup-coords {
            font-size: 11px;
            color: #7f8c8d;
            margin-top: 8px;
            direction: ltr;
        }
		
        .stadium-tooltip {
            background: rgba(0, 0, 0, 0);
            color: white;
            font-weight: bold;
            padding: 5px 10px;
            border-radius: 5px;
            border: 2px solid #ffd700;
            font-size: 14px;
        }

        .stadium-popup {
            min-width: 350px;
            padding: 10px;
        }

        .stadium-popup .popup-title {
            font-size: 18px;
            font-weight: bold;
            color: #2c3e50;
            border-bottom: 2px solid #3498db;
            padding-bottom: 8px;
            margin-bottom: 8px;
        }

        .weather-section {
            margin-top: 10px;
            padding: 10px;
            background: #f0f8ff;
            border-radius: 8px;
            border-right: 4px solid #3498db;
        }

        .weather-title {
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .weather-info div {
            margin: 3px 0;
            color: #34495e;
        }

        .prayer-section {
            margin-top: 10px;
            padding: 10px;
            background: #f5f0ff;
            border-radius: 8px;
            border-right: 4px solid #8e44ad;
        }

        .prayer-title {
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 16px;
        }

        .prayer-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5px;
            text-align: center;
        }

        .prayer-item {
            background: white;
            padding: 5px;
            border-radius: 5px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .prayer-item .prayer-name {
            font-size: 11px;
            color: #7f8c8d;
            font-weight: bold;
        }

        .prayer-item .prayer-time {
            font-size: 13px;
            color: #2c3e50;
            font-weight: bold;
            direction: ltr;
        }

        .prayer-item.active {
            background: #8e44ad;
            color: white;
        }

        .prayer-item.active .prayer-name {
            color: #f0e6ff;
        }

        .prayer-item.active .prayer-time {
            color: white;
        }

        .popup-footer {
            margin-top: 10px;
            font-size: 12px;
            color: #7f8c8d;
            font-style: italic;
            border-top: 1px solid #ecf0f1;
            padding-top: 5px;
        }

        .dst-badge {
            display: inline-block;
            background: #f39c12;
            color: white;
            padding: 2px 10px;
            border-radius: 12px;
            font-size: 12px;
            margin-top: 5px;
        }

        .weather-temp {
            font-size: 36px;
            font-weight: bold;
           /* color: #e9331e;*/
        }

        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 10px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .countdown-timer {
            margin-top: 8px;
            font-size: 14px;
            color: #8e44ad;
            font-weight: bold;
        }

        .local-time-display {
            font-size: 12px;
            color: #7f8c8d;
            margin-bottom: 5px;
        }

/* Keep the locations list and map popup within their available space. */
@media (min-width: 851px) {
    .explorer { grid-template-columns: minmax(380px, 32%) minmax(0, 1fr); }
}
.locations-panel { min-width: 0; }
.table-wrap { width: 100%; max-height: 380px; overflow: auto; }
.location-button { min-height: 70px; }
.leaflet-popup-content { width: min(310px, calc(100vw - 100px)) !important; min-width: 0; margin: 14px; }
.stadium-popup { width: 100%; min-width: 0; max-height: min(65vh, 520px); overflow-y: auto; padding: 2px; }
.stadium-popup .popup-title { flex-wrap: wrap; }
@media (max-width: 500px) {
    .table-wrap { max-height: 260px; }
    .leaflet-popup-content { min-width: 0 !important; }
}

/* The visit directory has room for four columns while the map remains visible. */
@media (min-width: 851px) {
    .explorer { grid-template-columns: minmax(490px, 43%) minmax(0, 1fr); }
}
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 13px; margin-bottom: 20px; border: 1px solid #e1ebe6; border-radius: 10px; background: #f8faf8; color: #18856f; font-size: 22px; }
.search-box:focus-within { border-color: #45a78d; box-shadow: 0 0 0 3px #16806b1c; }
.search-box input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: #172d35; font: inherit; font-size: 12px; }
.search-box input::placeholder { color: #9aa9a5; }
.table-wrap table { min-width: 450px; }
.table-wrap th { padding: 0 8px 12px; white-space: nowrap; }
.table-wrap td { padding: 0 8px; }
.table-wrap .location-button { padding: 14px 0; min-height: 62px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.number-cell { color: #16806b; font-size: 12px; font-weight: 700; }
.visit-cell { color: #8b9b97; font-size: 12px; white-space: nowrap; }
.video-link { color: #b73535; text-decoration: none; font-weight: 600; }
.video-link:hover { text-decoration: underline; }
.no-results { margin: 0; padding: 25px 10px; text-align: center; color: #81918f; font-size: 12px; }
@media (max-width: 500px) { .table-wrap table { min-width: 450px; } }
