/* Страница города: вкладки по дням, карты, таймлайн. Подключается после travel.css */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.fact { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.fact b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; }
.fact span { display: block; margin-top: 3px; font-weight: 800; font-size: 15px; line-height: 1.3; }
.fact.wide { grid-column: 1 / -1; }

/* day tabs */
.tabs { position: sticky; top: 0; z-index: 900; margin: 22px -16px 0; padding: calc(var(--safe-t) + 10px) 16px 10px;
        background: rgba(255, 238, 244, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(225, 29, 99, .12); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; border: 0; cursor: pointer; border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 800; font-size: 14px;
       background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--accent); color: #fff; }

.day { display: none; padding-top: 18px; }
.day.active { display: block; animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.day-head { display: flex; gap: 14px; align-items: center; }
.day-emoji { font-size: 44px; line-height: 1; }
.day-date { font-size: 14px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.day h2 { margin: 2px 0 0; font-size: 26px; line-height: 1.15; font-weight: 900; }
.day-intro { margin: 12px 0 0; line-height: 1.5; color: var(--muted); font-size: 16px; }

.map { height: 340px; margin-top: 16px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 3px solid #fff; background: #f3e6ea; z-index: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 4px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 4px solid; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.legend .dash { border-top-style: dashed; }

/* timeline */
.timeline { position: relative; margin-top: 22px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(225,29,99,.35) 0 6px, transparent 6px 12px); }
.stop { position: relative; margin-bottom: 16px; }
.stop::before { content: attr(data-n); position: absolute; left: -26px; top: 12px; width: 22px; height: 22px; border-radius: 50%;
                background: var(--accent); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff4f7; }
.stop.k-food::before { background: #f59e0b; }
.stop.k-shop::before { background: #8b5cf6; }
.stop.k-move::before { background: #0ea5e9; }
.stop.k-rest::before { background: #64748b; }
.card { background: var(--card-solid); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(225, 29, 99, .08); }
.card .pic { position: relative; aspect-ratio: 16 / 9; background: #f6dfe6 center / cover no-repeat; }
.card .pic.pair { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; background: #fff; }
.card .pic.pair span { background: #f6dfe6 center / cover no-repeat; }
.time { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 900; font-size: 15px; padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.kind { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.body { padding: 14px 16px 16px; }
.noimg .body { padding-top: 12px; }
.noimg .t-inline { display: inline-block; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.card h3 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 900; }
.card p { margin: 8px 0 0; line-height: 1.5; font-size: 15.5px; }
.go { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #fff3f7; font-size: 14.5px; line-height: 1.45; }
.go b { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 800;
        padding: 8px 12px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(120, 20, 60, .14); }
.nav a:active, .nav button:active { transform: scale(.97); }
.tips { margin: 10px 0 0; padding: 0; list-style: none; }
.tips li { position: relative; padding-left: 22px; margin-top: 6px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.tips li::before { content: "💡"; position: absolute; left: 0; font-size: 13px; }
.alt { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #f1f5f9; font-size: 14.5px; line-height: 1.45; }

/* info sections */
.section { margin-top: 34px; }
.section h2 { margin: 0 0 4px; font-size: 26px; font-weight: 900; }
.section .sub { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
.info { background: var(--card-solid); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.info h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.info p, .info li { line-height: 1.5; font-size: 15px; }
.info p { margin: 6px 0 0; }
.info ul { margin: 6px 0 0; padding-left: 20px; }
.brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.brands span { background: #fff0f5; border-radius: 999px; padding: 5px 11px; font-size: 13.5px; font-weight: 800; }
.brands.tr span { background: #fdecea; }
.foods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.food { background: var(--card-solid); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.food span { display: block; aspect-ratio: 4 / 3; background: #f6dfe6 center / cover no-repeat; }
.food b { display: block; padding: 8px 10px 0; font-size: 15px; }
.food small { display: block; padding: 2px 10px 10px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.credits { margin-top: 28px; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }

.leaflet-container { font-family: inherit; }
.pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 12px; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.pin.hotel { width: 32px; height: 32px; font-size: 17px; background: #fff; border-color: var(--accent); }
.leaflet-popup-content { margin: 10px 12px; font-size: 13.5px; line-height: 1.35; }
.leaflet-popup-content b { font-size: 14px; }

@media (min-width: 620px) {
  .map { height: 420px; }
  .foods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* куда съездить */
.place-list { display: grid; gap: 14px; margin-top: 14px; }
.place-card { background: var(--card-solid); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(225, 29, 99, .08); }
.place-card .pic { position: relative; aspect-ratio: 16 / 9; background: #f6dfe6 center / cover no-repeat; }
.place-card .pic.pair { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; background: #fff; }
.place-card .pic.pair span { background: #f6dfe6 center / cover no-repeat; }
.place-card h3 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 900; }
.place-card p { margin: 8px 0 0; line-height: 1.5; font-size: 15.5px; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pmeta span { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #fff0f5; color: var(--accent); }
#map-places { margin-top: 0; }

/* что взять с собой */
.pack-progress { height: 10px; border-radius: 999px; background: #f6dfe6; overflow: hidden; margin: 4px 0 14px; }
.pack-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8fab, var(--accent)); border-radius: inherit; transition: width .3s; }
.pack-group { background: var(--card-solid); border-radius: 22px; padding: 14px 16px 8px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.pack-group h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.pack-item { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px dashed rgba(225, 29, 99, .15); cursor: pointer; line-height: 1.4; font-size: 15px; }
.pack-item:first-of-type { border-top: 0; }
.pack-item input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.pack-item small { display: block; color: var(--muted); font-size: 13px; }
.pack-item.done span { text-decoration: line-through; opacity: .5; }
.pack-reset { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px 0; }

/* цены и бюджет */
.price { display: inline-block; margin-top: 8px; padding: 6px 11px; border-radius: 12px; background: #fff8e6; color: #7a4a00; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.price b { color: #5a3500; }
.btotal { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.btotal > div { flex: 1 1 200px; border-radius: 22px; padding: 16px; background: linear-gradient(150deg, #ff8fab, var(--accent)); color: #fff; box-shadow: var(--shadow); }
.btotal > .bopt { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btotal small { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.btotal b { display: block; font-size: 30px; font-weight: 900; margin-top: 2px; }
.btotal span { display: block; font-size: 14px; font-weight: 700; opacity: .9; margin-top: 2px; }
.bgroup { background: var(--card-solid); border-radius: 22px; padding: 14px 16px 8px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.bgroup h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.bgroup h3 span { color: var(--accent); white-space: nowrap; }
.brow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-top: 1px dashed rgba(225, 29, 99, .15); font-size: 15px; line-height: 1.35; }
.brow:first-of-type { border-top: 0; }
.brow small { display: block; color: var(--muted); font-size: 13px; }
.brow i { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; vertical-align: 1px; }
.brow .bamt { text-align: right; color: var(--muted); font-weight: 700; white-space: nowrap; }
.brow b { grid-column: 2; text-align: right; white-space: nowrap; }
.brow.opt { opacity: .75; }
.bnote { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 6px 4px 0; }

/* сравнение: такси или своя машина */
.car-compare { display: grid; gap: 12px; }
@media (min-width: 620px) { .car-compare { grid-template-columns: 1fr 1fr; } }
.car-compare .info { margin-bottom: 0; }
.car-compare + .info { margin-top: 12px; }
.car-win { box-shadow: 0 0 0 3px rgba(22, 163, 74, .35), var(--shadow-sm); }
.car-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 2px solid rgba(225, 29, 99, .15); }
.car-total small { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.car-total .price { margin-top: 0; font-size: 16px; }
.info .price { margin-top: 0; }
.rent-list { display: grid; gap: 10px; margin-top: 10px; }
.rent { padding: 12px 14px; border-radius: 16px; background: #fff7f9; border: 1px solid rgba(225, 29, 99, .1); }
.rent b { font-size: 16px; }
.rent p { margin: 6px 0 0; font-size: 14.5px; }
.rent .nav { margin-top: 10px; }
.rent-tag { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #e7f8ee; color: #0f7a43; font-size: 12px; font-weight: 800; vertical-align: 2px; }
