.oct-search-addon{
  --oct-surface: transparent;
  --oct-card-radius: 30px;
  --oct-primary: #2D597D;
  --oct-primary-dark: #234764;
  --oct-primary-soft: rgba(45, 89, 125, 0.10);
  --oct-primary-soft-strong: rgba(45, 89, 125, 0.16);
  --oct-soft-border: rgba(45, 89, 125, 0.16);
  --oct-soft-border-strong: rgba(45, 89, 125, 0.24);
  --oct-soft-bg: #f5f9fc;
  --oct-soft-bg-2: #edf4f9;
  --oct-text: #21415b;
  --oct-text-soft: rgba(33, 65, 91, 0.78);
  --oct-pill-bg: rgba(45, 89, 125, 0.72);
  --oct-pill-border: rgba(255, 255, 255, 0.22);
  --oct-button-bg: #2D597D;
  --oct-button-bg-hover: #234764;
  --oct-shadow-soft: 0 12px 28px rgba(45,89,125,.10);
  background:var(--oct-surface);
  color:var(--oct-text);
}

.oct-search-addon,
.oct-search-addon *{
  box-sizing:border-box;
}

.oct-search-addon--notice{
  padding:16px 18px;
  border:1px solid var(--oct-soft-border);
  border-radius:24px;
  background:#fff;
  color:var(--oct-text);
}

.oct-search-form{
  padding:14px;
  border:1px solid rgba(45,89,125,.12);
  border-radius:30px;
  background:linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(244,249,252,.96) 100%);
  box-shadow:0 16px 36px rgba(45,89,125,.08);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.oct-search-head{
  margin-bottom:12px;
}

.oct-search-title,
.oct-search-results-title{
  margin:0;
  font-size:clamp(22px, 2.1vw, 30px);
  line-height:1.06;
  letter-spacing:-0.03em;
  color:var(--oct-text);
}

.oct-search-fields{
  display:grid;
  grid-template-columns:1.05fr 1.05fr .7fr 1fr auto;
  gap:10px;
  align-items:stretch;
}

.oct-search-field{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  min-height:58px;
  padding:11px 16px 11px 46px;
  border:1px solid rgba(45,89,125,.14);
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px rgba(45,89,125,.05);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.oct-search-field::before{
  content:'';
  position:absolute;
  left:16px;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  border-radius:50%;
  background:rgba(45,89,125,.10);
}

.oct-search-field::after{
  content:'📅';
  position:absolute;
  left:18px;
  top:50%;
  transform:translateY(-53%);
  font-size:10px;
  line-height:1;
  opacity:.92;
}

.oct-search-field--guests::after{
  content:'👥';
}

.oct-search-field--name::before{
  width:20px;
  height:20px;
  left:15px;
  background:rgba(45,89,125,.11);
}

.oct-search-field--name::after{
  content:'';
  position:absolute;
  left:18px;
  top:50%;
  width:14px;
  height:14px;
  transform:translateY(-50%);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D597D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:14px 14px;
  opacity:1;
}

.oct-search-field--name input::-webkit-search-cancel-button{
  cursor:pointer;
}

.oct-search-field span{
  font-size:10px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:rgba(45,89,125,.64);
}

.oct-search-field input,
.oct-search-field select{
  width:100%;
  min-height:24px;
  border:0;
  padding:0;
  margin:0;
  font-size:15px;
  font-weight:600;
  background:transparent;
  color:var(--oct-text);
  box-shadow:none;
}

.oct-search-field input::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:.72;
}

.oct-search-field:focus-within{
  border-color:rgba(45,89,125,.38);
  box-shadow:0 0 0 4px rgba(45,89,125,.10), 0 12px 24px rgba(45,89,125,.08);
  transform:translateY(-1px);
}

.oct-search-field input:focus,
.oct-search-field select:focus{
  outline:none;
}

.oct-search-actions{
  display:flex;
}

.oct-search-button,
.oct-search-card-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid rgba(45,89,125,.16);
  background:linear-gradient(180deg, rgba(45,89,125,.98) 0%, rgba(35,71,100,.98) 100%);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  letter-spacing:-.01em;
  box-shadow:0 12px 24px rgba(45,89,125,.20);
  transition:transform .22s ease, background .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.oct-search-button:hover,
.oct-search-card-link:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg, rgba(35,71,100,.98) 0%, rgba(28,58,82,.98) 100%);
  box-shadow:0 16px 30px rgba(45,89,125,.24);
}

.oct-search-button:disabled{
  opacity:.68;
  cursor:wait;
}

.oct-search-zones{
  margin:12px 2px 0;
  padding:0;
  border:0;
  min-width:0;
}

.oct-search-zones legend{
  margin:0 0 8px 4px;
  padding:0;
  font-size:10px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:rgba(45,89,125,.64);
}

.oct-search-zone-options{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.oct-search-zone-option{
  position:relative;
  display:inline-flex;
  cursor:pointer;
}

.oct-search-zone-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.oct-search-zone-option span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 15px;
  border:1px solid rgba(45,89,125,.16);
  border-radius:999px;
  background:#fff;
  color:var(--oct-text);
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  box-shadow:0 6px 14px rgba(45,89,125,.05);
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}

.oct-search-zone-option input:checked + span{
  background:var(--oct-primary);
  border-color:var(--oct-primary);
  color:#fff;
  box-shadow:0 8px 18px rgba(45,89,125,.16);
}

.oct-search-zone-option:focus-within span{
  outline:3px solid rgba(45,89,125,.15);
  outline-offset:2px;
}

@media (hover:hover) and (pointer:fine){
  .oct-search-zone-option:hover span{transform:translateY(-1px);}
}

.oct-search-results{
  margin-top:22px;
}

.oct-search-results.is-loading{
  opacity:.72;
}

.oct-search-summary{
  display:none;
}

.oct-search-meta{
  margin:8px 0 0;
  font-size:14px;
  color:var(--oct-text-soft);
}

.oct-search-feedback{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:10px 16px;
  margin:0 0 18px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  background:linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%);
  color:var(--oct-text-soft);
  box-shadow:0 10px 22px rgba(45,89,125,.08);
}

.oct-search-feedback--success,
.oct-search-feedback--error{
  border-color:rgba(255,255,255,.55);
  background:linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%);
  color:var(--oct-text-soft);
}

.oct-search-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:24px;
}

.oct-search-card{
  position:relative;
  overflow:hidden;
  min-height:520px;
  border-radius:30px;
  background:#d7e4ef;
  box-shadow:0 20px 40px rgba(45,89,125,.10);
  isolation:isolate;
  opacity:0;
  transform:translateY(22px) scale(.985);
  transition:opacity .55s ease, transform .55s ease, box-shadow .25s ease;
}

.oct-search-card.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
  transition-delay:var(--oct-card-delay, 0ms);
}

.oct-search-card:hover{
  box-shadow:0 24px 52px rgba(45,89,125,.18);
}

.oct-search-card-media,
.oct-search-card-media-fallback{
  position:absolute;
  inset:0;
  display:block;
  overflow:hidden;
}

.oct-search-card-cover{
  position:absolute;
  inset:0;
  display:block;
  background-position:center center, center center;
  background-repeat:no-repeat, no-repeat;
  background-size:cover, cover;
  transition:transform .8s ease;
}

.oct-search-card:hover .oct-search-card-cover{
  transform:scale(1.045);
}

.oct-search-card-media::after,
.oct-search-card-media-fallback::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(10,10,10,.04) 0%, rgba(10,10,10,.1) 24%, rgba(10,10,10,.24) 54%, rgba(10,10,10,.72) 100%);
  z-index:1;
}

.oct-search-card-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .8s ease;
}

.oct-search-card:hover .oct-search-card-media img{
  transform:scale(1.045);
}

.oct-search-card-media-fallback{
  background:linear-gradient(135deg, #5b85a8 0%, #2D597D 100%);
}

.oct-search-card-body{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:28px 22px 22px;
  color:#fff;
}

.oct-search-card-title{
  margin:0 0 16px;
  font-size:clamp(22px, 2vw, 28px);
  line-height:1.08;
  letter-spacing:-0.03em;
  color:#fff;
  text-shadow:0 2px 14px rgba(0,0,0,.18);
}

.oct-search-card-title a{
  color:inherit;
  text-decoration:none;
}

.oct-search-card-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}

.oct-search-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--oct-pill-border);
  background:var(--oct-pill-bg);
  color:#fff;
  font-size:14px;
  font-weight:600;
  line-height:1;
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.oct-search-card-excerpt{
  display:none;
}

.oct-search-card-link{
  min-height:52px;
  padding:0 20px;
}

.oct-search-noscript{
  margin:12px 2px 0;
  font-size:14px;
  color:var(--oct-text-soft);
}

@media (max-width: 1599px){
  .oct-search-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:20px;
  }
}

@media (max-width: 1180px){
  .oct-search-fields{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .oct-search-actions{
    grid-column:1 / -1;
  }

  .oct-search-button{
    width:100%;
  }
}

@media (max-width: 1024px){
  .oct-search-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .oct-search-card{
    min-height:500px;
  }
}

@media (max-width: 767px){
  .oct-search-form{
    padding:12px;
    border-radius:24px;
  }

  .oct-search-fields{
    grid-template-columns:1fr;
    gap:10px;
  }

  .oct-search-field,
  .oct-search-button{
    min-height:56px;
  }

  .oct-search-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .oct-search-card{
    min-height:440px;
    border-radius:26px;
  }

  .oct-search-card-body{
    padding:22px 18px 18px;
  }

  .oct-search-card-title{
    margin-bottom:14px;
    font-size:26px;
  }

  .oct-search-badge{
    min-height:36px;
    font-size:13px;
  }
}

@media (prefers-reduced-motion: reduce){
  .oct-search-card,
  .oct-search-card.is-visible,
  .oct-search-card-media img,
  .oct-search-button,
  .oct-search-card-link,
  .oct-search-field{
    transition:none !important;
    animation:none !important;
    transform:none !important;
  }
}


/* Il prezzo e' pertinente solo dopo una ricerca con date. Compatibile anche
   con eventuali markup prezzo aggiunti dal tema/Core. */
.oct-search-grid[data-show-price="0"] .oct-search-price,
.oct-search-card[data-show-price="0"] .oct-search-price,
.oct-search-grid[data-show-price="0"] [data-oct-price],
.oct-search-card[data-show-price="0"] [data-oct-price]{
  display:none !important;
}


/* Prezzo reale del soggiorno: visibile solo dopo la selezione delle date. */
.oct-search-card-pricebar{
  position:absolute;
  top:18px;
  left:18px;
  right:18px;
  z-index:4;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  pointer-events:none;
}

.oct-search-price-night,
.oct-search-price-total{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 13px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:16px;
  background:rgba(20,45,65,.74);
  color:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,.14);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.oct-search-price-total{
  align-items:flex-end;
  text-align:right;
}

.oct-search-card-pricebar strong{
  font-size:18px;
  line-height:1.05;
  font-weight:800;
}

.oct-search-card-pricebar span{
  font-size:10px;
  line-height:1.1;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  opacity:.88;
}

@media (max-width: 767px){
  .oct-search-card-pricebar{
    top:14px;
    left:14px;
    right:14px;
  }
  .oct-search-price-night,
  .oct-search-price-total{
    padding:9px 11px;
    border-radius:14px;
  }
  .oct-search-card-pricebar strong{
    font-size:16px;
  }
}


/* 0.2.13 — automatic area grouping */


/* 0.2.18 — Design barra ricerca compatta, ispirata al layout di riferimento. */
@media (min-width:1181px){
  .oct-search-form{
    padding:18px 20px 16px;
    border:1px solid rgba(45,89,125,.12);
    border-radius:28px;
    background:#fff;
    box-shadow:0 10px 28px rgba(33,65,91,.07);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  .oct-search-head{
    margin:0 0 12px;
  }

  .oct-search-title{
    font-size:20px;
    line-height:1.15;
    letter-spacing:-.02em;
    font-weight:700;
  }

  .oct-search-fields{
    display:grid;
    grid-template-columns:1fr 1fr .78fr 1.18fr 120px;
    gap:0;
    align-items:stretch;
    overflow:hidden;
    min-height:64px;
    border:1px solid rgba(33,65,91,.18);
    border-radius:999px;
    background:#fff;
    box-shadow:0 5px 16px rgba(33,65,91,.05);
  }

  .oct-search-field{
    min-width:0;
    min-height:64px;
    padding:10px 22px;
    gap:3px;
    border:0;
    border-right:1px solid rgba(33,65,91,.13);
    border-radius:0;
    background:#fff;
    box-shadow:none;
    transform:none;
  }

  .oct-search-field::before,
  .oct-search-field::after{
    display:none !important;
  }

  .oct-search-field:focus-within{
    border-color:rgba(33,65,91,.13);
    background:rgba(45,89,125,.035);
    box-shadow:inset 0 0 0 2px rgba(45,89,125,.08);
    transform:none;
  }

  .oct-search-field span{
    font-size:10px;
    font-weight:700;
    letter-spacing:.11em;
    color:rgba(33,65,91,.62);
  }

  .oct-search-field input,
  .oct-search-field select{
    min-width:0;
    min-height:25px;
    font-size:14px;
    line-height:1.25;
    font-weight:500;
    color:var(--oct-text);
  }

  .oct-search-field input::placeholder{
    color:rgba(33,65,91,.46);
    opacity:1;
  }

  .oct-search-actions{
    display:flex;
    align-items:center;
    justify-content:stretch;
    padding:5px;
    background:#fff;
  }

  .oct-search-button{
    width:100%;
    min-height:52px;
    padding:0 18px;
    border:0;
    border-radius:999px;
    background:var(--oct-primary);
    box-shadow:none;
    font-size:14px;
    font-weight:700;
  }

  .oct-search-button:hover{
    background:var(--oct-primary-dark);
    box-shadow:0 7px 16px rgba(45,89,125,.17);
  }

  .oct-search-zones{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:14px;
    margin:16px 0 0;
    padding:15px 0 0;
    border-top:1px solid rgba(33,65,91,.11);
  }

  .oct-search-zones legend{
    margin:0;
    font-size:10px;
    letter-spacing:.11em;
    white-space:nowrap;
  }

  .oct-search-zone-options{
    gap:8px;
  }

  .oct-search-zone-option span{
    min-height:36px;
    padding:7px 15px;
    border:1px solid rgba(33,65,91,.18);
    border-radius:999px;
    background:#fff;
    box-shadow:none;
    color:var(--oct-text);
    font-size:13px;
    font-weight:500;
  }

  .oct-search-zone-option input:checked + span{
    background:var(--oct-primary);
    border-color:var(--oct-primary);
    color:#fff;
    box-shadow:none;
    font-weight:600;
  }
}

/* Tablet e laptop stretti: conserva lo stesso linguaggio visivo senza comprimere i campi. */
@media (max-width:1180px){
  .oct-search-form{
    background:#fff;
    border:1px solid rgba(45,89,125,.12);
    box-shadow:0 10px 26px rgba(33,65,91,.06);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  .oct-search-field{
    padding-left:16px;
    border-radius:16px;
    background:#fff;
    box-shadow:none;
  }

  .oct-search-field::before,
  .oct-search-field::after{
    display:none !important;
  }

  .oct-search-button{
    box-shadow:none;
    background:var(--oct-primary);
  }

  .oct-search-zones{
    padding-top:14px;
    border-top:1px solid rgba(33,65,91,.10);
  }

  .oct-search-zone-option span{
    box-shadow:none;
  }
}

/* 0.2.21 — Le città mantengono la grafia Octorate con iniziale maiuscola. */
.oct-search-zone-option span{
  text-transform:none;
}

@media (min-width:1181px){
  .oct-search-field--name{
    border-right:0;
  }
}

/* 0.2.23-map1 — vista Griglia / Mappa con lista laterale e cluster Leaflet. */
.oct-search-view-toolbar{
  display:flex;
  justify-content:flex-end;
  gap:6px;
  margin:18px 0 12px;
}

.oct-search-view-button{
  appearance:none;
  min-height:38px;
  padding:7px 16px;
  border:1px solid rgba(45,89,125,.18);
  border-radius:999px;
  background:#fff;
  color:var(--oct-text);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:none;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}

.oct-search-view-button.is-active{
  border-color:var(--oct-primary);
  background:var(--oct-primary);
  color:#fff;
}

@media (hover:hover) and (pointer:fine){
  .oct-search-view-button:hover{transform:translateY(-1px);}
}

.oct-search-layout{
  display:block;
  min-width:0;
}

.oct-search-map-panel{
  display:none;
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(45,89,125,.14);
  border-radius:28px;
  background:#eef4f8;
  box-shadow:0 18px 38px rgba(45,89,125,.10);
}

.oct-search-map{
  width:100%;
  height:100%;
  min-height:560px;
  z-index:1;
}

.oct-search-map-empty{
  position:absolute;
  left:50%;
  top:50%;
  z-index:500;
  max-width:300px;
  transform:translate(-50%,-50%);
  padding:13px 17px;
  border:1px solid rgba(45,89,125,.16);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  color:var(--oct-text);
  font-size:13px;
  font-weight:600;
  text-align:center;
  box-shadow:0 12px 30px rgba(45,89,125,.12);
}

@media (min-width:1025px){
  .oct-search-layout[data-view="map"]{
    display:grid;
    grid-template-columns:minmax(360px, 41%) minmax(0, 59%);
    gap:24px;
    align-items:start;
  }

  .oct-search-layout[data-view="map"] .oct-search-map-panel{
    display:block;
    position:sticky;
    top:24px;
    height:min(72vh, 760px);
    min-height:560px;
  }

  .oct-search-layout[data-view="map"] .oct-search-results{
    margin-top:0;
    min-width:0;
  }

  .oct-search-layout[data-view="map"] .oct-search-grid{
    grid-template-columns:1fr !important;
    gap:16px;
  }

  .oct-search-layout[data-view="map"] .oct-search-card{
    min-height:300px;
    border-radius:24px;
  }

  .oct-search-layout[data-view="map"] .oct-search-card-title{
    font-size:clamp(22px,2vw,27px);
  }

  .oct-search-layout[data-view="map"] .oct-search-card-body{
    padding:25px 20px 20px;
  }
}

@media (max-width:1024px){
  .oct-search-layout[data-view="map"]{
    display:flex;
    flex-direction:column;
    gap:18px;
  }

  .oct-search-layout[data-view="map"] .oct-search-map-panel{
    display:block;
    order:-1;
    height:430px;
  }

  .oct-search-layout[data-view="map"] .oct-search-map{
    min-height:430px;
  }
}

@media (max-width:767px){
  .oct-search-view-toolbar{
    justify-content:stretch;
    margin-top:14px;
  }
  .oct-search-view-button{
    flex:1 1 50%;
  }
  .oct-search-layout[data-view="map"] .oct-search-map-panel{
    height:360px;
    border-radius:22px;
  }
  .oct-search-layout[data-view="map"] .oct-search-map{
    min-height:360px;
  }
}

.oct-search-card.is-map-active{
  box-shadow:0 0 0 3px rgba(45,89,125,.30), 0 22px 48px rgba(45,89,125,.18);
}

/* Marker custom: evita dipendenze dalle immagini icona predefinite di Leaflet. */
.oct-map-marker-wrap{
  background:transparent !important;
  border:0 !important;
}
.oct-map-marker-dot{
  position:relative;
  display:block;
  width:28px;
  height:28px;
  margin:2px auto 0;
  border:3px solid #fff;
  border-radius:50% 50% 50% 0;
  background:var(--oct-primary,#2D597D);
  box-shadow:0 5px 14px rgba(24,55,80,.32);
  transform:rotate(-45deg);
}
.oct-map-marker-dot::after{
  content:'';
  position:absolute;
  width:8px;
  height:8px;
  left:50%;
  top:50%;
  border-radius:50%;
  background:#fff;
  transform:translate(-50%,-50%);
}

/* Cluster coerenti con la palette del sito. */
.oct-search-map-panel .marker-cluster{
  border-radius:50%;
  background:rgba(45,89,125,.18);
}
.oct-search-map-panel .marker-cluster div{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  margin:5px;
  border-radius:50%;
  background:#2D597D;
  color:#fff;
  font-size:12px;
  font-weight:800;
  box-shadow:0 5px 13px rgba(24,55,80,.24);
}
.oct-search-map-panel .marker-cluster span{line-height:1;}

/* Popup compatto con foto e prezzo. */
.oct-search-map-panel .leaflet-popup-content-wrapper{
  overflow:hidden;
  padding:0;
  border-radius:18px;
  box-shadow:0 14px 34px rgba(25,55,80,.20);
}
.oct-search-map-panel .leaflet-popup-content{
  width:240px !important;
  margin:0;
}
.oct-search-map-panel .leaflet-popup-tip{box-shadow:none;}
.oct-map-popup{background:#fff;color:#21415b;}
.oct-map-popup-image{
  display:block;
  width:100%;
  height:130px;
  object-fit:cover;
  background:#edf4f9;
}
.oct-map-popup-body{padding:13px 14px 14px;}
.oct-map-popup-city{
  margin-bottom:4px;
  color:rgba(33,65,91,.64);
  font-size:11px;
  font-weight:700;
}
.oct-map-popup strong{
  display:block;
  margin-bottom:7px;
  color:#21415b;
  font-size:15px;
  line-height:1.2;
}
.oct-map-popup-price{
  margin-bottom:9px;
  color:#2D597D;
  font-size:13px;
  font-weight:800;
}
.oct-map-popup a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 11px;
  border-radius:999px;
  background:#2D597D;
  color:#fff !important;
  text-decoration:none !important;
  font-size:12px;
  font-weight:700;
}

/* 0.2.25-resetguest1 — reset ricerca e ospiti neutri. */
.oct-search-reset{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:7px 15px;
  border:1px solid rgba(45,89,125,.22);
  border-radius:999px;
  background:#fff;
  color:var(--oct-primary);
  font:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}

.oct-search-reset.is-hidden{
  display:none !important;
}

.oct-search-reset:focus-visible{
  outline:3px solid rgba(45,89,125,.15);
  outline-offset:2px;
}

@media (hover:hover) and (pointer:fine){
  .oct-search-reset:hover{
    background:var(--oct-primary-soft);
    border-color:rgba(45,89,125,.32);
    transform:translateY(-1px);
  }
}

@media (min-width:1181px){
  .oct-search-zones{
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  .oct-search-reset{
    justify-self:end;
  }
}

@media (max-width:1180px){
  .oct-search-zones{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:10px 12px;
  }
  .oct-search-zones legend{
    grid-column:1 / -1;
    margin-bottom:0;
  }
  .oct-search-zone-options{
    grid-column:1;
  }
  .oct-search-reset{
    grid-column:2;
    justify-self:end;
  }
}

@media (max-width:640px){
  .oct-search-zones{
    grid-template-columns:1fr;
  }
  .oct-search-zones legend,
  .oct-search-zone-options,
  .oct-search-reset{
    grid-column:1;
  }
  .oct-search-reset{
    justify-self:end;
  }
}


/* ==========================================================================
   Struttura (grouped property) — card variant + right-side units drawer
   Appended last so these rules win over the breakpoint blocks above.
   ========================================================================== */

/* A struttura renders as a normal result card; only the eyebrow label and the
   toggle button distinguish it. Everything else inherits .oct-search-card. */
.oct-search-card--group{
  cursor:default;
}

.oct-search-card-eyebrow{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:rgba(255,255,255,.86);
  text-shadow:0 1px 8px rgba(0,0,0,.25);
}

/* The cover doubles as the open control, so reset default button chrome. */
button.oct-search-card-media{
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
  font:inherit;
  color:inherit;
  appearance:none;
  -webkit-appearance:none;
}

button.oct-search-card-link{
  border:0;
  cursor:pointer;
  font:inherit;
}

.oct-search-price--from .oct-search-price-night{
  display:flex;
  align-items:baseline;
  gap:6px;
}

/* Units drawer: slides in from the right so opening it never reflows the
   results grid. Kept out of the accessibility tree while closed. */
.oct-search-group-panel[hidden]{
  display:none;
}

.oct-search-group-panel{
  position:fixed;
  inset:0;
  z-index:9999;
}

@supports (height: 100dvh){
  .oct-search-group-panel{
    height:100dvh;
  }
}

.oct-search-group-panel-backdrop{
  position:absolute;
  top:var(--oct-drawer-top, 0px);
  right:0;
  bottom:0;
  left:0;
  background:rgba(16,32,46,.62);
  opacity:0;
  transition:opacity .32s ease;
}

.oct-search-group-panel.is-open .oct-search-group-panel-backdrop{
  opacity:1;
}

.oct-search-group-panel-inner{
  position:absolute;
  top:var(--oct-drawer-top, 0px);
  right:0;
  bottom:0;
  width:100%;
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg, #ffffff 0%, #f3f8fc 100%);
  box-shadow:-30px 0 70px rgba(16,32,46,.28);
  transform:translate3d(100%, 0, 0);
  transition:transform .34s cubic-bezier(.22,.61,.36,1);
}

/* Promote only for the duration of the animation. */
.oct-search-group-panel.is-animating .oct-search-group-panel-inner{
  will-change:transform;
}

/* Animation finished: drop the compositing layer entirely. Leaving a
   full-screen transformed layer in place makes the GPU evict and repaint
   its tiles, which shows up as images flickering in and out. */
.oct-search-group-panel.is-settled .oct-search-group-panel-inner{
  transform:none;
  will-change:auto;
  transition:none;
}

.oct-search-group-panel.is-open .oct-search-group-panel-inner{
  transform:translate3d(0, 0, 0);
}

.oct-search-group-panel-head{
  flex:0 0 auto;
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px 16px;
  border-bottom:1px solid var(--oct-soft-border);
  background:#ffffff;
  box-shadow:0 6px 18px rgba(45,89,125,.06);
}

.oct-search-group-panel-eyebrow{
  display:block;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--oct-primary);
}

.oct-search-group-panel-title{
  margin:4px 0 0;
  font-size:clamp(22px, 2.2vw, 30px);
  line-height:1.1;
  letter-spacing:-0.02em;
  color:var(--oct-text);
}

.oct-search-group-panel-meta{
  margin:8px 0 0;
  font-size:14px;
  color:var(--oct-text-soft);
}

.oct-search-group-panel-close{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:0 20px 0 16px;
  border:1px solid var(--oct-soft-border-strong);
  border-radius:999px;
  background:#fff;
  color:var(--oct-text);
  font-size:15px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  box-shadow:var(--oct-shadow-soft);
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.oct-search-group-panel-close:hover,
.oct-search-group-panel-close:focus-visible{
  background:var(--oct-primary);
  border-color:var(--oct-primary);
  color:#fff;
}

.oct-search-group-panel-close-icon{
  font-size:24px;
  line-height:1;
  transition:transform .2s ease;
}

.oct-search-group-panel-close:hover .oct-search-group-panel-close-icon{
  transform:rotate(90deg);
}

@media (max-width: 560px){
  .oct-search-group-panel-close-text{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
  }
  .oct-search-group-panel-close{
    padding:0;
    width:46px;
    justify-content:center;
  }
}

/* Scroll region for the unit cards. */
.oct-search-group-panel-grid{
  flex:1 1 auto;
  /* Always reserve the scrollbar. With auto-fill columns, a scrollbar that
     appears and disappears changes the available width, which changes the
     column count, which changes the content height -- an infinite reflow
     loop that shows up as flickering images on narrower screens. */
  overflow-y:scroll;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:24px clamp(18px, 4vw, 48px) 40px;
  margin:0;
  align-content:start;
}

.oct-search-group-panel-head{
  padding:30px clamp(18px, 4vw, 48px) 20px;
}

/* Two classes beat the single-class .oct-search-grid breakpoints, so the
   drawer keeps its own column count regardless of viewport width. */
.oct-search-group-panel .oct-search-group-panel-grid{
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:22px;
}

@media (max-width: 767px){
  .oct-search-group-panel .oct-search-group-panel-grid{
    grid-template-columns:minmax(0, 1fr);
    gap:16px;
  }
}

.oct-search-group-panel .oct-search-badge{
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  background:rgba(45, 89, 125, 0.86);
}

/* The zoom-on-hover repaints a large background image; not worth it here. */
.oct-search-group-panel .oct-search-card:hover .oct-search-card-cover{
  transform:none;
}

@media (max-width: 767px){
  .oct-search-group-panel-inner{
    border-top-left-radius:16px;
    border-top-right-radius:16px;
  }

  .oct-search-group-panel-head{
    padding:16px 16px 14px;
  }

  .oct-search-group-panel-title{
    font-size:22px;
  }

  .oct-search-group-panel-meta{
    margin-top:6px;
    font-size:13px;
  }

  .oct-search-group-panel-grid{
    padding:16px 16px 28px;
  }

  /* Full-height cards make a 9-unit drawer endless to scroll on a phone. */
  .oct-search-group-panel .oct-search-card{
    min-height:340px;
  }

  .oct-search-group-panel .oct-search-card-title{
    font-size:22px;
    margin-bottom:10px;
  }

  .oct-search-group-panel .oct-search-card-body{
    padding:18px 16px 16px;
  }
}

body.oct-search-panel-open{
  overflow:hidden;
}

@media (prefers-reduced-motion: reduce){
  .oct-search-group-panel-inner,
  .oct-search-group-panel-backdrop{
    transition:none;
  }
  .oct-search-group-panel-backdrop{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .oct-search-group-panel-close:hover{
    transform:none;
  }
}
