/* Presentation only. Existing controls, states, routes and business rules stay intact. */
:root {
  --bg:#FBFAF6; --surface:#FFFFFF; --soft:#F2F0E9; --ink:#102F29; --green:#0B3A32;
  --muted:#65736C; --line:#E8E6DD; --gold:#D99A45; --gold-ink:#835416;
  --gold-soft:#FBF0DE; --lake:#265F55; --radius:20px;
  --shadow:0 3px 16px rgba(22,47,35,.045);
  --body:"Inter",system-ui,sans-serif; --display:"Inter",system-ui,sans-serif;
}
body { background:var(--bg); color:var(--ink); }
h1,h2,h3 { color:var(--ink); letter-spacing:-.035em; }
h2 { font-weight:700; }
button,input,select,textarea { font:inherit; }
.btn { border-radius:12px; font-size:14px; font-weight:600; min-height:46px; box-shadow:none; }
.btn.primary,.bookbar .btn { color:#183329; background:#D99A45; border-color:#D99A45; }
.btn.primary:hover,.bookbar .btn:hover { background:#E5AB5D; border-color:#E5AB5D; }
.btn.dark { background:var(--green); color:#FFF; }
input,select,textarea { border-color:var(--line); border-radius:12px; background:#FFF; min-height:46px; }
input:focus,select:focus,textarea:focus { outline:2px solid #A96B20; outline-offset:2px; }
:where(button,a):focus-visible { outline:3px solid #A96B20; outline-offset:3px; }
.card,.tripcard { border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); background:#FFF; }
.chip { border-radius:999px; border-color:var(--line); min-height:40px; font-weight:500; }
.chip[aria-pressed="true"] { background:var(--green); color:white; border-color:var(--green); }
.segtabs { padding:4px; border:1px solid var(--line); background:#F0F0EB; border-radius:14px; }
.segtabs button { min-height:44px; border-radius:10px; font-size:13px; }
.segtabs button[aria-pressed="true"] { background:var(--green); color:#FFF; box-shadow:0 2px 5px #15352e16; }
/* Photographs run to the card edge; names and prices keep their own space. */
.triplist .tcard { padding:0; border-radius:18px; border:1px solid var(--line); box-shadow:var(--shadow); }
.triplist .tcard .tphoto { border-radius:0; aspect-ratio:4 / 3; }
.triplist .tcard .tphoto img { width:100%; height:100%; object-fit:cover; }
.triplist .tcard .tbody { padding:13px; gap:6px; }
.triplist .tcard h3 { font-size:14px; line-height:1.35; font-weight:650; letter-spacing:-.02em; }
.triplist .tcard .tsub { font-size:12px; color:var(--muted); }
.triplist .tcard .tfoot { gap:8px; align-items:center; flex-wrap:wrap; }
.triplist .tcard .tprice { font-size:19px; font-weight:750; color:var(--ink); }
.triplist .tcard .trate { font-size:12px; }
.triplist .tcard .goldheart { background:#FFFFFFEB; color:var(--green); box-shadow:0 2px 8px #12372f15; width:34px; height:34px; }
.triplist .tcard .goldheart svg { fill:transparent; stroke:currentColor; stroke-width:1.8; }
.triplist .tcard .goldheart[aria-pressed="true"] { background:#FFF; color:#B85D40; }
.triplist .tcard .goldheart[aria-pressed="true"] svg { fill:currentColor; }
/* The catalog and favourites read as a list, retaining all filtering controls. */
.catmain .triplist { grid-template-columns:1fr; }
.catmain .triplist .tcard { display:flex; flex-direction:row; padding:9px; gap:12px; align-items:stretch; }
.catmain .triplist .tcard .tphoto { flex:0 0 116px; width:116px; min-height:132px; aspect-ratio:auto; border-radius:12px; }
.catmain .triplist .tcard .tbody { flex:1; min-width:0; padding:5px 4px 5px 0; justify-content:space-between; }
.catmain .triplist .tcard h3 { font-size:15px; }
.catmain .triplist .tcard .goldheart { top:6px; right:6px; width:30px; height:30px; }
.catfilters { border-color:var(--line); border-radius:18px; box-shadow:var(--shadow); }
.tooda-filter-toggle { box-shadow:none; }
/* Details, booking, trips and local profile use the same surface language. */
.tourtop { background:var(--soft); }
.sheet { background:var(--bg); }
.sheet h1 { font-weight:750; line-height:1.15; }
.sheet .pills { gap:7px; }
.pills > span { border-radius:9px; font-size:12px; padding:6px 10px; }
.tourpage > section { gap:14px; }
#book { border-radius:20px; box-shadow:0 8px 24px #17382e0A; padding:20px; scroll-margin-top:90px; }
#book h2 { font-size:21px; }
#book .datepick button { border-radius:12px; background:#F7F8F3; border:1px solid #DDE5DA; }
#book .datepick button[aria-pressed="true"] { border-color:var(--green); background:#EAF1EC; }
.bookbar { background:#FFF; border-top:1px solid var(--line); box-shadow:0 -5px 20px #18332908; }
.bookbar b { color:var(--ink); }
.routemap { border-radius:18px; background:#E8EEE3; border-color:#D9E1D2; }
.routesvg { width:100%; height:100%; padding:14px; }
.itabs { flex-wrap:wrap; gap:10px; }
.itin-vday { border-radius:14px; background:#FFF; border:1px solid var(--line); }
.hostrow { border-color:var(--line); border-radius:16px; }
.tripcard { padding:16px; }
.triptop { gap:14px; }
.triptop > img { width:96px; height:112px; object-fit:cover; border-radius:12px; }
.tripbtns { gap:8px; flex-wrap:wrap; }
.tripbtns .btn { min-height:40px; padding-inline:12px; font-size:12px; }
.status { border-radius:7px; font-size:11px; font-weight:550; padding:5px 8px; }
.mehead { padding:18px; align-items:center; }
.meava { width:56px; height:56px; background:#E8EEE5; color:var(--green); border:1px solid #DDE6D8; }
.melist { padding:4px 16px; }
.merow { min-height:56px; border-color:#EEEDE6; gap:12px; font-size:14px; }
.meic { color:var(--green); background:transparent; }
.medet { border-color:#EEEDE6; }
.review { padding:18px; }
.stars-input button { min-width:38px; min-height:44px; }
/* Reels keeps the immersive media canvas, with the light surrounding navigation in the reference. */
body.reelmode { background:var(--bg); }
body.reelmode .reels { background:var(--bg); }
body.reelmode .tabbar { background:#FFFDF8; border-top-color:var(--line); }
body.reelmode .tabbar a { color:#59655F; }
body.reelmode .tabbar a.on { color:#95601C; }
.reel { background:#102A24; }
.reelinfo { padding:80px 18px 20px; gap:12px; background:linear-gradient(transparent,#071C17BD 45%,#071C17E8); }
.reelwho { font-size:13px; }
.reeltt b { font-size:13px; }
.reelhead { padding-inline:18px; }
.reelchips button { border-radius:999px; min-height:36px; font-size:12px; }
.reelsheetbox { background:var(--bg); box-shadow:0 -8px 40px #15352E21; border-radius:24px 24px 0 0; }
@media(max-width:999px) {
  body:not(.reelmode) { padding-inline:16px; }
  .wrap { gap:24px; }
  .topbar { min-height:80px; padding-top:12px; margin-bottom:0; }
  .topbar .brand { align-items:center; gap:7px; }
  .topbar .brand .emb { height:32px; width:auto; }
  .topbar .brand .wm { content:url('/icons/wordmark2.png'); height:27px; width:auto; max-width:102px; margin:0; }
  .topbar-explore { width:38px; height:38px; box-shadow:none; }
  .langsel { min-height:36px; border-color:transparent; background:transparent; box-shadow:none; }
  .hello { font-size:26px; font-weight:700; margin:0; }
  .tooda-mobile-hero { height:306px; border-radius:22px; box-shadow:none; }
  .tooda-mobile-hero-content { left:21px; right:21px; bottom:25px; }
  .tooda-mobile-hero-content h1 { font-size:32px; line-height:1.1; letter-spacing:-.04em; }
  .tooda-mobile-hero-content p { font-size:13px; line-height:1.6; }
  .tooda-mobile-hero ~ .searchbox { margin:0; border-radius:14px; min-height:52px; box-shadow:0 4px 14px #17382e08; }
  .upnext { min-height:84px; border-radius:16px; padding:13px; align-items:center; }
  .upnext b { font-size:13px; line-height:1.5; display:block; }
  .searchbox { border-radius:14px; box-shadow:none; min-height:50px; }
  .searchbox input { min-height:48px; }
  .tooda-quick { gap:12px; }
  .tooda-quick a { font-size:11px; gap:8px; }
  .tooda-quick a > svg { border-radius:16px; box-shadow:none; border:1px solid var(--line); }
  .sechead h2, .wrap > section > h2 { font-size:21px; }
  .destcards { gap:12px; padding-bottom:8px; }
  .destcard { border-radius:18px; height:190px; flex-basis:45%; box-shadow:none; }
  .destcard b { font-size:16px; }
  .destcard span { font-size:11px; }
  .triplist { gap:14px; }
  .catlayout { align-items:stretch; }
  .catlayout .catmain { width:100%; }
  .catfilters.tooda-filters-open { padding:18px; gap:14px!important; }
  .catgroup { padding-bottom:10px; }
  .catgroup + .catgroup { border-top:1px solid var(--line); padding-top:14px; }
  .catfilters .chip { min-height:42px; }
  .catfilters .tooda-filter-label { font-size:13px; font-weight:650; }
  .tourtop { margin-inline:-16px; border-radius:0 0 23px 23px; }
  .tourtop .gallery img { height:350px; }
  .sheet { margin:0; padding:0; border-radius:0; }
  .sheet .pills { margin-right:0; padding-right:0; max-width:100%; }
  .sheet h1 { font-size:26px; }
  .bookbar { padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); }
  .bookbar .btn { flex:0 1 190px; min-height:48px; border-radius:12px; }
  .bookbar b { font-size:24px; }
  .tabbar { min-height:72px; padding:8px 7px calc(9px + env(safe-area-inset-bottom,0px)); box-shadow:0 -4px 18px #17382e06; background:#FFFDF8; }
  .tabbar a { gap:5px; font-size:10px; line-height:1.4; color:#59655F; }
  .tabbar a svg { width:22px; height:22px; fill:none; stroke:currentColor; }
  .tabbar a.on { color:#95601C; font-weight:650; }
  .tabbar a.on svg { fill:none; stroke:currentColor; }
  .tabbar a[href='/feed'],.tabbar a[href='/feed'].on { color:#59655F; }
  .tabbar a[href='/feed'].on { color:#95601C; }
  .tabbar a[href='/feed'] svg { width:22px; height:22px; padding:0; background:transparent; border-radius:0; }
  body.reelmode .reels { bottom:calc(72px + env(safe-area-inset-bottom,0px)); }
  .reel { max-width:none; border-radius:0 0 16px 16px; }
}
@media(min-width:1000px) {
  .dhead { background:#FFFDF9; color:var(--ink); border-bottom:1px solid var(--line); box-shadow:0 2px 12px #17382e05; }
  .dhead-in { height:74px; }
  .dlogo { display:flex; align-items:center; gap:8px; text-decoration:none; }
  .dlogo::before { content:''; width:50px; height:34px; background:url('/icons/emblem2.png') center/contain no-repeat; }
  .dlogo img { content:url('/icons/wordmark2.png'); width:100px; height:auto; }
  .dnav a { color:#516059; padding:10px 16px; }
  .dnav a.on { color:#835416; }
  .dside .langsel { color:var(--ink); border-color:var(--line); }
  .dguide { border-radius:10px; }
  .wrap { max-width:1280px; }
  .dhero { border-radius:0 0 26px 26px; }
  .catbanner { height:250px; }
  .catbanner h1 { font-family:"Lora",Georgia,serif; }
  .catlayout { grid-template-columns:240px minmax(0,1fr); gap:26px; }
  .catfilters { top:96px; padding:20px; }
  .catmain .triplist { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catmain .triplist .tcard .tphoto { flex-basis:132px; width:132px; min-height:156px; }
  .catmain .triplist .tcard h3 { font-size:15px; }
  .tourpage > .tside { top:96px; }
  .tourtop .gallery { height:480px; }
  .tripcard { max-width:900px; }
  .wrap:has(>.mehead) { max-width:1000px; }
  .wrap:has(>.mehead) > .stack { max-width:850px; }
  .reelsheetbox { border-radius:22px; }
  body.reelmode .reels { top:74px; }
  body.reelmode .reelhead { top:90px; }
  body.reelmode .reel { height:calc(100vh - 112px); width:calc((100vh - 112px) * 9 / 16); }
}
@media(min-width:1000px) and (max-width:1180px) { .catmain .triplist { grid-template-columns:1fr; } }
@media(max-width:350px) {
  .catmain .triplist .tcard .tphoto { flex-basis:92px; width:92px; min-height:125px; }
  .catmain .triplist .tcard .tprice { font-size:17px; }
  .topbar .brand .wm { height:23px; max-width:90px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; } }


/* Белый фон везде (решение владельца, 16.10.2026). Подключается последним, поэтому перекрывает кремовый фон. */
:root { --bg:#FFFFFF; }
html, body:not(.reelmode) { background:#FFFFFF; }
.sheet, .reelsheetbox { background:#FFFFFF; }
@media (max-width: 999px) { :root { --bg:#FFFFFF; } html, body:not(.reelmode) { background:#FFFFFF; } .sheet { background:#FFFFFF; } }
@media (min-width: 1000px) { :root { --bg:#FFFFFF; } body.saas { background:#FFFFFF !important; } }
