* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #f5f7f4;
    color: #17211b;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

.route-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 5vw;
    background: #ffffff;
    border-bottom: 1px solid #e3e8e3;
}

.route-brand {
    color: #1d6a43;
    font-size: 21px;
    font-weight: 900;
    text-decoration: none;
}

.route-header nav {
    display: flex;
    gap: 22px;
}

.route-header nav a {
    color: #455248;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.route-directory {
    width: min(1180px, 92vw);
    margin: 0 auto;
    padding: 64px 0;
}

.route-intro {
    max-width: 720px;
    margin-bottom: 40px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #1d6a43;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.route-intro h1,
.route-information h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
}

.route-intro p,
.route-summary {
    color: #667068;
    font-size: 17px;
    line-height: 1.65;
}

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

.route-card {
    padding: 25px;
    border: 1px solid #dde4dd;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 12px 32px rgba(20, 50, 30, 0.06);
}

.route-card-top,
.route-stats,
.route-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-card-top span,
.route-stats span,
.route-badges span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf4ef;
    color: #1d6a43;
    font-size: 11px;
    font-weight: 800;
}

.route-card h2 {
    margin: 18px 0 10px;
    font-size: 24px;
}

.route-card p {
    min-height: 76px;
    color: #667068;
    line-height: 1.55;
}

.route-card > a {
    display: inline-block;
    margin-top: 22px;
    color: #1d6a43;
    font-weight: 900;
    text-decoration: none;
}

.route-detail-layout {
    height: calc(100vh - 68px);
    display: grid;
    grid-template-columns:
        minmax(390px, 44%)
        minmax(0, 56%);
    overflow: hidden;
}

.route-information {
    min-height: 0;
    padding: 38px 42px 70px;
    overflow-y: auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: #1d6a43;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.route-summary {
    margin: 20px 0;
}

.route-description {
    margin: 26px 0;
    line-height: 1.7;
}

.route-warning,
.route-preparation {
    margin: 18px 0;
    padding: 17px 19px;
    border-radius: 12px;
}

.route-warning {
    background: #fff1df;
    border: 1px solid #f0c889;
}

.route-preparation {
    background: #edf4ef;
    border: 1px solid #cde0d2;
}

.route-warning p,
.route-preparation p {
    margin: 7px 0 0;
    line-height: 1.55;
}

.route-information h2 {
    margin-top: 36px;
}

.waypoint-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.waypoint-list li {
    display: grid;
    grid-template-columns:
        40px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid #e1e6e1;
}

.waypoint-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1d6a43;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.waypoint-list strong,
.waypoint-list span {
    display: block;
}

.waypoint-list span {
    margin-top: 4px;
    color: #1d6a43;
    font-size: 12px;
    font-weight: 800;
}

.waypoint-list p {
    margin: 7px 0 0;
    color: #667068;
    font-size: 13px;
    line-height: 1.5;
}

.route-map-column {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: #e8ede8;
}

#route-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#route-map img {
    max-width: none !important;
}

#open-google-maps {
    position: absolute;
    z-index: 5;
    right: 20px;
    bottom: 22px;
    padding: 13px 18px;
    border-radius: 10px;
    background: #1d6a43;
    color: #ffffff;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.24);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

#route-map-error {
    position: absolute;
    z-index: 6;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 90%);
    padding: 12px;
    border-radius: 9px;
    background: #a52b25;
    color: #ffffff;
    text-align: center;
}

.recommended-route-places {
    display: grid;
    gap: 12px;
}

.recommended-route-places article {
    padding: 15px;
    border: 1px solid #dde4dd;
    border-radius: 12px;
    background: #ffffff;
}

.recommended-route-places strong,
.recommended-route-places span {
    display: block;
}

.recommended-route-places span {
    margin-top: 5px;
    color: #1d6a43;
    font-size: 12px;
    font-weight: 800;
}

.recommended-route-places p {
    color: #667068;
    font-size: 13px;
}

.recommended-route-places a {
    color: #1d6a43;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 820px) {
    .route-header {
        padding: 0 16px;
    }

    .route-header nav a:first-child {
        display: none;
    }

    .route-detail-layout {
        height: auto;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .route-map-column {
        order: -1;
        height: 54vh;
        min-height: 390px;
    }

    .route-information {
        padding: 28px 18px 60px;
        overflow: visible;
    }

    .route-information h1 {
        font-size: 37px;
    }
}

.route-map-column {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

#route-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 500px;
}

#route-map img,
#route-map .gm-style img {
    max-width: none !important;
}

.public-route-gallery {
    margin-top: 48px;
}

.public-route-gallery[hidden] {
    display: none;
}

.public-route-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.route-gallery-photo {
    margin: 0;
}

.route-gallery-photo.featured {
    grid-column: 1 / -1;
}

.route-gallery-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #e7eee8;
}

.route-gallery-photo.featured img {
    aspect-ratio: 16 / 8;
}

.route-gallery-photo figcaption {
    padding: 7px 3px 0;
    color: #68736b;
    font-size: 12px;
}

@media (max-width: 700px) {
    .public-route-gallery-grid {
        grid-template-columns: 1fr;
    }

    .route-gallery-photo.featured {
        grid-column: auto;
    }

    .route-gallery-photo.featured img {
        aspect-ratio: 4 / 3;
    }
}

/* Compact public route gallery */
.public-route-gallery {
    width: min(1100px, calc(100% - 40px));
    margin: 48px auto 70px;
}

.public-route-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.route-gallery-photo {
    min-width: 0;
    margin: 0;
}

.route-gallery-photo.featured {
    grid-column: 1 / -1;
}

.route-gallery-photo a {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #e7eee8;
}

.route-gallery-photo img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
}

.route-gallery-photo.featured img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.route-gallery-photo figcaption {
    padding: 8px 2px 0;
    color: #68736b;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .public-route-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-gallery-photo.featured img {
        height: 340px;
    }
}

@media (max-width: 600px) {
    .public-route-gallery {
        width: min(100% - 24px, 1100px);
        margin-top: 32px;
    }

    .public-route-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .route-gallery-photo.featured {
        grid-column: auto;
    }

    .route-gallery-photo img,
    .route-gallery-photo.featured img {
        height: 240px;
    }
}

/* FINAL compact route gallery override */
#public-route-gallery {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 32px 0 60px !important;
    padding: 0 20px !important;
}

#public-route-gallery .public-route-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(
        auto-fill,
        minmax(220px, 280px)
    ) !important;
    justify-content: start !important;
    gap: 14px !important;
    width: 100% !important;
}

#public-route-gallery .route-gallery-photo,
#public-route-gallery .route-gallery-photo.featured {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 !important;
}

#public-route-gallery .route-gallery-photo a {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

#public-route-gallery .route-gallery-photo img,
#public-route-gallery .route-gallery-photo.featured img {
    display: block !important;
    width: 100% !important;
    height: 180px !important;
    max-height: 180px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

@media (max-width: 600px) {
    #public-route-gallery {
        padding: 0 14px !important;
    }

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

    #public-route-gallery .route-gallery-photo,
    #public-route-gallery .route-gallery-photo.featured {
        max-width: none !important;
    }

    #public-route-gallery .route-gallery-photo a,
    #public-route-gallery .route-gallery-photo img,
    #public-route-gallery .route-gallery-photo.featured img {
        height: 145px !important;
        max-height: 145px !important;
    }
}

.route-gallery-photo figcaption strong {
    display: block;
    color: #155c35;
    font-size: 13px;
    font-weight: 900;
}

.route-gallery-photo figcaption span {
    display: block;
    margin-top: 3px;
    color: #68736b;
    font-size: 12px;
}

.route-creator-credit {
    margin: -10px 0 16px;
    color: #68736b;
    font-size: 13px;
}

.route-creator-credit strong {
    color: #155c35;
}

.route-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.route-nav-form {
    display: inline;
    margin: 0;
}

.route-nav-form button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.route-create-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid #d7e1d9;
    border-radius: 14px;
    background: #ffffff;
}

.route-create-panel strong,
.route-create-panel span {
    display: block;
}

.route-create-panel span {
    max-width: 690px;
    margin-top: 5px;
    color: #68736b;
    font-size: 13px;
    line-height: 1.55;
}

.route-create-panel > a {
    flex: 0 0 auto;
    padding: 12px 17px;
    border-radius: 9px;
    background: #1d6a43;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 760px) {
    .route-create-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .route-create-panel > a {
        text-align: center;
    }
}

/* Final route directory cards */

.route-grid {
    align-items: stretch;
}

.route-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.route-card-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e5eee7;
    text-decoration: none;
}

.route-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 220ms ease;
}

.route-card:hover .route-card-photo img {
    transform: scale(1.035);
}

.route-card-photo-placeholder {
    display: grid;
    place-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-align: center;
    background:
        linear-gradient(
            145deg,
            #dcebe1,
            #f1f5f2
        );
}

.route-card-photo-placeholder span {
    color: #1d6a43;
    font-size: 13px;
    font-weight: 900;
}

.route-card-photo-placeholder strong {
    margin-top: 6px;
    color: #17211b;
    font-size: 22px;
}

.route-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 25px;
}

.route-card h2 {
    margin: 18px 0 10px;
}

.route-card h2 a {
    color: inherit;
    text-decoration: none;
}

.route-card h2 a:hover {
    color: #1d6a43;
}

.route-card-description {
    margin: 0 0 14px;
    color: #657168;
    line-height: 1.55;
}

.route-card-creator {
    margin: 0 0 18px;
    color: #778178;
    font-size: 12px;
}

.route-card-creator strong {
    color: #1d6a43;
}

.route-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.route-card-stats span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf4ef;
    color: #155c35;
    font-size: 11px;
    font-weight: 900;
}

.route-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.route-card-actions a {
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.route-card-view {
    color: #155c35;
}

.route-card-edit {
    padding: 7px 11px;
    border: 1px solid #cdd9d0;
    border-radius: 8px;
    color: #425047;
    background: #ffffff;
}

.route-card-edit:hover {
    border-color: #1d6a43;
    color: #155c35;
}

.route-empty-state {
    grid-column: 1 / -1;
    padding: 50px 30px;
    border: 1px solid #d8e1da;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
}

.route-empty-state h2 {
    margin: 0 0 8px;
}

.route-empty-state p {
    color: #68736b;
}

.route-empty-state a {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 17px;
    border-radius: 9px;
    background: #1d6a43;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 900px) {
    .route-card-photo {
        height: 200px;
    }
}

@media (max-width: 620px) {
    .route-card-photo {
        height: 210px;
    }

    .route-card-body {
        padding: 20px;
    }

    .route-card-actions {
        justify-content: space-between;
    }
}

/* Route sharing */

.route-share-panel {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #d5e0d8;
    border-radius: 14px;
    background: #f7faf8;
}

.route-share-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.route-share-heading strong {
    display: block;
    margin-bottom: 5px;
    color: #17211b;
}

.route-share-heading span {
    display: block;
    max-width: 520px;
    color: #68736b;
    font-size: 13px;
    line-height: 1.45;
}

.route-share-primary {
    padding: 11px 16px;
    border: 0;
    border-radius: 9px;
    background: #1d6a43;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.route-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.route-share-buttons a,
.route-share-buttons button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #cedbd1;
    border-radius: 8px;
    background: #ffffff;
    color: #304238;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.route-share-buttons a:hover,
.route-share-buttons button:hover {
    border-color: #1d6a43;
    color: #155c35;
}

.route-share-status {
    min-height: 18px;
    margin: 12px 0 0;
    color: #1d6a43;
    font-size: 12px;
    font-weight: 800;
}

.route-owner-edit-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #1d6a43;
    font-size: 13px;
    font-weight: 900;
}

.route-share-modal[hidden] {
    display: none;
}

.route-share-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(12, 20, 15, 0.72);
}

.route-share-modal-card {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 20px 70px
        rgba(0, 0, 0, 0.24);
}

.route-share-modal-card h2 {
    margin: 0 45px 8px 0;
}

.route-share-modal-card p {
    color: #667169;
}

.route-share-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #edf3ef;
    color: #26372d;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

#route-embed-code {
    width: 100%;
    margin: 12px 0;
    padding: 13px;
    border: 1px solid #ccd8cf;
    border-radius: 9px;
    font-family: monospace;
    font-size: 12px;
    resize: vertical;
}

.route-embed-preview {
    overflow: hidden;
    margin-top: 22px;
    border: 1px solid #d6e0d8;
    border-radius: 14px;
}

.route-embed-preview iframe {
    display: block;
    width: 100%;
    height: 620px;
    border: 0;
}

.route-share-qr {
    display: block;
    width: min(300px, 100%);
    height: auto;
    margin: 22px auto 5px;
}

.route-share-modal-open {
    overflow: hidden;
}

@media (max-width: 620px) {
    .route-share-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .route-share-primary {
        width: 100%;
    }

    .route-share-buttons a,
    .route-share-buttons button {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .route-share-modal-card {
        padding: 22px 17px;
    }

    .route-embed-preview iframe {
        height: 540px;
    }
}

/* Route popularity and public rider information */

.route-engagement-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 22px 0;
    padding: 18px 20px;
    border: 1px solid #d4dfd7;
    border-radius: 14px;
    background: #f7faf8;
}

.route-popularity-stats {
    display: flex;
    gap: 24px;
}

.route-popularity-stats div {
    display: flex;
    flex-direction: column;
}

.route-popularity-stats strong {
    color: #17211b;
    font-size: 24px;
}

.route-popularity-stats span {
    color: #68736b;
    font-size: 12px;
}

.route-rode-button {
    margin-left: auto;
    padding: 11px 16px;
    border: 1px solid #1d6a43;
    border-radius: 9px;
    background: #1d6a43;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.route-rode-button.is-rode {
    background: #e8f2eb;
    color: #155c35;
}

.route-engagement-message {
    min-height: 18px;
    margin: 0;
    color: #1d6a43;
    font-size: 12px;
}

.public-rider-details {
    margin: 28px 0;
    padding: 22px;
    border: 1px solid #d8e2da;
    border-radius: 14px;
    background: #f8fbf9;
}

.public-rider-details-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.public-rider-details-grid > div {
    padding: 14px;
    border: 1px solid #dbe4dd;
    border-radius: 9px;
    background: #ffffff;
}

.public-rider-details-grid span {
    display: block;
    margin-bottom: 5px;
    color: #758078;
    font-size: 11px;
}

.public-rider-details-grid strong {
    color: #26372d;
    font-size: 14px;
}

.public-route-safety {
    margin-top: 22px;
}

.public-route-safety-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-route-safety-grid span {
    padding: 8px 11px;
    border-radius: 999px;
    background: #fff0ed;
    color: #983c2d;
    font-size: 12px;
    font-weight: 800;
}

.route-popularity-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid #d8e2da;
    border-radius: 13px;
    background: #ffffff;
}

.route-popularity-toolbar strong,
.route-popularity-toolbar span {
    display: block;
}

.route-popularity-toolbar span {
    margin-top: 4px;
    color: #68736b;
    font-size: 13px;
}

.route-popularity-toolbar label {
    color: #425047;
    font-size: 12px;
    font-weight: 800;
}

.route-popularity-toolbar select {
    display: block;
    min-width: 165px;
    margin-top: 6px;
    padding: 9px 11px;
    border: 1px solid #ccd8cf;
    border-radius: 8px;
    background: #ffffff;
}

.route-card-popularity {
    width: 100%;
}

@media (max-width: 720px) {
    .route-engagement-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .route-rode-button {
        width: 100%;
        margin-left: 0;
    }

    .public-rider-details-grid {
        grid-template-columns: 1fr;
    }

    .route-popularity-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .route-popularity-toolbar select {
        width: 100%;
    }
}

/* Route popularity and public rider information */

.route-engagement-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 22px 0;
    padding: 18px 20px;
    border: 1px solid #d4dfd7;
    border-radius: 14px;
    background: #f7faf8;
}

.route-popularity-stats {
    display: flex;
    gap: 24px;
}

.route-popularity-stats div {
    display: flex;
    flex-direction: column;
}

.route-popularity-stats strong {
    color: #17211b;
    font-size: 24px;
}

.route-popularity-stats span {
    color: #68736b;
    font-size: 12px;
}

.route-rode-button {
    margin-left: auto;
    padding: 11px 16px;
    border: 1px solid #1d6a43;
    border-radius: 9px;
    background: #1d6a43;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.route-rode-button.is-rode {
    background: #e8f2eb;
    color: #155c35;
}

.route-engagement-message {
    min-height: 18px;
    margin: 0;
    color: #1d6a43;
    font-size: 12px;
}

.public-rider-details {
    margin: 28px 0;
    padding: 22px;
    border: 1px solid #d8e2da;
    border-radius: 14px;
    background: #f8fbf9;
}

.public-rider-details-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.public-rider-details-grid > div {
    padding: 14px;
    border: 1px solid #dbe4dd;
    border-radius: 9px;
    background: #ffffff;
}

.public-rider-details-grid span {
    display: block;
    margin-bottom: 5px;
    color: #758078;
    font-size: 11px;
}

.public-rider-details-grid strong {
    color: #26372d;
    font-size: 14px;
}

.public-route-safety {
    margin-top: 22px;
}

.public-route-safety-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-route-safety-grid span {
    padding: 8px 11px;
    border-radius: 999px;
    background: #fff0ed;
    color: #983c2d;
    font-size: 12px;
    font-weight: 800;
}

.route-popularity-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid #d8e2da;
    border-radius: 13px;
    background: #ffffff;
}

.route-popularity-toolbar strong,
.route-popularity-toolbar span {
    display: block;
}

.route-popularity-toolbar span {
    margin-top: 4px;
    color: #68736b;
    font-size: 13px;
}

.route-popularity-toolbar label {
    color: #425047;
    font-size: 12px;
    font-weight: 800;
}

.route-popularity-toolbar select {
    display: block;
    min-width: 165px;
    margin-top: 6px;
    padding: 9px 11px;
    border: 1px solid #ccd8cf;
    border-radius: 8px;
    background: #ffffff;
}

.route-card-popularity {
    width: 100%;
}

@media (max-width: 720px) {
    .route-engagement-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .route-rode-button {
        width: 100%;
        margin-left: 0;
    }

    .public-rider-details-grid {
        grid-template-columns: 1fr;
    }

    .route-popularity-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .route-popularity-toolbar select {
        width: 100%;
    }
}

/* Route popularity and public rider information */

.route-engagement-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 22px 0;
    padding: 18px 20px;
    border: 1px solid #d4dfd7;
    border-radius: 14px;
    background: #f7faf8;
}

.route-popularity-stats {
    display: flex;
    gap: 24px;
}

.route-popularity-stats div {
    display: flex;
    flex-direction: column;
}

.route-popularity-stats strong {
    color: #17211b;
    font-size: 24px;
}

.route-popularity-stats span {
    color: #68736b;
    font-size: 12px;
}

.route-rode-button {
    margin-left: auto;
    padding: 11px 16px;
    border: 1px solid #1d6a43;
    border-radius: 9px;
    background: #1d6a43;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.route-rode-button.is-rode {
    background: #e8f2eb;
    color: #155c35;
}

.route-engagement-message {
    min-height: 18px;
    margin: 0;
    color: #1d6a43;
    font-size: 12px;
}

.public-rider-details {
    margin: 28px 0;
    padding: 22px;
    border: 1px solid #d8e2da;
    border-radius: 14px;
    background: #f8fbf9;
}

.public-rider-details-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.public-rider-details-grid > div {
    padding: 14px;
    border: 1px solid #dbe4dd;
    border-radius: 9px;
    background: #ffffff;
}

.public-rider-details-grid span {
    display: block;
    margin-bottom: 5px;
    color: #758078;
    font-size: 11px;
}

.public-rider-details-grid strong {
    color: #26372d;
    font-size: 14px;
}

.public-route-safety {
    margin-top: 22px;
}

.public-route-safety-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-route-safety-grid span {
    padding: 8px 11px;
    border-radius: 999px;
    background: #fff0ed;
    color: #983c2d;
    font-size: 12px;
    font-weight: 800;
}

.route-popularity-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid #d8e2da;
    border-radius: 13px;
    background: #ffffff;
}

.route-popularity-toolbar strong,
.route-popularity-toolbar span {
    display: block;
}

.route-popularity-toolbar span {
    margin-top: 4px;
    color: #68736b;
    font-size: 13px;
}

.route-popularity-toolbar label {
    color: #425047;
    font-size: 12px;
    font-weight: 800;
}

.route-popularity-toolbar select {
    display: block;
    min-width: 165px;
    margin-top: 6px;
    padding: 9px 11px;
    border: 1px solid #ccd8cf;
    border-radius: 8px;
    background: #ffffff;
}

.route-card-popularity {
    width: 100%;
}

@media (max-width: 720px) {
    .route-engagement-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .route-rode-button {
        width: 100%;
        margin-left: 0;
    }

    .public-rider-details-grid {
        grid-template-columns: 1fr;
    }

    .route-popularity-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .route-popularity-toolbar select {
        width: 100%;
    }
}

/* Numbered route markers and waypoint cards */

.waypoint-list > li {
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.waypoint-list > li:hover,
.waypoint-list > li.is-active {
    border-color: #1d6a43;
    background: #f0f7f2;
}

.waypoint-list > li.is-active {
    transform: translateX(4px);
}

.route-map-stop-card {
    width: 310px;
    overflow: hidden;
    color: #17211b;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.route-map-card-photo {
    margin: -1px -1px 0;
}

.route-map-card-photo img {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: cover;
}

.route-photo-attribution {
    display: block;
    padding: 4px 8px;
    background: #f5f5f5;
    color: #666666;
    font-size: 9px;
    line-height: 1.3;
}

.route-photo-attribution a {
    color: inherit;
}

.route-map-stop-card-body {
    padding: 13px 14px 14px;
}

.route-map-stop-number {
    color: #1d6a43;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.route-map-stop-card h3 {
    margin: 5px 0 4px;
    color: #17211b;
    font-size: 18px;
    line-height: 1.2;
}

.route-map-stop-type {
    display: block;
    color: #657168;
    font-size: 11px;
    font-weight: 700;
}

.route-map-stop-address,
.route-map-stop-notes {
    margin: 10px 0 0;
    color: #536058;
    font-size: 12px;
    line-height: 1.45;
}

.route-map-stop-notes {
    padding-top: 9px;
    border-top: 1px solid #e1e7e3;
}

.route-map-stop-action {
    display: block;
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #1d6a43;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

/* Final compact route gallery */

#public-route-gallery {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 28px 0 46px !important;
    padding: 0 18px !important;
}

#public-route-gallery
.public-route-gallery-grid {
    display: grid !important;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(150px, 190px)
        ) !important;
    justify-content: start !important;
    gap: 14px !important;
    width: 100% !important;
}

#public-route-gallery
.route-gallery-photo {
    width: 100% !important;
    max-width: 190px !important;
    margin: 0 !important;
}

#public-route-gallery
.route-gallery-photo a {
    display: block !important;
    width: 100% !important;
    height: 120px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #e7eee8;
}

#public-route-gallery
.route-gallery-photo img {
    display: block !important;
    width: 100% !important;
    height: 120px !important;
    max-height: 120px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

#public-route-gallery
.route-gallery-photo figcaption {
    padding: 7px 1px 0 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

#public-route-gallery
.route-gallery-photo figcaption strong {
    font-size: 11px !important;
}

#public-route-gallery
.route-gallery-photo figcaption span {
    font-size: 10px !important;
}

@media (max-width: 600px) {
    .route-map-stop-card {
        width: 260px;
    }

    .route-map-card-photo img {
        height: 135px;
    }

    #public-route-gallery {
        padding: 0 12px !important;
    }

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

    #public-route-gallery
    .route-gallery-photo {
        max-width: none !important;
    }

    #public-route-gallery
    .route-gallery-photo a,
    #public-route-gallery
    .route-gallery-photo img {
        height: 110px !important;
        max-height: 110px !important;
    }
}

/* Full-width route gallery below the route detail */

body > #public-route-gallery {
    box-sizing: border-box !important;
    width: min(1180px, calc(100% - 48px))
        !important;
    max-width: none !important;
    margin: 46px auto 80px !important;
    padding: 30px !important;
    border: 1px solid #d8e2da;
    border-radius: 18px;
    background: #ffffff;
}

body > #public-route-gallery
.route-section-heading {
    margin-bottom: 20px;
}

body > #public-route-gallery
.public-route-gallery-grid {
    display: grid !important;
    grid-template-columns:
        repeat(3, minmax(0, 1fr))
        !important;
    gap: 18px !important;
    width: 100% !important;
}

body > #public-route-gallery
.route-gallery-photo {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.route-gallery-open {
    display: block;
    width: 100%;
    height: 190px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #e7eee8;
    cursor: pointer;
}

.route-gallery-open img {
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    max-height: none !important;
    object-fit: cover !important;
    transition: transform 180ms ease;
}

.route-gallery-open:hover img {
    transform: scale(1.035);
}

body > #public-route-gallery
.route-gallery-photo figcaption {
    padding: 9px 2px 0 !important;
}

body > #public-route-gallery
.route-gallery-photo figcaption strong {
    display: block;
    color: #155c35;
    font-size: 12px !important;
}

body > #public-route-gallery
.route-gallery-photo figcaption span {
    display: block;
    margin-top: 4px;
    color: #68736b;
    font-size: 11px !important;
}

.route-gallery-view-all {
    display: block;
    margin: 24px auto 0;
    padding: 12px 20px;
    border: 1px solid #1d6a43;
    border-radius: 9px;
    background: #ffffff;
    color: #155c35;
    font-weight: 900;
    cursor: pointer;
}

.route-gallery-view-all:hover {
    background: #1d6a43;
    color: #ffffff;
}

/* Full photo gallery modal */

.route-gallery-modal[hidden] {
    display: none;
}

.route-gallery-modal {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(8, 14, 10, 0.88);
}

.route-gallery-modal-dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 56px);
}

.route-gallery-modal-content {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, 0.4);
}

.route-gallery-modal-image-wrap {
    display: grid;
    place-items: center;
    min-height: 420px;
    max-height: calc(100vh - 190px);
    overflow: hidden;
    background: #0e1510;
}

.route-gallery-modal-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
}

.route-gallery-modal-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
}

.route-gallery-modal-details strong {
    display: block;
    color: #155c35;
    font-size: 13px;
}

.route-gallery-modal-details span {
    display: block;
    margin-top: 3px;
    color: #78827b;
    font-size: 11px;
}

.route-gallery-modal-details p {
    max-width: 520px;
    margin: 0;
    color: #566159;
    font-size: 13px;
    line-height: 1.5;
}

.route-gallery-modal-close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #17211b;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.route-gallery-modal-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 48px;
    height: 58px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #17211b;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.route-gallery-modal-nav.previous {
    left: 14px;
}

.route-gallery-modal-nav.next {
    right: 14px;
}

.route-gallery-modal-open {
    overflow: hidden;
}

@media (max-width: 850px) {
    body > #public-route-gallery
    .public-route-gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr))
            !important;
    }
}

@media (max-width: 600px) {
    body > #public-route-gallery {
        width: calc(100% - 24px)
            !important;
        margin: 28px auto 50px !important;
        padding: 18px !important;
    }

    body > #public-route-gallery
    .public-route-gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr))
            !important;
        gap: 10px !important;
    }

    .route-gallery-open,
    .route-gallery-open img {
        height: 125px !important;
    }

    .route-gallery-modal {
        padding: 10px;
    }

    .route-gallery-modal-dialog {
        max-height: calc(100vh - 20px);
    }

    .route-gallery-modal-image-wrap {
        min-height: 280px;
        max-height: calc(100vh - 170px);
    }

    .route-gallery-modal-image-wrap img {
        max-height: calc(100vh - 170px);
    }

    .route-gallery-modal-details {
        flex-direction: column;
        gap: 8px;
        padding: 13px 15px;
    }

    .route-gallery-modal-nav {
        width: 40px;
        height: 50px;
    }

    .route-gallery-modal-nav.previous {
        left: 7px;
    }

    .route-gallery-modal-nav.next {
        right: 7px;
    }
}

/* Mobile public route map fix */

@media (max-width: 900px) {
    .route-detail-layout {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .route-information {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .route-map-column {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 520px !important;
        min-height: 520px !important;
        margin-top: 20px !important;
        overflow: hidden !important;
    }

    #route-map {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 520px !important;
        min-height: 520px !important;
    }

    #open-google-maps {
        z-index: 20 !important;
    }
}

@media (max-width: 600px) {
    .route-map-column {
        height: 430px !important;
        min-height: 430px !important;
    }

    #route-map {
        height: 430px !important;
        min-height: 430px !important;
    }
}


/* Route purpose experience selector */

.route-purpose-section {
    margin: 26px 0;
    padding: 22px;
    border: 1px solid #d8e2da;
    border-radius: 14px;
    background: #f8fbf9;
}

.route-purpose-section
.route-section-heading {
    margin-bottom: 18px;
}

.route-purpose-section
.route-section-heading span {
    color: #1d6a43;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.route-purpose-section
.route-section-heading h2 {
    margin: 6px 0;
}

.route-purpose-section
.route-section-heading p {
    margin: 0;
    color: #68736b;
}

.route-purpose-section label {
    display: block;
    color: #26372d;
    font-size: 13px;
    font-weight: 800;
}

.route-purpose-section select {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #ccd8cf;
    border-radius: 9px;
    background: #ffffff;
    color: #17211b;
    font: inherit;
}

.route-purpose-badge {
    background: #e4f2e8 !important;
    color: #155c35 !important;
}

/* ROUTE_REPORT_ACTION_CSS_START */

.route-report-action {
    margin: 1rem 0;
    text-align: right;
}

.route-report-action a,
.route-gallery-modal-report {
    color: #a34c42;
    font-size: 0.82rem;
    font-weight: 700;
}

.route-gallery-modal-report {
    display: inline-block;
    margin-top: 0.5rem;
}

/* ROUTE_REPORT_ACTION_CSS_END */

/* ROUTE_AFFILIATE_LINKS_CSS_START */

.route-affiliate-links {
    background:
        linear-gradient(
            135deg,
            #f5f1e8,
            #edf5ef
        );
    border-radius: 1rem;
    margin: 1.25rem 0;
    padding: 1.25rem;
}

.route-affiliate-links > div:first-child > span {
    color: #2b7650;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.route-affiliate-links h2 {
    margin: 0.25rem 0 1rem;
}

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

.route-affiliate-link-grid a {
    background: #ffffff;
    border: 1px solid #dde7e0;
    border-radius: 0.8rem;
    color: #234b35;
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    text-decoration: none;
}

.route-affiliate-link-grid a:hover {
    border-color: #83aa91;
    transform: translateY(-2px);
}

.route-affiliate-link-grid strong {
    font-size: 0.95rem;
}

.route-affiliate-link-grid span {
    color: #64736a;
    font-size: 0.75rem;
}

.route-affiliate-link-grid small {
    color: #a3682b;
    font-size: 0.68rem;
    font-weight: 800;
}

@media (max-width: 620px) {
    .route-affiliate-link-grid {
        grid-template-columns: 1fr;
    }
}

/* ROUTE_AFFILIATE_LINKS_CSS_END */


/* =====================================================================
   TRIP CUSTOMIZATION CORE V1
   ===================================================================== */

.trip-source-attribution {
    margin: 9px 0 0;
    color: #68736d;
    font-size: 0.76rem;
}

.trip-source-attribution a {
    color: #174d38;
    font-weight: 800;
    text-decoration: none;
}

.trip-source-attribution a:hover {
    text-decoration: underline;
}

.trip-customize-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin: 18px 0;
    padding: 17px 18px;
    border: 1px solid rgba(23, 77, 56, 0.22);
    border-radius: 13px;
    background: #f2f7f3;
}

.trip-customize-panel strong,
.trip-customize-panel span {
    display: block;
}

.trip-customize-panel strong {
    color: #123c2c;
    font-size: 0.88rem;
}

.trip-customize-panel span {
    max-width: 520px;
    margin-top: 4px;
    color: #637068;
    font-size: 0.72rem;
    line-height: 1.5;
}

.trip-customize-panel form {
    flex-shrink: 0;
    margin: 0;
}

.trip-customize-panel button,
.trip-customize-panel > a {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #174d38;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.recommended-route-places {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.recommended-route-places .recommended-trip-place {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dce3dd;
    border-radius: 12px;
    background: #fff;
}

.recommended-trip-place-photo {
    height: 125px;
    display: block;
    overflow: hidden;
    background: #dfe9e2;
}

.recommended-trip-place-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.recommended-trip-place-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    color: rgba(255, 255, 255, 0.8);
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(255, 255, 255, 0.28),
            transparent 26%
        ),
        linear-gradient(
            145deg,
            #174d38,
            #547565
        );
}

.recommended-trip-place-fallback span {
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.recommended-trip-place-body {
    padding: 13px;
}

.recommended-trip-place-body > strong {
    display: block;
    margin-top: 5px;
    color: #17231d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.12;
}

.recommended-trip-place-type {
    color: #174d38;
    font-size: 0.57rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recommended-trip-place-body p {
    margin: 7px 0 0;
    color: #68736d;
    font-size: 0.67rem;
}

.recommended-trip-place-body small {
    display: block;
    margin-top: 7px;
    color: #68736d;
    font-size: 0.65rem;
    line-height: 1.4;
}

.recommended-trip-place-body > a {
    display: inline-flex;
    margin-top: 10px;
    color: #174d38;
    font-size: 0.66rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 700px) {
    .trip-customize-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .trip-customize-panel form,
    .trip-customize-panel button,
    .trip-customize-panel > a {
        width: 100%;
    }

    .recommended-route-places {
        grid-template-columns: 1fr;
    }

    .recommended-trip-place-photo {
        height: 180px;
    }
}


/* RICH_TRIP_ITINERARY_CARDS_V1 */

.waypoint-list
.waypoint-item-rich {
    align-items: flex-start;
    padding: 18px 0;
}

.trip-itinerary-place-card {
    display: grid;
    grid-template-columns:
        minmax(140px, 34%)
        minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid
        rgba(50, 78, 60, 0.18);
    border-radius: 14px;
    background:
        rgba(255, 255, 255, 0.90);
    box-shadow:
        0 8px 24px
        rgba(28, 52, 37, 0.08);
}

.trip-itinerary-place-photo {
    min-height: 150px;
    background: #dfe9e2;
}

.trip-itinerary-place-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.trip-itinerary-place-photo-fallback {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    min-height: 150px;
    padding: 14px;
    background:
        radial-gradient(
            circle at 76% 20%,
            rgba(
                255,
                255,
                255,
                0.28
            ),
            transparent 26%
        ),
        linear-gradient(
            145deg,
            #174d38,
            #668374
        );
    color:
        rgba(
            255,
            255,
            255,
            0.88
        );
}

.trip-itinerary-place-photo-fallback
span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.trip-itinerary-place-body {
    min-width: 0;
    padding: 15px 17px 17px;
}

.trip-itinerary-place-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.trip-itinerary-place-category {
    color:
        var(
            --trip-accent,
            #1d6a43
        ) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trip-itinerary-place-stop-type {
    margin-top: 0 !important;
    color: #69756d !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

.trip-itinerary-place-name {
    display: block;
    margin-top: 8px;
    color: #17231d;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 20px;
    line-height: 1.12;
}

.trip-itinerary-place-location {
    margin: 5px 0 0 !important;
    color: #59675e !important;
    font-size: 11px !important;
    font-weight: 700;
}

.trip-itinerary-place-description {
    margin: 10px 0 0 !important;
    color: #59645d !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.trip-itinerary-place-notes {
    margin-top: 12px;
    padding: 10px 11px;
    border-left: 3px solid
        var(
            --trip-accent,
            #1d6a43
        );
    border-radius: 0 8px 8px 0;
    background:
        rgba(
            239,
            245,
            241,
            0.86
        );
}

.trip-itinerary-place-notes
> span {
    margin: 0 !important;
    color:
        var(
            --trip-accent,
            #1d6a43
        ) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trip-itinerary-place-notes
p {
    margin: 4px 0 0 !important;
    color: #4e5b53 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}

.trip-itinerary-place-address {
    margin: 11px 0 0 !important;
    color: #677169 !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
}

.trip-itinerary-place-address
strong {
    display: inline !important;
    color: #3d4a42;
    font-family: inherit;
    font-size: inherit;
}

.trip-itinerary-place-rating {
    margin-top: 10px;
    color: #6f5a23;
    font-size: 10px;
    font-weight: 800;
}

.waypoint-item-compact
.waypoint-compact-body {
    min-width: 0;
}

.waypoint-item-compact
.waypoint-compact-body
> strong {
    display: block;
}

.waypoint-item-compact
.waypoint-compact-body
> span {
    display: block;
    margin-top: 4px;
    color:
        var(
            --trip-accent,
            #1d6a43
        );
    font-size: 12px;
    font-weight: 800;
}

.waypoint-item-compact
.waypoint-compact-body
> p {
    margin: 7px 0 0;
    color: #667068;
    font-size: 13px;
    line-height: 1.5;
}


@media (max-width: 620px) {

    .trip-itinerary-place-card {
        grid-template-columns: 1fr;
    }

    .trip-itinerary-place-photo,
    .trip-itinerary-place-photo img,
    .trip-itinerary-place-photo-fallback {
        min-height: 180px;
        height: 180px;
    }
}
