body.is-itinerar .site-breadcrumb,
body.is-itinerar .site-footer,
body.is-itinerar .back-to-top,
body.is-itinerar .ob-banner { display: none !important; }
body.is-itinerar main { min-height: 0; }
body.is-itinerar { overflow: hidden; }

.it-app {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 340px;
    height: calc(100vh - 72px);
    background: #f4efe3;
}
.it-rail, .it-plan {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fffdf8;
    border-right: 1px solid #e4d8c2;
}
.it-plan { border-right: 0; border-left: 1px solid #e4d8c2; }
.it-rail-head, .it-plan-head { padding: 1rem 1rem .7rem; }
.it-rail-head h1, .it-empty h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
    margin: .15rem 0 .7rem;
    color: #0a2540;
}
.it-new { display: flex; gap: .4rem; }
.it-new input, .it-title, .it-desc, .it-search input, .it-note, .it-stop-title {
    width: 100%;
    border: 1px solid #d8cbb3;
    border-radius: 8px;
    padding: .45rem .6rem;
    background: #fff;
    font: inherit;
    color: #1b2430;
}
.it-new .ob-btn { white-space: nowrap; }
.it-rail-list {
    list-style: none;
    margin: 0;
    padding: .2rem .6rem 1rem;
    overflow: auto;
    flex: 1;
}
.it-rail-list li { margin: 0 0 .35rem; }
.it-rail-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: .55rem .7rem;
    background: #f7f1e1;
    color: #0a2540;
    cursor: pointer;
    font: inherit;
}
.it-rail-item strong { display: block; font-size: .95rem; }
.it-rail-item span { font-size: .78rem; color: #5c5346; }
.it-rail-item.is-on, .it-rail-item:hover {
    border-color: #c9a84c;
    background: #fff8e6;
}
.it-rail-foot {
    padding: .8rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .88rem;
}
.it-rail-foot a { color: #0a2540; }
.it-stage { position: relative; min-width: 0; }
.it-map { position: absolute; inset: 0; }
.it-map-tools {
    position: absolute;
    z-index: 500;
    top: .7rem;
    left: .7rem;
    right: .7rem;
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    align-items: center;
}
.it-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #fffdf8;
    border: 1px solid #d8cbb3;
    border-radius: 999px;
    padding: .25rem .7rem;
    min-width: min(320px, 100%);
    box-shadow: 0 8px 24px rgba(10, 37, 64, .08);
}
.it-search input { border: 0; padding: .35rem 0; background: transparent; }
.it-search-hits {
    position: absolute;
    z-index: 520;
    top: 3.3rem;
    left: .7rem;
    width: min(360px, calc(100% - 1.4rem));
    margin: 0;
    padding: .35rem;
    list-style: none;
    background: #fffdf8;
    border: 1px solid #e4d8c2;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(10, 37, 64, .12);
    max-height: 16rem;
    overflow: auto;
}
.it-search-hits button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: .45rem .55rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.it-search-hits button:hover { background: #f7f1e1; }
.it-search-hits small { display: block; color: #5c5346; }
.it-pin-hint {
    position: absolute;
    z-index: 500;
    bottom: .8rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: #0a2540;
    color: #f7f1e1;
    font-size: .85rem;
    white-space: nowrap;
}
.it-plan { padding-bottom: .6rem; }
.it-plan-head { display: flex; gap: .4rem; align-items: center; padding-bottom: 0; }
.it-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
}
.it-desc { margin: .55rem 1rem 0; resize: vertical; min-height: 2.6rem; }
.it-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem 0;
    font-size: .86rem;
}
.it-stats { color: #5c5346; }
.it-switch { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.it-switch-ui {
    width: 2.1rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #c8bca8;
    position: relative;
}
.it-switch-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    background: #fff;
    transition: left .15s ease;
}
.it-switch input { position: absolute; opacity: 0; }
.it-switch input:checked + .it-switch-ui { background: #2d6a4f; }
.it-switch input:checked + .it-switch-ui::after { left: 1.05rem; }
.it-share {
    display: flex;
    gap: .4rem;
    align-items: center;
    padding: .45rem 1rem 0;
    font-size: .8rem;
    overflow: hidden;
}
.it-share a { color: #0a2540; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-days-bar { display: flex; align-items: center; gap: .35rem; padding: .7rem 1rem .2rem; }
.it-days { display: flex; gap: .3rem; flex-wrap: wrap; flex: 1; }
.it-day {
    border: 1px solid #d8cbb3;
    background: #fff;
    border-radius: 999px;
    padding: .25rem .65rem;
    font: inherit;
    cursor: pointer;
}
.it-day.is-on { background: #0a2540; color: #f7f1e1; border-color: #0a2540; }
.it-icon-btn {
    border: 1px solid #d8cbb3;
    background: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    cursor: pointer;
    color: #0a2540;
}
.it-icon-btn:hover { background: #f7f1e1; }
.it-stops {
    flex: 1;
    overflow: auto;
    padding: .5rem .75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.it-stop {
    display: grid;
    grid-template-columns: 1.4rem 2rem minmax(0, 1fr) auto;
    gap: .4rem;
    align-items: start;
    background: #f7f1e1;
    border: 1px solid #eadfcb;
    border-radius: 12px;
    padding: .5rem .55rem;
}
.it-stop.is-drag { opacity: .55; }
.it-stop-handle {
    cursor: grab;
    color: #8a7d68;
    line-height: 1.6;
    user-select: none;
}
.it-stop-nr {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #0a2540;
    color: #f7f1e1;
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 700;
}
.it-stop-body strong { display: block; font-size: .92rem; }
.it-stop-body small { color: #5c5346; }
.it-note {
    margin-top: .35rem;
    font-size: .8rem;
    min-height: 1.8rem;
}
.it-stop-actions { display: flex; flex-direction: column; gap: .2rem; }
.it-empty {
    margin: auto;
    text-align: center;
    padding: 2rem 1.2rem;
    color: #5c5346;
}
.it-empty i { font-size: 1.8rem; color: #c9a84c; }
.it-plan-actions { padding: 0 1rem .4rem; }
.it-drop { outline: 2px dashed #c9a84c; }

.it-num-pin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0a2540;
    color: #f7f1e1;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .78rem;
    border: 2px solid #c9a84c;
    box-shadow: 0 2px 8px rgba(10, 37, 64, .28);
}
.it-pop { min-width: 180px; }
.it-pop strong { display: block; margin: .2rem 0; }
.it-pop p { margin: 0 0 .45rem; font-size: .85rem; color: #5c5346; }
.it-pop .ob-pop-cat { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #8a6a1d; }
.it-toast {
    position: fixed;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    background: #0a2540;
    color: #f7f1e1;
    padding: .5rem .9rem;
    border-radius: 999px;
    font-size: .88rem;
}

.it-page { max-width: 70rem; margin: 0 auto; padding: 1.5rem 1.1rem 3rem; }
.it-hero { padding: 1.6rem 0 1rem; }
.it-hero h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0a2540;
    margin: .2rem 0 .4rem;
}
.it-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.it-card {
    display: flex;
    flex-direction: column;
    background: #fffdf8;
    border: 1px solid #e4d8c2;
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    min-height: 100%;
}
.it-card:hover { border-color: #c9a84c; }
.it-card-media {
    height: 140px;
    background: #0a2540 center/cover no-repeat;
}
.it-card-body { padding: .85rem 1rem 1rem; }
.it-card-body h2 { font-size: 1.15rem; margin: 0 0 .3rem; font-family: "Cormorant Garamond", Georgia, serif; }
.it-card-body p { margin: 0; color: #5c5346; font-size: .88rem; }
.it-card-meta { margin-top: .55rem; font-size: .8rem; color: #7a6e5c; }
.it-public-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.2rem;
    align-items: start;
}
.it-mini-map { height: 280px; border-radius: 14px; overflow: hidden; border: 1px solid #e4d8c2; }
.it-public-stops { list-style: none; margin: 0; padding: 0; }
.it-public-stops li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .6rem;
    padding: .65rem 0;
    border-bottom: 1px solid #eadfcb;
}
.it-picker {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    background: rgba(6, 24, 40, .45);
}
.it-picker[hidden] { display: none; }
.it-picker-box {
    width: min(26rem, calc(100vw - 2rem));
    background: #fffdf8;
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 20px 50px rgba(6, 24, 40, .25);
}
.it-picker-box h2 { margin: 0 0 .7rem; font-family: "Cormorant Garamond", Georgia, serif; }
.it-picker-list { display: flex; flex-direction: column; gap: .35rem; max-height: 16rem; overflow: auto; }
.it-picker-list button, .it-picker-new {
    width: 100%;
    text-align: left;
    border: 1px solid #e4d8c2;
    background: #f7f1e1;
    border-radius: 10px;
    padding: .55rem .7rem;
    font: inherit;
    cursor: pointer;
}

.it-mobile-tabs { display: none; }

@media (max-width: 980px) {
    body.is-itinerar { overflow: auto; }
    .it-app {
        grid-template-columns: 1fr;
        height: calc(100vh - 118px);
    }
    .it-rail, .it-plan, .it-stage { display: none; }
    .it-app.is-tab-rail .it-rail,
    .it-app.is-tab-stage .it-stage,
    .it-app.is-tab-plan .it-plan { display: flex; }
    .it-app.is-tab-stage .it-stage { display: block; }
    .it-mobile-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: sticky;
        bottom: 0;
        background: #0a2540;
        z-index: 40;
    }
    .it-mobile-tabs button {
        border: 0;
        background: transparent;
        color: #e6dcc4;
        padding: .85rem .4rem;
        font: inherit;
    }
    .it-mobile-tabs button.is-on { color: #c9a84c; }
    .it-public-layout { grid-template-columns: 1fr; }
}
