/* Phone catalogue and trip planner */
@media(max-width:700px){
.phone-home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:14px 0 22px}
.phone-home-actions a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;color:#315462;font:600 14px/1.3 Arial,sans-serif}
.phone-home-actions a:first-child{padding:0 17px;border-radius:10px;background:#294b5a;color:white}
.phone-home-actions a:last-child{text-decoration:underline;text-underline-offset:4px}
.home-takeaway .home-takeaway-link{display:none}
body.country-page.trip-pilot #choose #ys-trip-open,body.country-page.trip-pilot #choose #clear,body.country-page.trip-pilot .map-tools #map-reset,body.country-page.trip-pilot .country-header a[href="#geography"]{display:none!important}
body.country-page.trip-pilot #choose .filters{grid-template-columns:minmax(0,1fr) auto!important;align-items:center;gap:6px 10px}
body.country-page.trip-pilot #choose > .phone-region-count{position:absolute;left:14px;top:6px;min-height:36px;display:flex;align-items:center;font:600 14px/1.3 Arial,sans-serif;color:#375762}
body.country-page.trip-pilot #choose .region-filter-toggle{grid-area:1/2;justify-self:end;font-size:13px;min-height:36px;padding:6px 12px;background:white}
body.country-page.trip-pilot #choose.filters-open .filters{grid-template-columns:1fr 1fr!important}
body.trip-pilot #map-preview .phone-directions{display:inline-flex;align-items:center;min-height:36px;color:#31596a;text-underline-offset:3px;font:600 13px Arial,sans-serif}
body.country-page.trip-pilot.country-map-mode #geography{top:calc(var(--country-header-height,75px) + var(--ys-filters-height,0px))!important;bottom:var(--phone-nav-height,64px)!important}
body.trip-pilot #country-mobile-nav{grid-template-columns:1fr 1fr 1.28fr;padding-inline:8px;gap:5px}
body.trip-pilot #country-mobile-nav>button{min-width:0;white-space:normal;line-height:1.2;font-size:13px}
body.trip-pilot #country-mobile-nav [data-pane=selected]{font-weight:650;color:#244b59;border-color:#8ca8a9;background:#ecf4f1}
body.trip-pilot #country-mobile-nav #collection-toast:not([hidden]){display:flex;position:static;transform:none;order:-1;grid-column:1/-1;justify-content:space-between;background:#f0f6f3;color:#294b5a;width:100%;max-width:none;box-shadow:none;border-radius:8px;padding:2px 10px;font-size:13px;gap:5px}
body.trip-pilot #country-mobile-nav #collection-toast button{background:transparent;color:#294b5a;border:0;text-decoration:underline;min-height:38px;padding:5px}
body.country-page.trip-pilot{padding-bottom:calc(var(--phone-nav-height,66px) + 10px)}
body #ys-collection[open]{display:block;overflow:auto;overscroll-behavior:contain;background:white}
body #ys-collection .collection-tools{display:none}
body #ys-collection .phone-trip-overview{margin:0;padding:10px 14px 8px}
body #ys-collection .phone-trip-overview .collection-drive-summary{margin:0;background:transparent;padding:0}
body #ys-collection .phone-trip-overview .collection-drive-summary strong{font-size:19px;line-height:1.3}
body #ys-collection .phone-trip-overview .collection-drive-summary small{font-size:12px;margin:2px 0}
body #ys-collection .phone-cities summary{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:12px;color:#365461;font-size:14px}
body #ys-collection .phone-edit{text-decoration:underline;text-underline-offset:3px;font-weight:600}
body #ys-collection .phone-cities[open] .collection-towns{margin-bottom:10px}
body #ys-collection .collection-workspace{display:block;height:auto;min-height:0}
body #ys-collection .collection-map-panel{height:auto;display:block}
body #ys-collection #collection-map{height:clamp(135px,22dvh,200px);min-height:0}
body #ys-collection .collection-route-note{font-size:11px;line-height:1.4;padding:4px 12px}
body #ys-collection .collection-city-credit{display:block;font-size:10px;padding:0 12px}
body #ys-collection .collection-list-panel{padding:10px 12px 6px}
body #ys-collection .collection-list-head{display:flex;justify-content:space-between;align-items:center}
body #ys-collection .collection-list-head h3{font-size:20px}
body #ys-collection .collection-order-tools{margin:3px 0}
body #ys-collection .collection-links{display:flex;clear:both;align-items:center;flex-wrap:wrap;gap:6px 14px}
body #ys-collection .collection-links .phone-parking{order:-1;background:#edf4ef;border-radius:8px;padding:4px 10px;min-height:42px;text-decoration:none;font-weight:600;color:#274f46}
body #ys-collection .collection-reorder{position:static;float:right;margin:4px 0}
body #ys-collection .collection-place-main{grid-template-columns:44px minmax(0,1fr) 38px}
body #ys-collection .collection-place-main img{width:44px;height:46px}
body #ys-collection .phone-empty{padding:32px 20px 24px;text-align:left;background:#f5f8f6;margin:14px;border-radius:14px}
body #ys-collection .phone-empty h3{font-size:25px}
body #ys-collection .phone-empty p{color:#536975;font-size:15px;line-height:1.5}
body #ys-collection .phone-empty button{width:100%;margin-top:5px;font-weight:600}
body #ys-collection:not(.phone-no-places) .phone-empty,body #ys-collection.phone-no-places :is(.phone-trip-overview,.collection-workspace,.phone-exports){display:none}
body #ys-collection .phone-exports{padding:18px 14px 24px;border-top:1px solid #dbe5e3}
body #ys-collection .phone-exports .collection-downloads{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}
body #ys-collection .phone-exports .collection-downloads p{font-size:13px}
body #ys-collection .phone-exports .collection-clear{margin-top:14px}
body #ys-collection .collection-undo{position:static;justify-content:space-between;padding:4px 14px}
body #ys-collection .collection-status:not(:empty){background:#eff5f2;border-radius:8px;padding:9px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
}
@media(min-width:701px){.phone-home-actions{display:none!important}}

@media(max-width:700px){
body #ys-collection .collection-stops article{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"description description" "links order";align-items:center;gap:8px}
body #ys-collection .collection-stops article:after{content:none}
body #ys-collection .collection-place-main{grid-area:description}
body #ys-collection .collection-reorder{grid-area:order;float:none;margin:0}
body #ys-collection .collection-links{grid-area:links;align-items:flex-start;margin:0;gap:0 6px}
body #ys-collection .collection-links a{min-height:40px;font-size:12px}
body #ys-collection .phone-save-shortcut{border:0;background:none;padding:0;min-height:36px;color:#315f72;text-decoration:underline}
body #ys-collection .phone-exports h3{scroll-margin-top:78px}

}

@media(max-width:700px){
  .phone-resume:not([hidden]){margin:12px 16px 0;padding:0;color:#294b5a}
  .phone-resume-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:center;padding:11px 16px;color:#fff;background:#294b5a;border-radius:12px;text-decoration:none;line-height:1.35}
  .phone-resume-main strong{font-size:16px}.phone-resume-main span{grid-row:2;color:#e2eeeb;font-size:14px}
  .phone-resume-main b{grid-column:2;grid-row:1/3;font-size:22px}.phone-resume details a,.phone-resume summary{padding:10px 12px;min-height:44px;box-sizing:border-box;font-size:14px;color:#315764}
  .phone-resume details a{display:block}.phone-resume summary{cursor:pointer}
  body #ys-collection .phone-take-actions{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}
  body #ys-collection .phone-quick-share{min-height:44px;padding:7px 14px;border:1px solid #aac0c4;border-radius:10px;background:white;color:#264d5b;font-weight:650}
  body #ys-collection .phone-share-message{font-size:14px;line-height:1.4;margin:0;color:#294b5a}
  body #ys-collection .phone-share-message:empty{display:none}
  body #ys-collection .phone-share-message textarea{display:block;width:100%;padding:9px;box-sizing:border-box;min-height:92px;font:inherit}
}

@media(max-width:700px){
  .home-page .phone-home-actions{display:none}
  .home-page .home-takeaway .home-takeaway-link{display:inline-flex}
  .phone-start-trip{display:flex;align-items:center;justify-content:space-between;min-height:48px;
    border-radius:12px;background:#294b5a;color:white;padding:8px 16px;font-weight:600;text-decoration:none}
  .phone-start-trip::after{content:'→'}
  body.country-page.trip-pilot #choose label.phone-hide-only{display:none!important}
  body.country-page.trip-pilot #cards:empty{min-height:0!important;height:0;margin:0;padding:0}
  body.country-page.trip-pilot:not(.country-map-mode) #empty:not([hidden]){
    display:block!important;margin:16px;padding:18px;background:#f3f7f6;border-radius:12px}
  body.country-page.trip-pilot #empty h3{margin:0 0 10px;font-size:19px}
  body.country-page.trip-pilot #empty button{min-height:44px;color:#294b5a}
  body.country-page.trip-pilot .mapframe .map-tools{display:flex!important;flex-wrap:wrap;gap:6px;padding:5px 8px;align-items:center}
  body.country-page.trip-pilot .mapframe .map-tools .phone-map-settings{margin-right:auto;min-height:42px;padding:5px 12px;color:#294b5a;background:white;border:1px solid #c3d4d6;border-radius:9px}
  .phone-map-settings::after{content:' ▾'}.phone-map-settings[aria-expanded=true]::after{content:' ▴'}
  body.country-page.trip-pilot .mapframe .map-tools:not(.phone-settings-open)>:not(.phone-map-settings):not(#map-zoom-in):not(#map-zoom-out){display:none!important}
  body.country-page.trip-pilot .mapframe .map-tools.phone-settings-open label{order:2;width:100%}
  body.country-page.trip-pilot .map-tools.phone-settings-open :is(#map-route,#map-hotels,#map-locate){order:3}
  body.country-page.trip-pilot #map-preview:not([hidden]){padding:6px 8px!important;align-items:center;gap:5px;min-height:0;}
  body.country-page.trip-pilot #map-preview :is(img,.mini-copy>strong,.mini-copy>span,.phone-directions){display:none!important}
  body.country-page.trip-pilot #map-preview .mini-copy{flex:1;min-width:0;margin:0}
  body.country-page.trip-pilot #map-preview .mini-copy>div{display:flex;align-items:center;gap:6px;margin:0}
  body.country-page.trip-pilot #map-preview .phone-preview-title{flex:1;min-width:0;white-space:normal;text-align:left;font-weight:650;line-height:1.2;min-height:44px;border:0;background:transparent;padding:4px}
  .phone-preview-title small{display:block;font-size:11px;font-weight:500;color:#416574;margin-top:3px}
  body.country-page.trip-pilot #map-preview .preview-close{position:static;order:2;flex:0 0 36px;min-width:36px;min-height:44px;padding:0}
  body.country-page.trip-pilot #map-preview [data-design-pick]{padding-inline:9px}
}

@media(max-width:700px){
  body.country-page.trip-pilot .country-header{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand language" "sections social";gap:0 6px;padding:3px 8px;
  }
  .country-header .country-brand{grid-area:brand;min-width:0;gap:8px}
  .country-header .country-brand .brand-logo{flex:none}
  .country-header .region-picker{min-width:0;flex:0 1 auto}
  .country-header .region-picker summary{min-height:44px;gap:4px}
  .country-header .region-picker summary::after{flex:none}
  .country-header .country-brand h1{white-space:normal;line-height:1.15;overflow-wrap:anywhere}
  .country-header .language-switch{grid-area:language;justify-self:end}
  .country-header .language-switch a{display:grid;place-items:center;min-height:42px}
  body.country-page.trip-pilot .country-header .nav{grid-area:sections;min-width:0;gap:clamp(6px,2.4vw,14px);width:auto;overflow:visible}
  body.country-page.trip-pilot .country-header .nav a{display:inline-flex;align-items:center;min-height:44px;font-size:clamp(12px,3.4vw,14px)}
  .country-header .country-instagram{grid-area:social;justify-self:end;width:44px;height:44px;margin:0}
  .trip-catalog-legend:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font:12px/1.35 system-ui,sans-serif}
  .trip-catalog-legend>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
  .trip-catalog-legend i{display:inline-grid;place-items:center;min-width:17px;height:17px;border-radius:50%;color:white;background:#47718a;font:700 10px/1 system-ui,sans-serif}
  .trip-catalog-legend i.phone-group-key{padding:0 4px;border-radius:4px;background:#294b5a}
  .trip-catalog-legend i.phone-saved-key{background:#087d66}
  .trip-catalog-legend i.phone-highlight-key{border:3px solid #ffce32;background:#47718a}
  body #ys-collection .phone-take-actions .collection-clear{margin-left:auto;min-height:44px;padding:6px 8px;color:#823d2c;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px}
  .phone-new-trip{margin-top:6px}
  .phone-resume .phone-new-trip summary{min-height:46px;display:flex;align-items:center;justify-content:space-between;border:1px solid #bccdcd;border-radius:10px;font-weight:650}
  .phone-new-trip summary::-webkit-details-marker{display:none}
  .phone-new-trip summary::after{content:'⌄'}
  .phone-new-trip[open] summary::after{transform:rotate(180deg)}
  .phone-new-trip nav{display:grid;grid-template-columns:1fr 1fr;padding:4px 0}
}

@media(max-width:700px){
  body.country-page.trip-pilot .country-header .nav{grid-column:1/-1;grid-row:2;margin-right:48px}
  .country-header .country-instagram{position:relative;z-index:1}
}
@media(max-width:420px){
  body.country-page .country-header .brand-logo>img{display:none}
}
