/**
 * Lake Insights — Widget styles
 * Loaded after Elementor so hero and widget layout overrides apply.
 */

/* ——— Hero: single section with background image, title + overview cards inside ——— */
.lake-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
}

.lake-hero-no-image {
    background-color: var(--li-hero-bg, #F7FAFB);
}

/* Prevent Elementor container from collapsing the hero */
.elementor-widget-li-lake-hero .elementor-widget-container {
    overflow: visible;
    height: auto;
    min-height: 0;
}

/* Ensure hero background image displays at tablet (Elementor can hide container backgrounds at 1024px) */
@media (max-width: 1024px) {
    .lake-hero {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        min-height: 360px;
    }
}

/* ——— Stronger bottom gradient overlay for contrast ——— */
.lake-hero .li-lake-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 10%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

/* ——— Title block: inside hero, normal flow ——— */
.lake-hero .li-lake-header,
.lake-hero .li-lake-hero-header {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 40px 24px 24px;
    max-width: 100%;
    box-sizing: border-box;
}

.lake-hero .li-lake-hero-title {
    margin: 0 0 0.35em;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-family: "Manrope", Inter, sans-serif;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lake-hero .li-lake-hero-state {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ——— Content block: Overview + cards inside hero; breathing room below title ——— */
.lake-hero .li-lake-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 56px 24px 48px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .lake-hero,
    .lake-hero.li-lake-hero {
        min-height: 320px;
    }
    .lake-hero .li-lake-header,
    .lake-hero .li-lake-hero-header {
        padding: 32px 20px 20px;
    }
    .lake-hero .li-lake-hero-content {
        padding: 44px 16px 40px;
    }
}

/* ——— Section title above metric cards (Overview); breathing room above/below label ——— */
.lake-hero .li-lake-hero-content .lake-metrics-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 28px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.li-lake-hero-content .lake-metrics-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c86;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e6e9ee;
}

/* ——— Metric cards: grid inside hero; responsive ——— */
.li-metric-grid.li-lake-stats {
    margin-top: 20px;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* Hero: extra space above overview card row */
.lake-hero .li-lake-hero-content .li-metric-grid.li-lake-stats,
.lake-hero .li-lake-hero-stats.li-metric-grid.li-lake-stats {
    margin-top: 28px;
}

/* ——— Hero overview cards: stronger shadow for separation from background ——— */
.lake-hero .li-metric-card.metric-card,
.lake-hero .li-lake-hero-stat.li-metric-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.lake-hero .li-metric-card.metric-card:hover,
.lake-hero .li-lake-hero-stat.li-metric-card:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

@media (max-width: 1100px) {
    .li-metric-grid.li-lake-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .li-metric-grid.li-lake-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.li-metric-card.metric-card,
.li-lake-hero-stat.li-metric-card {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 28px 26px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e6e9ee;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 8px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.li-metric-card.metric-card:hover,
.li-lake-hero-stat.li-metric-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 14px 26px rgba(0, 0, 0, 0.08);
}

.li-metric-card .metric-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c86;
    margin-bottom: 8px;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.li-metric-card .metric-value {
    display: inline;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: #254a52;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.li-metric-card .metric-unit {
    display: inline;
    font-size: 16px;
    margin-left: 6px;
    color: #6b7c86;
}

.li-metric-card--no-unit .metric-value,
.li-metric-card .metric-value.metric-managed {
    font-size: 18px;
    font-weight: 600;
}

/* Legacy stat card styles (if used elsewhere) */
.li-lake-stats:not(.li-metric-grid) {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    flex-wrap: wrap;
}

.li-lake-hero-stat:not(.li-metric-card) {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 100px;
    max-width: 100%;
    padding: 1rem clamp(0.75rem, 2vw, 1.25rem);
    background: var(--li-hero-bg, #F7FAFB);
    border-radius: 12px;
}

.li-lake-hero-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--li-hero-text, #1B3F4A);
    line-height: 1.2;
}

.li-lake-hero-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--li-hero-muted, #64748B);
    margin-top: 0.35rem;
}

/* ——— Current Conditions (Lake Conditions widget) ——— */
/* Uses same card classes as Overview (.li-metric-card, .metric-label, .metric-value, .metric-unit) for identical layout, padding, text format. */
.lake-current-conditions {
    width: 100%;
    margin: 0 0 2rem;
    padding: 0;
    position: relative;
    z-index: 2;
    container-type: inline-size;
    container-name: conditions;
}

.lake-current-conditions .lake-metrics-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c86;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e6e9ee;
}

/* Current Conditions row layout (internal widget layout only; not Elementor-driven) */
.current-conditions,
.current-conditions-container,
.lake-current-conditions .conditions-grid {
    display: grid;
    grid-template-columns: 320px 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

/* Flatten primary wrapper so Lake Level and Weather occupy separate grid columns */
.lake-current-conditions .current-conditions-primary {
    display: contents;
}

/* Keep cards filling their assigned cells */
.condition-card,
.lake-current-conditions .condition-card-level,
.lake-current-conditions .condition-card-weather,
.lake-current-conditions .condition-card-hourly {
    width: 100%;
    height: 100%;
    min-width: 0;
    max-width: none;
}

.lake-current-conditions .current-conditions-hourly {
    grid-column: 3;
    min-width: 0;
}

.hourly-forecast-card {
    grid-column: 3;
    width: 100%;
}

.current-conditions-hourly .condition-card-hourly {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    padding: 56px 64px !important;
}

/* Level / Weather / Hourly placement in desktop grid */
.current-conditions-level,
.lake-current-conditions .current-conditions-primary > .condition-card-level {
    grid-column: 1;
}

.current-conditions-weather,
.lake-current-conditions .current-conditions-primary > .condition-card-weather {
    grid-column: 2;
}

.current-conditions-hourly,
.lake-current-conditions .current-conditions-hourly {
    grid-column: 3;
}

/* Tablet behavior (container width driven) */
@container conditions (max-width: 1199px) {
    .lake-current-conditions .conditions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lake-current-conditions .current-conditions-primary > .condition-card-level {
        grid-column: 1;
    }

    .lake-current-conditions .current-conditions-primary > .condition-card-weather {
        grid-column: 2;
    }

    .lake-current-conditions .current-conditions-hourly {
        grid-column: 1 / -1;
    }

    /* Weather card: smaller icon and temp so station/update meta has room */
    .lake-current-conditions .condition-card-weather .current-weather-icon.weather-icon,
    .lake-current-conditions .condition-card-weather .current-weather-icon.weather-icon img {
        width: 64px;
        height: 64px;
    }

    .lake-current-conditions .condition-card-weather .weather-temp .condition-value-weather,
    .lake-current-conditions .condition-card-weather .weather-temp {
        font-size: 44px;
        line-height: 1.1;
    }

}

/* Mobile behavior (container width driven) */
@container conditions (max-width: 640px) {
    .lake-current-conditions .conditions-grid {
        grid-template-columns: 1fr;
    }

    .lake-current-conditions .conditions-grid > div,
    .lake-current-conditions .current-conditions-primary > .condition-card-level,
    .lake-current-conditions .current-conditions-primary > .condition-card-weather,
    .lake-current-conditions .current-conditions-hourly {
        grid-column: 1;
    }

    /* Weather card: smaller icon and temp for narrow card */
    .lake-current-conditions .condition-card-weather .current-weather-icon.weather-icon,
    .lake-current-conditions .condition-card-weather .current-weather-icon.weather-icon img {
        width: 56px;
        height: 56px;
    }

    .lake-current-conditions .condition-card-weather .weather-temp .condition-value-weather,
    .lake-current-conditions .condition-card-weather .weather-temp {
        font-size: 40px;
        line-height: 1.1;
    }

}

/* Row of small metric cards (Wind, Barometric Pressure, etc.) — 5 columns so 4–5 cards fit */
.conditions-metrics-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .conditions-metrics-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .conditions-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Level card: fills flex cell and stretches to match Weather card height */
.current-conditions-primary .condition-card-level {
    margin-left: 0;
    margin-right: 0;
}

/* Level card: water background, overlay, professional card styling — stretches to match Weather card height */
.conditions-grid .condition-card-level,
.lake-level-card {
    max-width: none;
    padding: 22px 36px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0a2337;
    background-image: url('/wp-content/plugins/lake-insights/assets/images/water-ripples.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* In grid layout, cards fill their assigned tracks */
.current-conditions-primary > .condition-card-level.lake-level-card {
    width: 100%;
    max-width: none;
}

/* In grid layout, weather card fills its track */
.lake-current-conditions .condition-card-weather {
    width: 100%;
    max-width: none;
}

/* When in primary row, level card stretches and keeps content at top */
.current-conditions-primary .lake-level-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.conditions-grid .condition-card-level:not(.lake-level-card) {
    grid-column: 1 / -1;
}

/* Stronger overlay over water image for readability */
.lake-level-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(8, 32, 45, 0.70);
}

/* Blur so water becomes a subtle texture */
.lake-level-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0.5;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* Content above overlay */
/* Internal flex: level data left, sparkline right; does not change outer card size */
.lake-level-card .li-level-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.lake-level-card .li-level-data {
    flex: 1;
    min-width: 0;
}

.lake-level-card .li-level-chart {
    width: 180px;
    height: 60px;
    margin-left: 20px;
    flex-shrink: 0;
}

.lake-level-card .li-level-chart canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.lake-current-conditions .condition-card-level .metric-label,
.lake-current-conditions .condition-card-level .metric-value,
.lake-current-conditions .condition-card-level .metric-unit,
.lake-current-conditions .condition-card-level .li-condition-meta,
.lake-current-conditions .condition-card-level .li-condition-link {
    position: relative;
    z-index: 1;
}

/* Level card: label — premium dashboard */
.lake-current-conditions .condition-card-level .metric-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

/* Level card: value + unit on one line */
.lake-current-conditions .condition-card-level .condition-level-value-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 6px;
}

/* Level card: main value — white, prominent */
.lake-current-conditions .condition-card-level .metric-value.condition-value-level {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

@media (min-width: 641px) {
    .lake-current-conditions .condition-card-level .metric-value.condition-value-level {
        font-size: 48px;
    }
}

/* Level card: unit beside value — slightly muted white */
.lake-current-conditions .condition-card-level .condition-unit-level {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    flex-shrink: 0;
}

.lake-current-conditions .condition-card-level .li-condition-below-full {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

/* Level card: meta (trend, updated) — muted */
.lake-current-conditions .condition-card-level .li-condition-meta,
.lake-current-conditions .condition-card-level .lake-level-trend,
.lake-current-conditions .condition-card-level .li-condition-updated {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 4px;
}

/* Level card: View Level History button — light on dark */
.lake-current-conditions .condition-card-level .li-condition-link {
    margin-top: 16px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    text-decoration: none;
}


.lake-current-conditions .condition-card-level .li-condition-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* Conditions grid uses flex column; no grid columns. */

/* Other condition cards (weather, wind, water temp): keep existing meta styles */
.lake-current-conditions .li-metric-card:not(.condition-card-level) .li-condition-meta {
    font-size: 14px;
    color: #6b7a86;
    margin-top: 4px;
}

/* Wind card: speed and direction stacked vertically */
.lake-current-conditions .wind-value {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.lake-current-conditions .wind-direction {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Weather card: current weather section */
.lake-current-conditions .weather-main.current-weather {
    display: block;
}

.lake-current-conditions .weather-current-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

/* Full width so temp-meta can sit at card right edge */
.lake-current-conditions .weather-left {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Temp, icon, and station on one row; station/updated right-aligned to card */
.lake-current-conditions .weather-left {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 20px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Temp and condition stacked so condition is centered under the temp value */
.lake-current-conditions .weather-temp-with-condition {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lake-current-conditions .weather-temp {
    flex-shrink: 0;
}

.lake-current-conditions .weather-temp-station {
    font-size: 0.9em;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
    min-height: 1.2em;
    text-align: right;
}
.lake-current-conditions .weather-temp-station.is-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Third grid column fills remaining space; text aligns to row right edge */
.lake-current-conditions .weather-temp-meta {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

/* Desktop: keep right-edge alignment without oversized middle gap */
@container conditions (min-width: 1200px) {
    .lake-current-conditions .weather-left {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .lake-current-conditions .weather-temp-meta {
        width: auto;
    }
}

.lake-current-conditions .weather-temp-updated {
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.5);
}

/* Duplicate station/updated block: hidden when inline temp-meta is shown (same content) */
.lake-current-conditions .condition-card-weather .weather-meta {
    display: none;
}

.lake-current-conditions .weather-meta-label {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
}

.lake-current-conditions .weather-station {
    font-size: 13px;
    font-weight: 500;
}

.lake-current-conditions .weather-updated {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.55);
}

.lake-current-conditions .weather-temp {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: #254a52;
}

.lake-current-conditions .weather-temp .condition-value-weather {
    font-size: inherit;
    font-weight: inherit;
}

.lake-current-conditions .weather-condition {
    font-size: 14px;
    color: #6b7a86;
    margin-top: 2px;
}

.lake-current-conditions .weather-condition .condition-unit-weather {
    font-size: inherit;
    color: inherit;
    font-weight: 500;
}

.lake-current-conditions .current-weather-icon.weather-icon img {
    width: 84px;
    height: 84px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.lake-current-conditions .current-weather-icon.weather-icon {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

/* Divider between current weather and hourly forecast */
.lake-current-conditions .weather-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 12px 0;
}

/* Weather card: flex column; same height as Lake Level card (hourly moved to separate card) */
.lake-current-conditions .condition-card-weather {
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    height: 100%;
}

.lake-current-conditions .weather-top-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    min-height: 80px;
    margin-bottom: 16px;
}

.lake-current-conditions .weather-top-column {
    min-width: 0;
}

.lake-current-conditions .weather-top-column-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lake-current-conditions .weather-top-column-left .current-weather-icon.weather-icon,
.lake-current-conditions .weather-top-column-left .current-weather-icon.weather-icon img {
    width: 92px !important;
    height: 92px !important;
}

.lake-current-conditions .weather-top-column-left .weather-temp-with-condition {
    align-items: flex-start;
    text-align: left;
}

.lake-current-conditions .weather-top-column-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    gap: 6px;
}

/* Wind, Pressure, Visibility inside Weather card — mini cards, centered */
.lake-current-conditions .weather-card-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.lake-current-conditions .weather-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 80px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.lake-current-conditions .weather-metric-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c86;
    text-align: center;
}

.lake-current-conditions .weather-metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #254a52;
    text-align: center;
}

.lake-current-conditions .condition-pressure-trend {
    display: block;
    font-size: 13px;
    margin-top: 4px;
    color: #6b7c86;
}

.lake-current-conditions .condition-value-wind {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.lake-current-conditions .condition-value-wind-speed,
.lake-current-conditions .condition-value-wind-dir {
    display: block;
}

/* Hourly forecast card: fills remaining width, same height as neighbours; space below so next widget doesn't overlap */
.lake-current-conditions .condition-card-hourly {
    display: flex;
    flex-direction: column;
    padding: 56px 64px !important;
    overflow: hidden;
    height: 100%;
    margin-bottom: 0;
}

/* Force padding on Hourly Forecast card (widget + Elementor context) */
.elementor-widget-li-lake-condition .condition-card-hourly,
.elementor-widget-li-lake-condition .current-conditions-hourly .condition-card-hourly {
    padding: 56px 64px !important;
}

/* When hourly is on its own row (tablet), add margin so Lake Weather Forecast widget doesn't overlap */
@media (max-width: 1024px) {
    .lake-current-conditions .condition-card-hourly {
        margin-bottom: 24px;
    }
}

.hourly-forecast,
.lake-current-conditions .weather-hourly {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.hourly-forecast-item,
.lake-current-conditions .weather-hour {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    width: 100%;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .hourly-forecast,
    .lake-current-conditions .weather-hourly {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .hourly-forecast,
    .lake-current-conditions .weather-hourly {
        grid-template-columns: 1fr;
    }
}

.lake-current-conditions .hour-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7a86;
}

.lake-current-conditions .hour-icon {
    width: 40px;
    height: 40px;
}

.lake-current-conditions .hour-icon img {
    width: 40px;
    height: 40px;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.lake-current-conditions .hour-temp {
    font-size: 16px;
    font-weight: 600;
    color: #254a52;
}

.lake-current-conditions .li-condition-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #254a52;
    background: #f0f2f5;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    text-decoration: none;
}

.lake-current-conditions .li-condition-link:hover {
    background: #e6e9ee;
}

/* ——— Compact dashboard: visual density via padding and typography (no max-height or clipping) ——— */
.current-conditions .elementor-widget-container,
.current-conditions .card,
.current-conditions .lake-card,
.lake-current-conditions .elementor-widget-container,
.lake-current-conditions .li-metric-card.metric-card,
.lake-current-conditions .condition-card-level,
.lake-current-conditions .lake-level-card {
    padding: 20px !important;
}

.current-conditions h1,
.current-conditions .metric,
.current-conditions .lake-level,
.current-conditions .temperature,
.lake-current-conditions .metric-value.condition-value-level,
.lake-current-conditions .weather-temp .condition-value-weather,
.lake-current-conditions .weather-temp {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.current-conditions small,
.current-conditions .meta,
.current-conditions .label,
.lake-current-conditions .metric-label,
.lake-current-conditions .li-condition-meta,
.lake-current-conditions .lake-level-trend,
.lake-current-conditions .li-condition-updated,
.lake-current-conditions .weather-condition {
    font-size: 14px;
    margin-bottom: 4px;
}

.current-conditions .elementor-container,
.lake-current-conditions .conditions-grid {
    gap: 20px;
}

.current-conditions .elementor-column,
.lake-current-conditions .elementor-column {
    align-self: flex-start;
}

/* ——— Lake Forecast widget: 7 Day Forecast compact tiles (single row on desktop) ——— */
/* Match Current Conditions container padding (e-con-full vs e-con-boxed) */
.elementor-widget-li-lake-forecast .elementor-widget-container {
    padding: 20px !important;
}

.li-lake-forecast .lake-metrics-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c86;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e6e9ee;
}

.li-lake-forecast .li-forecast-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 16px;
    width: 100%;
    box-sizing: border-box;
}

.li-lake-forecast .li-forecast-tile {
    background: #ffffff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.li-lake-forecast .li-forecast-tile .li-day {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.li-lake-forecast .li-forecast-tile .li-temp {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.li-lake-forecast .li-forecast-tile .li-condition {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 12px;
    opacity: 0.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.li-lake-forecast .li-forecast-tile .li-wind {
    font-size: 14px;
    font-weight: 600;
    color: #1f3f4a;
    margin-top: auto;
    padding-top: 8px;
}

@media (max-width: 1024px) {
    .li-lake-forecast .li-forecast-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .li-lake-forecast .li-forecast-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Weather icon on forecast tiles (between day and temp) */
.li-weather-icon {
    width: 42px;
    height: 42px;
    margin: 6px auto;
    display: block;
}

/* ——— Sun & Moon widget (elementor-sun-moon): typography aligned with forecast cards, Outlook grid ——— */
.li-sunmoon-shadow-wrap {
    font-family: "Manrope", Inter, sans-serif;
}

/* Sun/Moon labels: match forecast card labels (.li-forecast-tile .li-day / .metric-label) */
.li-sunmoon-shadow-wrap .li-sm-label,
.li-sunmoon-shadow-wrap .li-sm-label-sub,
.li-sunmoon-shadow-wrap .li-astro-label {
    font-family: "Manrope", Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    color: #6b7c86;
}

/* Sun/Moon time values: match forecast card numeric styling (.li-temp / .metric-value) */
.li-sunmoon-shadow-wrap .li-sm-time,
.li-sunmoon-shadow-wrap .li-astro-time {
    font-family: "Manrope", Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    color: #254a52;
}

/* Moon phase text: match forecast card value styling */
.li-sunmoon-shadow-wrap .li-sm-moon-phase,
.li-sunmoon-shadow-wrap .li-astro-phase-name {
    font-family: "Manrope", Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #254a52;
}

/* Sun/Moon rows: LABEL then VALUE, aligned like cards */
.li-sunmoon-shadow-wrap .li-sm-times-sun .li-sm-line,
.li-sunmoon-shadow-wrap .li-astro-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.li-sunmoon-shadow-wrap .li-sm-label,
.li-sunmoon-shadow-wrap .li-astro-label {
    flex-shrink: 0;
}

.li-sunmoon-shadow-wrap .li-sm-time,
.li-sunmoon-shadow-wrap .li-astro-time {
    text-align: right;
}

/* Moon row: LABEL VALUE LABEL VALUE */
.li-sunmoon-shadow-wrap .li-sm-times-moon .li-sm-row {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    column-gap: 12px;
    align-items: baseline;
}

/* OUTLOOK container: responsive grid, cards stretch across full width */
.li-sunmoon-shadow-wrap .li-astro-outlook {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    width: 100%;
    overflow-x: visible;
    padding-bottom: 0;
}

.li-sunmoon-shadow-wrap .li-astro-card {
    width: auto;
    min-width: 0;
    flex: none;
    max-width: none;
}

