/* OSSOLA LAB — variante sperimentale Alloggi + Ristoranti; non tocca V6.5 ufficiale. */
.v66-home-switch{display:flex;align-items:center;gap:8px;max-width:400px;margin:21px 0 12px;padding:5px;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 8px 22px #05344130}
.v66-home-tab{display:flex;gap:7px;flex:1;align-items:center;justify-content:center;padding:12px 14px;border:0;border-radius:13px;background:transparent;color:#385965;font:inherit;font-size:14px;font-weight:900;cursor:pointer;transition:background .15s,color .15s}
.v66-home-tab span{font-size:21px;line-height:1}
.v66-home-tab.active{background:#adf500;color:#17363a;box-shadow:0 3px 8px #1f485018}
.v66-home-tab:focus-visible,.v66-map-tab:focus-visible,.v66-map-tools button:focus-visible,.v66-restaurant-item:focus-visible{outline:3px solid #82cf08;outline-offset:2px}
#exploreView .v66-restaurant-quick{position:absolute;left:6%;right:6%;bottom:-26px;display:flex;align-items:stretch;gap:8px;background:white;border-radius:18px;padding:9px;box-shadow:0 10px 24px #072e3b28;z-index:3}
.v66-restaurant-quick.hidden{display:none!important}
.v66-quick-destination{display:flex;flex:1;flex-direction:column;gap:4px;background:#f5f8fa;border-radius:12px;padding:9px 13px;min-width:130px;color:#627d83;font-size:11px;font-weight:700}
.v66-quick-destination select{border:0;background:transparent;color:#142431;font-size:15px;font-weight:900;min-height:23px;max-width:100%;outline:0}
.v66-restaurant-quick button{min-height:56px;flex:0 0 auto}
.v66-rest-search{font-weight:900!important}
.v66-quick-near{border:1px solid #b8dbdc;background:#effafa;color:#067e8c;font-weight:850;border-radius:12px;padding:0 13px;cursor:pointer}
.v66-map-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:430px;margin:17px 0 16px;padding:5px;border:1px solid #d8e8e9;border-radius:17px;background:#f1f8f8}
.v66-map-tab{border:0;background:transparent;border-radius:13px;padding:13px 8px;font:inherit;font-size:15px;font-weight:900;color:#456973;cursor:pointer}
.v66-map-tab.active{background:#00a8b5;color:white;box-shadow:0 4px 12px #116c801f}
#v66AlloggiPane.hidden,#v66RestaurantsPane.hidden{display:none!important}
.v66-rest-head{margin-bottom:13px}
.v66-rest-head h1{font-size:clamp(24px,4vw,34px);line-height:1.12;margin:4px 0 7px;color:#163f46;font-weight:900}
.v66-rest-head p{margin:0;font-size:12px;color:#627b82;line-height:1.55}
.v66-map-tools{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:10px;border:1px solid #d8e8e9;border-radius:16px;background:#fff;box-shadow:0 4px 16px #0e39450c;margin-bottom:11px}
.v66-map-tools label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:120px;font-size:11px;font-weight:850;color:#617b81}
.v66-map-tools select{display:block;width:100%;min-height:42px;border:1px solid #d5e6e7;border-radius:11px;background:#f7fafa;padding:8px 10px;color:#16353e;font-size:13px;font-weight:800}
.v66-map-tools button{min-height:42px;padding:9px 12px;border:0;border-radius:11px;font-weight:900;font-size:13px;cursor:pointer;white-space:nowrap}
.v66-tool-search{background:#a9f000;color:#17353c}
.v66-map-tools button:disabled{opacity:.6;cursor:wait}
.v66-tool-near{background:#dff6f5;color:#067682}
.v66-map-status{padding:9px 11px;margin:0 0 10px;background:#f0f9f7;border-left:3px solid #10a6ad;border-radius:8px;font-size:12px;color:#295a60;line-height:1.45}
.v66-rest-map-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr);gap:12px;align-items:stretch}
.v66-rest-map-wrap{background:#e8f2ef;border:1px solid #dbe8e5;border-radius:18px;overflow:hidden;min-height:530px}
.v66-rest-map{height:530px;width:100%;background:#eaf3f1}
.v66-rest-side{background:#fff;border:1px solid #dbe9e9;border-radius:18px;overflow:hidden;padding:13px;min-height:220px}
.v66-rest-side h3{margin:0;font-size:18px;color:#164049}
.v66-side-note{font-size:11px;color:#71858b;line-height:1.4;margin:5px 0 12px}
.v66-restaurant-list{max-height:430px;overflow:auto;display:flex;flex-direction:column;gap:7px;padding-right:2px}
.v66-restaurant-item{width:100%;display:flex;text-align:left;align-items:center;gap:10px;background:#f7fbfa;border:1px solid #dfeced;border-radius:12px;padding:10px;cursor:pointer;font-family:inherit;color:#15343d}
.v66-restaurant-item:hover{background:#eaf9f5}
.v66-rest-icon{display:grid;place-items:center;flex:0 0 39px;height:39px;background:#fff1d4;border-radius:12px;font-size:19px}
.v66-rest-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.v66-rest-text strong{font-size:13px;line-height:1.2;overflow-wrap:anywhere}
.v66-rest-text small{color:#667d83;font-size:11px;line-height:1.35}
.v66-rest-text em{color:#16888c;font-size:11px;font-weight:750;font-style:normal}
.v66-rest-chevron{font-size:24px;color:#89aaa9}
.v66-marker{background:none!important;border:0!important}
.v66-marker span{display:grid;place-items:center;width:34px;height:34px;background:#fff;border:3px solid #f8ad45;border-radius:50% 50% 50% 9%;transform:rotate(-45deg);box-shadow:0 3px 10px #1a394644;font-size:19px;line-height:1}
.v66-marker span i{transform:rotate(45deg);font-style:normal;display:block}
.v66-popup{display:flex;flex-direction:column;gap:6px;font-family:inherit;min-width:155px}
.v66-popup strong{font-size:14px;color:#123d42}
.v66-popup span,.v66-popup small{font-size:11px;color:#58777d}
.v66-popup a{display:block;padding:9px;border-radius:8px;background:#009eaf;color:white!important;text-decoration:none;font-size:12px;font-weight:800;text-align:center}
.v66-empty{font-size:12px;line-height:1.5;color:#677d85}
.v66-attribution{font-size:10px;color:#70878c;margin:9px 0 18px;line-height:1.5}
@media(max-width:760px){
  .v66-home-switch{max-width:100%;margin-top:14px}
  #exploreView .v66-restaurant-quick{position:relative;left:auto;right:auto;bottom:auto;width:calc(100% - 26px);margin:-53px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:8px}
  .v66-quick-destination{grid-column:1 / -1}
  .v66-restaurant-quick button{min-height:46px;padding:8px 7px;font-size:12px}
  .v66-map-tabs{max-width:100%;margin-top:12px}
  .v66-rest-map-layout{display:block}
  .v66-rest-map-wrap{min-height:360px;border-radius:15px}
  .v66-rest-map{height:360px}
  .v66-rest-side{margin-top:11px;padding:12px;border-radius:15px}
  .v66-restaurant-list{max-height:330px}
  .v66-map-tools label{min-width:calc(50% - 6px)}
  .v66-map-tools button{flex:1;min-width:calc(50% - 6px)}
  .v66-rest-head h1{font-size:27px}
}
@media(max-width:360px){.v66-home-tab{padding:11px 7px;font-size:13px}.v66-map-tab{font-size:13px}}

/* R2: i pulsanti Alloggi/Ristoranti restano davanti al box di ricerca. */
@media (min-width:761px){
  #exploreView .v66-home-switch{position:absolute;z-index:5;left:6%;bottom:118px;width:410px;max-width:calc(100% - 12%);margin:0}
}
@media (max-width:760px){
  #exploreView .v66-home-switch{position:relative;z-index:6;left:auto;right:auto;bottom:auto;width:calc(100% - 26px);max-width:none;margin:-26px auto 0;padding:6px;box-shadow:0 8px 24px #123f4b35}
  #exploreView .v66-home-tab{min-height:49px}
  #exploreView .hero .search-panel{margin:12px auto 0}
  #exploreView .hero .v66-restaurant-quick{margin:12px auto 0}
}
/* Nel tab Ristoranti non si mostrano le schede degli alloggi, evitando confusione. */
#exploreView.v66-rest-home-active .v43-actions,
#exploreView.v66-rest-home-active .category-section,
#exploreView.v66-rest-home-active .list-heading,
#exploreView.v66-rest-home-active .feature-layout,
#exploreView.v66-rest-home-active .more-heading,
#exploreView.v66-rest-home-active #moreGrid,
#exploreView.v66-rest-home-active #emptyExplore{display:none!important}
#exploreView .v66-restaurant-guide{margin:22px 0 32px;padding:18px;border:1px solid #d8e9e9;background:linear-gradient(115deg,#effafa,#f6ffed);border-radius:18px;box-shadow:0 5px 16px #1b52560d}
#exploreView .v66-restaurant-guide h2{font-size:21px;line-height:1.15;color:#164450;margin:0 0 8px}
#exploreView .v66-restaurant-guide p{font-size:13px;color:#55727c;line-height:1.5;margin:0 0 14px}
#exploreView .v66-restaurant-guide button{border:0;border-radius:13px;background:#009fac;color:white;font-size:14px;font-weight:850;min-height:45px;padding:10px 18px;width:100%}
#exploreView .v66-restaurant-guide button:focus-visible{outline:3px solid #96e30c;outline-offset:3px}

/* R3: sotto-menu mappa mobile, pulsanti indicazioni e IA compatta. */
@media(max-width:760px){
  body:has(#exploreView:not(.hidden)) #v38Launcher,
  body:has(#mapView:not(.hidden)) #v38Launcher{
    width:57px!important;min-width:57px!important;max-width:57px!important;
    height:46px!important;padding:0 5px!important;gap:3px!important;
    right:9px!important;bottom:calc(79px + env(safe-area-inset-bottom))!important;
    border-radius:16px!important;font-size:11px!important;z-index:80!important;
    box-shadow:0 5px 14px #092c4050!important
  }
  body:has(#exploreView:not(.hidden)) #v38Launcher .v41-ia-full,
  body:has(#mapView:not(.hidden)) #v38Launcher .v41-ia-full{display:none!important}
  body:has(#exploreView:not(.hidden)) #v38Launcher .v41-ia-short,
  body:has(#mapView:not(.hidden)) #v38Launcher .v41-ia-short{display:inline!important;font-size:12px!important}
}
.v66-restaurant-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:7px;min-width:0}
.v66-restaurant-row .v66-restaurant-item{min-width:0;width:100%;margin:0}
.v66-directions{display:flex;align-items:center;justify-content:center;gap:5px;min-width:82px;padding:8px;border:1px solid #a2d7d7;border-radius:12px;background:#eaf9f7;color:#087d87!important;text-decoration:none;font-size:11px;font-weight:900;text-align:center}
.v66-directions:hover{background:#dcf5f1}
.v66-directions:focus-visible{outline:3px solid #9bdc21;outline-offset:2px}
.v66-restaurant-list{scrollbar-width:thin}
.v66-map-tips{font-size:12px;color:#55727c;background:#edf9f8;border:1px solid #dbedec;padding:9px 11px;border-radius:11px;margin:8px 0 12px;line-height:1.5}
@media(max-width:380px){
 .v66-restaurant-row{gap:5px}
 .v66-directions{min-width:72px;font-size:10px;padding:6px}
 .v66-restaurant-item{padding:8px;gap:7px}
 .v66-rest-icon{flex-basis:32px;height:32px;font-size:16px}
}

/* R4 — Filtri e schede OSM. */
.v66-rest-filters{border:1px solid #d8e8e9;border-radius:15px;background:#fff;padding:12px;margin:10px 0 12px;box-shadow:0 4px 16px #0e39450c}
.v66-rest-filter-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,.8fr);gap:9px}
.v66-rest-filter-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#466871;font-size:11px;font-weight:850}
.v66-rest-filter-fields input,.v66-rest-filter-fields select{width:100%;min-width:0;min-height:41px;border:1px solid #d1e5e7;border-radius:10px;background:#f7fafa;color:#183d45;font:inherit;font-size:12px;font-weight:700;padding:8px 9px}
.v66-rest-filter-fields input:focus-visible,.v66-rest-filter-fields select:focus-visible{outline:3px solid #b5f446;outline-offset:2px}
.v66-rest-filter-status{margin:8px 0 0;color:#5e7d83;font-size:11px;line-height:1.4}
.v66-restaurant-row{grid-template-columns:minmax(0,1fr) auto;border:1px solid #dfebeb;border-radius:13px;padding:4px;background:#fff}
.v66-restaurant-row .v66-restaurant-item{border:0;background:#f7fbfa;padding:8px}
.v66-rest-actions{display:flex;flex-direction:column;gap:5px;align-self:stretch;min-width:82px}
.v66-directions,.v66-details-toggle{flex:1;min-height:34px;min-width:82px;display:flex;align-items:center;justify-content:center;border-radius:9px;text-align:center;font:inherit;font-size:11px;font-weight:900;padding:6px}
.v66-details-toggle{background:#f2f8fa;border:1px solid #bed8df;color:#235c69;cursor:pointer}
.v66-details-toggle:focus-visible{outline:3px solid #b6ed21;outline-offset:2px}
.v66-rest-detail-panel{grid-column:1/-1;border-top:1px solid #e3eeee;background:#fbfffd;border-radius:0 0 8px 8px;padding:10px;font-size:12px;line-height:1.55;color:#355a64}
.v66-rest-detail-panel[hidden]{display:none!important}
.v66-detail-lines p{margin:0 0 5px;overflow-wrap:anywhere}
.v66-detail-lines b{color:#153e49}
.v66-detail-lines small{color:#667c80}
.v66-detail-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.v66-detail-links a{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;border:1px solid #b2dfe0;background:#e9faf7;color:#047583!important;padding:7px 10px;font-size:11px;font-weight:850;text-decoration:none}
.v66-detail-links a:focus-visible{outline:3px solid #a3dc24;outline-offset:2px}
@media(max-width:760px){
 .v66-rest-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .v66-rest-filter-fields label:nth-child(2){grid-column:1 / -1;grid-row:1}
 .v66-rest-filter-fields label:nth-child(3){grid-column:2;grid-row:2}
 .v66-rest-filter-fields label:nth-child(1){grid-column:1;grid-row:2}
 .v66-restaurant-row .v66-restaurant-item{padding:8px 5px}
 .v66-rest-actions,.v66-directions,.v66-details-toggle{min-width:72px}
}

/* LAB R5: alternativa pratica se il servizio OSM non risponde. */
.v66-maps-fallback{display:block;width:max-content;max-width:100%;padding:10px 14px;margin:0 0 13px;border:1px solid #b6dade;border-radius:12px;color:#087b88;background:#effbfb;text-decoration:none;font-size:12px;font-weight:850}
.v66-maps-fallback[hidden]{display:none!important}
.v66-maps-fallback:focus-visible{outline:3px solid #a8ed20;outline-offset:2px}

/* LAB R6: i ristoranti ravvicinati diventano gruppi leggibili; ingrandisci per separarli. */
.v66-cluster{background:transparent!important;border:0!important}
.v66-cluster span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#00a4b3;color:white;border:4px solid #f5fff8;box-shadow:0 1px 0 5px #22adbd50,0 4px 14px #10394d40;font-size:15px;font-weight:900;line-height:1}
.v66-cluster:hover span{background:#087b8a}
.v66-maps-gps-note{font-size:11px;line-height:1.5;color:#5a727a;margin:9px 0 2px}

/* LAB R7: elenco a caricamento progressivo. La mappa continua a mostrare tutti i ristoranti filtrati. */
.v66-more-restaurants{display:block;width:100%;min-height:44px;margin:12px 0 7px;border:1px solid #84cad0;border-radius:12px;background:#e9f9f7;color:#087d89;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.v66-more-restaurants[hidden]{display:none!important}
.v66-more-restaurants:focus-visible{outline:3px solid #b5f446;outline-offset:2px}
