/* Mobile tourist UI 2026-11-23 — Red Holm baseline, seniors-first */
/* Hide legacy chrome until mn-ready to avoid flash of desktop header */
@media (max-width:768px) {
  html[data-mn-boot]:not([data-mn-ready]) body > :is(header, .site-header, #st-head, #sl-head, #catalog-shell-header, header.rs-root, .sn-server-header) {
    visibility: hidden !important;
  }
  html[data-mn-boot]:not([data-mn-ready]) body {
    background: #f3f5f2 !important;
  }
}
/* Shared mobile components. Desktop markup and booking handlers are retained. */
.mn-header,.mn-hero,.mn-rail,.mn-bottom,.mn-chat,.mn-menu:not([open]){display:none}
@media(max-width:768px){
  :root,:host{--mn-bg:#f5f7f9;--mn-surface:#fff;--mn-ink:#111827;--mn-muted:#6b7280;--mn-green:#1b6b46;--mn-line:#eaecef;--mn-header:52px;--mn-bottom:60px}
  html[data-mn-page]{overflow-x:hidden;scroll-padding-top:108px;scroll-padding-bottom:90px}
  html[data-mn-page] body{width:100%;min-width:0;max-width:100%;margin:0!important;padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))!important;background:var(--mn-bg)!important;color:var(--mn-ink);font-family:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif}
  html body :is(#st-head,#sl-head,#catalog-shell-header,#sn-network-head,[data-mn-source])[data-mn-source][data-mn-source][data-mn-source],:host [data-mn-source][data-mn-source][data-mn-source]{display:none!important}
  :is(.mn-header,.mn-hero,.mn-rail,.mn-bottom,.mn-menu,.mn-chat),:is(.mn-header,.mn-hero,.mn-rail,.mn-bottom,.mn-menu) *{box-sizing:border-box;font-family:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif}
  html body .mn-header,.mn-header{position:sticky!important;top:0!important;z-index:1010!important;display:flex!important;align-items:center;gap:8px;width:100%;height:52px!important;min-height:52px!important;max-height:52px!important;margin:0;padding:4px 16px;background:#fff!important;border:0;border-bottom:1px solid #eaeaea;color:#111827}
  .mn-header .mn-brand{flex:1 1 auto;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111827!important;font-size:16px!important;font-weight:600;line-height:44px;text-decoration:none!important}
  .mn-header .mn-icon{flex:0 0 44px;display:grid!important;place-items:center;width:44px!important;height:44px!important;min-height:44px;margin:0!important;padding:0!important;background:#fff!important;color:#1b6b46!important;border:0!important;border-radius:12px;text-decoration:none!important}
  .mn-icon svg,.mn-chat svg{display:block;flex:none;width:22px;height:22px;pointer-events:none}
  html body .mn-hero,.mn-hero{display:block!important;width:100%;max-width:100%;margin:12px 0 24px!important;padding:0!important;background:#fff!important;color:#111827!important;border:1px solid #eaecef;border-radius:16px;overflow:hidden;box-shadow:0 3px 16px #11182705}
  html body .mn-hero .mn-hero-photo,.mn-hero .mn-hero-photo{position:static!important;display:block!important;width:100%!important;height:clamp(220px,64vw,260px)!important;max-width:100%!important;max-height:none!important;object-fit:cover;object-position:center;margin:0!important;border:0;border-radius:0;background:transparent}
  .mn-hero .mn-hero-copy{display:flex;flex-direction:column;gap:10px;margin:0;padding:16px!important;background:white!important}
  html body .mn-hero .mn-title,.mn-hero .mn-title{margin:0!important;padding:0!important;font-size:24px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:-.025em!important;text-transform:none!important;color:#111827!important;-webkit-text-fill-color:#111827!important;overflow-wrap:anywhere}
  html body .mn-hero .mn-location,.mn-hero .mn-location{margin:0!important;padding:0!important;font-size:13px!important;line-height:1.4!important;color:#6b7280!important;background:transparent!important;text-transform:none!important;letter-spacing:0!important}
  html body .mn-hero .mn-description,.mn-hero .mn-description{margin:0!important;padding:0!important;font-size:15px!important;line-height:1.45!important;color:#6b7280!important;background:transparent!important}
  .mn-hero .mn-primary{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:48px!important;margin:6px 0 0!important;padding:12px 10px!important;border:0!important;border-radius:12px!important;background:#1b6b46!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:15px!important;font-weight:600;line-height:24px;text-decoration:none!important;text-align:center}
  html body .mn-rail,.mn-rail{position:sticky!important;top:52px!important;z-index:1009!important;display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px;width:100%;max-width:100%;height:44px;margin:0 0 24px!important;padding:0 16px;background:#fff!important;border:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .mn-rail::-webkit-scrollbar{display:none}
  .mn-rail .mn-tab{position:relative;isolation:isolate;display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;min-width:44px;min-height:44px;height:44px;margin:0!important;padding:0 14px!important;border:0!important;border-radius:999px;background:transparent!important;color:#4b5563!important;font-size:14px!important;font-weight:500;line-height:20px;white-space:nowrap;text-decoration:none!important}
  .mn-rail .mn-tab::before{content:"";position:absolute;inset:4px 0;z-index:-1;border-radius:999px;background:#f5f7f9}
  .mn-rail .mn-tab:is([aria-current],[data-active]){color:#fff!important}
  .mn-rail .mn-tab:is([aria-current],[data-active])::before{background:#1b6b46}
  html body .mn-bottom,.mn-bottom{position:fixed!important;inset:auto 0 0!important;z-index:1100!important;display:block!important;width:100%;max-width:100%;height:calc(60px + env(safe-area-inset-bottom,0px))!important;min-height:0!important;margin:0!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))!important;border:0;border-top:1px solid #eaecef;background:#fff!important;box-shadow:0 -3px 20px #11182706}
  .mn-bottom .mn-bottom-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;max-width:600px;height:43px;margin:0 auto;padding:0}
  .mn-bottom .mn-bottom-inner>:is(a,button){display:flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;height:44px!important;width:auto!important;max-width:100%;margin:0!important;padding:0 10px!important;white-space:nowrap!important;border:0!important;border-radius:12px!important;background:#fff!important;color:#1b6b46!important;font-size:14px!important;font-weight:600;line-height:20px;text-decoration:none!important}
  .mn-bottom .mn-bottom-inner>.mn-bottom-price{padding-inline:14px!important;background:#1b6b46!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
  .mn-bottom .mn-bottom-inner>.mn-bottom-call{padding-inline:0!important}
  html body .mn-chat,.mn-chat{position:fixed!important;right:max(16px,env(safe-area-inset-right,0px))!important;bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;z-index:1090!important;display:grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;background:#1b6b46!important;color:#fff!important;border:1px solid white!important;border-radius:50%!important;box-shadow:0 4px 16px #11182722}
  .mn-menu[open]{position:fixed;inset:0 0 0 auto;z-index:1200;width:min(360px,100%);height:100dvh;max-height:100dvh;max-width:100%;margin:0;padding:16px 20px;background:white;color:#111827;border:0;border-radius:16px 0 0 16px;overflow:auto;overscroll-behavior:contain}
  .mn-menu::backdrop{background:#11182755}
  .mn-menu .mn-menu-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px;font-size:20px}
  .mn-menu .mn-close{min-height:44px;padding:8px 12px;border:0;border-radius:12px;background:#f5f7f9;color:#111827;font-size:14px}
  .mn-menu .mn-menu-item{display:flex;align-items:center;min-height:44px;margin:8px 0;padding:8px 0;border:0;border-bottom:1px solid #eaecef;background:white;color:#111827;font-size:15px;text-decoration:none}
  :is(.mn-header,.mn-rail,.mn-bottom,.mn-menu) :focus-visible,.mn-chat:focus-visible,.mn-primary:focus-visible{outline:2px solid #1b6b46;outline-offset:2px}
  html[data-mn-page] body :is(main,.container,.rs-wrap,.st-wrap,.sl-wrap,.wrap){min-width:0;max-width:100%;box-sizing:border-box}
  html[data-mn-page] body :is(main.rs-wrap,.sl-wrap,.st-wrap,.container){padding-inline:16px!important}
  html[data-mn-page] body :is(.rs-duo,.rs-grid,.rooms-grid,.cards-grid,.programs-grid,.grid-container){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  html[data-mn-page] body :is(.rs-card,.room-card,.program-card,.info-card,.hotel-card){min-width:0;max-width:100%;padding:16px!important;border:1px solid #eaecef!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 16px #11182705}
  html[data-mn-page] body :is(.room-card,.program-card,.hotel-card)>img{width:100%;aspect-ratio:16/10;object-fit:cover;height:auto}
  html[data-mn-page] body img{max-width:100%}
  html[data-mn-page] body :is(.rs-section,.info-section,.content-section){margin-block:24px}
  html[data-mn-page] body main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0;min-height:44px!important;font-size:16px!important}
  html[data-mn-page] body main form :is(button[type=submit],input[type=submit]){width:100%;min-height:44px}
  .mn-table{width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .mn-table table{max-width:none;min-width:100%;border-collapse:separate;border-spacing:0}
  @media(max-width:639px){.mn-table :is(th,td):first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 #eaecef}.mn-table th:first-child{z-index:2}}
}
@media(max-width:768px){
 html[data-mn-page] body main h1{font-size:24px!important;line-height:1.2!important;color:#111827!important}
 html[data-mn-page] body main h2{font-size:20px!important;line-height:1.25!important;color:#111827!important}
 html[data-mn-page] body main h3{font-size:17px!important;line-height:1.3!important;color:#111827!important}
}

@media(max-width:768px){html[data-mn-page] body main.rs-wrap,html[data-mn-page] body .sl-wrap.op-first{width:100%!important;margin-inline:0!important}}

@media(max-width:768px){
 html[data-mn-page] body .rs-prices-layout{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 html[data-mn-page] body .rs-prices-layout>*{min-width:0;max-width:100%}
 html[data-mn-page] body .rs-price-actions{display:flex;flex-wrap:wrap;gap:8px}
 html[data-mn-page] body :is(.pp-scroll,.sana-scroll){max-width:100%;min-width:0;overflow-x:auto}
}
/* Shared enquiry dialog, all screen sizes. */
.nt-dialog{box-sizing:border-box;width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:20px;border:1px solid #eaecef;border-radius:16px;background:#fff;color:#111827;overflow:auto;font:15px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.nt-dialog::backdrop{background:#11182766}
.nt-dialog .nt-close{display:block;margin:0 0 12px auto;min-height:44px;padding:8px 12px;border:0;border-radius:12px;background:#f5f7f9;color:#111827}
.nt-dialog h2{font-size:22px;line-height:1.25;margin:0 0 20px;color:#111827}
.nt-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.nt-form label{display:grid;gap:6px;min-width:0;margin:0}
.nt-form label:nth-child(n+3),.nt-form .nt-submit,.nt-form .nt-status,.nt-form .nt-call{grid-column:1/-1}
.nt-form :is(input:not([type=checkbox]),select){box-sizing:border-box;min-width:0;width:100%;height:44px;padding:8px 10px;border:1px solid #dce1e6;border-radius:10px;background:#fff;color:#111827;font-size:16px}
.nt-form .nt-consent{display:flex;align-items:flex-start;gap:8px;font-size:13px}
.nt-consent input{flex:none;width:22px;height:22px;margin:4px}
.nt-form .nt-submit{width:100%;height:48px;border:0;border-radius:12px;background:#1b6b46;color:#fff;font-size:16px;font-weight:600}
.nt-form .nt-submit:disabled{opacity:.65}
.nt-form .nt-call{display:flex;align-items:center;justify-content:center;min-height:44px;color:#1b6b46}
.nt-status:empty{display:none}
@media(max-width:768px){
 /* Hide legacy chrome only while the mobile rail is mounted. */
 html[data-mn-managed]:has(.mn-rail) body :is(#st-head,#sl-head,#catalog-shell-header,#sn-network-head,header.rs-root,.sn-server-header,header.mast,header:has(.header-inner),header:has(.wrap.header),header.s-header,.sn-section-menu,.sn-card-nav,.st-quick,.mobile-actions,.home-bar,.rs-sticky,.mobile-bar,.bottom-bar,.mobile-dock,.sticky-bottom-bar,.mx-mobile-bar){display:none!important}
}
@media(min-width:769px){
 /* Desktop catalog cards already have #st-head .st-band — do not revive duplicate strips. */
 html body.hotel-page:has(#st-head) .sn-section-menu {display:none!important}
 html body.hotel-page:has(#st-head) .property-header {display:none!important}
}

/* Keep UI icons visible despite legacy page SVG resets. */
@media(max-width:768px){html[data-mn-page] .mn-icon>svg,html[data-mn-page] .mn-chat>svg{display:block!important;width:22px!important;height:22px!important;visibility:visible!important;opacity:1!important;flex:none}}


/* ===== Tourist upgrades (50+) ===== */
@media (max-width:768px) {
  :root,:host {
    --mn-bg:#f3f5f2;
    --mn-surface:#fff;
    --mn-ink:#1a2e24;
    --mn-muted:#5a6b62;
    --mn-green:#1b5a49;
    --mn-green-deep:#143f34;
    --mn-line:#d7e0da;
    --mn-header:56px;
    --mn-bottom:64px;
    --mn-radius:14px;
  }
  html[data-mn-page] body {
    font-size:17px !important;
    line-height:1.45 !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom,0px)) !important;
  }
  html body .mn-header, .mn-header {
    height:56px !important; min-height:56px !important; max-height:56px !important;
    padding:6px 14px;
  }
  .mn-header .mn-brand {
    font-size:17px !important; line-height:44px; font-weight:700;
  }
  html body .mn-hero, .mn-hero {
    margin:10px 12px 16px !important;
    border-radius:18px;
    border-color:var(--mn-line);
  }
  html body .mn-hero .mn-hero-photo, .mn-hero .mn-hero-photo {
    height: clamp(200px, 58vw, 240px) !important;
  }
  .mn-hero .mn-hero-copy { padding:18px 16px 16px !important; gap:8px; }
  html body .mn-hero .mn-title, .mn-hero .mn-title {
    font-size:26px !important; line-height:1.2 !important; letter-spacing:-.02em !important;
  }
  html body .mn-hero .mn-location, .mn-hero .mn-location {
    font-size:15px !important; color:var(--mn-muted) !important;
  }
  html body .mn-hero .mn-description, .mn-hero .mn-description {
    font-size:16px !important; line-height:1.45 !important;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  }
  .mn-hero .mn-primary {
    min-height:52px !important; font-size:17px !important;
    border-radius:14px !important; background:var(--mn-green) !important;
    margin-top:10px !important;
  }
  html body .mn-rail, .mn-rail {
    top:56px !important; height:48px; padding:0 10px; gap:6px; margin-bottom:14px !important;
  }
  .mn-rail .mn-tab {
    min-height:40px; height:40px; padding:0 12px !important; font-size:15px !important;
    border-radius:999px;
  }
  .mn-rail .mn-tab-more {
    font-weight:700; color:var(--mn-green) !important;
  }
  .mn-rail .mn-tab-more::before { background:#e7f0ea !important; }
  html body .mn-bottom, .mn-bottom {
    height: calc(64px + env(safe-area-inset-bottom,0px)) !important;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px)) !important;
    z-index:1100 !important;
  }
  .mn-bottom .mn-bottom-inner { height:48px; grid-template-columns:1fr 1fr 1.35fr; gap:6px; max-width:640px; }
  .mn-bottom .mn-bottom-inner > :is(a,button) {
    width:100% !important; min-width:0; height:48px !important; font-size:15px !important;
    padding:0 8px !important;
  }
  .mn-bottom .mn-bottom-inner > .mn-bottom-price {
    background:var(--mn-green) !important;
  }
  /* Chat must not cover bottom bar or form */
  html body .mn-chat, .mn-chat {
    bottom: calc(84px + env(safe-area-inset-bottom,0px)) !important;
    z-index:1080 !important;
  }
  html[data-mn-page] body :is(.assistant-launcher,.contact-assistant,.mx-chat, [class*="assistant"][class*="fab"]) {
    bottom: calc(84px + env(safe-area-inset-bottom,0px)) !important;
    right: 16px !important;
  }

  /* Price cards — readable without zoom */
  .mn-price-list {
    display:grid; gap:12px; margin:0 12px 24px; padding:0;
  }
  .mn-price-card {
    background:#fff; border:1px solid var(--mn-line); border-radius:16px;
    padding:14px 14px 12px; box-shadow:0 2px 10px #1a2e2408;
  }
  .mn-price-name {
    margin:0 0 10px; font-size:18px; line-height:1.3; font-weight:700; color:var(--mn-ink);
  }
  .mn-price-meta { display:grid; gap:6px; margin-bottom:12px; }
  .mn-price-row {
    display:flex; justify-content:space-between; align-items:baseline; gap:12px;
    font-size:15px; line-height:1.35;
  }
  .mn-price-label { color:var(--mn-muted); flex:1 1 auto; min-width:0; }
  .mn-price-value {
    flex:0 1 auto; text-align:right; font-size:17px; font-weight:700;
    font-variant-numeric:tabular-nums; color:var(--mn-ink);
  }
  .mn-price-ask {
    width:100%; min-height:44px; border:1px solid var(--mn-green); border-radius:12px;
    background:#eaf3ee; color:var(--mn-green); font-size:15px; font-weight:650; cursor:pointer;
  }
  .mn-table[data-mn-cards] { display:none !important; }
  .mn-table {
    margin:0 12px 20px; border:1px solid var(--mn-line); border-radius:14px;
    background:#fff; max-height:min(70vh, 520px);
  }
  .mn-table table { font-size:14px; }
  .mn-table :is(th,td) { padding:10px 12px; }

  /* Booking dialog — keyboard safe */
  .nt-dialog, dialog.nt-dialog, dialog:has(.nt-form) {
    width: min(100% - 24px, 440px);
    max-height: calc(100dvh - 24px - var(--mn-keyboard, 0px));
    margin: auto;
    padding: 18px 16px calc(16px + var(--mn-keyboard, 0px));
    border:0; border-radius:18px; overflow:auto;
    overscroll-behavior:contain;
  }
  dialog.nt-keyboard {
    max-height: calc(100dvh - var(--mn-keyboard, 0px) - 8px);
  }
  .nt-form { grid-template-columns: 1fr !important; gap:12px; }
  .nt-form label { font-size:15px; color:var(--mn-muted); }
  .nt-form :is(input:not([type=checkbox]),select,textarea) {
    height:48px; font-size:17px !important; border-radius:12px; border-color:#c9d5ce;
  }
  .nt-form textarea { height:auto; min-height:88px; resize:vertical; }
  .nt-extra {
    grid-column:1/-1; border:1px solid var(--mn-line); border-radius:12px;
    padding:4px 12px 10px; background:#f7faf8;
  }
  .nt-extra > summary {
    list-style:none; cursor:pointer; min-height:44px; display:flex; align-items:center;
    font-size:16px; font-weight:650; color:var(--mn-ink);
  }
  .nt-extra > summary::-webkit-details-marker { display:none; }
  .nt-extra[open] > summary { margin-bottom:8px; }
  .nt-extra label { display:grid; gap:6px; margin:8px 0; }
  .nt-form .nt-consent {
    align-items:flex-start; gap:10px; font-size:14px; line-height:1.4;
    padding:4px 0 2px;
  }
  .nt-form .nt-consent input { width:22px; height:22px; margin-top:2px; flex:0 0 auto; }
  .nt-form .nt-submit {
    height:52px; font-size:17px; border-radius:14px; background:var(--mn-green);
    position:sticky; bottom:0;
  }
  .nt-form .nt-call { font-size:16px; min-height:48px; }

  /* Kill duplicate docks when tourist UI is active */
  html[data-mn-ready] body :is(.mx-mobile-bar,.mobile-bar,.bottom-bar,.mobile-dock,.sticky-bottom-bar,.rs-sticky,.home-bar,.mobile-actions) {
    display:none !important;
  }
}

@media (min-width:769px) {
  .mn-header,.mn-hero,.mn-rail,.mn-bottom,.mn-chat,.mn-menu,.mn-price-list { display:none !important; }
}


/* Cookie / PDN / chat must not cover bottom bar or booking fields */
@media (max-width:768px) {
  html[data-mn-ready] body :is(.pdn-consent,.pdn-banner,[class*="pdn-consent"],[id*="cookie"],[class*="cookie-banner"],[class*="cookies"]) {
    z-index: 1205 !important;
    bottom: calc(72px + env(safe-area-inset-bottom,0px)) !important;
    max-height: min(42vh, 320px);
    overflow: auto;
  }
  html[data-mn-ready] body.nt-open :is(.mn-chat,.assistant-launcher,.contact-assistant,[class*="assistant"][class*="fab"]),
  html[data-mn-ready] body:has(dialog[open]) :is(.mn-chat,.assistant-launcher,.contact-assistant,[class*="assistant"][class*="fab"]) {
    display: none !important;
  }
  html[data-mn-ready] body :is(dialog[open], .nt-dialog[open]) {
    z-index: 1300 !important;
  }
  html[data-mn-ready] body .mn-bottom {
    z-index: 1100 !important;
  }
  /* Price table header wrap fix when cards unavailable */
  html[data-mn-ready] body .mn-table th {
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  html[data-mn-ready] body .mn-table td {
    white-space: normal;
    line-height: 1.35;
  }
}
