:root {
  --cs-navy: #0b2c4d;
  --cs-blue: #0d6efd;
  --cs-teal: #06b6d4;
  --cs-sky: #38bdf8;
  --cs-sun: #ffb703;
  --cs-coral: #ff6b6b;
  --cs-ink: #12263f;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--cs-ink);
  background-color: #f6f9fc;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--cs-sky);
}

/* Navbar */
.cs-navbar {
  background: linear-gradient(90deg, var(--cs-navy) 0%, #124170 60%, var(--cs-teal) 140%);
  box-shadow: 0 4px 18px rgba(11, 44, 77, 0.25);
}

.cs-navbar .navbar-brand {
  font-size: 1.4rem;
  letter-spacing: .3px;
}

.cs-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  border-radius: .5rem;
  padding: .4rem .9rem !important;
  transition: background-color .2s ease, color .2s ease;
}

.cs-navbar .nav-link:hover,
.cs-navbar .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn-primary {
  --bs-btn-bg: var(--cs-blue);
  --bs-btn-border-color: var(--cs-blue);
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
}

.btn-accent {
  background: linear-gradient(90deg, var(--cs-sun), var(--cs-coral));
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 107, 107, 0.45);
}

/* Hero */
.cs-hero {
  position: relative;
  background: linear-gradient(120deg, rgba(11, 44, 77, 0.92), rgba(6, 182, 212, 0.75)),
              url("https://images.unsplash.com/photo-1548574505-5e239809ee19?auto=format&fit=crop&w=1600&q=70") center/cover no-repeat;
  color: #fff;
  border-radius: 0 0 2rem 2rem;
  padding: 5rem 1rem 6rem;
  text-align: center;
}

.cs-hero h1 {
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.cs-search-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(11, 44, 77, 0.18);
  padding: 1.5rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

/* Cruise cards */
.cs-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(18, 38, 63, 0.16);
}

.cs-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.cs-badge-dest {
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-teal));
  color: #fff;
  font-weight: 500;
}

.cs-price {
  color: var(--cs-coral);
}

/* Timeline itinerario (pagina dettaglio) */
.cs-timeline {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
}

.cs-timeline-item {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  border-left: 2px solid var(--cs-coral);
}

.cs-timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.9rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cs-coral);
}

.cs-timeline-item:last-child {
  border-left-color: transparent;
}

.cs-timeline-day {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
  font-weight: 600;
}

.cs-timeline-port {
  font-weight: 600;
}

/* CTA laterale fissa nel dettaglio */
.cs-sticky-cta {
  position: sticky;
  top: 1.5rem;
}

/* Banner ricerca AI in home */
.cs-ai-banner {
  background: linear-gradient(135deg, #eef4fb, #e6fbf6);
  border: 1px solid #d7e6f2;
}

.cs-ai-banner-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cs-navy), var(--cs-teal));
}

/* Tile destinazioni nel popup */
.cs-dest-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border: 2px solid #e6ecf2;
  border-radius: 1rem;
  background: #fff;
  color: var(--cs-navy);
  font-weight: 600;
  transition: all 0.15s ease;
}

.cs-dest-tile i {
  font-size: 1.75rem;
  color: var(--cs-coral);
}

.cs-dest-tile:hover {
  border-color: var(--cs-coral);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Slider durata a doppia maniglia: gli stili completi sono definiti pił in basso
   (sezione "Slider durata a doppia maniglia" con track + fill). */

.cs-feature-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cs-blue), var(--cs-teal));
  color: #fff;
  font-size: 1.5rem;
}

/* Footer */
.cs-footer {
  background: var(--cs-navy);
  color: #fff;
}

.cs-footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.cs-footer-link:hover {
  color: var(--cs-sun);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

/* Assistente AI */
.cs-ai-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cs-blue), var(--cs-teal));
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.4);
  z-index: 1050;
  transition: transform .15s ease;
}

.cs-ai-toggle:hover { transform: scale(1.08); }

.cs-ai-panel {
  position: fixed;
  right: 22px;
  bottom: 94px;
  width: 340px;
  max-width: calc(100vw - 44px);
  height: 460px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 18px 46px rgba(11, 44, 77, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1050;
}

.cs-ai-header {
  background: linear-gradient(135deg, var(--cs-navy), var(--cs-teal));
  color: #fff;
  padding: .8rem 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-ai-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f6f9fc;
}

.cs-ai-msg {
  padding: .55rem .8rem;
  border-radius: .8rem;
  margin-bottom: .6rem;
  max-width: 85%;
  font-size: .92rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.cs-ai-bot { background: #fff; box-shadow: 0 2px 8px rgba(18,38,63,.08); }
.cs-ai-user { background: var(--cs-blue); color: #fff; margin-left: auto; }

.cs-ai-input {
  display: flex;
  gap: .4rem;
  padding: .7rem;
  border-top: 1px solid #eef2f7;
}

/* ===== Filtri: dropdown multi-select ===== */
.cs-filter-card {
  overflow: visible;
}

.cs-multi {
  position: relative;
}

.cs-multi-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: #fff;
  border: 1.5px solid #dbe4ee;
  border-radius: .7rem;
  padding: .35rem .75rem;
  font-size: .95rem;
  color: var(--cs-ink);
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer;
}

.cs-multi-toggle:hover {
  border-color: var(--cs-sky);
}

.cs-multi.open .cs-multi-toggle {
  border-color: var(--cs-blue);
  box-shadow: 0 0 0 .18rem rgba(56, 189, 248, .25);
}

.cs-multi.open .cs-multi-toggle .bi-chevron-down {
  transform: rotate(180deg);
}

.cs-multi-toggle .bi-chevron-down {
  transition: transform .2s;
  color: #6b7c93;
}

.cs-multi-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
  overflow: hidden;
}

.cs-multi-ph {
  color: #6b7c93;
}

.cs-chip {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--cs-blue), var(--cs-teal));
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: 999px;
  line-height: 1.1;
}

.cs-chip-more {
  background: var(--cs-navy);
}

.cs-multi-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1080;
  background: #fff;
  border: 1px solid #e3ebf3;
  border-radius: .8rem;
  box-shadow: 0 14px 34px rgba(11, 44, 77, .18);
  padding: .4rem;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}

.cs-multi.open .cs-multi-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-multi-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .6rem;
  border-radius: .55rem;
  cursor: pointer;
  font-size: .92rem;
  transition: background .12s;
}

.cs-multi-option:hover {
  background: #eef6ff;
}

.cs-multi-option input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--cs-blue);
  cursor: pointer;
}

.cs-multi-ic {
  color: var(--cs-teal);
  font-size: 1.05rem;
}

/* ===== Slider durata a doppia maniglia ===== */
.cs-range-dual {
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
}

.cs-range-track,
.cs-range-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
}

.cs-range-track {
  left: 0;
  right: 0;
  background: #dce5ef;
}

.cs-range-fill {
  background: linear-gradient(90deg, var(--cs-blue), var(--cs-teal));
}

.cs-range-dual input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.cs-range-dual input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cs-blue);
  box-shadow: 0 2px 6px rgba(11, 44, 77, .25);
  cursor: pointer;
}

.cs-range-dual input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cs-blue);
  box-shadow: 0 2px 6px rgba(11, 44, 77, .25);
  cursor: pointer;
}

.cs-range-dual input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
}

.cs-range-dual input[type="range"]::-moz-range-track {
  background: transparent;
}

/* ===== Card suggerimenti AI ===== */
.cs-ai-card {
  display: flex;
  gap: .6rem;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: .8rem;
  overflow: hidden;
  margin-top: .5rem;
  box-shadow: 0 3px 10px rgba(18, 38, 63, .08);
  text-decoration: none;
  color: inherit;
  transition: transform .12s, box-shadow .12s;
}

.cs-ai-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 38, 63, .16);
}

.cs-ai-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  flex-shrink: 0;
}

.cs-ai-card-body {
  padding: .5rem .6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
}

.cs-ai-card-title {
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.2;
}

.cs-ai-card-meta {
  font-size: .78rem;
  color: #6b7c93;
}

.cs-ai-card-price {
  font-weight: 700;
  color: var(--cs-coral);
  font-size: .92rem;
}

/* ===== Dettaglio crociera: hero unificato ===== */.cs-detail-hero {
  background: #fff;
  overflow: hidden;
}

.cs-detail-hero-media {
  position: relative;
  min-height: 340px;
}

.cs-detail-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.cs-detail-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.75rem 1.5rem;
  background: linear-gradient(to top, rgba(11, 44, 77, .85) 0%, rgba(11, 44, 77, .35) 55%, rgba(11, 44, 77, 0) 100%);
}

.cs-detail-hero-overlay h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.cs-detail-hero-body {
  padding: 1.6rem 1.75rem;
}

.cs-detail-facts .cs-fact {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #f6f9fc;
  border: 1px solid #eef2f7;
  border-radius: .8rem;
  padding: .65rem .8rem;
  height: 100%;
}

.cs-fact i {
  font-size: 1.35rem;
  color: var(--cs-teal);
  flex-shrink: 0;
}

.cs-fact-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6b7c93;
}

.cs-fact-value {
  display: block;
  font-weight: 600;
  color: var(--cs-ink);
  line-height: 1.2;
}

.cs-detail-content .card-body section:last-child {
  margin-bottom: 0 !important;
}

@media (min-width: 992px) {
  .cs-detail-hero-media {
    min-height: 420px;
  }
  .cs-detail-hero-media img {
    min-height: 420px;
    max-height: 520px;
  }
}

/* ===== Home: mete rapide sotto la ricerca ===== */
.cs-quick-dest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.cs-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #f0f6ff;
  border: 1px solid #d9e7f7;
  color: var(--cs-navy);
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all .15s ease;
}

.cs-quick-chip i {
  color: var(--cs-teal);
}

.cs-quick-chip:hover {
  background: var(--cs-blue);
  border-color: var(--cs-blue);
  color: #fff;
}

.cs-quick-chip:hover i {
  color: #fff;
}

/* ===== Footer: pulsanti social ===== */
.cs-social {
  display: flex;
  gap: .6rem;
}

.cs-social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.15rem;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  transition: all .18s ease;
}

.cs-social-link:hover {
  color: var(--cs-navy);
  background: var(--cs-sun);
  transform: translateY(-2px);
}




}