/* === Start of Base CSS === */
.hidden { display: none !important; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body {
    height: 100%;
    font-family: var(--font-main);
    overflow: hidden;        /* No body scroll — each panel scrolls independently */
  }

/* body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    line-height: 1;
} */

/* main content grows to push footer down */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ─── APP SHELL ────────────────────────────────────────────── */
.app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    /* Dynamic viewport height — correct on mobile */
}

/* === End of Base CSS === */




/* === Start of Top Black Header === */

.site-header {
    width: 100%;
}

.site-header__top {
    background: #000;
    display: flex;
    align-items: center;
    min-height: 25px;
    padding: 0px 0;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.site-header__left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
}

.site-header__logo {
    height: 15px;
    width: 40px;
}

.site-header__title,
.site-header__service-link,
.site-header__search {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.site-header__title {
    padding-left: 10px;
}

.site-header__service-link a,
.site-header__search a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.site-header__service-link a:hover,
.site-header__search a:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .site-header__inner {
        justify-content: flex-start;
    }

    /* Hide extras on mobile */
    .site-header__title,
    .site-header__right,
    .site-header__divider,
    .site-header__left span {
        display: none;
    }
}

/* === End of Top Black Header === */



/* === Start of White Site Banner === */

.site-banner {
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #fff;
    /* border-bottom: 1px solid #ddd; */
}

.site-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-banner__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* === Columns === */

/* Left Column */
.site-banner__left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    min-width: 260px;
}

.site-banner__tagline {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

/* Center Column */
.site-banner__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.site-banner__logo img {
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    max-width: 60px;
    padding-top: 4px;
    padding-bottom: 4px;
    height: auto;
}

.site-banner__title-container h1 {
    font-size: 22px;
    color: #0080a9;
    font-weight: bold;
    margin: 0;

}

/* Right Column */
.site-banner__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
    min-width: 260px;
    text-align: right;
    font-size: 14px;
    padding-right: 10px;
    gap: 4px;
}


/* === Google Translate Widget === */
.language-selector {
    display: block;
    margin-top: 0px;
    text-align: right;
}

.language-selector .goog-te-gadget-simple {
    border: none;
    font-weight: bold;
}

.language-selector .goog-te-gadget-icon {
    display: none;
}

.language-selector .goog-te-gadget-simple span {
    color: #666;
}

.language-selector .goog-te-gadget-simple span:hover {
    color: #000;
}



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

/* Large Phones (481px - 768px) - 75% size */
@media (max-width: 600px) {

    .site-banner {
        padding-top: 0px;
        padding-bottom: 1px;
    }

    .site-banner__inner {
        padding: 0px 12px;
    }

    .site-banner__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .site-banner__tagline {
        display: none;
    }

    .site-banner__left {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 0px;
        min-width: unset;
    }

    .site-banner__center {
        width: 70%;
    }

    /* Scale logo to 75% */
    .site-banner__logo img {
        transform: scale(0.6);
        transform-origin: center;
    }

    /* Scale title to 75% */
    .site-banner__title-container h1 {
        font-size: 16.5px;
        margin: 0;
    }

    .site-banner__right {
        position: absolute;
        top: 2px;
        right: 8px;
        min-width: unset;
        flex: none;
        padding-right: 0;
        gap: 0px;
    }

    /* Scale Google Translate */
    .language-selector {
        font-size: 11px;
    }

    .language-selector .goog-te-gadget-simple {
        font-size: 11px;
    }
}

/* === End of White Site Banner === */
















/* === Start of Google Tab Navigation === */

.tab-container {
    width: 100%;
    background-color: #ffffff;
    font-size: 15px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2px;
    border-bottom: 2px solid #ddd;
    background-color: #0080a9;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    background: none;
    border: none;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-right: 1px solid #e0e0e0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.2;
}


.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: #0d3e4e;
}

.tab-btn.active {
    background-color: #0d3e4e;
    color: #ffffff;
    border-bottom: 3px solid #002d72;
}

/* Active underline indicator */
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    width: 76%;
    height: 3px;
    background: var(--teal-light);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.18s, transform 0.22s cubic-bezier(.34, 1.56, .64, 1);
}

.tab-btn.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Vertical dividers between tabs */
.tab-btn+.tab-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.tab-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.tab-panel {
    position: absolute;
    inset: 0;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-panel.active {
    display: block;
}

/* === End of Tab Navigation === */











/* === Start of Footer === */

.site-footer {
    background-color: #000;
    color: #fff;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.site-footer__container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    max-width: 940px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-footer__logo {
    width: 93px;
    height: 31px;
}

.site-footer__copyright {
    width: 220px;
    height: 42px;
    font-size: 10px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    color: #fff;
}

.site-footer__copyright p {
    margin: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .site-footer__container {
        flex-direction: row;
        /* stay horizontal */
        justify-content: flex-start;
        /* align left */
        align-items: center;
        /* vertically center logo + text */
        text-align: left;
        /* ensure text aligns left */
        gap: 8px;
        /* small space between logo and text */
        padding: 8px 12px;
        /* add a little breathing room */
    }

    .site-footer__logo {
        width: 80px;
        /* slightly smaller logo for mobile */
        height: 31px;
        flex-shrink: 0;
        /* prevent logo from squishing */
    }

    .site-footer__copyright {
        width: auto;
        height: auto;
        font-size: 10px;
        line-height: 1.3;
    }
}

/* === End of Footer === */






/* ==============================================================
This section goes in the other css file

================================================================*/

:root {

    --status-open: #2B9E72  ;
    --status-open-bg: #DFF6ED;
    --status-adv: #E8CA24;
    --status-adv-bg: #6F600C;
    --status-closedswim: #E77934    ;
    --status-closedswim-bg: #FBE7DA;
    --status-closed: #AE1206        ;
    --status-closed-bg: #FEDAD8;
    --status-closedseason: #274C77;
    --status-closedseason-bg: #E0EAF5;

    --navy: #0d2b45;
    --navy-mid: #1a4060;
    --teal: #0077b6;
    --teal-light: #90e0ef;
    --sand: #f5f0e8;
    --sand-dark: #e8dfc8;
    --white: #ffffff;
    --ink: #1a1a1a;
    --muted: #6b7280;
    --border: #dde3ea;

    --status-unknown: #4b5563;
    --status-unknown-bg: #f3f4f6;

    --header-black-h: 24px;
    --header-banner-h: 54px;
    --header-total-h: calc(var(--header-black-h) + var(--header-banner-h));
    --tab-nav-h: 44px;
    --chrome-h: calc(var(--header-total-h) + var(--tab-nav-h));

    --font-main: 'Public Sans', system-ui, sans-serif;
    --font-mono: 'DM Mono', monospace;
}





/* === Start of Legend === */

.site-banner-legend {
    width: 100%;
    display: flex;
    justify-content: center;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 4px 4px;
    background: var(--white);
    /* border-bottom: 1px solid var(--border); */
    width: fit-content;
    margin: 0 auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.open {    background: var(--status-open);}
.legend-dot.adv {    background: var(--status-adv);}
.legend-dot.closedswim {    background: var(--status-closedswim);}
.legend-dot.closed {    background: var(--status-closed);}
.legend-dot.closedseason {    background: var(--status-closedseason);}

@media (max-width: 600px) {
    .status-legend {
        gap: 8px;
        padding: 8px 10px;
    }

    .legend-item {
        font-size: 10px;
        gap: 4px;
    }

    .legend-dot {
        width: 8px;
        height: 8px;
    }

    .legend-item img {
        width: 12px;
        height: 12px;
    }
}

/* === End of Legend === */



/* === Start of Map Area === */

/* Map panel: no scroll, arcgis-map fills 100% */
#panel-map {
    overflow: hidden;
}

arcgis-map {
    display: block;
    width: 100%;
    height: 100%;
}

.beach-select-wrapper {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin: 0;
  }
  
  #beach-select {
    font-family: Arial, sans-serif;
    font-size: 13px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    min-width: 220px;
    max-width: 280px;
    color: #323232;
  }
  
  #beach-select:focus {
    outline: 2px solid #004b8d;
    outline-offset: 1px;
  }

/* === End of Map Area === */



/* === Start of Beach List === */

.beaches-panel {
    background: var(--sand);
    padding: 0 0 16px;
}

.panel-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 10px;
    z-index: 10;
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.panel-header p {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

/* Beach list */
.beach-list {
    list-style: none;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* in JS not html*/

.beach-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}

.beach-item:hover,
.beach-item:focus-visible {
    border-color: var(--teal);
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.12);
    outline: none;
}

.beach-item:active {
    transform: scale(0.985);
}


/* Status pill */
.status-pill {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 900;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill.open {background: var(--status-open-bg); color: var(--status-open);}
.status-pill.adv {background: var(--status-adv-bg); color: var(--status-adv);}
.status-pill.closedswim {background: var(--status-closedswim-bg); color: var(--status-closedswim);}
.status-pill.closed {background: var(--status-closed-bg); color: var(--status-closed);}
.status-pill.closedseason {background: var(--status-closedseason-bg); color: var(--status-closedseason);}
.status-pill.unknown {background: var(--status-unknown-bg); color: var(--status-unknown);}

.beach-info {
    flex: 1;
    min-width: 0;
  }

  .beach-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .beach-arrow {
    flex-shrink: 0;
    color: var(--teal);
    font-size: 16px;
    opacity: 0.7;
  }
 
  /* Zoom-to toast notification */
  .zoom-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
  }
 
  .zoom-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  .park-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    flex-shrink: 0;
  }

  .borough-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    background: #eef2f7;                 /* adjust to match your theme */
    border-top: 1px solid #dde3ec;
    border-bottom: 1px solid #dde3ec;
    list-style: none;
    position: sticky;
    top: 0;
    z-index: 1;                          /* stays visible while scrolling */
  }
  
  .borough-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #374151;
  }
  
  .borough-count {
    font-size: 10px;
    color: #9ca3af;
  }
/* === End of Beach List === */




/* === Start of FAQ === */

.faq-panel {
    background: var(--sand);
    padding: 0 0 40px;
  }
  
  /* ── Intro banner ── */
  .faq-intro {
    background: var(--navy);
    padding: 20px 18px 20px;
    color: var(--white);
  }
  
  .faq-intro h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
  }
  
  .faq-intro p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-top: 6px;
  }
  
  /* ── Section spacing ── */
  .faq-list {
    padding: 14px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* ── Collapsible items ── */
  details.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  
  details.faq-item[open] {
    border-color: var(--teal);
    box-shadow: 0 2px 10px rgba(0,119,182,0.10);
  }
  
  details.faq-item summary {
    padding: 14px 14px;
    font-size: 15px;           /* was 13.5px — more readable on phone */
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  
  details.faq-item summary::-webkit-details-marker { display: none; }
  
  details.faq-item summary:hover  { background: rgba(0,119,182,0.04); }
  details.faq-item summary:active { background: rgba(0,119,182,0.08); }
  
  /* Rotating chevron — CSS-only, no JS needed */
  .faq-chevron {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 1px;
    transition: background 0.15s, transform 0.2s ease;
  }
  
  details.faq-item[open] .faq-chevron {
    background: var(--teal);
    color: var(--white);
    transform: rotate(180deg);
  }
  
  .faq-q-text {
    flex: 1;
  }
  
  /* ── Answer area ── */
  .faq-answer {
    padding: 0 16px 18px 46px;   /* left indent aligns with question text */
    font-size: 15px;              /* was 13px */
    color: #374151;
    line-height: 1.7;
  }
  
  .faq-answer p { margin-bottom: 10px; }
  .faq-answer p:last-child { margin-bottom: 0; }
  .faq-answer strong { color: var(--navy); }
  
  /* ── Lists inside answers ── */
  .faq-answer ul {
    margin: 8px 0 10px 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .faq-answer ul li {
    padding-left: 18px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
  }
  
  /* Custom bullet — teal dash */
  .faq-answer ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
  }
  
  /* Nested lists */
  .faq-answer ul ul {
    margin: 6px 0 4px 0;
    gap: 4px;
  }
  
  .faq-answer ul ul li {
    font-size: 13.5px;
    color: #4b5563;
  }
  
  .faq-answer ul ul li::before {
    content: '·';
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    top: 1px;
  }
  
  /* ── Links inside answers ── */
  .faq-link,
  .faq-answer a {
    color: var(--teal);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(0,119,182,0.4);
    text-underline-offset: 2px;
    transition: color 0.15s, text-decoration-color 0.15s;
  }
  
  .faq-link:hover,
  .faq-answer a:hover {
    color: var(--navy);
    text-decoration-color: var(--navy);
  }
  
  /* ── Divider line between question & answer ── */
  details.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
  }
  
  /* ── Contact box ── */
  .faq-contact-box {
    margin: 20px 12px 0;
    background: var(--navy);
    border-radius: 10px;
    padding: 18px;
    color: var(--white);
  }
  
  .faq-contact-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .faq-contact-box p {
    font-size: 14px;
    color: rgba(255,255,255,0.80);
    line-height: 1.6;
  }
  
  .faq-contact-box a {
    color: var(--teal-light);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  
  /* ── Responsive ── */
  @media (max-width: 360px) {
    .tab-btn           { font-size: 11px; gap: 4px; }
    .tab-btn .tab-icon { font-size: 13px; }
    .faq-answer        { padding-left: 36px; font-size: 14px; }
    details.faq-item summary { font-size: 14px; }
  }
  
  @media (min-width: 700px) {
    .beaches-panel,
    .faq-panel {
      max-width: 680px;
      margin: 0 auto;
      padding-left: 0;
      padding-right: 0;
    }
  }
  
  /* === End of FAQ === */


  .popup-beach-name      { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.popup-section-title   { font-size: 0.75rem; text-transform: uppercase;
                         letter-spacing: .05em; color: #666; margin-bottom: 8px; }
.popup-table           { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.popup-th              { text-align: left; padding: 4px 8px;
                         border-bottom: 2px solid #ddd; color: #555; font-weight: 600; }
.popup-td              { padding: 5px 8px; border-bottom: 1px solid #eee; vertical-align: middle; }
.popup-no-data         { color: #888; font-style: italic; font-size: 0.85rem; }
.popup-loading         { color: #888; font-style: italic; }