
/* The Asphalt Path Trip Planner public styles - v0.1.1 */

/* Best-effort full-width support for common WordPress theme layouts. */
body:has(.tap-trip-planner) .content-area,
body:has(.tap-trip-planner) .site-content,
body:has(.tap-trip-planner) .site-main,
body:has(.tap-trip-planner) main,
body:has(.tap-trip-planner) article,
body:has(.tap-trip-planner) .entry-content,
body:has(.tap-trip-planner) .page-content {
    max-width: 1180px;
}

body:has(.tap-trip-planner) .widget-area,
body:has(.tap-trip-planner) aside.sidebar,
body:has(.tap-trip-planner) #secondary,
body:has(.tap-trip-planner) .secondary,
body:has(.tap-trip-planner) .sidebar {
    display: none;
}

.tap-trip-planner-wrap {
    box-sizing: border-box;
    width: min(100%, 1120px);
    max-width: 1120px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    clear: both;
}

.tap-trip-planner,
.tap-trip-results {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: clamp(1.1rem, 2vw, 2rem);
    margin: 1.25rem auto;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
}

.tap-trip-planner *,
.tap-trip-results * {
    box-sizing: border-box;
}

.tap-trip-planner h2,
.tap-trip-results h3 {
    margin-top: 0;
    line-height: 1.15;
}

.tap-intro {
    font-size: 1.05rem;
    max-width: 760px;
}

.tap-demo-notice,
.tap-error-notice {
    border-radius: 10px;
    padding: .9rem 1rem;
    margin: 1rem 0;
}

.tap-demo-notice {
    background: #eef6ff;
    border: 1px solid #b8d7f4;
}

.tap-error-notice {
    background: #fff0f0;
    border: 1px solid #efb5b5;
}


.tap-input-invalid {
    border-color: #c83b3b !important;
    box-shadow: 0 0 0 2px rgba(200, 59, 59, 0.14);
}

.tap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}

.tap-trip-form label,
.tap-fieldset label,
.tap-options-row label {
    display: block;
    margin-bottom: .75rem;
}

.tap-trip-form input[type="text"],
.tap-trip-form input[type="number"],
.tap-trip-form select {
    width: 100%;
    max-width: 100%;
    padding: .7rem .75rem;
    min-height: 44px;
}

.tap-fieldset {
    margin: 1.25rem 0;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.tap-fieldset legend {
    padding: 0 .35rem;
    font-weight: 700;
}

.tap-amenity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: .25rem 1rem;
}

.tap-options-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: .75rem 1rem;
    margin: 1rem 0;
}

.tap-disclaimer-check {
    background: #f7f7f7;
    padding: .85rem;
    border-radius: 10px;
}

.tap-button {
    padding: .85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.tap-button:disabled {
    cursor: wait;
    opacity: .65;
}

.tap-hidden {
    display: none !important;
}

.tap-loading {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 14px;
    background: #f7f7f7;
}

.tap-tire {
    font-size: 4rem;
    line-height: 1;
    display: inline-block;
    animation: tap-spin 1s linear infinite;
}

.tap-progress {
    height: 12px;
    border-radius: 999px;
    background: #ddd;
    overflow: hidden;
    max-width: 520px;
    margin: .75rem auto;
}

.tap-progress span {
    display: block;
    height: 100%;
    width: 5%;
    background: currentColor;
    transition: width .35s ease;
}

.tap-loading-helper,
.tap-small-note {
    font-size: .9rem;
    opacity: .82;
}

.tap-disclaimer-notice {
    background: #fff7e6;
    border: 1px solid #f0d48a;
    border-radius: 10px;
    padding: .9rem 1rem;
    margin-bottom: 1rem;
}

.tap-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0;
}

.tap-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.tap-day,
.tap-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem;
    margin: .75rem 0;
}

.tap-day {
    background: #fff;
}

.tap-card {
    background: #fbfbfb;
}

@keyframes tap-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .tap-tire { animation: none; }
    .tap-progress span { transition: none; }
    .tap-trip-results { scroll-margin-top: 1rem; }
}

@media (max-width: 780px) {
    .tap-trip-planner-wrap {
        padding: 0 .75rem;
    }
    .tap-grid,
    .tap-amenity-grid,
    .tap-options-row {
        grid-template-columns: 1fr;
    }
    .tap-trip-planner,
    .tap-trip-results {
        padding: 1rem;
        border-radius: 12px;
    }
}

@media print {
    @page {
        size: portrait;
        margin: 0.45in;
    }

    body.tap-print-selected-plan-active * {
        visibility: hidden !important;
    }

    body.tap-print-selected-plan-active #tap-selected-plan,
    body.tap-print-selected-plan-active #tap-selected-plan * {
        visibility: visible !important;
    }

    body.tap-print-selected-plan-active #tap-selected-plan {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 10pt !important;
        line-height: 1.25 !important;
    }

    body.tap-print-selected-plan-active .tap-selected-plan-header,
    body.tap-print-selected-plan-active .tap-selected-campground,
    body.tap-print-selected-plan-active .tap-selected-service-group,
    body.tap-print-selected-plan-active .tap-selected-service-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.tap-print-selected-plan-active .tap-selected-plan-header {
        display: block !important;
        margin-bottom: 0.12in !important;
    }

    body.tap-print-selected-plan-active .tap-selected-plan h4 {
        margin: 0 0 0.06in 0 !important;
        font-size: 14pt !important;
    }

    body.tap-print-selected-plan-active .tap-selected-plan-intro,
    body.tap-print-selected-plan-active .tap-selected-map-options,
    body.tap-print-selected-plan-active .tap-selected-plan-actions,
    body.tap-print-selected-plan-active .tap-selected-remove,
    body.tap-print-selected-plan-active .tap-selected-map-button,
    body.tap-print-selected-plan-active .tap-selected-services-button,
    body.tap-print-selected-plan-active .tap-selected-download-button,
    body.tap-print-selected-plan-active #tap-selected-plan button,
    body.tap-print-selected-plan-active #tap-selected-plan input,
    body.tap-print-selected-plan-active #tap-selected-plan select {
        display: none !important;
    }

    body.tap-print-selected-plan-active .tap-selected-campgrounds-list {
        display: block !important;
        gap: 0 !important;
    }

    body.tap-print-selected-plan-active .tap-selected-campground {
        display: block !important;
        margin: 0 0 0.12in 0 !important;
        padding: 0 0 0.1in 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #999 !important;
        background: #fff !important;
    }

    body.tap-print-selected-plan-active .tap-selected-campground-main {
        gap: 0.03in !important;
    }

    body.tap-print-selected-plan-active .tap-selected-services-panel {
        margin-top: 0.06in !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
    }

    body.tap-print-selected-plan-active .tap-selected-service-group {
        margin: 0.04in 0 !important;
        padding: 0 !important;
    }

    body.tap-print-selected-plan-active .tap-selected-service-list {
        display: block !important;
        margin: 0.02in 0 0 0 !important;
    }

    body.tap-print-selected-plan-active .tap-selected-service-item {
        margin: 0.02in 0 0.04in 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
    }

    body.tap-print-selected-plan-active .tap-selected-service-item a {
        display: none !important;
    }

    body.tap-print-selected-plan-active .tap-selected-plan-status {
        margin-top: 0.08in !important;
    }

    body:not(.tap-print-selected-plan-active):has(.tap-trip-planner) .widget-area,
    body:not(.tap-print-selected-plan-active):has(.tap-trip-planner) aside,
    body:not(.tap-print-selected-plan-active) .tap-trip-form,
    body:not(.tap-print-selected-plan-active) .tap-loading,
    body:not(.tap-print-selected-plan-active) .tap-result-actions {
        display: none !important;
    }

    .tap-trip-planner,
    .tap-trip-results {
        box-shadow: none;
        border: 0;
        padding: 0;
    }
}
.tap-local-notice {
    border-color: #5b8c5a;
    background: #f3fbf1;
}
.tap-card a {
    font-weight: 700;
}

.tap-route-distance { font-weight: 600; color: #334155; }

.tap-warning-note {
    padding: 0.45rem 0.65rem;
    border-left: 4px solid #b45309;
    background: #fff7ed;
    color: #7c2d12;
    border-radius: 0.35rem;
}

.tap-empty-day-card {
    border: 1px dashed #d6d6d6;
    border-radius: 12px;
    padding: 1rem;
    margin: .75rem 0;
    background: #fcfcfc;
}

.tap-empty-day-card strong {
    display: block;
    margin-bottom: .35rem;
}

/* v0.1.24: Collapsible campground cards cleanup */
.tap-collapsible-card {
    padding: 0;
    overflow: hidden;
    border-color: #e2e8f0;
    background: #fff;
}

.tap-card-summary {
    display: block;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
    border-radius: 12px 12px 0 0;
    background: #fbfbfb;
}

.tap-card-summary::-webkit-details-marker {
    display: none;
}

.tap-card-summary:focus,
.tap-card-summary:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: -3px;
}

.tap-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    margin-bottom: .45rem;
}

.tap-summary-main {
    display: block;
    width: 100%;
}

.tap-summary-main > span {
    display: block;
    width: 100%;
    margin-top: .25rem;
}

.tap-summary-title {
    font-weight: 800;
    line-height: 1.25;
    min-width: 0;
}

.tap-summary-location,
.tap-summary-detour,
.tap-summary-source {
    font-size: .92rem;
    opacity: .88;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tap-summary-toggle {
    flex: 0 0 auto;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.tap-collapsible-card .tap-summary-hide {
    display: none;
}

.tap-collapsible-card[open] .tap-summary-view {
    display: none;
}

.tap-collapsible-card[open] .tap-summary-hide {
    display: inline;
}

.tap-collapsible-card[open] .tap-card-summary {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tap-card-details {
    padding: .9rem 1rem 1rem;
    background: #fff;
}

.tap-card-details p:first-child {
    margin-top: 0;
}

@media (max-width: 640px) {
    .tap-summary-header {
        flex-direction: column;
        gap: .55rem;
    }
    .tap-summary-toggle {
        align-self: flex-start;
    }
}

/* v0.1.30: Required amenity validation display */
.tap-summary-amenities {
    font-size: .92rem;
    opacity: .9;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tap-amenity-details {
    margin: .75rem 0;
    padding: .75rem .85rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.tap-amenity-details ul {
    margin: .35rem 0 0 1.1rem;
    padding: 0;
}

.tap-amenity-details li {
    margin: .15rem 0;
}

.tap-places-diagnostics {
    border-left: 4px solid #8a6f36;
}
.tap-places-diagnostics ul {
    margin-top: 0.5rem;
}
.tap-places-diagnostics li {
    margin: 0.15rem 0;
}


.tap-debug-panel {
    border: 2px solid #7c3aed;
    background: #f5f3ff;
    color: #2e1065;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0 16px;
    font-size: 0.92rem;
}
.tap-debug-panel ul,
.tap-places-diagnostics ul {
    margin: 8px 0 0 18px;
    padding: 0;
}
.tap-debug-panel li,
.tap-places-diagnostics li {
    margin: 3px 0;
}


/* v0.1.75: Compact collapsed result cards */
.tap-card-summary {
    padding: .72rem .82rem;
}
.tap-card-details {
    padding: .8rem .9rem .9rem;
}
.tap-summary-header {
    margin-bottom: .3rem;
}
.tap-summary-title {
    font-size: 1rem;
}
.tap-summary-main > span {
    margin-top: .18rem;
}
.tap-summary-location,
.tap-summary-detour,
.tap-summary-source {
    font-size: .86rem;
    line-height: 1.32;
}
.tap-summary-source {
    opacity: .72;
}
.tap-summary-toggle {
    font-size: .84rem;
    padding: .2rem .55rem;
    background: #e8f3fb;
}
@media (max-width: 640px) {
    .tap-card-summary {
        padding: .68rem .72rem;
    }
}


/* v0.1.78: UX density, tooltip help, and public results cleanup */
.tap-trip-planner-wrap {
    margin: 1rem auto;
}

.tap-trip-planner,
.tap-trip-results {
    padding: clamp(.95rem, 1.6vw, 1.55rem);
    margin: .9rem auto;
}

.tap-grid {
    gap: .75rem 1rem;
}

.tap-trip-form label,
.tap-fieldset label,
.tap-options-row label {
    margin-bottom: .5rem;
    line-height: 1.32;
}

.tap-trip-form input[type="text"],
.tap-trip-form input[type="number"],
.tap-trip-form select {
    min-height: 40px;
    padding: .55rem .65rem;
}

.tap-fieldset {
    margin: .95rem 0;
    padding: .8rem .9rem;
}

.tap-options-row {
    gap: .45rem .85rem;
    margin: .75rem 0;
}

.tap-disclaimer-check {
    padding: .68rem .75rem;
    line-height: 1.35;
}

.tap-button {
    padding: .72rem 1.05rem;
}

.tap-loading {
    margin-top: 1rem;
    padding: 1rem;
    scroll-margin-top: 1rem;
}

.tap-tire {
    font-size: 3.25rem;
}

.tap-result-actions {
    margin: .7rem 0;
}

.tap-days-grid {
    gap: .75rem;
}

.tap-day,
.tap-card {
    padding: .78rem;
    margin: .55rem 0;
}

.tap-day h4,
.tap-day h5,
.tap-day p {
    margin-top: .45rem;
    margin-bottom: .45rem;
}

.tap-card-summary {
    padding: .58rem .68rem;
}

.tap-card-details {
    padding: .65rem .75rem .75rem;
}

.tap-card-details p {
    margin-top: .45rem;
    margin-bottom: .45rem;
    line-height: 1.35;
}

.tap-summary-header {
    margin-bottom: .22rem;
}

.tap-summary-main > span {
    margin-top: .12rem;
}

.tap-summary-location,
.tap-summary-detour,
.tap-summary-source,
.tap-summary-amenities {
    line-height: 1.24;
}

.tap-help-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.tap-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-left: .25rem;
    border-radius: 999px;
    border: 1px solid #94a3b8;
    background: #f8fafc;
    color: #334155;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.tap-help-icon:focus,
.tap-help-icon:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.tap-help-tooltip {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: calc(100% + .45rem);
    width: min(280px, 80vw);
    transform: translateX(-50%);
    padding: .55rem .65rem;
    border-radius: .5rem;
    background: #1f2937;
    color: #fff;
    font-size: .84rem;
    line-height: 1.3;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
}

.tap-help-wrap:hover .tap-help-tooltip,
.tap-help-icon:focus + .tap-help-tooltip,
.tap-help-icon:focus-visible + .tap-help-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .tap-help-tooltip {
        left: 0;
        transform: none;
    }
}

/* v0.1.84: Vertical day-by-day result layout */
.tap-days-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.tap-days-grid {
    display: block;
}

.tap-day {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.tap-day-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
    padding: .78rem .9rem;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.tap-day-summary::-webkit-details-marker {
    display: none;
}

.tap-day-summary:focus,
.tap-day-summary:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: -3px;
}

.tap-day-summary-main {
    display: block;
    min-width: 0;
}

.tap-day-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.tap-day-route {
    display: block;
    margin-top: .2rem;
    font-size: .92rem;
    line-height: 1.3;
    opacity: .86;
    overflow-wrap: anywhere;
}

.tap-day-toggle {
    flex: 0 0 auto;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #e8f3fb;
}

.tap-day .tap-day-view {
    display: none;
}

.tap-day .tap-day-hide {
    display: inline;
}

.tap-day:not([open]) .tap-day-view {
    display: inline;
}

.tap-day:not([open]) .tap-day-hide {
    display: none;
}

.tap-day:not([open]) .tap-day-summary {
    border-radius: 12px;
}

.tap-day-body {
    padding: .75rem .85rem .85rem;
    border-top: 1px solid #e2e8f0;
}

.tap-day-body h5 {
    margin: .1rem 0 .55rem;
}

.tap-day-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    align-items: start;
}

.tap-day-cards .tap-card {
    margin: 0;
}

@media (max-width: 980px) {
    .tap-day-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tap-day-summary {
        flex-direction: column;
        gap: .55rem;
    }
    .tap-day-toggle {
        align-self: flex-start;
    }
    .tap-day-cards {
        grid-template-columns: 1fr;
    }
}

/* v0.1.85: Day/card button-only toggles and spacing polish */
.tap-days-list {
    gap: .58rem;
}

.tap-day {
    border-radius: 12px;
}

.tap-day-summary {
    padding: .55rem .7rem;
    cursor: default;
    border-radius: 12px 12px 0 0;
}

.tap-day:not(.tap-day-open) .tap-day-summary {
    border-radius: 12px;
}

.tap-day:not(.tap-day-open) .tap-day-body {
    display: none;
}

.tap-day:not(.tap-day-open) .tap-day-view {
    display: inline;
}

.tap-day:not(.tap-day-open) .tap-day-hide {
    display: none;
}

.tap-day.tap-day-open .tap-day-view {
    display: none;
}

.tap-day.tap-day-open .tap-day-hide {
    display: inline;
}

.tap-day-toggle,
.tap-summary-toggle {
    border: 0;
    cursor: pointer;
    color: #0f3f66;
    font-family: inherit;
    line-height: 1.2;
}

.tap-day-toggle:hover,
.tap-summary-toggle:hover,
.tap-day-toggle:focus,
.tap-summary-toggle:focus,
.tap-day-toggle:focus-visible,
.tap-summary-toggle:focus-visible {
    background: #dbeafe;
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.tap-day-title {
    font-size: .98rem;
}

.tap-day-route {
    margin-top: .12rem;
    font-size: .86rem;
}

.tap-day-body {
    padding: .55rem .65rem .7rem;
}

.tap-day-body h5 {
    margin: 0 0 .4rem;
}

.tap-day-cards {
    gap: .48rem;
}

.tap-card-summary {
    cursor: default;
    padding: .48rem .58rem;
}

.tap-card-open .tap-card-summary {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tap-collapsible-card .tap-summary-view {
    display: inline;
}

.tap-collapsible-card .tap-summary-hide {
    display: none;
}

.tap-collapsible-card.tap-card-open .tap-summary-view {
    display: none;
}

.tap-collapsible-card.tap-card-open .tap-summary-hide {
    display: inline;
}

.tap-card-details {
    padding: .52rem .62rem .65rem;
}

.tap-card-details[hidden] {
    display: none;
}

.tap-summary-header {
    gap: .45rem;
    margin-bottom: .12rem;
}

.tap-summary-main > span {
    margin-top: .08rem;
}

.tap-summary-title {
    line-height: 1.18;
}

.tap-summary-location,
.tap-summary-detour,
.tap-summary-source,
.tap-summary-amenities {
    font-size: .82rem;
    line-height: 1.18;
}

@media (max-width: 640px) {
    .tap-day-summary {
        gap: .35rem;
        padding: .52rem .62rem;
    }
    .tap-day-body {
        padding: .5rem .55rem .62rem;
    }
    .tap-card-summary {
        padding: .5rem .58rem;
    }
}

/* v0.1.89 Nearby Services: Laundry Phase 1 */
.tap-nearby-services {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: .9rem 1rem;
    margin: 1rem 0 0;
    background: #fafafa;
}

.tap-nearby-services-summary {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
}

.tap-services-toggle {
    border: 1px solid currentColor;
    background: transparent;
    border-radius: 999px;
    padding: .35rem .65rem;
    cursor: pointer;
    font-weight: 700;
}

.tap-nearby-services .tap-services-hide,
.tap-nearby-services.tap-services-open .tap-services-view {
    display: none;
}

.tap-nearby-services.tap-services-open .tap-services-hide {
    display: inline;
}

.tap-nearby-service-list {
    display: grid;
    gap: .65rem;
    margin: .75rem 0;
}

.tap-nearby-service-item {
    display: grid;
    gap: .2rem;
    padding: .65rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee;
}

/* v0.1.90 Nearby Laundry campground-coordinate refinement */
.tap-nearby-service-nearest {
    display: block;
    font-size: 0.92em;
    opacity: 0.86;
}

/* v0.2.0 multi-destination / save-export controls */
.tap-waypoint-panel {
    grid-column: 1 / -1;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 12px;
    background: #fafafa;
}
.tap-waypoint-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}
.tap-small-button,
.tap-waypoint-remove,
.tap-waypoint-drag {
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    padding: 6px 9px;
}
.tap-waypoint-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.tap-waypoint-row {
    display: grid;
    grid-template-columns: auto auto minmax(160px, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}
.tap-waypoint-row input {
    width: 100%;
}
.tap-waypoint-dragging {
    opacity: 0.55;
}
.tap-regenerate-waypoints {
    margin-top: 10px;
}
.tap-button-secondary {
    background: #f3f3f3;
    color: #222;
}
.tap-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.tap-button-link {
    text-decoration: none;
}
.tap-save-message {
    margin: 8px 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7fff5;
    border: 1px solid #b9dfb3;
}
.tap-route-stops {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
}
.tap-route-stops ol {
    margin: 8px 0 0 20px;
}
.tap-route-stop-type {
    display: inline-block;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #555;
    min-width: 72px;
}
@media (max-width: 640px) {
    .tap-waypoint-row {
        grid-template-columns: auto 1fr auto;
    }
    .tap-waypoint-row input {
        grid-column: 1 / -1;
    }
    .tap-result-actions .tap-button,
    .tap-result-actions .tap-button-link {
        width: 100%;
        text-align: center;
    }
}


/* v0.2.1: route action button color consistency */
.tap-result-actions .tap-button,
.tap-result-actions .tap-button-link {
    background: #1f75a3;
    color: #fff;
    text-decoration: none;
}
.tap-result-actions .tap-button:hover,
.tap-result-actions .tap-button-link:hover,
.tap-result-actions .tap-button:focus,
.tap-result-actions .tap-button-link:focus {
    background: #155f86;
    color: #fff;
}

/* v0.2.6: selected campground plan actions */
.tap-card-action-strip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
.tap-card-select-label {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin: 0;
    padding: .2rem .5rem;
    border-radius: 999px;
    background: #eef6ff;
    color: #0f3f66;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}
.tap-card-select-label input {
    margin: 0;
}
.tap-card-remove-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
}
.tap-card-remove-view:hover,
.tap-card-remove-view:focus,
.tap-card-remove-view:focus-visible {
    background: #fee2e2;
    color: #7f1d1d;
    outline: 2px solid #fecaca;
    outline-offset: 2px;
}
.tap-selected-plan {
    margin: .85rem 0 1rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    border: 1px solid #b8d7f4;
    background: #f5fbff;
}
.tap-selected-plan-header {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
}
.tap-selected-plan h4 {
    margin: 0 0 .25rem;
}
.tap-selected-map-link {
    flex: 0 0 auto;
    white-space: nowrap;
}

.tap-selected-plan-intro span {
    display: block;
}
.tap-selected-plan-header .tap-button,
.tap-selected-plan-actions .tap-button {
    flex: 0 0 auto;
    white-space: nowrap;
}
.tap-selected-campgrounds-list {
    display: grid;
    gap: .45rem;
    margin-top: .75rem;
}
.tap-selected-campground {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: flex-start;
    padding: .6rem .7rem;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: #fff;
}
.tap-selected-campground span {
    display: block;
    font-size: .9rem;
    opacity: .82;
    margin-top: .12rem;
}
.tap-selected-remove {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    min-width: 1.6rem;
    height: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.tap-selected-remove:hover,
.tap-selected-remove:focus,
.tap-selected-remove:focus-visible {
    background: #fee2e2;
    color: #7f1d1d;
    outline: 2px solid #fecaca;
    outline-offset: 2px;
}
@media (max-width: 640px) {
    .tap-card-action-strip,
    .tap-selected-plan-header,
    .tap-selected-campground {
        width: 100%;
    }
    .tap-card-action-strip,
    .tap-selected-plan-header {
        justify-content: flex-start;
    }
    .tap-selected-plan-header,
    .tap-selected-campground {
        flex-direction: column;
    }
    .tap-selected-map-link {
        width: 100%;
        text-align: center;
    }
}


/* v0.2.7: readable result card controls */
.tap-card-summary {
    position: relative;
}
.tap-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .22rem;
}
.tap-summary-title {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: .25rem;
}
.tap-card-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .45rem;
    margin-top: .42rem;
    padding-top: .38rem;
    border-top: 1px solid #e8eef5;
}
.tap-card-action-row .tap-summary-toggle {
    flex: 0 0 auto;
}
.tap-card-action-row .tap-card-select-label {
    flex: 0 1 auto;
}
.tap-selected-map-link,
.tap-selected-map-link:visited,
.tap-selected-plan .tap-button,
.tap-selected-plan .tap-button:visited,
.tap-selected-plan .tap-button-link,
.tap-selected-plan .tap-button-link:visited {
    background: #1f75a3;
    color: #fff;
    text-decoration: none;
}
.tap-selected-map-link:hover,
.tap-selected-map-link:focus,
.tap-selected-map-link:focus-visible,
.tap-selected-plan .tap-button:hover,
.tap-selected-plan .tap-button:focus,
.tap-selected-plan .tap-button:focus-visible,
.tap-selected-plan .tap-button-link:hover,
.tap-selected-plan .tap-button-link:focus,
.tap-selected-plan .tap-button-link:focus-visible {
    background: #155f86;
    color: #fff;
}
@media (max-width: 640px) {
    .tap-card-action-row {
        align-items: stretch;
        flex-direction: column;
    }
    .tap-card-action-row .tap-summary-toggle,
    .tap-card-action-row .tap-card-select-label {
        width: 100%;
        justify-content: center;
    }
}

/* v0.2.10: selected plan actions + selected campground services */
.tap-selected-plan-actions {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}
.tap-selected-empty {
    padding: .65rem .75rem;
    border: 1px dashed #bdd7ef;
    border-radius: 10px;
    background: #fff;
    color: #475569;
}
.tap-selected-plan-status {
    margin: .6rem 0 0;
}
.tap-selected-plan .tap-button:disabled,
.tap-selected-plan .tap-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .55;
    background: #94a3b8;
    color: #fff;
}
.tap-selected-campground-main {
    flex: 1 1 auto;
    min-width: 0;
}
.tap-selected-services-panel {
    display: grid;
    gap: .5rem;
    margin-top: .6rem;
}
.tap-selected-service-group {
    padding: .55rem .6rem;
    border: 1px solid #e5eef7;
    border-radius: 9px;
    background: #f8fbff;
}
.tap-selected-service-list {
    display: grid;
    gap: .4rem;
    margin-top: .4rem;
}
.tap-selected-service-item {
    display: grid;
    gap: .1rem;
    padding: .45rem .5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.tap-selected-service-item span {
    margin-top: 0;
}
.tap-selected-services-loading {
    padding: .5rem .6rem;
    border: 1px dashed #bdd7ef;
    border-radius: 9px;
    background: #f8fbff;
}
@media (max-width: 640px) {
    .tap-selected-plan-actions,
    .tap-selected-plan-actions .tap-button,
    .tap-selected-plan-header .tap-button {
        width: 100%;
    }
}

/* v0.2.13: selected map include options */
.tap-selected-map-options {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .65rem;
    padding: .5rem .6rem;
    border: 1px dashed #bdd7ef;
    border-radius: 10px;
    background: #fff;
    font-size: .9rem;
}
.tap-selected-map-options label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.tap-rest-area-services .tap-nearby-services-summary strong {
    color: #1f2937;
}
@media (max-width: 640px) {
    .tap-selected-map-options {
        flex-direction: column;
    }
}

/* v0.2.26: selected stops restoration + in-route service add-stop controls */
.tap-nearby-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.45rem;
}

.tap-add-service-stop,
.tap-selected-move {
    border: 1px solid #0f6f95;
    border-radius: 999px;
    background: #ffffff;
    color: #0f5f80;
    font-weight: 700;
    cursor: pointer;
    padding: 0.35rem 0.7rem;
}

.tap-add-service-stop:hover,
.tap-add-service-stop:focus,
.tap-selected-move:hover,
.tap-selected-move:focus {
    background: #eef8fc;
}

.tap-selected-order-controls {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    margin-right: 0.6rem;
}

.tap-selected-move {
    line-height: 1;
    min-width: 2.1rem;
    padding: 0.25rem 0.45rem;
}

.tap-selected-move:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tap-selected-campground {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tap-selected-campground-main {
    flex: 1 1 auto;
}

.tap-field-help {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    opacity: 0.78;
}

.tap-feasibility-notice ul {
    margin: 8px 0 12px 20px;
}

.tap-feasibility-notice .tap-card-action-row {
    gap: 8px;
    flex-wrap: wrap;
}

.tap-service-stop-select {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.tap-service-stop-select input {
    margin: 0;
}

/* Selected plan compact state, day labels, and route-order controls */
.tap-selected-plan-body[hidden] {
    display: none;
}

.tap-selected-plan-collapsed {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.tap-selected-plan-collapsed .tap-selected-plan-header {
    margin-bottom: 0;
}

.tap-selected-plan-toggle {
    border: 1px solid #0f6f95;
    border-radius: 999px;
    background: #ffffff;
    color: #0f5f80;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
}

.tap-selected-plan-toggle:hover,
.tap-selected-plan-toggle:focus,
.tap-selected-plan-toggle:focus-visible {
    background: #eef8fc;
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.tap-selected-plan-toggle .tap-selected-plan-hide {
    display: none;
}

.tap-selected-plan-toggle[aria-expanded="true"] .tap-selected-plan-show {
    display: none;
}

.tap-selected-plan-toggle[aria-expanded="true"] .tap-selected-plan-hide {
    display: inline;
}

.tap-selected-day-label {
    display: inline-block;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0c4a6e;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.28rem 0.48rem;
    vertical-align: 0.08rem;
}

/* Campground phone line must exactly match the Location body copy.
 * Use explicit, high-specificity declarations so theme link/span rules cannot enlarge it. */
.tap-collapsible-card .tap-card-summary .tap-summary-main > .tap-summary-location,
.tap-collapsible-card .tap-card-summary .tap-summary-main > .tap-summary-phone {
    display: block;
    width: 100%;
    margin-top: .08rem;
    font-family: inherit !important;
    font-size: .82rem !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    opacity: .88;
    overflow-wrap: anywhere;
}

.tap-collapsible-card .tap-card-summary .tap-summary-main > .tap-summary-phone a,
.tap-collapsible-card .tap-card-summary .tap-summary-main > .tap-summary-phone a:link,
.tap-collapsible-card .tap-card-summary .tap-summary-main > .tap-summary-phone a:visited,
.tap-collapsible-card .tap-card-summary .tap-summary-main > .tap-summary-phone a:hover,
.tap-collapsible-card .tap-card-summary .tap-summary-main > .tap-summary-phone a:focus {
    font-family: inherit !important;
    font-size: .82rem !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.18 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: inherit !important;
    text-decoration: underline;
}


/* Selected plan: one shared container per trip day, regardless of stop type. */
.tap-selected-day-group {
    display: grid;
    gap: .4rem;
    padding: .55rem;
    border: 1px solid #cfe4f7;
    border-radius: 11px;
    background: #eef8ff;
}
.tap-selected-day-group > h5 {
    margin: 0;
}
.tap-selected-day-stops {
    display: grid;
    gap: .45rem;
}
.tap-selected-day-group .tap-selected-campground {
    margin: 0;
}

/* v0.2.41 Guest Road Pass presentation corrections */
.tap-guest-access-panel p {
    margin: .45rem 0;
}
.tap-guest-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .85rem;
}
.tap-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: .62rem 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}
.tap-access-result-message {
    margin: .65rem 0;
}
@media (max-width: 640px) {
    .tap-guest-access-actions .tap-secondary-button {
        width: 100%;
        text-align: center;
    }
}
