/**
 * Cyprus Weather Map Styles
 */

:root {
    --cy-primary: #004a99;
    --cy-secondary: #00d2ff;
    --cy-bg-glass: rgba(255, 255, 255, 0.8);
    --cy-text: #333;
    --cy-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.cy-weather-map-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--cy-shadow);
    background: #f0f4f8;
    font-family: 'Inter', -apple-system, sans-serif;
}

#cyprus-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Sidebar Styling */
.cy-weather-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: calc(100% - 40px);
    background: var(--cy-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    z-index: 1000;
    box-shadow: var(--cy-shadow);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.cy-weather-sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.cy-weather-sidebar.hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

.cy-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
    padding: 5px;
}

.cy-close-btn:hover {
    color: var(--cy-primary);
}

.cy-weather-sidebar h3 {
    margin: 0 0 10px 0;
    color: var(--cy-primary);
    font-size: 1.4rem;
}

.sidebar-content .placeholder-text {
    color: #666;
    text-align: center;
    padding: 40px 0;
}

/* Weather Stats */
.weather-main-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.current-temp {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cy-primary);
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    display: block;
}

.detail-value {
    font-weight: 700;
    color: #333;
}

/* Forecast Table */
.forecast-list {
    margin-top: 20px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.forecast-time { font-size: 0.8rem; color: #555; }
.forecast-temp { font-weight: 700; color: var(--cy-primary); }

/* Custom Marker */
.cy-weather-marker {
    background: white;
    border: 2px solid var(--cy-primary);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s;
    color: #333;
}

/* Dynamic Marker Colors */
.temp-very-hot { background: #ff4d4d !important; color: white !important; border-color: #cc0000 !important; }
.temp-hot      { background: #ffa64d !important; color: white !important; border-color: #e67300 !important; }
.temp-warm     { background: #ffdb4d !important; color: #333 !important; border-color: #cca300 !important; }
.temp-mild     { background: #4dff88 !important; color: #333 !important; border-color: #00cc44 !important; }
.temp-cool     { background: #4ddbff !important; color: white !important; border-color: #00a3cc !important; }
.temp-cold     { background: #4d88ff !important; color: white !important; border-color: #0044cc !important; }

.cy-weather-marker:hover {
    transform: scale(1.2);
    z-index: 1001 !important;
}

/* Attribution */
.map-attribution {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 500;
    font-size: 10px;
    color: #666;
    background: rgba(255,255,255,0.7);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .cy-weather-sidebar {
        width: calc(100% - 40px);
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}
