/* === MAPPA LETTINI V2 === */
.map {
  position: relative;
  width: 1340px;
  height: 670px;
  background: #d8a572;
  border-radius: 8px;
  border: 2px solid #8a7660;
  overflow: hidden;
  transform-origin: center center;
}
.map .sea {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 350px;
  background: linear-gradient(180deg, #1a6fa0 0%, #2980b9 50%, #4ba3d4 100%);
  border-bottom: 3px solid #a07040;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  overflow: hidden;
}
.map .sea-label {
  color: rgba(255,255,255,0.15);
  font-size: 36px; font-weight: 700; letter-spacing: 32px;
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  pointer-events: none;
  padding-left: 32px; /* compensa letter-spacing */
}
/* Onde */
.map .wave-line {
  position: absolute;
  left: 0; width: 100%;
  height: 8px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background:
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 4px,
      rgba(255,255,255,0) 4px,
      rgba(255,255,255,0) 6px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8'%3E%3Cpath d='M0 4 Q10 0 20 4 Q30 8 40 4 Q50 0 60 4 Q70 8 80 4' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 8px;
  background-repeat: repeat-x;
  animation: wave-scroll 4s linear infinite;
}
.map .wave-line:nth-child(2) { top: 60px; animation-duration: 5s; opacity: 0.09; }
.map .wave-line:nth-child(3) { top: 120px; animation-duration: 6s; animation-direction: reverse; opacity: 0.1; }
.map .wave-line:nth-child(4) { top: 180px; animation-duration: 4.5s; opacity: 0.08; }
.map .wave-line:nth-child(5) { top: 240px; animation-duration: 5.5s; animation-direction: reverse; opacity: 0.11; }
.map .wave-line:nth-child(6) { top: 300px; animation-duration: 7s; opacity: 0.07; }
@keyframes wave-scroll {
  0%   { background-position-x: 0; }
  100% { background-position-x: 80px; }
}
.map .pontile-left {
  position: absolute;
  left: 85px; top: 10px;
  width: 55px; height: 340px;
  background: #a07040;
  border-right: 3px solid #8a5a30;
  border-left: 3px solid #8a5a30;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.map .pontile-left span {
  writing-mode: vertical-rl;
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 700; letter-spacing: 5px;
}
.map .pontile-right {
  position: absolute;
  left: 985px; top: 81px;
  width: 78px; height: 269px;
  background: #a07040;
  border-right: 3px solid #8a5a30;
  border-left: 3px solid #8a5a30;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 12px 5px;
  gap: 14px;
  z-index: 2;
}
.map .sea-zone-label {
  position: absolute;
  z-index: 3;
  background: #fff;
  color: #333;
  font-weight: 700;
  font-size: 18px;
  width: 45px; height: 45px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  letter-spacing: 1px;
  border: 2px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Zone */
.map .zone-a-box {
  position: absolute;
  left: 12px; top: 362px;
  width: 480px;
  z-index: 3;
}
.map .zone-b-box {
  position: absolute;
  left: 560px; top: 335px;
  width: 295px;
  background: #d8a572;
  padding-right: 15px;
  border-top: 3px solid #a07040;
  z-index: 3;
}
.map .zone-b-box .zona-row { justify-content: flex-start; }
.map .zone-c-box {
  position: absolute;
  left: 855px; top: 362px;
  width: 478px;
  z-index: 3;
}

/* Zona A: fila 1 */
.map .a-row1 {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
  margin-left: 15px;
}
.map .a-row1-spacer1 { width: 80px; flex-shrink: 0; }
.map .a-row1-spacer2 { width: 2px; flex-shrink: 0; }

/* Zona A: file 2-4 split */
.map .a-split-row {
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
  margin-left: 15px;
}
.map .a-split-spacer { width: 15px; flex-shrink: 0; }

/* Zona B split */
.map .b-split { display: flex; gap: 6px; margin-top: 4px; }
.map .b-structures {
  display: flex; flex-direction: column;
  gap: 0; width: 215px; flex-shrink: 0;
  margin-left: -72px;
}
.map .b-right-col { display: flex; flex-direction: column; flex: 1; }
.map .b-right-col .zona-row { justify-content: flex-start; }
.map .struct-block {
  background: #b09070;
  border: 1px solid #8a6a4a;
  padding: 22px 12px;
  font-size: 12px; font-weight: 700;
  color: #fff; text-align: center;
  letter-spacing: 2px;
}
.map .struct-block.veranda { padding: 54px 12px; }
.map .struct-block:first-child { border-radius: 3px 3px 0 0; }
.map .struct-block:last-child { border-radius: 0 0 3px 3px; }
.map .ingresso-label {
  margin-top: 45px;
  text-align: center;
  font-size: 10px; font-weight: 700;
  color: #fff; letter-spacing: 2px;
}

/* Zona C split */
.map .c-row-split { display: flex; gap: 50px; margin-bottom: 12px; }
.map .c-cluster {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 9px;
}

/* Zona row standard */
.map .zona-row {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 9px;
  margin-bottom: 12px;
}

/* Ombrellone */
.map .ombrellone { display: flex; flex-direction: column; align-items: center; }
.map .ombrellone-num {
  font-size: 8px; font-weight: 700;
  color: #fff; background: #555;
  border-radius: 2px; padding: 0 3px;
  margin-bottom: 2px; white-space: nowrap; line-height: 1.5;
}
.map .ombrellone-pair { display: flex; gap: 2px; }

/* Lettino */
.map .lettino {
  width: 22px; height: 32px;
  position: relative; cursor: pointer; overflow: hidden;
  transition: transform 0.1s, box-shadow 0.1s;
  border: 1px solid rgba(0,0,0,0.2);
  float: none;
  margin: 0;
  line-height: normal;
}
.map .lettino:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  z-index: 10;
}
.map .lettino .pos {
  position: absolute; z-index: 2;
  width: 14px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 700;
  color: #000;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.4);
  border-radius: 50%;
  pointer-events: none;
  line-height: 1;
}
.map .lettino .stripes {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; display: flex;
}
.map .lettino .stripes > div { flex: 1; height: 100%; }

/* Sdraio */
.map .sdraio .lettino { border-radius: 7px 7px 2px 2px; }
.map .zone-a .sdraio .stripes > div:nth-child(odd) { background: #6067ff; }
.map .zone-b .sdraio .stripes > div:nth-child(odd) { background: #ff4444; }
.map .zone-c .sdraio .stripes > div:nth-child(odd) { background: #3db91e; }
.map .zone-m .sdraio .stripes > div:nth-child(odd) { background: #ff9800; }
.map .sdraio .stripes > div:nth-child(even) { background: #fff; }

/* Legno */
.map .legno .lettino { border-radius: 2px; }
.map .legno .stripes { flex-direction: column; }
.map .legno .stripes > div { flex: 1; width: 100%; }
.map .legno .stripes > div:nth-child(odd) { background: #8B6914; }
.map .legno .stripes > div:nth-child(even) { background: #A0822A; }

/* Stati */
.map .lettino.selected { box-shadow: 0 0 0 2px #ffc107 !important; transform: scale(1.15); }
.map .lettino.booked { opacity: 0.35; }
.map .lettino.busy { opacity: 0.5; }
.map .lettino.busy .stripes > div { background: #dc3545 !important; }
.map .lettino.busy .stripes > div:nth-child(even) { background: #f8d7da !important; }
.map .lettino.disabled { opacity: 0.35 !important; pointer-events: none; }
.map .lettino.booked { opacity: 0.35 !important; }
/* Override light-style-1.min.css che forza #000 su booked/busy/disabled */
.map .zone-a .sdraio .lettino.disabled .stripes > div:nth-child(odd),
.map .zone-a .sdraio .lettino.booked .stripes > div:nth-child(odd) { background: #6067ff !important; }
.map .zone-b .sdraio .lettino.disabled .stripes > div:nth-child(odd),
.map .zone-b .sdraio .lettino.booked .stripes > div:nth-child(odd) { background: #ff4444 !important; }
.map .zone-c .sdraio .lettino.disabled .stripes > div:nth-child(odd),
.map .zone-c .sdraio .lettino.booked .stripes > div:nth-child(odd) { background: #3db91e !important; }
.map .zone-m .sdraio .lettino.disabled .stripes > div:nth-child(odd),
.map .zone-m .sdraio .lettino.booked .stripes > div:nth-child(odd) { background: #ff9800 !important; }
.map .sdraio .lettino.disabled .stripes > div:nth-child(even),
.map .sdraio .lettino.booked .stripes > div:nth-child(even) { background: #fff !important; }
.map .legno .lettino.disabled .stripes > div:nth-child(odd),
.map .legno .lettino.booked .stripes > div:nth-child(odd) { background: #8B6914 !important; }
.map .legno .lettino.disabled .stripes > div:nth-child(even),
.map .legno .lettino.booked .stripes > div:nth-child(even) { background: #A0822A !important; }
.map .lettino.disabled_forced { opacity: 0.3; pointer-events: none; }
.map .lettino.hide_me_online { opacity: 0; visibility: hidden; pointer-events: none; }

/* Legenda nel mare */
.map .legenda-mare {
  position: absolute;
  right: 80px; top: 90px;
  z-index: 3;
  display: flex; flex-direction: column;
  gap: 6px;
  background: rgba(0,0,0,0.2);
  padding: 8px 10px;
  border-radius: 5px;
}
.map .legenda-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.map .lsw {
  width: 18px; height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.map .lsw-legno { background: repeating-linear-gradient(0deg, #8B6914 0px, #8B6914 2px, #A0822A 2px, #A0822A 4px); }
.map .lsw-sdraio-a { background: repeating-linear-gradient(90deg, #6067ff 0px, #6067ff 2px, #fff 2px, #fff 4px); border-radius: 4px 4px 2px 2px; }
.map .lsw-sdraio-b { background: repeating-linear-gradient(90deg, #ff4444 0px, #ff4444 2px, #fff 2px, #fff 4px); border-radius: 4px 4px 2px 2px; }
.map .lsw-sdraio-c { background: repeating-linear-gradient(90deg, #3db91e 0px, #3db91e 2px, #fff 2px, #fff 4px); border-radius: 4px 4px 2px 2px; }
.map .lsw-sdraio-m { background: repeating-linear-gradient(90deg, #ff9800 0px, #ff9800 2px, #fff 2px, #fff 4px); border-radius: 4px 4px 2px 2px; }
