/**
 * Tree-Ripe Find a Fruit Stop
 * Production CSS — fluid responsive, #F5F0E9 cream, pill buttons
 *
 * @package TreeRipeEcosystem
 * @since 7.0.0
 */

/* ─────────────────────────────────────────────
 * CUSTOM PROPERTIES
 * ───────────────────────────────────────────── */
.tr-find-stop {
    --tr-fs-forest: #0F5E41;
    --tr-fs-forest-dark: #0A4A33;
    --tr-fs-cream: #F5F0E9;
    --tr-fs-mint: #BBE0C6;
    --tr-fs-mint-light: #E8F5ED;
    --tr-fs-orange: #E78825;
    --tr-fs-white: #FFFFFF;
    --tr-fs-text: #333333;
    --tr-fs-text-light: #555555;
    --tr-fs-season: var(--tr-fs-mint); /* overridden by JS */

    --tr-fs-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --tr-fs-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --tr-fs-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --tr-fs-radius: 16px;
    --tr-fs-radius-sm: 10px;

    font-family: 'Avenir', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--tr-fs-text);
    line-height: 1.5;
}

/* ─────────────────────────────────────────────
 * HERO
 * ───────────────────────────────────────────── */
.tr-fs-hero {
    background: var(--tr-fs-forest);
    position: relative;
    overflow: hidden;
    /* Full-width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.tr-fs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(187, 224, 198, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(231, 136, 37, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.tr-fs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 64px);
    text-align: center;
}

.tr-fs-hero-eyebrow {
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}

.tr-fs-hero-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(32px, 5.5vw, 52px);
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 12px;
}

.tr-fs-hero-subtitle {
    font-size: clamp(15px, 2vw, 17px);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 28px;
    max-width: 520px;
}

.tr-fs-hero-subtitle strong {
    color: #fff;
    font-weight: 700;
}

.tr-fs-hero-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: -8px auto 28px;
    flex-wrap: wrap;
}

.tr-fs-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Avenir Next", "Avenir", system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    padding: 10px 22px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.tr-fs-hero-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.tr-fs-hero-brochure {
    text-align: center;
    font-family: "Avenir Next", "Avenir", system-ui, sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: -12px auto 28px;
}

.tr-fs-hero-brochure a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.tr-fs-hero-brochure a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────────
 * SEARCH BAR
 * ───────────────────────────────────────────── */
.tr-fs-search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.tr-fs-search-input {
    width: 100%;
    height: 56px;
    padding: 0 60px 0 36px !important;
    font-size: 16px;
    border: none !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--tr-fs-text) !important;
    font-family: inherit;
    box-shadow: var(--tr-fs-shadow-md) !important;
    outline: none;
    transition: box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    line-height: 56px;
    margin: 0;
}

.tr-fs-search-input::placeholder {
    color: #999;
    opacity: 1;
}

.tr-fs-search-input:focus {
    box-shadow: 0 0 0 3px rgba(187, 224, 198, 0.5), var(--tr-fs-shadow-md);
}

.tr-fs-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: var(--tr-fs-forest);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
    box-sizing: border-box;
}

.tr-fs-search-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tr-fs-search-btn:hover {
    background: var(--tr-fs-forest-dark);
    color: #fff;
}

.tr-fs-search-btn:hover svg {
    stroke: #fff;
    color: #fff;
}

.tr-fs-search-or {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Name change notice */
.tr-fs-name-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 8px 16px;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.tr-fs-name-notice i {
    font-size: 14px;
}

.tr-fs-name-notice a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.tr-fs-name-notice a:hover {
    text-decoration-thickness: 2px;
}

/* ─────────────────────────────────────────────
 * MAP SECTION
 * ───────────────────────────────────────────── */
.tr-fs-map-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px);
}

.tr-fs-map-heading {
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 32px);
}

.tr-fs-map-heading h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(22px, 3.5vw, 32px);
    color: var(--tr-fs-forest);
    font-weight: 700;
    margin: 0 0 6px;
}

.tr-fs-map-heading p {
    font-size: 15px;
    color: var(--tr-fs-text-light);
    margin: 0;
}

/* State dropdown — visible on mobile only */
.tr-fs-state-dropdown-wrap {
    display: none;
    max-width: 400px;
    margin: 0 auto 24px;
}

.tr-fs-state-select {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid var(--tr-fs-forest);
    border-radius: 999px;
    background: var(--tr-fs-white);
    color: var(--tr-fs-text);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230F5E41' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    min-height: 48px;
}

/* SVG Map container */
.tr-fs-map-container {
    max-width: 900px;
    margin: 0 auto;
}

.tr-fs-map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG state labels */
.tr-fs-state-label {
    font-family: 'Avenir', 'Avenir Next', sans-serif;
    font-size: 14px;
    font-weight: 800;
    fill: var(--tr-fs-forest);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tr-fs-state-badge {
    font-family: 'Avenir', 'Avenir Next', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    fill: var(--tr-fs-forest);
    pointer-events: none;
    opacity: 0.7;
}

/* ─────────────────────────────────────────────
 * RESULTS AREA
 * ───────────────────────────────────────────── */
.tr-fs-results {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) clamp(32px, 5vw, 56px);
}

.tr-fs-results--visible {
    animation: trFsFadeSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes trFsFadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.tr-fs-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--tr-fs-mint);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.tr-fs-results-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--tr-fs-forest);
    font-weight: 700;
    margin: 0;
}

.tr-fs-results-count {
    font-size: 14px;
    color: var(--tr-fs-text-light);
    font-weight: 600;
}

.tr-fs-results-back {
    font-size: 14px;
    color: var(--tr-fs-forest);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px 16px;
    border-radius: 999px;
    transition: background 0.2s;
    min-height: 44px;
    font-family: inherit;
}

.tr-fs-results-back:hover {
    background: var(--tr-fs-mint-light);
}

/* Results body: two columns */
.tr-fs-results-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Google Map sticks to top of its grid cell */
.tr-fs-results-body > .tr-fs-google-map {
    margin-top: 0;
}

/* ─────────────────────────────────────────────
 * STOP LIST
 * ───────────────────────────────────────────── */
.tr-fs-stop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
    margin: 0;
    padding-top: 0;
}

.tr-fs-stop-list::-webkit-scrollbar { width: 4px; }
.tr-fs-stop-list::-webkit-scrollbar-track { background: transparent; }
.tr-fs-stop-list::-webkit-scrollbar-thumb {
    background: var(--tr-fs-mint);
    border-radius: 4px;
}

/* Stop card */
.tr-fs-stop-card {
    background: #FFFFFF;
    border-radius: var(--tr-fs-radius-sm);
    padding: clamp(14px, 2vw, 18px) clamp(16px, 2.5vw, 22px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    border: 1.5px solid #EEEAE5;
    animation: trFsFadeSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.tr-fs-stop-card:hover {
    box-shadow: var(--tr-fs-shadow-md);
    transform: translateY(-2px);
    border-color: var(--tr-fs-mint);
}

.tr-fs-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.tr-fs-card-title {
    font-family: 'Avenir', 'Avenir Next', -apple-system, sans-serif;
    font-size: clamp(17px, 2.2vw, 19px);
    font-weight: 600;
    color: var(--tr-fs-forest);
    line-height: 1.3;
}

.tr-fs-card-distance {
    font-size: 15px;
    color: var(--tr-fs-forest);
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.tr-fs-card-address {
    font-size: 14px;
    color: var(--tr-fs-text-light);
    margin-bottom: 8px;
    line-height: 1.4;
}

.tr-fs-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tr-fs-card-date {
    background: var(--tr-fs-mint-light);
    color: var(--tr-fs-forest);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.tr-fs-card-date--past {
    background: #F0EDEA;
    color: var(--tr-fs-text-light);
}

.tr-fs-card-time {
    color: var(--tr-fs-text-light);
    font-weight: 600;
    font-size: 13px;
}

/* Shared pickup time — shown ONCE per card (the time is the same on almost
   every date). A bold time LINE, not a pill, so it reads as critical info. */
.tr-fs-card-time-line {
    font-size: 18px;
    color: var(--tr-fs-text);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}
.tr-fs-card-time-line i {
    color: var(--tr-fs-forest);
    font-size: 17px;
    margin-right: 7px;
}

/* Dates row — date pills wrap inline, side by side. */
.tr-fs-card-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0;
}

/* Each date is a small inline unit; a special time / alert fuses to its pill. */
.tr-fs-card-date-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
}

/* A date with a SPECIAL time stands out in brand green — stronger filled
   pill (primary, white text) plus its own time beside it. */
.tr-fs-card-date-group:has(.tr-fs-date-special-time) .tr-fs-card-date {
    background: var(--tr-fs-forest);
    color: #fff;
}
.tr-fs-date-special-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    color: var(--tr-fs-forest);
    font-size: 13px;
    margin-left: 7px;
    white-space: nowrap;
}
.tr-fs-date-special-time i { font-size: 12px; color: var(--tr-fs-forest); }

/* A date with an ALERT — amber message fused to the right of its date pill,
   the two reading as one capsule. Amber matches tr-stop-alert.css. */
.tr-fs-card-date-group:has(.tr-fs-card-alert) {
    background: #FEF8E7;
    border-radius: 999px;
    overflow: hidden;
}
.tr-fs-card-date-group:has(.tr-fs-card-alert) .tr-fs-card-date {
    border-radius: 999px 0 0 999px;
}
.tr-fs-card-date-group .tr-fs-card-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #7A6012;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    padding: 4px 12px 4px 8px;
    margin: 0;
    border: none;
}
.tr-fs-card-date-group .tr-fs-card-alert i {
    color: #D4A017;
    font-size: 13px;
    flex-shrink: 0;
}

/* Loading + no results */
.tr-fs-loading,
.tr-fs-no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    color: var(--tr-fs-text-light);
    font-weight: 600;
}

/* ─────────────────────────────────────────────
 * GOOGLE MAP
 * ───────────────────────────────────────────── */
.tr-fs-google-map {
    min-height: 600px;
    height: 600px;
    border-radius: var(--tr-fs-radius);
    overflow: hidden;
    box-shadow: var(--tr-fs-shadow-sm);
    position: sticky;
    top: 0;
    background: #E8E4DE;
    margin: 0;
    padding: 0;
}

/* ─────────────────────────────────────────────
 * SIDE PANEL
 * ───────────────────────────────────────────── */

/* Overlay */
.tr-fs-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tr-fs-panel-overlay--visible {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: trFsFadeIn 0.2s ease;
}

@keyframes trFsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal (was side panel) */
.tr-fs-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(520px, 92vw);
    max-height: 75vh;
    background: #FFFFFF;
    z-index: 999999;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
}

.tr-fs-panel--open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Panel header */
.tr-fs-panel-header {
    padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px) 18px;
    border-bottom: 1px solid #EEEAE5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.tr-fs-panel-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--tr-fs-text);
    line-height: 1.2;
}

.tr-fs-panel-subtitle {
    font-size: 14px;
    color: var(--tr-fs-text-light);
    margin-top: 4px;
    line-height: 1.4;
}

.tr-fs-panel-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: #F0EDEA;
    color: #333;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

.tr-fs-panel-close svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: #333;
}

.tr-fs-panel-close:hover {
    background: #E0DBD4;
}

/* Panel body */
.tr-fs-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: clamp(20px, 3vw, 28px);
}

.tr-fs-panel-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 10px;
    margin-top: 20px;
}

.tr-fs-panel-section-label:first-child {
    margin-top: 0;
}

/* Dates */
.tr-fs-panel-dates {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tr-fs-panel-date-chip {
    background: var(--tr-fs-mint-light);
    color: var(--tr-fs-forest);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.tr-fs-panel-no-dates {
    color: var(--tr-fs-text-light);
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* Panel date chip with a SPECIAL time — strong filled green + its own time. */
.tr-fs-panel-date-chip--special {
    background: var(--tr-fs-forest);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.tr-fs-panel-date-chip--special .tr-fs-panel-chip-time {
    font-weight: 800;
    font-size: 13px;
    opacity: 0.92;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Panel date chip with an ALERT — date half + fused amber message half. */
.tr-fs-panel-date-group {
    display: inline-flex;
    align-items: stretch;
    border-radius: 999px;
    overflow: hidden;
    max-width: 100%;
}
.tr-fs-panel-date-group .tr-fs-panel-date-chip {
    border-radius: 999px 0 0 999px;
}
.tr-fs-panel-date-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF8E7;
    color: #7A6012;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    padding: 8px 16px 8px 12px;
    white-space: normal;
}
.tr-fs-panel-date-alert i { color: #D4A017; font-size: 13px; flex-shrink: 0; }

/* Address + time */
.tr-fs-panel-address,
.tr-fs-panel-time {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--tr-fs-text);
    line-height: 1.5;
    margin-bottom: 8px;
}

.tr-fs-panel-address svg,
.tr-fs-panel-time svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Shared pickup time is the critical info — make it prominent. */
.tr-fs-panel-time {
    align-items: center;
    font-size: 18px;
    font-weight: 800;
}
.tr-fs-panel-time svg { margin-top: 0; }

/* Products — 2-column grid */
.tr-fs-panel-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tr-fs-panel-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--tr-fs-cream);
    border-radius: var(--tr-fs-radius-sm);
}

.tr-fs-panel-product-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tr-fs-mint-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tr-fs-panel-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tr-fs-panel-product-placeholder {
    font-size: 20px;
}

.tr-fs-panel-product-name {
    font-family: 'Avenir', 'Avenir Next', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--tr-fs-text);
    line-height: 1.3;
}

.tr-fs-panel-product-price {
    font-size: 13px;
    color: var(--tr-fs-forest);
    font-weight: 700;
    margin-top: 2px;
}

/* Panel loading */
.tr-fs-panel-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--tr-fs-text-light);
    font-size: 15px;
    font-weight: 600;
}

/* Panel actions (sticky bottom) */
.tr-fs-panel-actions {
    padding: 18px clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
    border-top: 1px solid #EEEAE5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: var(--tr-fs-white);
}

.tr-fs-panel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    font-family: inherit;
    line-height: 1.3;
}

.tr-fs-panel-btn--primary {
    background: var(--tr-fs-forest);
    color: #fff;
}

.tr-fs-panel-btn--primary:hover {
    background: var(--tr-fs-forest-dark);
    color: #fff;
    text-decoration: none;
}

.tr-fs-panel-btn--secondary {
    background: transparent;
    color: var(--tr-fs-forest);
    border: 2px solid var(--tr-fs-forest);
}

.tr-fs-panel-btn--secondary:hover {
    background: var(--tr-fs-mint-light);
    text-decoration: none;
    color: var(--tr-fs-forest);
}

.tr-fs-panel-link {
    text-align: center;
    font-size: 14px;
    color: var(--tr-fs-forest);
    font-weight: 700;
    text-decoration: none;
    padding: 8px;
    border-radius: 999px;
    transition: background 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tr-fs-panel-link:hover {
    background: var(--tr-fs-mint-light);
    text-decoration: none;
    color: var(--tr-fs-forest);
}

/* ─────────────────────────────────────────────
 *  RESPONSIVE — MOBILE
 * ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .tr-fs-results {
        scroll-margin-top: 100px;
    }

    /* Show state dropdown */
    .tr-fs-state-dropdown-wrap {
        display: block;
    }

    /* Shrink map on mobile — still visible but not primary */
    .tr-fs-map-container {
        max-width: 100%;
        opacity: 0.85;
    }

    /* Stack results */
    .tr-fs-results-body {
        grid-template-columns: 1fr;
    }

    /* Map below list on mobile */
    .tr-fs-google-map {
        min-height: 300px;
        height: 300px;
        position: static;
        order: 1;
    }

    .tr-fs-stop-list {
        max-height: none;
        padding-right: 0;
    }

    /* Modal stays centered on mobile too — not a bottom sheet */
    .tr-fs-panel {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: 92vw;
        max-height: 75vh;
        border-radius: 16px;
        transform: translate(-50%, -50%) scale(0.95);
    }

    .tr-fs-panel--open {
        transform: translate(-50%, -50%) scale(1);
    }

    /* No drag handle — it's a centered modal */
    .tr-fs-panel-header::before {
        display: none;
    }

    .tr-fs-panel-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        padding-top: clamp(16px, 3vw, 20px);
        border-bottom: 1px solid #EEEAE5;
    }

    /* Make close button bigger on mobile */
    .tr-fs-panel-close {
        width: 44px;
        height: 44px;
        background: #F0EDEA;
        border-radius: 999px;
    }

    .tr-fs-panel-close svg {
        width: 22px;
        height: 22px;
        stroke-width: 3;
    }

    /* Products single column on mobile */
    .tr-fs-panel-products {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────
 * ACCESSIBILITY & FOCUS STATES
 * ───────────────────────────────────────────── */
.tr-fs-stop-card:focus-visible,
.tr-fs-search-input:focus-visible,
.tr-fs-search-btn:focus-visible,
.tr-fs-panel-close:focus-visible,
.tr-fs-panel-btn:focus-visible,
.tr-fs-results-back:focus-visible,
.tr-fs-state-select:focus-visible {
    outline: 3px solid var(--tr-fs-forest);
    outline-offset: 2px;
}

/* ─────────────────────────────────────────────
 * PRINT (hide interactive bits)
 * ───────────────────────────────────────────── */
@media print {
    .tr-fs-panel,
    .tr-fs-panel-overlay,
    .tr-fs-search,
    .tr-fs-search-or,
    .tr-fs-state-dropdown-wrap,
    .tr-fs-google-map {
        display: none !important;
    }
}

/* ─────────────────────────────────────────────
 * POP-UP "WALK-UP ONLY" PILL
 * Pop-Up stops appear in the list/panel but can't be reserved.
 * ───────────────────────────────────────────── */
.tr-fs-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tr-fs-forest);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 13px 5px 11px;
    border-radius: 999px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.tr-fs-card-pill i {
    font-size: 13px;
}

.tr-fs-panel-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tr-fs-forest);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.tr-fs-panel-pill i {
    font-size: 13px;
}