
/* 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-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 {
    body:has(.tap-trip-planner) .widget-area,
    body:has(.tap-trip-planner) aside,
    .tap-trip-form,
    .tap-loading,
    .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;
}
