/* Booking page styles (shared by book-now.html and book-now_ro.html) */
/* Center text on mobile */
@media (max-width: 768px) {
  /* Center all list items */
  .bg-gray .col-md-4,
  .bg-gray .col-md-4 h4,
  .bg-gray .col-md-4 ul,
  .bg-gray .col-md-4 li {
    text-align: center !important;
  }
  
  /* Center icon headings */
  .bg-gray .col-md-4 h4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
  }
  
  /* Remove bullet points padding */
  .bg-gray ul.list-unstyled {
    text-align: center !important;
    padding-left: 0 !important;
  }
  
  .bg-gray ul.list-unstyled li {
    text-align: center !important;
    display: block !important;
  }
}

/* Jony Ive Inspired Minimalist Booking Form */
.booking-form-wrapper {
  padding: 0 20px;
}

.booking-form-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.5px;
  color: #000;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.4;
}

.booking-form-wrapper .form-group {
  margin-bottom: 32px;
}

.booking-form-wrapper .form-control {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  padding: 16px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: auto;
  width: 100%;
  box-sizing: border-box;
}

.booking-form-wrapper .form-control[readonly] {
  background-color: #fff;
  cursor: pointer;
}

.booking-form-wrapper .form-control:focus {
  outline: none;
  border-color: #000;
  border-width: 1.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.booking-form-wrapper .form-control::placeholder {
  color: #999;
  font-weight: 300;
  opacity: 1;
}

.booking-form-wrapper select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.booking-form-wrapper textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.booking-form-wrapper .input-group {
  display: flex;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-form-wrapper .input-group:focus-within {
  border-color: #000;
  border-width: 1.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.booking-form-wrapper .input-group .form-control {
  border: none;
  flex: 1;
  box-shadow: none;
  padding-left: 12px;
}

.booking-form-wrapper .input-group .form-control:focus {
  box-shadow: none;
  border: none;
}

.booking-form-wrapper .input-group select {
  border: none;
  border-right: 1px solid #d0d0d0;
  padding: 16px 12px;
  margin-right: 8px;
  background-color: transparent;
  width: auto;
  min-width: 90px;
  max-width: 110px;
  background-image: none;
  padding-right: 12px;
}

.booking-form-wrapper .input-group select:focus {
  outline: none;
  border-right-color: #d0d0d0;
}

.booking-submit-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
  background-color: #000;
  border: none;
  border-radius: 0;
  padding: 18px 48px;
  margin-top: 40px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  position: relative;
  overflow: hidden;
}

.booking-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.booking-submit-btn:hover {
  background-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.booking-submit-btn:hover::before {
  left: 100%;
}

.booking-submit-btn:active {
  transform: translateY(0);
}

.booking-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#reservation-message {
  padding: 15px 20px;
  border-radius: 4px;
  margin-top: 20px;
  animation: slideDown 0.3s ease-out;
}

#reservation-message.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

#reservation-message.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flatpickr Calendar Customization */
.flatpickr-calendar {
  font-family: 'Montserrat', sans-serif;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #000;
  border-color: #000;
}

.flatpickr-day.inRange {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.flatpickr-day:hover {
  background: rgba(0, 0, 0, 0.15);
}

.flatpickr-day .occupancy-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 1px auto 0;
  pointer-events: none;
}

.occupancy-dot--high { background: #28a745; }
.occupancy-dot--medium { background: #fd7e14; }
.occupancy-dot--low { background: #dc3545; }

.flatpickr-day.flatpickr-disabled.occupancy-day--sold-out {
  color: #777;
  font-weight: 700;
  font-size: 17px;
  line-height: 39px;
  opacity: 1;
}

.occupancy-legend-sold-out {
  margin: 0 4px 0 10px;
  color: #999;
  font-weight: 600;
  vertical-align: middle;
}

.flatpickr-day.selected .occupancy-dot,
.flatpickr-day.startRange .occupancy-dot,
.flatpickr-day.endRange .occupancy-dot {
  display: none;
}

.occupancy-legend {
  color: #666;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.6;
}

.occupancy-legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 4px 0 10px;
  vertical-align: middle;
}

.occupancy-legend-dot:first-child { margin-left: 0; }

/* Contact Info Sidebar - Minimalist */
.contact-info-sidebar {
  padding: 60px 40px;
  background: #fafafa;
  border-left: 1px solid #e0e0e0;
}

.contact-info-sidebar h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #000;
  margin-bottom: 24px;
  letter-spacing: 0;
}

.contact-info-sidebar p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #000;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-info-sidebar .contact-item {
  margin-bottom: 40px;
}

.contact-info-sidebar .contact-item:last-child {
  margin-bottom: 0;
}

.contact-info-sidebar .contact-item i {
  color: #000;
  margin-right: 12px;
  font-size: 16px;
}

/* Error Messages - Subtle */
.booking-form-wrapper .help-block.text-danger {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #d32f2f;
  margin-top: 8px;
  padding-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .booking-form-wrapper {
    padding: 60px 20px;
  }

  .booking-form-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .contact-info-sidebar {
    border-left: none;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
    padding: 40px 20px;
  }
}

/* Animation on load */
.booking-form-wrapper form {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Chalet Cards Selection */
.chalet-select-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 20px;
  display: block;
}

.chalet-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.chalet-card {
  position: relative;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  width: 100%;
}

.chalet-card:hover {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chalet-card.selected {
  border-color: #000;
  border-width: 2.5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.chalet-card-image {
  width: 200px;
  min-width: 200px;
  height: 140px;
  object-fit: cover;
  display: block;
}

.chalet-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chalet-card-info {
  flex: 1;
}

.chalet-card-price {
  text-align: right;
  margin-left: 20px;
}

.chalet-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.chalet-card-type {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chalet-card-price-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #999;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chalet-card-price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.chalet-card-price-nights {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin: 4px 0 0 0;
}

.chalet-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.chalet-card.selected .chalet-card-check {
  display: flex;
}

@media (max-width: 768px) {
  .chalet-card {
    flex-direction: column;
  }

  .chalet-card-image {
    width: 100%;
    height: 200px;
  }
  
  .chalet-card-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  
  .chalet-card-price {
    width: 100%;
    text-align: left;
    margin-left: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
  }
}

/* Jacuzzi Badge */
.chalet-card-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.chalet-card-badge.jacuzzi { background: #eaf3ff; color: #1e5aa8; }
.chalet-card-badge.no-jacuzzi { background: #f2f2f2; color: #666; }

/* Units-left availability line on room-type cards */
.chalet-card-availability {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #b12704;
  margin: 6px 0 0;
}

/* Party too large notice */
#party-too-large-notice {
  margin: 20px 0;
  padding: 16px 20px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  color: #6d4c00;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.vacation-voucher-card {
  margin: 12px 0 0;
  padding: 24px 20px;
  background: #d4e6c8;
  border: 1px solid #b8d4a8;
  border-radius: 12px;
  text-align: center;
}

.vacation-voucher-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 18px;
  line-height: 1;
}

.contact-info-sidebar .vacation-voucher-card__icon i,
.vacation-voucher-card__icon i {
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  display: block;
  width: 1em;
  height: 1em;
  text-align: center;
}

.vacation-voucher-card__icon i::before {
  display: block;
  line-height: 1em;
  text-align: center;
}

.vacation-voucher-card__label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8a72;
  margin-bottom: 10px;
}

.vacation-voucher-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0 0 12px;
}

.vacation-voucher-card__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #333;
  line-height: 1.65;
  margin: 0 0 16px;
}

.vacation-voucher-card__phone {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #111 !important;
  text-decoration: none;
}

.vacation-voucher-card__phone:hover,
.vacation-voucher-card__phone:focus {
  color: #111 !important;
  text-decoration: underline;
}

/* Children Ages Input Styling */
.children-age-input {
  margin-bottom: 16px;
}

.children-age-input label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.children-age-input select {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  padding: 16px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.children-age-input select:focus {
  outline: none;
  border-color: #000;
  border-width: 1.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

/* Mobile fixes for Holiday Packages */
@media (max-width: 768px) {
  /* Reduce image height on mobile to eliminate white space */
  section[style*="position: relative; padding: 100px 0"] .col-md-6 > div > div[style*="height: 300px"] {
    height: 200px !important;
  }
  
  /* Ensure buttons stack properly and are centered on mobile */
  section[style*="position: relative; padding: 100px 0"] div[style*="display: flex; gap: 15px"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  section[style*="position: relative; padding: 100px 0"] div[style*="display: flex; gap: 15px"] button {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Reduce padding in package cards on mobile */
  section[style*="position: relative; padding: 100px 0"] .col-md-6 > div > div[style*="padding: 40px"] {
    padding: 20px !important;
  }
  
  /* Fix exclusive package section on mobile */
  section[style*="position: relative; padding: 100px 0"] .col-md-10 > div[style*="background: #1a1a1a"] {
    padding: 30px 20px !important;
  }
  
  section[style*="position: relative; padding: 100px 0"] .col-md-10 div[style*="display: inline-flex"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 15px !important;
  }
  
  section[style*="position: relative; padding: 100px 0"] .col-md-10 div[style*="display: inline-flex"] button {
    width: 100% !important;
  }
}

/* Mobile fixes for Holiday Packages section */
@media (max-width: 768px) {
  /* Fix white spaces above/below holiday package images */
  section[style*="position: relative; padding: 100px 0"] .col-md-6 > div {
    margin-bottom: 30px !important;
  }
  
  /* Remove extra padding around images */
  section[style*="position: relative; padding: 100px 0"] img {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Ensure image containers have no extra space */
  section[style*="position: relative; padding: 100px 0"] div[style*="height: 300px"] {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
  }
  
  /* Center buttons properly on mobile */
  section[style*="position: relative; padding: 100px 0"] div[style*="display: flex; gap:"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  section[style*="position: relative; padding: 100px 0"] button {
    width: 100% !important;
    flex: none !important;
  }
  
  /* Reduce white space at top on mobile */
  .navbar-custom {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  
  .navbar-brand {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  
  /* Adjust section padding on mobile */
  section[style*="padding: 100px 0"] {
    padding: 60px 0 !important;
  }
}
