/* Real trail sections in WPBakery; public trail styles remain unchanged. */
.pr1-library.pr-trail-live-section {
    box-sizing: border-box;
    width: min(100%, 860px);
    margin-inline: auto;
    padding: 8px clamp(20px, 4vw, 40px);
    background: var(--pr1-card);
}

/* Editor-only controls, shared between the trail and its WPO preview. */
.pr-waypoint-photo-editor {
    margin-block-start: 14px;
    color: #173d32;
}
.pr-waypoint-photo-editor > summary {
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid #a6bcb0;
    border-radius: 9px;
    background: #f4f8f5;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 650;
}
.pr-waypoint-photo-editor > summary:hover { background: #e8f1eb; }
.pr-waypoint-photo-editor[open] {
    padding: 14px;
    border: 1px solid #d8e4db;
    border-radius: 9px;
    background: #f4f8f5;
}
.pr-waypoint-photo-editor[open] > summary { background: #fff; }
.pr-waypoint-photo-controls { margin-block-start: 14px; }
.pr-waypoint-photo-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 115px), 1fr));
    gap: 10px;
}
.pr-waypoint-photo-item {
    display: grid;
    gap: 6px;
    padding: 6px;
    border: 1px solid #d8e4db;
    border-radius: 9px;
    background: #fff;
}
.pr-waypoint-photo-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}
.pr-waypoint-photo-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}
.pr-waypoint-photo-items + .pr-waypoint-photo-upload { margin-block-start: 14px; }
.pr-waypoint-photo-upload label {
    display: grid;
    gap: 6px;
    flex: 1 1 210px;
    min-width: 0;
    font-size: .875rem;
    font-weight: 650;
}
.pr-waypoint-photo-upload input {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 4px;
    border: 1px solid #a6bcb0;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}
.pr-waypoint-photo-upload input::file-selector-button {
    margin-inline-end: 8px;
    padding: 6px 10px;
    border: 0;
    border-radius: 5px;
    background: #e8f1eb;
    color: #173d32;
    cursor: pointer;
}
.pr-waypoint-photo-controls button {
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: .875rem;
    font-weight: 650;
    cursor: pointer;
}
.pr-waypoint-photo-upload button { background: #173d32; color: #fff; }
.pr-waypoint-photo-upload button:hover { background: #245848; }
.pr-waypoint-photo-item button { background: #fff; color: #8a291f; }
.pr-waypoint-photo-item button:hover { background: #fff1ef; border-color: #ebc0bb; }
.pr-waypoint-photo-editor :focus-visible { outline: 2px solid #245848; outline-offset: 3px; }
.pr-waypoint-photo-status {
    margin: 12px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #e3f1e8;
    font-size: .875rem;
}
.pr-waypoint-photo-status[data-status="failed"] { color: #8a291f; background: #fff1ef; }

/* Copy-only fallback when the shared layout is opened without a trail. */
.pr-trail-copy,
.pr-trail-modes {
    --pr-trail-copy-gap: 10px;
    --pr-trail-copy-key: 200px;
}

.pr-trail-copy {
    margin: 0 0 24px;
    padding: 20px 22px;
    border: 1px solid #dfe3dc;
    border-radius: 9px;
    background: #f6f7f3;
}

.pr-trail-copy-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #2c332c;
}

.pr-trail-copy-rows {
    display: grid;
    gap: var(--pr-trail-copy-gap);
}

.pr-trail-copy-row {
    display: grid;
    grid-template-columns: var(--pr-trail-copy-key) minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
}

.pr-trail-copy-key {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6d766d;
}

.pr-trail-copy-value {
    font-size: 15px;
    line-height: 1.5;
    color: #23281f;
    overflow-wrap: anywhere;
}

.pr-trail-modes {
    margin: -8px 0 24px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: var(--pr-trail-copy-gap);
}

.pr-trail-mode {
    display: grid;
    grid-template-columns: 70px var(--pr-trail-copy-key) minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    padding: 12px 14px;
    border: 1px solid #e3e6e0;
    border-radius: 9px;
    background: #fff;
}

.pr-trail-mode-key {
    font-size: 12px;
    font-weight: 700;
    color: #4a7c59;
}

.pr-trail-mode-label {
    font-size: 14px;
    font-weight: 600;
    color: #23281f;
}

.pr-trail-mode-hint {
    font-size: 14px;
    color: #5b6157;
    overflow-wrap: anywhere;
}

@media (max-width: 781px) {
    .pr-trail-copy-row,
    .pr-trail-mode {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}
