/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.forecast_form {
    max-width: 700px;
    min-width: 450px;
    border-radius: 10px;
    background-color: aliceblue;
    margin: 10px 5px;
    padding: 20px;
}


.mobile_forecast_form {
    max-width: 375px;
    min-width: 375px;
    border-radius: 10px;
    background-color: aliceblue;
    margin: 10px 5px;
    padding: 10px;
}


.dual_forecast_form {
    max-width: 740px;
    min-width: 450px;
    border-radius: 10px;
    background-color: aliceblue;
    margin: 10px 5px;
    padding: 20px;
}

.footer_tag{
    margin-top: 30px;
    margin-left: 25px;
}

.weather_input {
    width: 500px;
    padding: 8px;
    border-radius: 8px;
}

.mobile_weather_input {
    width: 300px;
    padding: 8px;
    border-radius: 8px;
}

.text-left {
    padding-left: 50px;
    padding-bottom: 10px;
}

.weather_div {
    padding: 20px;
    min-width: 500px;
    max-width: 100%;
    border-radius: 8px;
}

.mobile_weather_div {
    padding: 10px;
    min-width: 400px;
    max-width: 400px;
    border-radius: 8px;
}

.mobile-map-container {
    position: relative;
    height: 80%;
    width: 80%;
    overflow: hidden;
}

.mobile-map {
    height: 100%;
    width: 100%;
}

.mobile-overlay-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 12px;
    z-index: 1000;
}

.result_div {
    padding: 20px;
    min-width: 400px;
    max-width: 95%;
    border-radius: 8px;
}

.dual_result_div {
    padding: 0px;
    min-width: 400px;
    max-width: 95%;
    border-radius: 8px;
}

.geo_formatted {
    margin-top: 10px;
}

.recent_locations {
    margin-top: 30px;
}

.text_only{
    margin-left: 30px;
}
.table_aliceblue{
    background-color: aliceblue;
}

.table_daily_container{
    width: 100%;
    overflow-x: auto;
    margin-left: 30px;
}

.mobile_daily_container{
    width: 100%;
    overflow-x: auto;
    margin-left: 5px;
}

.table_weekly_container{
    width: 100%;
    overflow-y: auto;
    margin-left: 30px;
    max-height: 500px;
}

.table_recent_container{
    width: 100%;
    overflow-y: auto;
    margin-left: 0;
    max-height: 200px;
}

.table_geo_container{
    width: 100%;
    overflow-y: auto;
    max-height: 500px;
}

.table_mobile_geo_container{
    margin: 0 5px;
    width: 370px;
    overflow-y: auto;
    max-height: 350px;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.table_daily{
    min-height: 150px;
    vertical-align: top;
    line-height: 15px;
    column-width: 100px;
    max-width: 500px;
    overflow-x: auto;
    border-collapse: collapse;
}

.mobile_daily{
    min-height: 150px;
    vertical-align: top;
    line-height: 15px;
    column-width: 100px;
    max-width: 375px;
    overflow-x: auto;
    border-collapse: collapse;
}

.summary_div {
    max-width: 700px;
    min-width: 450px;
    border-radius: 10px;
    background-color: aliceblue;
    margin: 10px 10px;
    padding: 20px;
}

.mobile_summary_div {
    max-width: 350px;
    min-width: 350px;
    border-radius: 10px;
    background-color: aliceblue;
    margin: 10px 10px;
    padding: 20px;
}

.dual_div {
    max-width: 700px;
    min-width: 450px;
    border-radius: 10px;
    background-color: aliceblue;
    margin: 10px 0;
    padding: 20px;
}

.summary_table {
    max-width: 600px;
    min-width: 550px;
    background-color: rgb(11, 94, 215);
    padding: 10px;
    color: white;
}

.forecast_btns_table {
    max-width: 300px;
    min-width: 300px;
    margin-top: 20px;
    background-color: white;
    padding: 10px;
    color: white;
}

.summary_table td {
    padding: 20px;
}

.play-btn {
    width: 80px;        /* ~¼ typical bootstrap width */
    padding-left: 0;
    padding-right: 0;
}

.m-shell { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: #fff; }
.m-home { max-width: 720px; margin: 0 auto; padding: 18px; }

.m-hero { padding: 8px 0 18px; }
.m-hero-image { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: -30px; }
.m-title { margin: -6px 0 8px; font-size: 34px; letter-spacing: -0.02em; }
.m-subtitle { margin: 0 0 14px; font-size: 16px; line-height: 1.45; opacity: 0.85; }
.m-note { margin: 10px 0 0; font-size: 13px; opacity: 0.7; }

.m-cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 0; }
.m-btn { display: block; text-align: center; padding: 12px 14px; border-radius: 14px; text-decoration: none; border: 1px solid #d0d7de; color: inherit; }
.m-btn-primary { border: none; color: #fff; background: #111; }

.m-section { margin-top: 22px; }
.m-h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }

.m-card { border: 1px solid #e6e6e6; border-radius: 18px; padding: 12px; margin: 12px 0; }
.m-shot { width: 100%; height: auto; border-radius: 14px; display: block; }
.m-card-text { margin: 10px 2px 12px; font-size: 24px; line-height: 1.4; opacity: 0.9; }

.m-list { padding-left: 18px; margin: 8px 0 0; }
.m-list li { margin: 8px 0; opacity: 0.9; }

.m-footer { margin: 24px 0 10px; display: flex; gap: 10px; justify-content: center; opacity: 0.75; }
.m-footer a { color: inherit; text-decoration: none; }

#map {
    position: absolute;
    inset: 0;
}

/* ===== Shared Overlay Card ===== */

.map-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Header overlay (status) */
.map-overlay.header {
    top: 140px;
    pointer-events: none;
    width: 35%;
}

/* Controls overlay */
.map-overlay.controls {
    bottom: 12px;
}

.overlay-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.overlay-subtitle {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}

/* ===== Controls ===== */

.controls-row + .controls-row {
    margin-top: 8px;
}

input[type="range"] {
    width: 100%;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .overlay-title {
        font-size: 13px;
    }
}

.map-overlay.controls {
    padding: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 14px;
}

.controls-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.play-btn {
    width: 76px;     /* ~quarter size feel */
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 12px;
}

#time-slider {
    margin: 6px 0 10px 0;
}

.controls-bottom {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.controls-bottom .btn-group .btn {
    padding: 8px 10px;
    font-weight: 700;
}

/* tighten on very small phones */
@media (max-width: 380px) {
    .play-btn { width: 64px; height: 38px; }
    .pointer-value { font-size: 16px; }
    .controls-bottom .btn-group .btn { padding: 7px 8px; }
}

.map-overlay.controls.hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* Full forecast only: preserve the shared weather/table styles on other pages. */
.weather_div.forecast-full {
    min-width: 0;
    width: 80vw;
    max-width: 1280px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: clamp(12px, 3vw, 32px);
}

.forecast-full-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

.forecast-full-eyebrow { margin: 0 0 4px; color: #526475; }
.forecast-full-header h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.forecast-full-layout { min-width: 0; }
.forecast-full-periods, .forecast-full-discussion { min-width: 0; }
.forecast-full h2 { font-size: 1.4rem; margin: 0 0 16px; }
.forecast-full h3 { font-size: 1.15rem; }

.forecast-full-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 16px; }
.forecast-full-card {
    flex: 0 0 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid #d7e1e9;
    border-radius: 12px;
    background: #f5f9fc;
    color: #203449;
    text-align: center;
    cursor: pointer;
}
.forecast-full-card-name { font-weight: 700; min-height: 3em; }
.forecast-full-temperature { font-size: 1.1rem; font-weight: 700; }
.forecast-full-high { color: #a52a20; }
.forecast-full-low { color: #17608a; }
.forecast-full-card[aria-pressed="true"] { border-color: #17608a; background: #e4f1fa; }
.forecast-full-card:focus-visible { outline: 3px solid #17608a; outline-offset: 2px; }
.forecast-full-detail, .forecast-full-discussion { border: 1px solid #d7e1e9; border-radius: 12px; padding: 14px; background: #fff; }
.forecast-full-detail + .forecast-full-detail { margin-top: 16px; }
.forecast-full-detail[hidden] { display: none; }
.forecast-full-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.forecast-full-metrics dd { margin: 0; }
.forecast-full-text { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }
.forecast-full-summary { background: #eaf4fc; border-left: 4px solid #17608a; padding: 12px; border-radius: 6px; }
.forecast-full-summary .forecast-full-text { font-size: 1.05rem; font-weight: 500; margin-bottom: 0; }
.forecast-full-long-range { margin-top: 24px; }
.forecast-full-error { padding: 16px; background: #fff0ef; border-radius: 8px; }
.forecast-radar #map { position: relative; inset: auto; width: 100%; height: 550px; }
.forecast-radar #controls { min-width: 0; }
.forecast-full-hourly { padding: 14px; border: 1px solid #d7e1e9; border-radius: 12px; background: #fff; }
.forecast-hourly-list { max-height: 65vh; overflow-y: auto; }
.forecast-hourly-list:focus-visible { outline: 2px solid #17608a; outline-offset: 2px; }
.forecast-hourly-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px 0; overflow-wrap: anywhere; }
.forecast-hourly-row + .forecast-hourly-row { border-top: 1px solid #d7e1e9; }
.forecast-hourly-row h3 { font-size: 1rem; }
.forecast-hourly-summary { display: block; margin-bottom: 6px; }
.forecast-hourly-weather { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.forecast-hourly-note { font-size: .9rem; color: #526475; }
@media (max-width: 900px) {
    .forecast-hourly-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .forecast-hourly-list { max-height: none; overflow-y: visible; }
}
.forecast-dual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.forecast-dual-side { min-width: 0; padding: 12px; border: 1px solid #d7e1e9; border-radius: 12px; background: #fff; }
.forecast-dual turbo-frame { display: block; min-width: 0; }
.forecast-dual .dual_forecast_form { min-width: 0; max-width: 700px; margin: 16px 0; padding: 12px; }
.forecast-dual .weather_input { width: 100%; min-width: 0; margin: 6px 0 10px; }
.forecast-full .forecast-recent-locations { max-height: 200px; overflow-y: auto; margin-bottom: 16px; }
.forecast-full .forecast-recent-locations button { margin: 4px; max-width: 100%; overflow-wrap: anywhere; }
.forecast-dual-candidates { padding-left: 20px; overflow-wrap: anywhere; }
.forecast-dual-candidates li { margin-bottom: 8px; }
@media (max-width: 900px) {
    .forecast-dual-grid { grid-template-columns: minmax(0, 1fr); }
}
.forecast-full .forecast-navigation { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 16px; }
.forecast-full > .blockquote-footer { padding-left: 0; }
.forecast-find .forecast_form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; min-width: 0; max-width: 700px; margin: 16px 0; padding: 12px; }
.forecast-find .forecast_form label { flex-basis: 100%; }
.forecast-find .weather_input { flex: 1; min-width: 0; width: 100%; }
.forecast-find .summary_div { min-width: 0; max-width: 100%; margin: 12px 0; padding: 12px; }
.forecast-find turbo-frame { display: block; min-width: 0; overflow-x: auto; }
.forecast-find .table_geo_container, .forecast-find .forecast_btns_table { max-width: 100%; overflow-x: auto; }
@media (max-width: 480px) {
    .forecast-find .weather_input { flex-basis: 100%; }
    .forecast-find .forecast_form input[type="submit"] { width: 100%; }
}

.forecast-full-header-utilities { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.forecast-full-brand { display: flex; align-items: center; gap: 8px; }
.forecast-full-brand u { text-decoration: none; }
.forecast-full-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; border-bottom: 1px solid #d7e1e9; }
.forecast-full-tabs button { padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #203449; }
.forecast-full-tabs button[aria-selected="true"] { border-bottom-color: #17608a; background: #f0f6fa; }
.forecast-full-tabs button:focus-visible { outline: 2px solid #17608a; outline-offset: 2px; }
.forecast-full [hidden] { display: none !important; }
.forecast-full-discussion { max-height: 65vh; overflow-y: auto; }
.forecast-full-alerts { padding: 14px; border: 1px solid #d7e1e9; border-radius: 12px; background: #fff; }
.forecast-full-alert { overflow-wrap: anywhere; }
.forecast-full-alert + .forecast-full-alert { margin-top: 20px; padding-top: 16px; border-top: 1px solid #d7e1e9; }
@media (max-width: 600px) {
    .weather_div.forecast-full { width: calc(100% - 16px); padding: 12px; }
    .forecast-full-discussion { max-height: none; overflow-y: visible; }
    .forecast-full-brand .fs-2 { font-size: 1.2rem !important; }
}

@media (max-width: 480px) {
    .forecast-full-metrics { grid-template-columns: minmax(0, 1fr); }
    .forecast-full-detail, .forecast-full-discussion { padding: 16px; }
}
