body.single-ruta #ajax-content-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

.ms-route-single {
    --ms-single-bg: #f8f4ea;
    --ms-single-surface: #fff8f4;
    --ms-single-card: #ffffff;
    --ms-single-text: #1f1b17;
    --ms-single-muted: #71675b;
    --ms-single-primary: #7c5726;
    --ms-single-primary-hover: #b9824f;
    --ms-single-border: #d3c4b5;
    --ms-single-secondary: #56642b;
    background: var(--ms-single-bg);
    color: var(--ms-single-text);
    padding-bottom: 4rem;
}

.ms-route-single__hero {
    position: relative;
    min-height: 34rem;
    display: flex;
    align-items: flex-end;
}

.ms-route-single__hero-image,
.ms-route-single__hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ms-route-single__hero-image {
    object-fit: cover;
}

.ms-route-single__hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.ms-route-single__hero-content {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
    color: #fff;
}

.ms-route-single__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.ms-route-single__breadcrumbs a {
    color: inherit;
}

.ms-route-single__title {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    color: #ffffff;
}

.ms-route-single__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.ms-route-single__chip {
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: #56642b;
    color: #fff;
    font-weight: 700;
}

.ms-route-single__chip--soft {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.ms-route-single__metrics,
.ms-route-single__layout {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
}

.ms-route-single__metrics {
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    background: var(--ms-single-card);
    border-radius: 1.25rem;
    box-shadow: 0 20px 42px rgba(58, 34, 8, 0.1);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 1rem;
    align-items: center;
}

.ms-route-single__metric {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ms-route-single__metric-label {
    color: var(--ms-single-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ms-route-single__metric-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ms-route-single__hero > .ms-route-single__metric-actions,
.ms-route-single__content > .ms-route-single__actions,
.ms-route-single__lead {
    display: none;
}

.ms-route-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
    gap: 2rem;
    padding-top: 3rem;
    align-items: stretch;
    grid-auto-flow: dense;
}

.ms-route-single__content {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
}

.ms-route-single__lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4f453a;
}

.ms-route-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 2rem;
}

.ms-route-single__button,
.ms-route-single__download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    background: var(--ms-single-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.ms-route-single__download-button {
    min-height: 44px;
    gap: 0.45rem;
    white-space: nowrap;
}

.ms-route-single__download-button span {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
}

.ms-route-single__download-button span::before {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
}

.ms-route-single__download-button span::after {
    content: none;
}

.ms-route-single__button:hover,
.ms-route-single__download-button:hover {
    background: var(--ms-single-primary-hover);
    color: #fff;
}

.ms-route-single__button--secondary,
.ms-route-single__download-button--secondary {
    background: #ffffff;
    color: var(--ms-single-text);
    border: 1px solid var(--ms-single-border);
}

.ms-route-single__download-button--secondary span {
    background: rgba(124, 87, 38, 0.12);
}

.ms-route-single__body,
.ms-route-single__specs,
.ms-route-single__map-card,
.ms-route-single__profile-card,
.ms-route-single__tip,
.ms-route-single__gallery-item {
    background: var(--ms-single-card);
    border: 1px solid rgba(211, 196, 181, 0.55);
    border-radius: 1.25rem;
    box-shadow: 0 16px 34px rgba(58, 34, 8, 0.07);
}

.ms-route-single__body {
    flex: 1;
    padding: 1.75rem;
}

.ms-route-single__section-title,
.ms-route-single__specs h2,
.ms-route-single__profile-card h2,
.ms-route-single__gallery h2 {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    color: var(--ms-single-primary);
    font-size: 1.15rem;
    line-height: 1.25;
}

.ms-route-single__section-title::after,
.ms-route-single__specs h2::after,
.ms-route-single__profile-card h2::after,
.ms-route-single__gallery h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--ms-single-primary);
    opacity: 0.35;
}

.ms-route-single__body p:last-child {
    margin-bottom: 0;
}

.ms-route-single__gallery {
    margin-top: 2rem;
}

.ms-route-single__content > .ms-route-single__gallery {
    display: none;
}

.ms-route-single__gallery--wide {
    width: min(1280px, calc(100% - 2rem));
    margin-right: auto;
    margin-left: auto;
}

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

.ms-route-single__gallery-item {
    overflow: hidden;
    margin: 0;
}

.ms-route-single__gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

.ms-route-single__sidebar {
    display: contents;
}

.ms-route-single__specs {
    grid-column: 1 / -1;
    grid-row: 2;
}

.ms-route-single__map-card {
    grid-column: 1;
    grid-row: 3;
}

.ms-route-single__profile-card {
    grid-column: 2;
    grid-row: 3;
}

.ms-route-single__tip {
    grid-column: 2;
    grid-row: 1;
}

.ms-route-single__layout.has-no-local-tip .ms-route-single__specs {
    grid-column: 2;
    grid-row: 1;
}

.ms-route-single__layout.has-no-local-tip .ms-route-single__map-card,
.ms-route-single__layout.has-no-local-tip .ms-route-single__profile-card {
    grid-row: 2;
}

.ms-route-single__map-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    min-height: 460px;
}

.ms-route-single__map {
    flex: 1;
    min-height: 0;
    border-radius: 0.85rem;
    overflow: hidden;
}

.ms-route-single__elevation {
    height: 240px;
    border-top: 1px solid var(--ms-single-border);
}

.ms-route-single__profile-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    min-height: 460px;
}

.ms-route-single__profile-card h2 {
    margin-top: 0;
}

.ms-route-single__profile-canvas {
    flex: 1;
    min-height: 0;
}

.ms-route-single__profile-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.ms-route-single__specs,
.ms-route-single__tip {
    padding: 1.5rem;
}

.ms-route-single__spec-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.ms-route-single__spec-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(211, 196, 181, 0.6);
    min-width: 0;
}

.ms-route-single__spec-list div:nth-last-child(-n + 4) {
    border-bottom: 0;
    padding-bottom: 0;
}

.ms-route-single__spec-list div:nth-child(4n + 1),
.ms-route-single__spec-list div:nth-child(4n + 2),
.ms-route-single__spec-list div:nth-child(4n + 3) {
    padding-right: 1.25rem;
}

.ms-route-single__spec-list div:nth-child(4n + 2),
.ms-route-single__spec-list div:nth-child(4n + 3),
.ms-route-single__spec-list div:nth-child(4n + 4) {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(211, 196, 181, 0.45);
}

.ms-route-single__spec-list dt {
    color: var(--ms-single-muted);
}

.ms-route-single__spec-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.ms-route-single__tip p {
    margin-bottom: 0;
    color: #5a682f;
}

.ms-route-single__tip {
    border-color: rgba(86, 100, 43, 0.35);
    background: #fbfff0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    margin-top: 2.4375rem;
}

.ms-route-single__tip strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--ms-single-secondary);
    font-size: 1.05rem;
}

#footer-outer {
    display: none;
}

@media (max-width: 980px) {
    .ms-route-single__metrics,
    .ms-route-single__layout {
        width: min(100%, calc(100% - 1.5rem));
    }

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

    .ms-route-single__metric-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .ms-route-single__layout {
        grid-template-columns: 1fr;
    }

    .ms-route-single__content,
    .ms-route-single__specs,
    .ms-route-single__map-card,
    .ms-route-single__profile-card,
    .ms-route-single__tip {
        grid-column: 1;
        grid-row: auto;
    }

    .ms-route-single__tip {
        margin-top: 0;
    }

    .ms-route-single__map {
        height: 440px;
    }

    .ms-route-single__profile-card {
        min-height: 360px;
    }

    .ms-route-single__spec-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ms-route-single__spec-list div:nth-child(n) {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .ms-route-single__spec-list div:nth-child(odd) {
        padding-right: 1.25rem;
    }

    .ms-route-single__spec-list div:nth-child(even) {
        padding-left: 1.25rem;
        border-left: 1px solid rgba(211, 196, 181, 0.45);
    }
}

@media (max-width: 640px) {
    .ms-route-single__hero {
        min-height: 28rem;
    }

    .ms-route-single__metrics {
        grid-template-columns: 1fr;
    }

    .ms-route-single__metric-actions {
        flex-direction: column;
    }

    .ms-route-single__download-button {
        width: 100%;
    }

    .ms-route-single__gallery-grid {
        grid-template-columns: 1fr;
    }

    .ms-route-single__map {
        height: 360px;
    }

    .ms-route-single__profile-card {
        min-height: 320px;
    }

    .ms-route-single__spec-list {
        grid-template-columns: 1fr;
    }

    .ms-route-single__spec-list div:nth-child(n) {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .ms-route-single__spec-list div:nth-last-child(-n + 4) {
        border-bottom: 1px solid rgba(211, 196, 181, 0.6);
    }

    .ms-route-single__spec-list div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}
