/* =========================================================
   CALENDARIO — DominicanToDo.com
   ========================================================= */

/* -----------------------------
   HERO SUPERIOR DEL CALENDARIO
   ----------------------------- */

/* .calendar-hero now uses .city-hero parallax from ciudad.css — overrides only */
.calendar-hero {
  background: none;
  border-bottom: none;
  padding: 0;
  text-align: left;
}

.calendar-hero-inner {
  /* Hereda max-width:1200px + margin:auto de .section-container — no sobreescribir */
}

.calendar-hero h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.calendar-hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 26px;
}

/* port select inside hero — white variant */
.calendar-hero .calendar-city-select label {
  color: #fff;
}

/* -----------------------------
   SELECTOR DE CIUDAD
   ----------------------------- */

.calendar-city-select {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.calendar-city-select label {
  font-weight: 600;
  color: #1a1a1a;
}

.calendar-city-select select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cfd8e6;
  font-size: 1rem;
  background: #ffffff;
  cursor: pointer;
  transition: 0.2s;
}

.calendar-city-select select:hover {
  border-color: #0055ff;
}

/* =========================================================
   SECCIÓN PRINCIPAL DEL CALENDARIO
   ========================================================= */

.calendar-section {
  padding: 60px 0 80px;
  background: #ffffff;
}

/* TOP BAR DEL MES */

.calendar-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}

.calendar-month-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.month-nav {
  background: #f2f6ff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.month-nav:hover {
  background: #dbe7ff;
}

/* META: CIUDAD + TOTAL */

.calendar-meta {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 30px;
  font-size: 1rem;
  color: #333;
}

.calendar-meta i {
  color: #0055ff;
  margin-right: 6px;
}

#meta-city {
  font-weight: 600;
}

#meta-total {
  font-weight: 600;
}

/* =========================================================
   GRID COMPLETO DEL CALENDARIO
   ========================================================= */

.calendar-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-label {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a1a;
  padding: 10px 0;
}

#calendar-days {
  display: contents;
}

/* DÍA VACÍO */
.day-empty {
  background: #f1f3f5;
  border-radius: 10px;
  height: 80px;
}

/* DÍA NORMAL */
.calendar-day {
  background: #ffffff;
  border-radius: 12px;
  height: 90px;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a1a1a;
  transition: 0.2s;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

/* DÍA CON CRUCERO */
.calendar-day.has-cruise {
  cursor: pointer;
  border: 2px solid #cde0ff;
}

/* BOLITA */
.calendar-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 2px solid #fff;
}

/* =========================================================
   LEYENDA DE PUERTOS
   ========================================================= */

.calendar-legend {
  margin-top: 50px;
}

.calendar-legend h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #1a1a1a;
}

.legend-grid {
  max-width: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fff;
}

/* =========================================================
   MODAL — DETALLES DEL DÍA
   ========================================================= */

.calendar-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.calendar-modal.active {
  display: flex;
}

.calendar-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.calendar-modal-content {
  position: relative;
  width: 90%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 22px 26px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.2);
  z-index: 2;
}

.calendar-modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #333;
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
}

.calendar-modal-content h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.calendar-modal-content p {
  color: #555;
}

.modal-cruise-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* TARJETA DE CRUCERO DENTRO DEL MODAL */
.modal-cruise-card {
  background: #f6f9ff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.modal-cruise-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-cruise-details p {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width: 650px){
  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    height: 70px;
    padding: 8px;
  }
}

@media(max-width: 500px){
  .calendar-meta {
    flex-direction: column;
    gap: 6px;
  }

  .calendar-month-title {
    font-size: 1.6rem;
  }
}
