:root {
    --mdc-weather-primary: #920505;
    --mdc-weather-secondary: #4d4d4d;
    --mdc-weather-bg: transparent;
    --mdc-weather-accent: #f8be0d;
}

.mdc-weather-full-width {
    width: 100%;
    font-family: 'Afacad', sans-serif;
    color: var(--mdc-weather-secondary);
    margin-bottom: 40px;
}

/* Header: Temp range and Location */
.mdc-weather-header-alt {
    text-align: center;
    margin-bottom: 30px;
}

.mdc-weather-temp-range {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mdc-weather-primary);
    font-family: 'Arsenal', sans-serif;
}

.mdc-weather-location-alt {
    font-size: 1.25rem;
    color: var(--mdc-weather-secondary);
    font-weight: 400;
    margin-top: 4px;
}

/* Middle Section: Metrics and Large Icon */
.mdc-weather-middle-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 100px;
    margin-bottom: 40px;
}

.mdc-weather-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mdc-weather-metric-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}

.mdc-weather-metric-row svg {
    width: 20px;
    height: 20px;
    fill: var(--mdc-weather-secondary);
}

.mdc-weather-metric-label {
    color: var(--mdc-weather-secondary);
}

/* Daily Forecast List - Horizontal */
.mdc-weather-daily-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.mdc-weather-day-details {
    flex: 1 1 110px;
    max-width: 140px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mdc-weather-day-details:hover {
    border-color: var(--mdc-weather-accent);
    background: #fffcf0;
}

.mdc-weather-day-details[open] {
    background: #fcfcfc;
    border-color: #eee;
    max-width: 200px;
    /* Allow small growth when open */
    flex: 2 1 180px;
}

.mdc-weather-day-summary {
    list-style: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
}

.mdc-weather-day-summary::-webkit-details-marker {
    display: none;
}

.mdc-weather-day-toggle {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--mdc-weather-secondary);
    border-bottom: 2px solid var(--mdc-weather-secondary);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    margin: 10px auto 0;
}

.mdc-weather-day-details[open] .mdc-weather-day-toggle {
    transform: rotate(225deg);
    border-color: var(--mdc-weather-primary);
    margin-top: 15px;
}

/* Sub-grid for hourly details - more compact for column view */
.mdc-weather-hourly-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    margin-top: 5px;
}

.mdc-weather-hour-sub-item {
    text-align: center;
    font-size: 0.75rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #f5f5f5;
}

.mdc-weather-hour-sub-item:last-child {
    border-bottom: none;
}

/* Weather Maps Gallery */
.mdc-weather-map-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.mdc-weather-map-item {
    flex: 1 1 250px;
    max-width: 320px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid #eee;
}

.mdc-weather-map-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mdc-weather-map-title {
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f8f8f8;
    color: var(--mdc-weather-primary);
}

.mdc-weather-map-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Base Modal Styling (Dialog) */
.mdc-weather-modal {
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
}

.mdc-weather-modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.mdc-weather-modal-content {
    position: relative;
    padding: 20px;
    background: #fff;
}

.mdc-weather-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--mdc-weather-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    z-index: 10;
}

.mdc-weather-modal-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.mdc-weather-hour-sub-time {
    font-weight: 500;
    color: var(--mdc-weather-secondary);
}

.mdc-weather-hour-sub-icon .wi {
    font-size: 20px;
    margin: 5px 0;
}


.mdc-weather-icon-large-alt {
    flex: 0 0 auto;
}

.wi {
    color: var(--mdc-weather-secondary);
}

.mdc-weather-icon-large-alt .wi,
.mdc-weather-summary-icon {
    font-size: 80px !important;
    color: var(--mdc-weather-primary);
}

.mdc-weather-hour-icon .wi {
    font-size: 30px;
    color: var(--mdc-weather-primary);
}

/* Hourly Forecast */
.mdc-weather-hourly-section {
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.mdc-weather-hourly-section h2,
.mdc-weather-full-width h2,
.mdc-weather-full-width h3 {
    font-family: 'Arsenal', sans-serif;
    color: var(--mdc-weather-primary);
    font-style: italic;
    font-weight: 600;
}

.mdc-weather-hourly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    overflow-x: auto;
}

.mdc-weather-hour-item {
    text-align: center;
    padding: 10px;
}

.mdc-weather-hour-time {
    font-size: 0.85rem;
    color: var(--mdc-weather-secondary);
    margin-bottom: 10px;
}

.mdc-weather-hour-icon svg {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    fill: var(--mdc-weather-primary);
}

.mdc-weather-hour-temp {
    font-weight: 700;
}

/* Utility */
.mdc-weather-footer-alt {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #999;
    text-align: left;
}

@media (max-width: 600px) {
    .mdc-weather-middle-section {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .mdc-weather-icon-large-alt {
        align-self: center;
    }
}