
/* ============================================================
   Coverage.aspx
   ------------------------------------------------------------
   Layout note: the two "maps" are .svg files, but they are NOT
   vector art -- each is a base64 JPEG (AZ 450x499, NV 500x702)
   with invisible clickable polygons on top. So the artwork must
   never be scaled UP, or the county labels go soft. Everything
   below uses max-width (not width) on the <object> for that
   reason: native size or smaller, never larger.
   ============================================================ */

/* Page Intro
   ---------- */

.spanSubPageHeader {
    font-size: 14px;
    text-align: center;
    display: block;
    padding-bottom: 5px;
}

.spanSectHeader {
    font-size: large;
    font-weight: bold;
    display: block;
    margin: 10px 0px 10px 0px;
}

.styleDivProduct {
    font-size: 14px;
    margin: 0px 0px 7px 5px;
}

.styleProductText {
    font-size: 12px;
}

/* Map + Product Rows
   ------------------
   One .coverageRow per state: map on the left, product list on
   the right. Replaces the old 2x2 <table> so the stacking order
   can be controlled in the media query below.
   NOTE: .styleColLeft (width:452px) is gone -- that hard width
   was what forced the page wider than a phone viewport. */

#divStateCountyMaps {
    max-width: 900px;
    margin: 0px auto 0px auto;
}

.coverageRow {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0px 0px 30px 0px;
}

.coverageMap {
    flex: 0 0 452px; /* was .styleColLeft -- keeps Firefox honest */
    text-align: center;
}

/* max-width, never width: the map renders at native size on a
   roomy screen and only shrinks when it has to. height:auto +
   the width/height attributes on the <object> preserve ratio. */
.coverageMap object {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0px auto 0px auto;
}

.coverageInfo {
    flex: 1 1 auto;
    min-width: 0; /* lets long product text wrap instead of overflowing */
    text-align: left;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Under 900px there isn't room for a 452px map beside the product
   list, so stack them -- product text on TOP, map underneath.
   column-reverse does that without reordering the markup, which
   keeps the map first in source order for desktop. */
@media (max-width: 900px) {

    .coverageRow {
        flex-direction: column-reverse;
        align-items: center;
        gap: 10px;
        margin-bottom: 35px;
    }

    .coverageMap {
        flex: 0 0 auto;
        width: 100%;
    }

    .coverageInfo {
        width: 100%;
        max-width: 500px;
    }
}

/* Phone. The map now has the full viewport width to itself, so AZ
   only has to shrink to about 0.8x -- barely noticeable. Nevada is
   the tighter one (500px native); its small labels (Storey, Carson
   City, Lyon N/S, Douglas) do soften here. */
@media (max-width: 600px) {

    .spanSubPageHeader {
        font-size: 13px;
        text-align: left;
        padding: 0px 4px 5px 4px;
    }

    .coverageInfo {
        max-width: none;
        padding: 0px 4px 0px 4px;
    }

    .spanSectHeader {
        font-size: 15px;
        margin: 8px 0px 8px 0px;
    }

    .styleDivProduct {
        font-size: 14px;
        margin: 0px 0px 10px 0px; /* a little more room between tap targets */
    }

    /* the checkbox is a tap target -- give it some space */
    #chkShowAll {
        width: 18px;
        height: 18px;
        vertical-align: middle;
    }
}
