/* Font Centra No2 */
@font-face {
    font-weight: bold;
}
@font-face {
    font-weight: normal;
}

body, h1, h2, h3, h4, h5, h6, p {
    font-family: 'Centra No2', sans-serif !important;
}

/* Room grid styles */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.room-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.room-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.room-card img {
  width: 100%;
  height: auto;
  display: block;
}

.room-content {
  padding: 15px;
}

.room-content h3 {
  margin-top: 0;
}

.room-features {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.room-features li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.room-features li i {
  padding-right: 8px;
}

.room-features .icon {
  margin-right: 8px;
}

.room-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.room-info {
    font-size: 0.9em;
    margin: 5px 0;
    color: #555;
}

@media (max-width: 768px) {
    .room-grid {
        flex-direction: column;
    }
}
.fa-solid {
  color: #444; /* qualsiasi colore tu voglia */
  margin-right: 6px;
}

/*SEARCH-FORM*/
.room-search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}

.room-search-form .field {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 200px;
}

.room-search-form label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}
.room-search-form input,
.room-search-form select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-width: 150px;
}
.room-search-form button {
  background-color: #2a69b8;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.room-search-form button {
  background-color: #2a69b8;
  color: white;
  border: none;
  cursor: pointer;
}
.room-search-form button i {
  margin-right: 6px;
  color: #ffffff;
}
.room-search-form button:hover {
  background-color: #333;
}
.room-search-form i {
  margin-right: 0.5rem;
}
/* Responsive form */
@media (max-width: 768px) {
  .room-search-form {
    flex-direction: column;
    align-items: stretch;
  }
}
/*Price tag*/
.room-price-box {
  background: #fff;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
  text-align: right;
}
.price-info {
  font-size: 14px;
  margin-bottom: 10px;
}
.discount-badge {
  background-color: #00a45a;
  color: #fff;
  font-size: 13px;
  padding: 8px 8px 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 5px;
}
.prices {
  font-size: 18px;
  margin: 5px 0;
}
.prices del {
  color: #999;
  margin-right: 8px;
}
.per-night {
  font-size: 13px;
  color: #555;
}
.btn-book {
  display: inline-block;
  background-color: #ffcc00;
  color: #555;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  width: 100%;
}
/* Migliora la disposizione mese + anno in flatpickr */
.flatpickr-current-month {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  font-size: 16px;
  font-weight: bold;
  gap: 5px;
}

/* Mese (dropdown) */
.flatpickr-monthDropdown-months {
  padding: 2px 8px !important;
  border: none !important;
  background: transparent !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  appearance: none !important;
}

/* Anno */
.flatpickr-current-month input.cur-year {
  border: none !important;
  background: transparent !important;
  width: 50px !important;
  text-align: left !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  padding-top: 10px !important;
}

/* Fix overflow */
.flatpickr-months .flatpickr-month {
  overflow: visible !important;
}

/* Rimuove eventuali bordi e ombre dai contenitori del mese e dell'anno */
.flatpickr-months {
  border-top: none !important;
  box-shadow: none !important;
}

.flatpickr-month {
  border-bottom: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid #dddddd !important;
    margin-bottom: 15px;
}

/* Rimuove padding/margine in eccesso se presente */
.flatpickr-monthDropdown-months,
.flatpickr-current-month {
  padding-top: 10px !important;
  margin-top: 0 !important;
}
.flatpickr-monthDropdown-months,
.flatpickr-yearDropdown-years {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  padding: 0 !important;
  padding-top: 10px !important;
  height: auto !important;
}

.flatpickr-current-month {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
}
/*Spinner loader*/
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

#page-loader.fade-out {
  opacity: 0;
}


.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*Flexible Calendar*/
/* Celle giorno responsive */
.calendar-day {
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  margin: 2px;
  text-align: center;
  font-size: 12px;
  border-radius: 50%;
  display: inline-block;
}
/* Giorni prenotati */
.calendar-day[data-booked="true"] {
  background-color: #e74c3c !important;
  color: white !important;
  opacity: 0.5;
  cursor: not-allowed;
}
/* Giorno di check-out selezionato */
.calendar-day.selected-end {
  background-color: #2a69b8 !important;
  color: white !important;
  font-weight: bold;
  border: 2px solid #155a9c;
}
/* Giorno di check-in selezionato */
.calendar-day.selected-start {
  background-color: #2a69b8 !important;
  color: white !important;
  font-weight: bold;
  border: 2px solid #155a9c;
}
/* Giorni tra check-in e check-out */
.calendar-day.in-range {
  background-color: #b3d4f7 !important;
  color: #333;
  border-radius: 0 !important;
}
.calendar-day.selected-start,
.calendar-day.selected-end {
  background-color: #2a69b8 !important;
  color: #fff !important;
}
.calendar-day.in-range {
  background-color: #b3d4fc !important;
  color: #fff !important;
}
.calendar-day.selected-start {
  border: 2px solid #2a69b8;
  background-color: #2a69b8;
}
.calendar-day.selected-end {
  border: 2px solid #28a745;
  background-color: #d4edda;
}
.calendar-modal {
  background: white;
  max-width: 600px;
  width: 90%;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  margin: auto;
}
/* Contenitore principale del calendario */
#calendar-modal-content {
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
}
/* Tabelle del calendario */
#calendar-modal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

#calendar-modal .calendar-day {
  font-size: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  border-radius: 50% !important;
}

#calendar-modal .calendar-day:hover {
  background-color: #f0f0f0;
  color: #000;
}

#calendar-modal .calendar-day[data-booked="true"] {
  background-color: #f8d7da;
  color: #ffffff;
  cursor: not-allowed;
}

#calendar-modal .calendar-day[data-booked="false"] {
  background-color: #e2f0d9;
  color: #155724;
}

#calendar-modal .calendar-day.selected-start,
#calendar-modal .calendar-day.selected-end {
  border: 2px solid #2a69b8;
  background-color: #2a69b8 !important;
  color: #ffffff;
}

#calendar-modal .calendar-day.in-range {
  background-color: #d0ebff;
  color: #ffffff;
}
.calendar-day.selected-start {
  background-color: #007bff !important;
  color: #fff !important;
  font-weight: bold;
}

.calendar-day.selected-end {
  background-color: #28a745 !important;
  color: #fff !important;
  font-weight: bold;
}

.calendar-day.in-range {
  background-color: #2a69b8 !important;
  color: #ffffff !important;
}
/* Responsive: su schermi piccoli, imposta max 5 celle per riga */
@media screen and (max-width: 480px) {
  #calendar-modal table tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  #calendar-modal table td {
    flex: 1 0 14%; /* max 7 colonne */
    max-width: 50px;
    padding: 2px;
  }

  .calendar-day {
    font-size: 11px;
    width: 32px;
    height: 32px;
    line-height: 32px;
  }

  #calendar-instructions {
    font-size: 14px;
    text-align: center;
  }
}
/*Gallery*/
.room-gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-height: 300px;
}

.room-gallery-slider .gallery-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.room-gallery-slider .slide {
  min-width: 100%;
  box-sizing: border-box;
}

.room-gallery-slider img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

