.lpwp-route-details {
    --lpwp-border: #dfe3e7;
    --lpwp-muted: #5d6873;
    --lpwp-open: #177a42;
    --lpwp-closed: #b42318;
    --lpwp-seasonal: #946200;
    margin-block: 2rem;
}

.lpwp-route-details > h2 {
    margin-bottom: 1rem;
}

.lpwp-route-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-block: 1rem 1.5rem;
}

.lpwp-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.lpwp-status::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
}

.lpwp-status--open { color: var(--lpwp-open); }
.lpwp-status--closed { color: var(--lpwp-closed); }
.lpwp-status--seasonal { color: var(--lpwp-seasonal); }
.lpwp-status--unknown { color: var(--lpwp-muted); }

.lpwp-route-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.lpwp-route-facts span {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f1f3f5;
    color: #27323b;
    font-size: 0.9rem;
}

.lpwp-route-section {
    margin-block: 1.25rem;
    padding-block: 1rem;
    border-top: 1px solid var(--lpwp-border);
}

.lpwp-route-closure-notice {
    margin-block: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--lpwp-closed);
    border-left-width: 0.5rem;
    border-radius: 6px;
    background: #fff5f4;
    color: #5f1711;
}

.lpwp-route-closure-notice h3 { margin: 0 0 0.75rem; color: var(--lpwp-closed); }
.lpwp-route-closure-notice p:last-child { margin-bottom: 0; }

.lpwp-route-section > h3 {
    margin-top: 0;
}

.lpwp-route-muted {
    color: var(--lpwp-muted);
}

.lpwp-requirement-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lpwp-requirement-group {
    padding: 1rem;
    border-left: 0.25rem solid var(--lpwp-border);
    background: #f7f8f9;
}

.lpwp-requirement-group--required {
    border-left-color: #b42318;
}

.lpwp-requirement-group--recommended {
    border-left-color: #946200;
}

.lpwp-requirement-group h4 {
    margin: 0 0 0.5rem;
}

.lpwp-requirement-group ul {
    margin: 0;
    padding-left: 1.25rem;
}

.lpwp-route-definition-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
}

.lpwp-route-definition-list > div {
    min-width: 0;
}

.lpwp-route-definition-list dt {
    color: var(--lpwp-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.lpwp-route-definition-list dd {
    margin: 0.2rem 0 0;
}

.lpwp-route-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1.5rem;
}

.lpwp-route-map-shell {
    margin-top: 1.25rem;
}

.lpwp-route-map {
    position: relative;
    z-index: 0;
    width: 100%;
    height: clamp(260px, 38vw, 430px);
    overflow: hidden;
    border: 1px solid var(--lpwp-border);
    border-radius: 8px;
    background: #eef1f3;
}

.lpwp-route-map--unavailable::after {
    position: absolute;
    inset: 0;
    display: grid;
    padding: 1rem;
    color: var(--lpwp-muted);
    content: "Map could not be loaded.";
    place-items: center;
}

.lpwp-route-map-key {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.65rem;
    font-size: 0.9rem;
}

.lpwp-route-map-key span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lpwp-route-map-key span::before {
    width: 0.7rem;
    height: 0.7rem;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #8a949d;
    content: "";
}

.lpwp-route-map-key__start::before { background: #177a42; }
.lpwp-route-map-key__end::before { background: #b42318; }

.lpwp-route-map-note,
.lpwp-route-map-link {
    margin: 0.65rem 0 0;
}

.lpwp-route-map-note {
    color: var(--lpwp-muted);
    font-size: 0.9rem;
}

.lpwp-route-claim-link {
    display: inline-block;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    background: #177a42;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.lpwp-route-claim-link:hover,
.lpwp-route-claim-link:focus {
    background: #116233;
    color: #fff;
}

.lpwr-route-enquiry__details {
    padding: 1rem;
    border: 1px solid var(--lpwp-border);
    border-radius: 8px;
    background: #f8faf9;
}

.lpwr-route-enquiry__details summary {
    color: #177a42;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.lpwr-route-enquiry__form {
    margin-top: 1rem;
}

.lpwr-route-enquiry__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.lpwr-route-enquiry__grid label,
.lpwr-route-enquiry__grid label > span {
    display: block;
}

.lpwr-route-enquiry__grid label > span {
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.lpwr-route-enquiry__grid input,
.lpwr-route-enquiry__grid textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #aeb4b9;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.lpwr-route-enquiry__message {
    grid-column: 1 / -1;
}

.lpwr-route-enquiry__privacy {
    color: var(--lpwp-muted);
    font-size: 0.9rem;
}

.lpwr-route-enquiry__submit {
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 5px;
    background: #177a42;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lpwr-route-enquiry__submit:hover,
.lpwr-route-enquiry__submit:focus {
    background: #116233;
}

.lpwr-route-enquiry__honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.lpwr-route-enquiry__notice {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #177a42;
    background: #effaf3;
}

.lpwr-route-enquiry__notice--error {
    border-left-color: #b42318;
    background: #fff1f0;
}

.lpwr-route-enquiry__notice p {
    margin: 0;
}

.lpwp-route-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.lpwp-route-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
}

.lpwp-route-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpwp-gallery-dialog {
    width: min(94vw, 1200px);
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
}

.lpwp-gallery-dialog::backdrop {
    background: rgb(0 0 0 / 82%);
}

.lpwp-gallery-dialog figure {
    display: grid;
    min-height: 14rem;
    margin: 0;
    place-items: center;
}

.lpwp-gallery-dialog figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 86vh;
    object-fit: contain;
}

.lpwp-gallery-dialog figcaption {
    position: absolute;
    right: 4rem;
    bottom: 0.75rem;
    left: 4rem;
    text-align: center;
}

.lpwp-gallery-close,
.lpwp-gallery-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 999px;
    background: rgb(0 0 0 / 68%);
    color: #fff;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    place-items: center;
}

.lpwp-gallery-close {
    top: 0.75rem;
    right: 0.75rem;
}

.lpwp-gallery-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lpwp-gallery-prev { left: 0.75rem; }
.lpwp-gallery-next { right: 0.75rem; }

.lpwp-gallery-nav[hidden] {
    display: none;
}

.lpwp-gallery-close:focus-visible,
.lpwp-gallery-nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 680px) {
    .lpwp-requirement-groups,
    .lpwp-route-definition-list,
    .lpwp-route-list {
        grid-template-columns: 1fr;
    }

    .lpwp-route-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lpwr-route-enquiry__grid {
        grid-template-columns: 1fr;
    }
}
