/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

#map {
    width: 100%;
    height: 100%;
}

/* Custom Info Window - Light Theme */
.info-window {
    background: #ffffff;
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Noto Kufi Arabic', sans-serif;
    direction: rtl;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.info-window-header {
    background: linear-gradient(135deg, #8b0000 0%, #c41e3a 100%);
    padding: 1rem;
    border-bottom: 3px solid #ffd700;
}

.info-window-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.info-window-date {
    color: #ffd700;
    font-size: 0.8rem;
}

.info-window-body {
    padding: 1rem;
    color: #333333;
}

.info-window-section {
    margin-bottom: 0.75rem;
}

.info-window-section:last-child {
    margin-bottom: 0;
}

.info-window-label {
    color: #8b0000;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.info-window-text {
    color: #444444;
    font-size: 0.85rem;
    line-height: 1.6;
}

.info-window-parties {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.info-window-party {
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #333;
}

.info-window-party.winner {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.info-window-vs {
    color: #888;
    font-weight: 600;
}

.info-window-result {
    background: #d4edda;
    color: #155724;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.info-window-link {
    display: block;
    background: #8b0000;
    color: #ffffff;
    text-align: center;
    padding: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.info-window-link:hover {
    background: #c41e3a;
}

/* Leaflet Custom Popup Styles */
.leaflet-popup-content-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
}

.leaflet-popup-tip {
    background: #ffffff !important;
}

.leaflet-container {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
}

.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Attribution styling */
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #666 !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: #8b0000 !important;
}
