/* ===================================
   Meteo Villasimius — Page Styles
   =================================== */

/* ── Base ── */
.re-meteo-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f4ec 0%, #f4efe6 42%, #f7f3eb 100%);
    color: #1f2421;
}

.re-meteo-page__container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

/* ── Hero ── */
.re-meteo-page__hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 60px;
    margin-bottom: 0;
}

.re-meteo-page__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left,  rgba(11, 59, 53, 0.09),  transparent 36%),
        radial-gradient(circle at right top,  rgba(185, 151, 91, 0.13), transparent 32%),
        radial-gradient(circle at bottom right, rgba(46, 115, 160, 0.06), transparent 40%);
}

.re-meteo-page__hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.re-meteo-page__eyebrow {
    margin: 0 0 14px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9c6d1d;
}

.re-meteo-page__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #16201d;
}

.re-meteo-page__intro {
    max-width: 600px;
    margin-top: 18px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.04rem;
    line-height: 1.78;
    color: rgba(31, 36, 33, 0.72);
}

/* ── Current Weather Card ── */
.re-meteo-page__current-card {
    flex-shrink: 0;
    min-width: 220px;
    max-width: 280px;
    padding: 28px 26px;
    border: 1px solid rgba(11, 59, 53, 0.1);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(255,252,246,0.98));
    box-shadow:
        0 20px 50px rgba(27, 39, 35, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.re-meteo-page__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.9rem;
    color: rgba(31, 36, 33, 0.55);
}

.re-meteo-page__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(196, 164, 106, 0.25);
    border-top-color: #c4a46a;
    border-radius: 50%;
    animation: re-meteo-spin 0.85s linear infinite;
}

@keyframes re-meteo-spin {
    to { transform: rotate(360deg); }
}

.re-meteo-page__current-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.re-meteo-page__current-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.re-meteo-page__current-emoji {
    font-size: 3.2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

.re-meteo-page__current-temp-wrap {
    display: flex;
    align-items: flex-start;
}

.re-meteo-page__current-temp {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    color: #16201d;
    letter-spacing: -0.03em;
}

.re-meteo-page__current-unit {
    margin-top: 6px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #9c6d1d;
}

.re-meteo-page__current-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.re-meteo-page__current-desc {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #16201d;
}

.re-meteo-page__current-place {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.88rem;
    color: rgba(31, 36, 33, 0.55);
}

.re-meteo-page__current-updated {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.78rem;
    color: rgba(31, 36, 33, 0.42);
}

.re-meteo-page__error {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.88rem;
    color: #b05c3a;
    text-align: center;
}

/* ── Section title shared ── */
.re-meteo-page__section-title {
    margin: 0 0 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 2.4vw, 2.4rem);
    line-height: 1.12;
    font-weight: 700;
    color: #16201d;
    letter-spacing: -0.015em;
}

/* ── Details Section ── */
.re-meteo-page__details-section {
    padding: 36px 0 16px;
}

.re-meteo-page__details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.re-meteo-page__detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 14px 18px;
    border: 1px solid rgba(11, 59, 53, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,252,246,0.96));
    box-shadow: 0 8px 24px rgba(27, 39, 35, 0.05);
    text-align: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.re-meteo-page__detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(27, 39, 35, 0.09);
}

.re-meteo-page__detail-icon {
    font-size: 1.7rem;
    line-height: 1;
}

.re-meteo-page__detail-label {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(31, 36, 33, 0.5);
}

.re-meteo-page__detail-value {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: #16201d;
}

.re-meteo-page__detail-value small {
    font-size: 0.8em;
    font-weight: 500;
    color: rgba(31, 36, 33, 0.55);
}

/* ── Forecast Section ── */
.re-meteo-page__forecast-section {
    padding: 48px 0;
}

.re-meteo-page__forecast-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.re-meteo-page__forecast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 20px 10px 18px;
    border: 1px solid rgba(11, 59, 53, 0.07);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,252,246,0.96));
    box-shadow: 0 8px 24px rgba(27, 39, 35, 0.05);
    text-align: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.re-meteo-page__forecast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(27, 39, 35, 0.1);
}

.re-meteo-page__forecast-card--today {
    border-color: rgba(196, 164, 106, 0.45);
    background: linear-gradient(160deg, rgba(255,252,240,0.98), rgba(255,248,230,0.99));
    box-shadow:
        0 10px 30px rgba(196, 164, 106, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.re-meteo-page__forecast-day {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9c6d1d;
}

.re-meteo-page__forecast-emoji {
    font-size: 1.9rem;
    line-height: 1;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.1));
}

.re-meteo-page__forecast-desc {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.73rem;
    line-height: 1.35;
    color: rgba(31, 36, 33, 0.62);
    text-align: center;
}

.re-meteo-page__forecast-temps {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.re-meteo-page__forecast-max {
    font-size: 1.15rem;
    font-weight: 700;
    color: #16201d;
}

.re-meteo-page__forecast-sep {
    font-size: 0.9rem;
    color: rgba(31, 36, 33, 0.35);
}

.re-meteo-page__forecast-min {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(31, 36, 33, 0.5);
}

.re-meteo-page__forecast-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.7rem;
    color: rgba(31, 36, 33, 0.48);
    line-height: 1.4;
}

/* ── Maps Section ── */
.re-meteo-page__maps-section {
    padding: 56px 0 60px;
    position: relative;
}

.re-meteo-page__maps-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(46, 115, 160, 0.04), transparent 60%);
}

.re-meteo-page__maps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.re-meteo-page__map-card {
    border: 1px solid rgba(11, 59, 53, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,252,246,0.97));
    box-shadow: 0 16px 40px rgba(27, 39, 35, 0.07);
    overflow: hidden;
}

.re-meteo-page__map-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(11, 59, 53, 0.07);
}

.re-meteo-page__map-icon-tag {
    font-size: 1.5rem;
    line-height: 1;
}

.re-meteo-page__map-title {
    display: block;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #16201d;
}

.re-meteo-page__map-subtitle {
    display: block;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.8rem;
    color: rgba(31, 36, 33, 0.5);
    margin-top: 2px;
}

/* Leaflet map */
.re-meteo-page__leaflet {
    height: 380px;
    width: 100%;
}

/* Override Leaflet popup to match theme */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(27, 39, 35, 0.14) !important;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 0.9rem !important;
    color: #16201d !important;
    border: 1px solid rgba(11, 59, 53, 0.1) !important;
}

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

.re-meteo-map-pin {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
    animation: re-meteo-bounce 2s ease-in-out infinite;
}

@keyframes re-meteo-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* Windy */
.re-meteo-page__windy-wrap {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.re-meteo-page__windy {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Info / SEO Section ── */
.re-meteo-page__info-section {
    padding: 60px 0 96px;
}

.re-meteo-page__info-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.re-meteo-page__info-article {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.re-meteo-page__info-article h2 {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
    line-height: 1.12;
    font-weight: 700;
    color: #16201d;
    letter-spacing: -0.015em;
}

.re-meteo-page__info-article h3 {
    margin: 36px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 1.7vw, 1.7rem);
    font-weight: 700;
    color: #16201d;
}

.re-meteo-page__info-article p {
    margin: 0 0 20px;
    font-size: 1.03rem;
    line-height: 1.82;
    color: rgba(31, 36, 33, 0.78);
}

.re-meteo-page__info-article p:last-child {
    margin-bottom: 0;
}

.re-meteo-page__info-article strong {
    font-weight: 600;
    color: #16201d;
}

/* Side */
.re-meteo-page__info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.re-meteo-page__season-card {
    padding: 28px 26px;
    border: 1px solid rgba(11, 59, 53, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,252,246,0.97));
    box-shadow: 0 12px 32px rgba(27, 39, 35, 0.06);
}

.re-meteo-page__season-title {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #16201d;
}

.re-meteo-page__seasons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.re-meteo-page__season {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(248, 244, 236, 0.7);
    border: 1px solid rgba(196, 164, 106, 0.18);
    transition: background 0.22s ease, border-color 0.22s ease;
}

.re-meteo-page__season:hover {
    background: rgba(255, 248, 230, 0.95);
    border-color: rgba(196, 164, 106, 0.35);
}

.re-meteo-page__season-emoji {
    font-size: 1.7rem;
    line-height: 1;
    flex-shrink: 0;
}

.re-meteo-page__season-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.re-meteo-page__season-info strong {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #16201d;
}

.re-meteo-page__season-info span {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.82rem;
    color: rgba(31, 36, 33, 0.58);
}

.re-meteo-page__cta-card {
    padding: 26px 26px 24px;
    border: 1px solid rgba(196, 164, 106, 0.3);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 248, 224, 0.95), rgba(255, 244, 210, 0.98));
    box-shadow: 0 10px 28px rgba(196, 164, 106, 0.15);
    text-align: center;
}

.re-meteo-page__cta-card p {
    margin: 0 0 18px;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #16201d;
    font-weight: 500;
}

.re-meteo-page__cta-btn {
    display: block;
    width: 100%;
    padding: 15px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #9c6d1d, #b8882a);
    color: #fff;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    box-shadow:
        0 6px 20px rgba(156, 109, 29, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.re-meteo-page__cta-btn:hover,
.re-meteo-page__cta-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px rgba(156, 109, 29, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    filter: brightness(1.08);
    outline: none;
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .re-meteo-page__details-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .re-meteo-page__forecast-strip {
        grid-template-columns: repeat(7, minmax(120px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(196,164,106,0.4) transparent;
    }

    .re-meteo-page__forecast-strip::-webkit-scrollbar {
        height: 4px;
    }

    .re-meteo-page__forecast-strip::-webkit-scrollbar-thumb {
        background: rgba(196,164,106,0.4);
        border-radius: 999px;
    }

    .re-meteo-page__info-grid {
        grid-template-columns: 1fr 340px;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .re-meteo-page__hero-inner {
        grid-template-columns: 1fr;
    }

    .re-meteo-page__current-card {
        max-width: 100%;
    }

    .re-meteo-page__current-inner {
        flex-direction: row;
        align-items: center;
    }

    .re-meteo-page__current-main {
        flex-shrink: 0;
    }

    .re-meteo-page__maps-grid {
        grid-template-columns: 1fr;
    }

    .re-meteo-page__info-grid {
        grid-template-columns: 1fr;
    }

    .re-meteo-page__info-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .re-meteo-page__season-card,
    .re-meteo-page__cta-card {
        flex: 1 1 280px;
    }
}

@media (max-width: 640px) {
    .re-meteo-page__container {
        width: min(1200px, calc(100% - 28px));
    }

    .re-meteo-page__hero {
        padding: 120px 0 48px;
    }

    .re-meteo-page__details-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .re-meteo-page__detail-card:nth-child(4),
    .re-meteo-page__detail-card:nth-child(5) {
        grid-column: span 1;
    }

    .re-meteo-page__detail-card:nth-child(4) {
        grid-column: 1 / 2;
    }

    .re-meteo-page__detail-card:nth-child(5) {
        grid-column: 2 / 3;
    }

    .re-meteo-page__forecast-strip {
        grid-template-columns: repeat(7, minmax(110px, 1fr));
    }

    .re-meteo-page__section-title {
        margin-bottom: 20px;
    }

    .re-meteo-page__leaflet,
    .re-meteo-page__windy-wrap {
        height: 300px;
    }

    .re-meteo-page__info-side {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .re-meteo-page__title {
        font-size: 2.2rem;
    }

    .re-meteo-page__details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .re-meteo-page__detail-card:nth-child(5) {
        grid-column: 1 / -1;
    }

    .re-meteo-page__current-inner {
        flex-direction: column;
    }
}
