/* ============================================================
   SoulExperience — flotta.css
   ============================================================ */

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  padding: 56px 48px 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 8px; }
.page-header p { font-size: 16px; color: rgba(255,255,255,.55); font-weight: 300; }

/* ── FILTERS BAR ── */
.filters-bar {
  background: var(--navy2);
  border-bottom: 2px solid var(--gold);
  padding: 0 32px;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.flt {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.flt:last-of-type { border-right: none; }
.flt label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.flt select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--fb);
  font-size: 15px;
  color: var(--white);
  cursor: pointer;
  -webkit-appearance: none;
  width: 100%;
}
.flt select option { background: var(--navy2); }
.filter-reset {
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-left: auto;
}
.filter-reset button {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}
.filter-reset button:hover { color: var(--white); }

/* ── RESULTS ── */
.results-wrap {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 48px;
}
.results-count { font-size: 14px; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.results-count strong { color: var(--gold); }

/* ── BOATS GRID ── */
.boats-grid-wrap {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 48px;
}
.boats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.boat-card {
  background: var(--navy2);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 2px;
}
.boat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.45); }
.boat-card.hidden { display: none; }
.bi { height: 190px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.bi-icon { font-size: 70px; opacity: .18; transition: opacity .4s; }
.boat-card:hover .bi-icon { opacity: .28; }
.bi-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,25,46,.9) 0%, transparent 60%); }
.b-tag { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; }
.b-info { padding: 18px; }
.b-type { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--az3); font-weight: 700; margin-bottom: 5px; }
.b-name { font-family: var(--ff); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.b-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.b-feat { font-size: 13px; color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 4px; }
.b-feat::before { content: ''; display: inline-block; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.b-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.b-price-lbl { font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em; }
.b-price-val { font-family: var(--ff); font-size: 24px; color: var(--gold); }
.b-price-val span { font-size: 12px; font-family: var(--fb); color: rgba(255,255,255,.38); }

/* ── NO RESULTS ── */
.no-results { display: none; text-align: center; padding: 80px 20px; }
.no-results h3 { font-family: var(--ff); font-size: 26px; font-weight: 400; margin-bottom: 8px; }
.no-results p { color: rgba(255,255,255,.45); margin-bottom: 24px; }

/* ── BOAT DETAIL MODAL ── */
.bmodal {
  background: var(--navy2);
  border: 1px solid rgba(255,255,255,.1);
  max-width: 900px;
  width: 100%;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform .3s;
  border-radius: 2px;
}
.modal-overlay.open .bmodal { transform: none; }
.bm-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; }
.bm-left { border-right: 1px solid rgba(255,255,255,.08); }
.bm-right { background: rgba(255,255,255,.02); }

.bm-img { height: 220px; display: flex; align-items: center; justify-content: center; font-size: 90px; opacity: .2; }
.bm-info { padding: 24px; }
.bm-type { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--az3); font-weight: 700; margin-bottom: 6px; }
.bm-name { font-family: var(--ff); font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.bm-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bm-features span { font-size: 13px; padding: 4px 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.bm-desc { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; font-weight: 300; margin-bottom: 18px; }
.bm-price-box { padding: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.bm-price-box .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.bm-price-box .val { font-family: var(--ff); font-size: 28px; color: var(--gold); }
.bm-price-box .val span { font-size: 13px; font-family: var(--fb); color: rgba(255,255,255,.4); }

/* ── CALENDAR ── */
.cal-head { padding: 22px 24px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cal-head h3 { font-family: var(--ff); font-size: 19px; font-weight: 400; margin-bottom: 4px; }
.cal-head p { font-size: 13px; color: rgba(255,255,255,.4); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 8px; }
.cal-nav button { background: none; border: none; color: var(--white); font-size: 20px; cursor: pointer; padding: 4px 10px; transition: color .2s; }
.cal-nav button:hover { color: var(--gold); }
.cal-nav span { font-family: var(--ff); font-size: 17px; }
.cal-day-headers { display: grid; grid-template-columns: repeat(7,1fr); padding: 0 16px; margin-bottom: 4px; }
.cal-dh { font-size: 10px; color: rgba(255,255,255,.3); text-align: center; padding: 4px 0; font-weight: 700; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; padding: 0 16px; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all .15s;
}
.cal-day:hover:not(.past):not(.booked) { background: rgba(200,164,90,.2); color: var(--gold); }
.cal-day.past { color: rgba(255,255,255,.2); cursor: not-allowed; }
.cal-day.booked { background: rgba(220,50,50,.15); color: rgba(255,100,100,.55); cursor: not-allowed; text-decoration: line-through; }
.cal-day.selected-start, .cal-day.selected-end { background: var(--gold); color: var(--navy); font-weight: 700; }
.cal-day.in-range { background: rgba(200,164,90,.15); color: var(--gold); }
.cal-day.empty { cursor: default; }

/* ── PRICE PREVIEW ── */
.price-preview {
  display: none;
  margin: 14px 16px;
  padding: 14px;
  background: rgba(200,164,90,.1);
  border: 1px solid rgba(200,164,90,.3);
  border-radius: 2px;
}
.price-preview .pp-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.price-preview .pp-row span { font-size: 13px; color: rgba(255,255,255,.55); }
.price-preview .pp-row strong { font-size: 13px; color: var(--white); }
.price-preview .pp-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(200,164,90,.3); }
.price-preview .pp-total span { font-size: 15px; font-weight: 700; color: var(--gold); }
.price-preview .pp-total .tot-val { font-family: var(--ff); font-size: 22px; color: var(--gold); }

/* ── BOOK BUTTON ── */
.book-btn-wrap { padding: 0 16px 20px; }
.book-btn {
  width: 100%;
  padding: 15px;
  background: rgba(200,164,90,.25);
  border: none;
  color: rgba(255,255,255,.35);
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
  transition: all .3s;
  border-radius: 2px;
}
.book-btn.enabled {
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
}
.book-btn.enabled:hover { background: var(--gold2); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .boats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
  .page-header { padding: 40px 20px 28px; }

  /* Filtri: scroll orizzontale fluido invece di andare a capo */
  .filters-bar { padding: 0; top: 60px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filters-inner { flex-wrap: nowrap; min-width: max-content; padding: 0 16px; }
  .flt { min-width: 140px; padding: 12px 14px; flex-shrink: 0; }
  .filter-reset { flex-shrink: 0; }

  .results-wrap, .boats-grid-wrap { padding: 0 16px; }
  .boats-grid { grid-template-columns: 1fr; }

  /* Modal barca */
  .bm-grid { grid-template-columns: 1fr; }
  .bm-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .bmodal { max-height: 95vh; }
  .bm-img { height: 140px; font-size: 60px; }

  /* Calendario */
  .cal-grid, .cal-day-headers { padding: 0 8px; }
  .cal-day { font-size: 13px; }
}

@media (max-width: 480px) {
  /* Prezzo nella card barca */
  .b-price-val { font-size: 20px; }
  .b-footer { flex-wrap: wrap; gap: 10px; }
  .b-footer .btn-az { width: 100%; text-align: center; }

  /* Calendario ancora più compatto */
  .cal-day { font-size: 12px; }
  .cal-nav span { font-size: 15px; }

  /* Modal prenotazione finale */
  .modal { padding: 28px 18px; }
}
