/* All Istanbul tour page: "Your route" (app/tour-route.php, 27 Nov 2026). A map of the stops and the same route as a list.
   The same layout as onenationtravel.com's ont-route.css, in this site's colours (green ink, gold, paper).
   The site's Content-Security-Policy allows no inline styles, so everything the SVG shows is styled from here. */
.tour-route{margin:clamp(36px,4vw,56px) 0 0;container-type:inline-size;scroll-margin-top:80px}
#days details[id]{scroll-margin-top:24px}
.tour-route-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin-bottom:14px}
.tour-route-head h2{margin:0}
.tour-route-facts{margin:0;padding:6px 14px;border-radius:999px;font-family:"DM Sans",Arial,sans-serif;background:#eef2ea;color:var(--ink,#123c36);font-size:14px;font-weight:700}
.tour-route-card{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #e1e5dc;border-radius:20px;overflow:hidden;background:#fffdf8}
.tour-route-mapbox{position:relative;background:#dbe8e6;min-width:0}
.tour-route-map{display:block;width:100%;height:auto}

/* the map */
.tour-route-sea{fill:#dbe8e6}
.tour-route-land{fill:#f8f4ea;stroke:#cbbd9c;stroke-width:1.4;stroke-linejoin:round}
.tour-route-country{fill:#123c36;fill-opacity:.11;font:800 46px/1 "DM Sans",system-ui,sans-serif;letter-spacing:.34em}
.tour-route-spur{stroke:#123c36;stroke-opacity:.45;stroke-width:2;stroke-dasharray:2 7;stroke-linecap:round}
.tour-route-spur--trip{stroke-opacity:.8;stroke-width:4;stroke-dasharray:1 10}
.tour-route-leg{fill:none;stroke-width:5;stroke-linecap:round}
.tour-route-leg--bus,.tour-route-leg--train{stroke:#123c36}
.tour-route-leg--train{stroke-dasharray:18 8}
.tour-route-leg--plane{stroke:#C0392B;stroke-dasharray:3 11}
.tour-route-leg--ferry{stroke:#1F7A8C;stroke-dasharray:14 9}
.tour-route-badge circle{fill:#fff;stroke-width:2.5}
.tour-route-badge--bus circle,.tour-route-badge--train circle{stroke:#123c36}
.tour-route-badge--bus path,.tour-route-badge--train path{fill:#123c36}
.tour-route-badge--plane circle{stroke:#C0392B}
.tour-route-badge--plane path{fill:#C0392B}
.tour-route-badge--ferry circle{stroke:#1F7A8C}
.tour-route-badge--ferry path{fill:#1F7A8C}
.tour-route-map a{cursor:pointer;text-decoration:none}
.tour-route-stop rect{stroke:#fff;stroke-width:4}
.tour-route-stop--stay rect{fill:#123c36}
.tour-route-stop--pass rect{fill:#fff;stroke:#123c36;stroke-width:3.5}
.tour-route-num{font:800 26px/1 "DM Sans",system-ui,sans-serif;fill:#fff;letter-spacing:-.02em}
.tour-route-stop--pass .tour-route-num{fill:#123c36}
.tour-route-name{font:800 31px/1 "DM Sans",system-ui,sans-serif;fill:#123c36;letter-spacing:-.02em;paint-order:stroke;stroke:#fff;stroke-width:7px;stroke-linejoin:round}
.tour-route-map--dense .tour-route-name{font-size:22px;stroke-width:6px}
.tour-route-visit rect{fill:#dcb86e;stroke:#123c36;stroke-width:2.5}
.tour-route-visit text{font:600 italic 25px/1 "DM Sans",system-ui,sans-serif;fill:#123c36;paint-order:stroke;stroke:#fff;stroke-width:6px;stroke-linejoin:round}
.tour-route-map a:hover .tour-route-name,.tour-route-map a:hover text{text-decoration:underline}
.tour-route-map a:focus-visible{outline:none}
.tour-route-map a:focus-visible rect{stroke:#dcb86e;stroke-width:6}

/* the key under the map */
.tour-route-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:10px 16px;list-style:none;background:#fffdf8;border-top:1px solid #e1e5dc;font-size:13px;font-weight:600;color:#4c5f5b}
.tour-route-key{display:inline-flex;align-items:center;gap:8px}
.tour-route-key span{display:inline-block;width:26px;height:0;border-top:3px solid #123c36}
.tour-route-key--plane span{border-top:3px dotted #C0392B}
.tour-route-key--ferry span{border-top:3px dashed #1F7A8C}
.tour-route-key--train span{border-top:3px dashed #123c36}
.tour-route-key--visit span{width:10px;height:10px;border:2px solid #123c36;background:#dcb86e;transform:rotate(45deg);margin:0 6px 0 4px}

/* the list */
.tour-route-list{margin:0;padding:14px 14px 16px;list-style:none;border-top:1px solid #e1e5dc;min-width:0}
.tour-route-item a,.tour-route-side a{display:flex;align-items:center;gap:12px;padding:6px 8px;border-radius:14px;color:var(--ink,#123c36);text-decoration:none}
.tour-route-item a:hover,.tour-route-side a:hover{background:#eef2ea}
.tour-route-item a:focus-visible,.tour-route-side a:focus-visible{outline:3px solid #c9a45c;outline-offset:1px}
.tour-route-no{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ink,#123c36);color:#fff;font-size:14px;font-weight:800}
.tour-route-item--pass .tour-route-no{background:#fff;color:var(--ink,#123c36);box-shadow:inset 0 0 0 2px var(--ink,#123c36)}
.tour-route-what{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.tour-route-what b{font-size:16px;font-weight:800;letter-spacing:-.01em}
.tour-route small{letter-spacing:0}
.tour-route-what small{font-size:13px;font-weight:500;color:#4c5f5b}
.tour-route-side a{padding-left:17px}
.tour-route-dot{flex:none;width:10px;height:10px;margin:0 11px 0 2px;border:2px solid var(--ink,#123c36);background:#c9a45c;transform:rotate(45deg)}
.tour-route-side .tour-route-what{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:0 8px}
.tour-route-side b{font-size:15px;font-weight:700}
.tour-route-move{display:flex;align-items:center;gap:8px;margin:1px 0 1px 22px;padding:3px 0 3px 17px;border-left:2px solid #123c36;font-size:12.5px;font-weight:700;letter-spacing:.02em;color:#4c5f5b}
.tour-route-move--plane{border-left:2px dotted #C0392B;color:#A93226}
.tour-route-move--ferry{border-left:2px dashed #1F7A8C;color:#1A6676}
.tour-route-move--train{border-left-style:dashed}
.tour-route-ico{flex:none;fill:currentColor}
.tour-route-line{margin:14px 0 0;font-size:15px;color:var(--ink,#123c36)}
.tour-route-note{margin:4px 0 0;font-size:13px;color:#4c5f5b}

/* a long route's list folds on a phone (tour-route.js closes it there); the heading row is hidden where the list has room */
.tour-route .tour-route-steps{border:0;border-top:1px solid #e1e5dc;min-width:0}
.tour-route .tour-route-steps>summary{display:flex;align-items:center;gap:10px;padding:14px 18px;font-size:16px;font-weight:800;line-height:1.3;color:var(--ink,#123c36);cursor:pointer;list-style:none}
.tour-route .tour-route-steps>summary::-webkit-details-marker{display:none}
.tour-route .tour-route-steps>summary small{font-size:13px;font-weight:600;color:#4c5f5b}
.tour-route .tour-route-steps>summary::after{content:"+";margin-left:auto;font-size:20px;font-weight:500;line-height:1;color:var(--ink,#123c36)}
.tour-route .tour-route-steps[open]>summary::after{content:"−"}
.tour-route .tour-route-steps>summary:focus-visible{outline:3px solid #c9a45c;outline-offset:-3px}
.tour-route .tour-route-steps .tour-route-list{border-top:0;padding-top:2px}

/* wide enough: the list sits beside the map */
@container (min-width:700px){
    .tour-route:not(.tour-route--long) .tour-route-card{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr)}
    .tour-route:not(.tour-route--long) .tour-route-list{border-top:0;border-left:1px solid #e1e5dc;align-self:center}
    .tour-route:not(.tour-route--long) .tour-route-mapbox{display:flex;flex-direction:column;justify-content:center}
    .tour-route:not(.tour-route--long) .tour-route-legend{margin-top:auto}
    /* a long route: the map across the card, the list under it in columns */
    .tour-route--long .tour-route-map{max-height:540px}
    .tour-route .tour-route-steps>summary{display:none}
    .tour-route--long .tour-route-list,.tour-route--long .tour-route-steps .tour-route-list{columns:3 200px;column-gap:18px;column-rule:1px solid #e1e5dc;padding:16px 18px 18px}
    .tour-route--long .tour-route-list li{break-inside:avoid}
}
@media print{.tour-route-map a{cursor:auto}}

/* staff panel → Rota haritaları (app/route-admin.php) */
.route-admin .route-admin-table{border-collapse:collapse;margin:14px 0 10px;width:100%;max-width:1100px;font-size:15px}
.route-admin .route-admin-table th,.route-admin .route-admin-table td{padding:9px 14px;border:1px solid #d4d8ce;text-align:left;vertical-align:top}
.route-admin .route-admin-table thead th{background:#123c36;color:#fff;font-weight:700}
.route-admin .route-admin-table tbody th{font-weight:600}
.route-admin .route-admin-list th{width:38%}
.route-admin .route-admin-list td:last-child{white-space:nowrap}
.route-admin .route-admin-list small{color:#4c5f5b;letter-spacing:0;font-weight:400;font-size:13px}
.route-admin .route-admin-counts{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 22px;font-size:15px}
.route-admin .route-admin-state--data{color:#B42318}
.route-admin h2{margin-top:34px;font-size:28px}
.route-admin .route-admin-legs select{margin-top:0;min-width:220px;width:auto}
.route-admin .route-admin-tour{font-size:17px;line-height:1.6}
.route-admin .route-admin-preview{padding:8px 20px 22px;border:1px solid #d4d8ce;border-radius:12px;background:#fff}
.route-admin .route-admin-preview .tour-route{margin-top:14px}
.route-admin.panel{max-width:1180px}
