/* Route information board — faithful implementation of the supplied route-info reference. */
#route-preparation {
    position: relative;
    isolation: isolate;
    margin-top: 22px;
    border-radius: 28px;
    background: #f6faf8 url("../../img/route-info/decor/page-background.svg") center top / cover no-repeat;
    padding: 18px;
}

#route-preparation::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 1px solid rgba(207, 223, 216, .66);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.route-detail-section-heading--route-info {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

#route-preparation .route-guide-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

#route-preparation .route-guide-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce8e3;
    border-radius: 19px;
    background: rgba(255, 255, 255, .96);
    padding: 18px;
    box-shadow: 0 12px 34px rgba(38, 76, 62, .065);
}

#route-preparation .route-guide-card--summary {
    grid-column: span 7;
    grid-template-columns: minmax(0, 1fr) clamp(170px, 31%, 220px);
    min-height: 246px;
    padding: 14px;
}

#route-preparation .route-guide-card--suitability {
    grid-column: span 5;
    min-height: 246px;
}

#route-preparation .route-guide-card--wide { grid-column: 1 / -1; }
#route-preparation .route-guide-card--expect,
#route-preparation .route-guide-card--difficulty,
#route-preparation .route-guide-card--time { grid-column: span 4; min-height: 280px; }
#route-preparation .route-guide-card--season { grid-column: span 5; min-height: 224px; }
#route-preparation .route-guide-card--gear { grid-column: span 7; min-height: 224px; }

.route-info-card-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

#route-preparation .route-guide-card__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #16201c;
    font-size: clamp(17px, 1.25vw, 21px);
    font-weight: 890;
    letter-spacing: -.025em;
    line-height: 1.12;
}

#route-preparation .route-guide-card__title > img,
#route-preparation .route-guide-summary__title > img {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px;
    flex: 0 0 46px;
    object-fit: contain;
}

.route-info-card-heading__hint {
    margin-left: auto;
    color: #8a9791;
    font-size: 11.5px;
    font-weight: 720;
    line-height: 1.25;
    text-align: right;
}

.route-info-card-heading--stacked {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
}

.route-info-card-heading--stacked .route-info-card-heading__hint {
    margin: 0 0 0 56px;
    text-align: left;
}

.route-guide-summary__copy { padding: 2px 4px 2px 6px; }

#route-preparation .route-guide-summary__text {
    display: block;
    overflow: visible;
    margin-top: 9px;
    color: #425048;
    font-size: 14px;
    font-weight: 560;
    line-height: 1.52;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
}

#route-preparation .route-guide-summary__facts {
    gap: 8px;
    padding-top: 13px;
}

#route-preparation .route-guide-summary__facts > div {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 7px;
}

#route-preparation .route-guide-summary__facts img { width: 23px; height: 23px; }
#route-preparation .route-guide-summary__facts dt { color: #87938d; font-size: 12px; }
#route-preparation .route-guide-summary__facts dd { color: #24302b; font-size: 15px; }

#route-preparation .route-guide-summary__media {
    min-height: 216px;
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

#route-preparation .route-guide-suitability {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 15px;
}

#route-preparation .route-guide-suitability__item {
    min-height: 49px;
    grid-template-columns: minmax(92px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 8px;
    border-top: 1px solid #edf2f0;
    padding: 8px 4px;
    color: #38453f;
    font-size: 13px;
}

#route-preparation .route-guide-suitability__item:nth-child(-n + 2) { border-top: 0; }
#route-preparation .route-guide-suitability__item:nth-child(even) { border-left: 1px solid #edf2f0; padding-left: 13px; }
#route-preparation .route-guide-suitability__label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
}
#route-preparation .route-guide-suitability__label > span {
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
#route-preparation .route-guide-suitability__label img { width: 22px; height: 22px; opacity: 1; }

#route-preparation .route-guide-suitability__value {
    min-width: 0;
    max-width: 100%;
    justify-self: end;
    border-radius: 999px;
    background: #f0f3f2;
    color: #5c6862;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 840;
    line-height: 1.22;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

#route-preparation .route-guide-suitability__item--good .route-guide-suitability__value { background: #e5f8ee; color: #27935b; }
#route-preparation .route-guide-suitability__item--warn .route-guide-suitability__value { background: #fff3df; color: #b9721b; }
#route-preparation .route-guide-suitability__item--bad .route-guide-suitability__value { background: #edf1f0; color: #52605a; }

.route-info-card-heading--access { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.route-info-card-heading--access .route-info-card-heading__hint { margin-left: 0; justify-self: start; text-align: left; }

.route-info-map-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #dbe6e1;
    border-radius: 11px;
    background: #fff;
    color: #35423c;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 820;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.route-info-map-link:hover { border-color: #f47b4c; color: #d95223; transform: translateY(-1px); }
.route-info-map-link img { width: 17px; height: 17px; }
.route-info-map-link img:last-child { width: 14px; height: 14px; }

#route-preparation .route-guide-access-grid { gap: 12px; margin-top: 12px; }

#route-preparation .route-guide-access-item {
    min-height: 119px;
    border: 1px solid #e1ebe7;
    border-radius: 14px;
    background: #fbfdfc;
    padding: 12px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#route-preparation .route-guide-access-item:first-child { border-left: 1px solid #e1ebe7; padding-left: 12px; }
#route-preparation .route-guide-access-item:hover { border-color: #c7dbd2; box-shadow: 0 10px 24px rgba(38, 76, 62, .08); transform: translateY(-2px); }

#route-preparation .route-guide-access-item__head { display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 9px; font-size: 13px; }
#route-preparation .route-guide-access-item__head > img:first-child { width: 38px; height: 38px; }
#route-preparation .route-guide-access-item__head .route-guide-access-item__chevron { width: 15px; height: 15px; }
#route-preparation .route-guide-access-item .route-guide-card__text,
#route-preparation .route-guide-access-item .route-info-empty-copy { margin: 4px 0 0 47px; }

#route-preparation .route-guide-card__text:not(.route-guide-summary__text),
.route-info-empty-copy {
    color: #5c6962;
    font-size: 13.5px;
    font-weight: 560;
    line-height: 1.5;
}

.route-info-empty-copy { margin-top: 14px; }
#route-preparation .route-guide-card__text--prose { margin-top: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.route-guide-icon-list__copy--narrative { align-self: start; }
.route-guide-icon-list__copy--narrative small { display: block; }
.route-detail-page.is-route-admin-editing .route-info-empty-copy { display: none; }

#route-preparation .route-guide-icon-list { gap: 10px 18px; margin-top: 15px; }
#route-preparation .route-guide-icon-list--single { gap: 8px; }

#route-preparation .route-guide-icon-list__item {
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: #344139;
    font-size: 12px;
}

#route-preparation .route-guide-icon-list__icon,
.route-info-detail-list__icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 10px;
    background: #effaf4;
}

#route-preparation .route-guide-icon-list__icon img,
.route-info-detail-list__icon img { width: 19px; height: 19px; filter: none !important; }

.route-guide-icon-list__copy { display: grid; gap: 2px; min-width: 0; }
.route-guide-icon-list__copy strong { color: #26332d; font-size: 13px; font-weight: 840; line-height: 1.3; overflow-wrap: anywhere; }
.route-guide-icon-list__copy small { color: #68766f; font-size: 13px; font-weight: 560; line-height: 1.52; white-space: pre-line; overflow-wrap: anywhere; }

.route-info-detail-list { display: grid; gap: 7px; margin-top: 15px; }
.route-info-detail-list__item { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: start; gap: 9px; }
.route-info-detail-list__item > span:last-child { display: grid; gap: 2px; }
.route-info-detail-list__item strong { color: #26332d; font-size: 13px; font-weight: 850; }
.route-info-detail-list__item small { display: block; color: #6f7c75; font-size: 12px; font-weight: 560; line-height: 1.42; white-space: pre-line; }
.route-info-detail-list__item--risk .route-info-detail-list__icon { background: #fff3e4; }

#route-preparation .route-guide-time-list { gap: 7px; margin-top: 15px; }
#route-preparation .route-guide-time-list__row {
    display: grid;
    min-height: 52px;
    grid-template-columns: minmax(108px, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 10px;
    border-radius: 11px;
    background: #f5f8fa;
    padding: 8px 10px;
    color: #5a6761;
    font-size: 12px;
}

#route-preparation .route-guide-time-list__label { grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 7px; }
#route-preparation .route-guide-time-list__label > span { min-width: 0; line-height: 1.32; overflow-wrap: anywhere; }
#route-preparation .route-guide-time-list__label img { width: 21px; height: 21px; }
#route-preparation .route-guide-time-list__row strong {
    min-width: 0;
    max-width: 100%;
    justify-self: end;
    color: #1f2b26;
    font-size: 15px;
    line-height: 1.28;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
}

#route-preparation .route-guide-time-list__note {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 8px;
    margin-top: 9px;
    border-radius: 11px;
    background: #fff8eb;
    color: #746b56;
    padding: 9px 10px;
    font-size: 13.5px;
    line-height: 1.52;
}

#route-preparation .route-guide-time-list__note img { width: 21px; height: 21px; }

.route-guide-card--season,
.route-guide-card--gear { isolation: isolate; }
.route-guide-card--season > :not(.route-info-season-art):not(.route-info-season-caption),
.route-guide-card--gear > :not(.route-info-gear-pine):not(.route-info-gear-caption) { position: relative; z-index: 2; }

.route-guide-card--season .route-guide-icon-list,
.route-info-empty-copy--season { width: 100%; }
.route-guide-card--season .route-guide-icon-list { grid-template-columns: 1fr; }

.route-info-season-art { position: absolute; z-index: 0; right: -13px; bottom: -24px; width: 54%; max-width: 300px; opacity: .64; pointer-events: none; }
.route-info-season-caption { position: absolute; z-index: 1; right: 30px; bottom: 18px; width: 82px; pointer-events: none; transform: rotate(-3deg); }

.route-guide-card--gear .route-guide-icon-list,
.route-info-gear-default { width: 100%; }
.route-guide-card--gear .route-guide-icon-list__item--narrative { grid-column: 1 / -1; align-items: start; }
.route-guide-card--season .route-guide-icon-list__item--narrative { align-items: start; }
.route-info-gear-default { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 17px; }
.route-info-gear-default span { display: flex; align-items: center; gap: 8px; color: #435048; font-size: 13px; font-weight: 680; }
.route-info-gear-default img { width: 19px; height: 19px; }
.route-info-gear-pine { position: absolute; z-index: 0; right: -5px; bottom: -18px; width: 80px; opacity: .55; pointer-events: none; }
.route-info-gear-caption { position: absolute; z-index: 1; right: 42px; bottom: 19px; width: 104px; pointer-events: none; transform: rotate(-4deg); }

html[data-theme="dark"] #route-preparation {
    background-color: #101a17;
    background-image: none;
}

html[data-theme="dark"] #route-preparation::before { border-color: rgba(89, 117, 105, .45); }
html[data-theme="dark"] #route-preparation .route-guide-card { border-color: #30423a; background: rgba(24, 36, 31, .97); box-shadow: 0 14px 36px rgba(0, 0, 0, .2); }
html[data-theme="dark"] #route-preparation .route-guide-card__title,
html[data-theme="dark"] #route-preparation .route-guide-summary__facts dd,
html[data-theme="dark"] .route-guide-icon-list__copy strong,
html[data-theme="dark"] .route-info-detail-list__item strong,
html[data-theme="dark"] #route-preparation .route-guide-access-item__head { color: #f1f6f3; }
html[data-theme="dark"] #route-preparation .route-guide-summary__text,
html[data-theme="dark"] #route-preparation .route-guide-card__text,
html[data-theme="dark"] .route-info-empty-copy,
html[data-theme="dark"] .route-info-detail-list__item small,
html[data-theme="dark"] .route-guide-icon-list__copy small { color: #aab8b1; }
html[data-theme="dark"] #route-preparation .route-guide-suitability__item { border-color: #33453d; color: #cbd6d0; }
html[data-theme="dark"] #route-preparation .route-guide-suitability__item:nth-child(even) { border-left-color: #33453d; }
html[data-theme="dark"] #route-preparation .route-guide-suitability__value { background: #34443e; color: #d7e0dc; }
html[data-theme="dark"] #route-preparation .route-guide-access-item { border-color: #35483f; background: #1b2924; }
html[data-theme="dark"] .route-info-map-link { border-color: #40544b; background: #1c2b25; color: #dce6e1; }
html[data-theme="dark"] #route-preparation .route-guide-time-list__row { background: #202f2a; color: #a9b8b0; }
html[data-theme="dark"] #route-preparation .route-guide-time-list__row strong { color: #f3f6f4; }
html[data-theme="dark"] #route-preparation .route-guide-time-list__note { background: #332c20; color: #d1c6a8; }
html[data-theme="dark"] .route-info-gear-default span { color: #c7d2cc; }

@media (max-width: 1080px) {
    #route-preparation .route-guide-card--summary,
    #route-preparation .route-guide-card--suitability { grid-column: span 6; }
    #route-preparation .route-guide-card--summary { grid-template-columns: minmax(0, 1fr) 170px; }
    #route-preparation .route-guide-card--season,
    #route-preparation .route-guide-card--gear { grid-column: span 6; }
    .route-info-card-heading__hint { display: none; }
    .route-info-card-heading--access { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 820px) {
    #route-preparation { margin: 16px 10px 0; padding: 11px; border-radius: 22px; }
    #route-preparation .route-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #route-preparation .route-guide-card,
    #route-preparation .route-guide-card--summary,
    #route-preparation .route-guide-card--suitability,
    #route-preparation .route-guide-card--wide,
    #route-preparation .route-guide-card--expect,
    #route-preparation .route-guide-card--difficulty,
    #route-preparation .route-guide-card--time,
    #route-preparation .route-guide-card--season,
    #route-preparation .route-guide-card--gear { grid-column: 1 / -1; }
    #route-preparation .route-guide-card--expect,
    #route-preparation .route-guide-card--difficulty,
    #route-preparation .route-guide-card--time,
    #route-preparation .route-guide-card--season,
    #route-preparation .route-guide-card--gear { min-height: 0; }
    .route-info-card-heading--access { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 600px) {
    #route-preparation { margin-inline: 8px; padding: 8px; border-radius: 18px; }
    #route-preparation .route-guide-card { border-radius: 15px; padding: 14px; }
    #route-preparation .route-guide-card--summary { display: grid; grid-template-columns: 1fr; padding: 10px; }
    #route-preparation .route-guide-summary__media { min-height: 220px; order: -1; }
    #route-preparation .route-guide-summary__copy { padding: 11px 4px 4px; }
    #route-preparation .route-guide-summary__facts { grid-template-columns: 1fr; gap: 9px; }
    #route-preparation .route-guide-summary__facts > div + div::before { display: none; }
    #route-preparation .route-guide-card__title { font-size: 17px; }
    #route-preparation .route-guide-card__title > img,
    #route-preparation .route-guide-summary__title > img { width: 42px !important; height: 42px !important; min-width: 42px; flex-basis: 42px; }
    #route-preparation .route-guide-suitability { grid-template-columns: 1fr; }
    #route-preparation .route-guide-suitability__item,
    #route-preparation .route-guide-suitability__item:nth-child(-n + 2) { border-top: 1px solid #edf2f0; }
    #route-preparation .route-guide-suitability__item:first-child { border-top: 0; }
    #route-preparation .route-guide-suitability__item:nth-child(even) { border-left: 0; padding-left: 4px; }
    #route-preparation .route-guide-time-list__row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    #route-preparation .route-guide-time-list__row strong { justify-self: start; padding-left: 32px; text-align: left; }
    .route-info-card-heading--access { grid-template-columns: 1fr; }
    .route-info-map-link { width: 100%; margin-top: 8px; }
    #route-preparation .route-guide-access-grid { grid-template-columns: 1fr; }
    #route-preparation .route-guide-access-item { min-height: 104px; }
    .route-guide-card--season .route-guide-icon-list,
    .route-info-empty-copy--season,
    .route-guide-card--gear .route-guide-icon-list,
    .route-info-gear-default { width: 100%; }
    .route-info-season-art,
    .route-info-season-caption,
    .route-info-gear-pine,
    .route-info-gear-caption { display: none; }
    .route-info-gear-default { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    #route-preparation .route-guide-access-item,
    .route-info-map-link { transition: none !important; }
}
