/* Room Card Widget Styles */
.phb-room-card-widget {
  margin: 2rem 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* Дополнительная компактность на очень узких экранах */
@media (max-width: 480px) {
  .phb-booking-form { gap: 0.6rem; }
  .phb-form-group { gap: 0.35rem; }
  .phb-form-group input,
  .phb-form-group select,
  .phb-form-group textarea { padding: 0.6rem 0.65rem; font-size: 0.95rem; }
  .phb-guest-info { margin: 0.5rem 0; padding: 0.75rem; }
  .phb-room-card-widget .phb-room-amenities { gap: 0.5rem !important; margin-bottom: 1rem !important; }
  .phb-room-card-widget .phb-room-amenities .phb-amenity { width: 34px !important; height: 34px !important; }
  .phb-room-card-widget .phb-room-amenities .phb-amenity i { font-size: 0.85rem !important; }
}

/* Dark mode — улучшенная читаемость на финальном шаге и в форме */
@media (prefers-color-scheme: dark) {
  .phb-booking-modal { background: #1f2937; color: #e5e7eb; }
  .phb-modal-header { background-color: #1E73BE }
  .phb-photo-modal-title,
  .phb-modal-title { color: #ffffff; }
  .phb-modal-subtitle { color: #d1d5db; }
  .phb-photo-modal { background: #111827; }

  .phb-form-group label { color: #e5e7eb; }
  .phb-form-group input,
  .phb-form-group select,
  .phb-form-group textarea { background: #111827; color: #e5e7eb; border-color: #374151; }
  .phb-form-group input::placeholder,
  .phb-form-group textarea::placeholder { color: #9ca3af; }

  .phb-input-with-icon .phb-input-icon { color: #9ca3af; }
  .phb-input-with-icon input, .phb-input-with-icon textarea { padding-left: 2.5rem; }
  .phb-input-with-icon .phb-input-icon { position: absolute; top: 50%; left: 0.5rem; transform: translateY(-50%); }

  .phb-guest-info { background: #111827; border-color: #374151; }
  .phb-info-label { color: #e5e7eb; }
  .phb-info-value { color: #60a5fa; }
  .phb-pets-allowed .phb-info-value { color: #fbbf24; }

  /* Блок итогов (финальный шаг) */
  .phb-price-amount { color: #86efac; }
  .phb-room-card-widget .phb-room-price { color: #e5e7eb; }
}

/* Widget Header */
.phb-widget-header {
  text-align: center;
  margin-bottom: 2rem;
}

.phb-widget-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1E73BE;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.phb-widget-description {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Room Cards Container - FLEXBOX */
.phb-room-card-widget .phb-room-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* Column Classes - FLEXBOX */
.phb-room-card-widget .phb-cols-1 {
  flex-direction: column;
}

.phb-room-card-widget .phb-cols-1 .phb-room-card {
  width: 100%;
  max-width: 600px;
}

.phb-room-card-widget .phb-cols-2 .phb-room-card {
  width: calc(50% - 1rem);
  min-width: 300px;
}

.phb-room-card-widget .phb-cols-3 .phb-room-card {
  width: calc(33.333% - 1.33rem);
  min-width: 280px;
}

.phb-room-card-widget .phb-cols-4 .phb-room-card {
  width: calc(25% - 1.5rem);
  min-width: 250px;
}

/* Individual Room Card */
.phb-room-card-widget .phb-room-card {
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.phb-room-card-widget .phb-room-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Room Photos - Swiper Integration with 1:1 aspect ratio */
.phb-room-card-widget .phb-room-photos {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  flex-shrink: 0;
}

.phb-room-card-widget .phb-photo-slider {
  height: 100%;
  position: relative;
}

.phb-room-card-widget .phb-photo-slide {
  height: 100%;
  position: relative;
}

.phb-room-card-widget .phb-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}



/* Swiper Custom Styles */
.phb-room-card-widget .swiper {
  height: 100%;
  width: 100%;
}

.phb-room-card-widget .swiper-slide {
  height: 100%;
  width: 100%;
}

.phb-room-card-widget .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   DISPLAY STYLES (grid / list)
   ======================================== */

/* List style: одна карточка в строке, центрируем и ограничиваем max-width */
.phb-room-card-widget .phb-room-cards.phb-style-list {
  flex-direction: column;
  align-items: center; /* центрируем карточки в узких контейнерах */
}

.phb-room-card-widget .phb-room-cards.phb-style-list .phb-room-card {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid/Card styles: используем CSS Grid. Elementor подставляет inline grid-template-columns — уважать его. */
.phb-room-card-widget .phb-room-cards.phb-style-grid,
.phb-room-card-widget .phb-room-cards.phb-style-card {
  display: grid;
  /* fallback на случай отсутствия inline grid-template-columns */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: stretch;
}

/* Внутри grid/card ширины карточек не фиксируем */
.phb-room-card-widget .phb-room-cards.phb-style-grid .phb-room-card,
.phb-room-card-widget .phb-room-cards.phb-style-card .phb-room-card {
  width: auto !important;
  max-width: none;
}

/* Если по каким-то причинам inline-стилей нет — используем классы кол-ва колонок */
.phb-room-card-widget .phb-room-cards.phb-style-grid.phb-cols-1,
.phb-room-card-widget .phb-room-cards.phb-style-card.phb-cols-1 { grid-template-columns: 1fr; }
.phb-room-card-widget .phb-room-cards.phb-style-grid.phb-cols-2,
.phb-room-card-widget .phb-room-cards.phb-style-card.phb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.phb-room-card-widget .phb-room-cards.phb-style-grid.phb-cols-3,
.phb-room-card-widget .phb-room-cards.phb-style-card.phb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.phb-room-card-widget .phb-room-cards.phb-style-grid.phb-cols-4,
.phb-room-card-widget .phb-room-cards.phb-style-card.phb-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Адаптив: на планшет уменьшаем количество колонок, если не переопределено inline стилем */
@media (max-width: 992px) {
  .phb-room-card-widget .phb-room-cards.phb-style-grid,
  .phb-room-card-widget .phb-room-cards.phb-style-card {
    grid-template-columns: repeat(2, 1fr) !important; /* перекрываем inline стили Elementor */
  }
}

@media (max-width: 600px) {
  /* На мобильных раскрываем список стран вверх, чтобы не выходил за нижнюю границу экрана */
  .phb-booking-modal-overlay .iti__dropdown-content,
  .phb-booking-modal-overlay .iti--container .iti__dropdown-content {
    top: auto !important;
    bottom: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
  }
  .phb-room-card-widget .phb-room-cards.phb-style-grid,
  .phb-room-card-widget .phb-room-cards.phb-style-card {
    grid-template-columns: 1fr !important; /* перекрываем inline стили Elementor */
  }
}

/* Swiper Navigation */
.phb-room-card-widget .swiper-button-next,
.phb-room-card-widget .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  color: #2c3e50;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.phb-room-card-widget .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
}

.phb-room-card-widget .swiper-button-next::after,
.phb-room-card-widget .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Hide navigation for single slide */
.phb-room-card-widget .swiper-button-next.swiper-button-disabled,
.phb-room-card-widget .swiper-button-prev.swiper-button-disabled {
  display: none !important;
}

/* Position navigation buttons */
.phb-room-card-widget .swiper-button-next {
  right: 10px;
}

.phb-room-card-widget .swiper-button-prev {
  left: 10px;
}

/* Swiper Pagination */
.phb-room-card-widget .swiper-pagination {
  bottom: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phb-room-card-widget .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 4px;
}

.phb-room-card-widget .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* Room Content - FLEXBOX */
.phb-room-card-widget .phb-room-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.phb-room-card-widget .phb-room-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1E73BE;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.phb-room-card-widget .phb-room-description {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  flex: 1;
}

/* Room Price - FLEXBOX */
.phb-room-card-widget .phb-room-price {
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Room Capacity - Guest Icons */
.phb-room-card-widget .phb-room-capacity {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.phb-room-card-widget .phb-capacity-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  white-space: nowrap;
}

.phb-room-card-widget .phb-guest-icons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.phb-room-card-widget .phb-guest-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 0;
  color: #6c757d;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.phb-room-card-widget .phb-guest-icon:hover {
  background: #e9ecef;
  color: #495057;
  transform: scale(1.1);
}

.phb-room-card-widget .phb-price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1E73BE;
}

.phb-room-card-widget .phb-price-period {
  font-size: 0.9rem;
  color: #95a5a6;
}

/* Room Amenities - FLEXBOX - HIGH SPECIFICITY */
.phb-room-card-widget .phb-room-amenities {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  margin-bottom: 1.5rem !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.phb-room-card-widget .phb-room-amenities .phb-amenity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: #f8f9fa !important;
  border-radius: 0 !important;
  color: #6c757d !important;
  transition: all 0.3s ease !important;
  cursor: help !important;
  position: relative !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.phb-room-card-widget .phb-room-amenities .phb-amenity:hover {
  background: #e9ecef !important;
  color: #495057 !important;
}

.phb-room-card-widget .phb-room-amenities .phb-amenity i {
  font-size: 1rem !important;
  display: inline !important;
  visibility: visible !important;
}

/* Fallback icons if Font Awesome fails to load */
.phb-room-card-widget .phb-room-amenities .phb-amenity i.fa-wifi::before {
  content: "📶" !important;
}

.phb-room-card-widget .phb-room-amenities .phb-amenity i.fa-tv::before {
  content: "📺" !important;
}

.phb-room-card-widget .phb-room-amenities .phb-amenity i.fa-snowflake::before {
  content: "❄️" !important;
}

.phb-room-card-widget .phb-room-amenities .phb-amenity i.fa-bath::before {
  content: "🚿" !important;
}

.phb-room-card-widget .phb-room-amenities .phb-amenity i.fa-door-open::before {
  content: "🏖️" !important;
}

.phb-room-card-widget .phb-room-amenities .phb-amenity i.fa-mountain::before {
  content: "🏔️" !important;
}

/* Room Actions - FLEXBOX */
.phb-room-card-widget .phb-room-actions {
  margin-top: auto;
  flex-shrink: 0;
}

/* Book Now Button - FLEXBOX */
.phb-room-card-widget .phb-book-now-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: #1E73BE;
  color: white;
  border: none;
  border-radius: 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.phb-room-card-widget .phb-book-now-btn:hover {
  background: #1E73BE;
}

/* .phb-room-card-widget .phb-book-now-btn:active { } removed empty rule */

/* Responsive Design - FLEXBOX */
@media (max-width: 1200px) {
  .phb-room-card-widget .phb-cols-4 .phb-room-card {
    width: calc(33.333% - 1.33rem);
  }
}

/* ========================================
   BOOKING FORM MODAL STYLES
   ======================================== */

/* Modal Overlay */
.phb-booking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  opacity: 1;
}

.phb-booking-modal-overlay.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

/* Ensure intl-tel-input dropdown is above modal and not clipped */
.phb-booking-modal-overlay .iti {
  position: relative;
  z-index: 10010;
}

/* Контейнер телефона как stacking context, чтобы select мог перекрывать .iti */
.phb-booking-modal-overlay .phb-phone-input-container { position: relative; z-index: 0; }

/* Контейнер выпадающего списка */
.phb-booking-modal-overlay .iti__dropdown-content,
.phb-booking-modal-overlay .iti--container .iti__dropdown-content {
  top: 100% !important;   /* всегда вниз */
  bottom: auto !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  margin-top: 4px;
  box-shadow: none !important; /* убрать тень */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

/* Убираем поле поиска внутри списка стран (разные версии классов) */
.phb-booking-modal-overlay .iti__search-input,
.phb-booking-modal-overlay .iti__search,
.phb-booking-modal-overlay .iti__search-input-wrapper,
.phb-booking-modal-overlay .iti__search-box {
  display: none !important;
}

/* Убираем разделитель под поиском, если есть */
.phb-booking-modal-overlay .iti__divider { display: none !important; }

/* Нативный select по умолчанию скрыт (для десктопа) */
.phb-native-country-select { display: none; }

/* Мобильный режим: показываем нативный select и отключаем интерактивность кастомного dropdown */
@media (max-width: 600px) {
  .phb-native-country-select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;   
    border-radius: 8px;
    background: #ffffff;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 8px; /* небольшой отступ над полем телефона */
    position: relative;
    z-index: 10050; /* выше .iti */
    -webkit-appearance: menulist;
    appearance: auto;
    line-height: 1.2;
  }

  /* Запрещаем открытие кастомного дропдауна кликом */
  .phb-booking-modal-overlay .iti .iti__selected-country { pointer-events: none; }
  /* На всякий случай скрываем дропдаун intl-tel-input на мобильном */
  .phb-booking-modal-overlay .iti__dropdown-content { display: none !important; }
}

/* Тёмная тема для нативного селекта */
@media (prefers-color-scheme: dark) {
  @media (max-width: 600px) {
    .phb-native-country-select {
      background: #111827;
      border-color: #374151;
      color: #e5e7eb;
    }
  }
}

/* Если JS добавил .phb-iti-open-up на .iti — открываем вверх */
.phb-booking-modal-overlay .phb-iti-open-up .iti__dropdown-content,
.phb-booking-modal-overlay .phb-iti-open-up .iti--container .iti__dropdown-content {
  top: auto !important;
  bottom: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.phb-booking-modal-overlay .iti__country-list,
.phb-booking-modal-overlay .iti--container .iti__country-list {
  z-index: 10020;
  max-height: 300px;
  overflow: auto;
  margin: 0 !important;   /* убрать внешние отступы */
  padding: 0 !important;  /* убрать внутренние отступы */
  list-style: none;
}

.phb-booking-modal-overlay .iti__country-list .iti__country { padding: 8px 12px; }
@media (max-width: 480px) {
  .phb-booking-modal-overlay .iti__country-list .iti__country { padding: 10px 12px; }
}

@media (prefers-color-scheme: dark) {
  .phb-booking-modal-overlay .iti__dropdown-content,
  .phb-booking-modal-overlay .iti--container .iti__dropdown-content {
    background: #111827;
    border-color: #374151;
  }
  .phb-booking-modal-overlay .iti__country-list .iti__country { color: #e5e7eb; }
}

/* Modal Container */
.phb-booking-modal {
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phb-booking-modal-overlay.active .phb-booking-modal {
  transform: none;
}

/* Modal Header */
.phb-modal-header {
  background-color: #1E73BE;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0;
  position: relative;
}

.phb-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

.phb-modal-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0.5rem 0 0 0;
  color: #e5e7eb;
}

.phb-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.phb-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.phb-modal-close::before,
.phb-modal-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: #ffffff;
  transform: rotate(45deg);
}

.phb-modal-close::after {
  transform: rotate(-45deg);
}

/* Modal Body */
.phb-modal-body {
  padding: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
  /* allow flex child to shrink */
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Form Styles */
.phb-booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phb-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phb-form-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.phb-form-group input,
.phb-form-group select,
.phb-form-group textarea {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  font-size: 1rem;
  background: #ffffff;
}

/* Inputs with left icon */
.phb-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.phb-input-with-icon .phb-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3af; /* muted */
  pointer-events: none;
}

.phb-input-with-icon input,
.phb-input-with-icon textarea,
.phb-input-with-icon select {
  padding-left: 44px; /* room for icon */
}

.phb-form-group input:focus,
.phb-form-group select:focus,
.phb-form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.phb-form-group input.error,
.phb-form-group select.error,
.phb-form-group textarea.error {
  border-color: #e74c3c;
}

.phb-form-group .phb-error-message {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ========================================
   CALENDAR STYLES - FLUTTER STYLE
   ======================================== */

/* Calendar Section */
.phb-calendar-section {
  margin-bottom: 1.5rem;
}

/* Calendar label removed - dates now shown in calendar header */

/* .phb-calendar-container { } removed empty rule */



/* Modern Calendar Styles - See modern-calendar.css */

/* Modern Calendar Range Styling - See modern-calendar.css */

/* Date Range Display - Removed, now shown in calendar header */

/* Calendar Error Styling */
.phb-calendar-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-align: center;
  padding: 0.5rem;
  background: #fdf2f2;
  border: 1px solid #fecaca;
  border-radius: 0;
}

/* Responsive Calendar */
@media (max-width: 768px) {
  .phb-calendar-container {
    min-height: auto;
  }
}

/* Submit Button */
.phb-form-submit {
  background-color:#1E73BE;
  color: white;
  border: none;
  padding: 0.875rem 1.25rem;
  border-radius: 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.phb-form-submit:hover {
  filter: brightness(0.97);
}

.phb-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading State */
.phb-form-submit.loading {
  position: relative;
  color: transparent;
}

.phb-form-submit.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
}

/* Animation removed for better performance */

/* Responsive Modal */
@media (max-width: 768px) {
  .phb-booking-modal-overlay {
    padding: 0;
  }

  .phb-booking-modal {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .phb-modal-header {
    border-radius: 0;
  }

  .phb-modal-body {
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    overflow: auto; /* позволяем прокрутку формы/опций на узких экранах */
    border-radius: 0;
    max-height: calc(100vh - 120px);
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    width: 100%;
    position: relative;
  }

  .phb-form-submit {
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 5;
    /* keep solid brand color in sticky mode */
    background: #0bc4d9;
    color: #ffffff;
    border-top: 1px solid rgba(233, 236, 239, 0.4);
    padding: 0.875rem 1rem;
    margin: 0;
    box-sizing: border-box;
    left: 0;
    right: 0;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .phb-room-card-widget .phb-room-cards {
    flex-direction: column;
    align-items: center;
  }

  .phb-room-card-widget .phb-cols-2 .phb-room-card,
  .phb-room-card-widget .phb-cols-3 .phb-room-card,
  .phb-room-card-widget .phb-cols-4 .phb-room-card {
    width: 100%;
    max-width: 500px;
  }

  .phb-room-card-widget .phb-widget-title {
    font-size: 2rem;
  }

  .phb-room-card-widget .phb-room-content {
    padding: 0.75rem;
  }

  .phb-room-card-widget .phb-book-now-btn {
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
  }
}

@media (max-width: 992px) {

  .phb-room-card-widget .phb-cols-3 .phb-room-card,
  .phb-room-card-widget .phb-cols-4 .phb-room-card {
    width: calc(50% - 1rem);
  }
}



@media (max-width: 480px) {
  .phb-room-card-widget .phb-widget-title {
    font-size: 1.75rem;
  }

  .phb-room-card-widget .phb-room-title {
    font-size: 1.25rem;
  }

  .phb-room-card-widget .phb-price-amount {
    font-size: 1.5rem;
  }

  .phb-room-card-widget .phb-room-amenities .phb-amenity {
    width: 35px !important;
    height: 35px !important;
  }

  .phb-room-card-widget .phb-room-amenities .phb-amenity i {
    font-size: 0.9rem !important;
  }

  .phb-room-card-widget .phb-room-cards {
    gap: 1rem;
  }

  .phb-room-card-widget .phb-room-card {
    margin-bottom: 1rem;
  }

  /* Slightly tighter padding for inputs with icon on very small screens */
  .phb-input-with-icon .phb-input-icon { left: 10px; }
  .phb-input-with-icon input,
  .phb-input-with-icon textarea,
  .phb-input-with-icon select { padding-left: 40px; }
}

/* Debug styles - remove after fixing */
.phb-room-content *,
.phb-room-price *,
.phb-room-amenities *,
.phb-room-actions * {
  display: inherit !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* No Rooms Message */
.phb-no-rooms {
  text-align: center;
  padding: 3rem;
  color: #7f8c8d;
  font-size: 1.1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

/* Photo Modal Styles */
.phb-photo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Prevent body scroll when modal is open */
body.phb-modal-open {
  overflow: hidden;
}

.phb-photo-modal-overlay.active {
  display: flex;
}

.phb-photo-modal {
  background: #ffffff;
  border-radius: 0;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phb-photo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.phb-photo-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1E73BE;
}

.phb-photo-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: all 0.2s ease;
}

.phb-photo-modal-close:hover {
  background: #e9ecef;
  color: #495057;
}

.phb-photo-modal-body {
  padding: 0;
}

.phb-photo-modal-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 70vh;
}

.phb-photo-modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* Photo enlargement cursor */
.phb-room-photo {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.phb-room-photo:hover {
  transform: scale(1.02);
}

/* Responsive photo modal */
@media (max-width: 768px) {
  .phb-photo-modal {
    max-width: 95vw;
    max-height: 95vh;
  }

  .phb-photo-modal-header {
    padding: 0.75rem 1rem;
  }

  .phb-photo-modal-title {
    font-size: 1.1rem;
  }

  .phb-photo-modal-close {
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }
}

/* Guest Information Styles */
.phb-guest-info {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0;
  border: 1px solid #e9ecef;
}

.phb-guest-info>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.phb-guest-info>div:last-child {
  border-bottom: none;
}

.phb-info-label {
  font-weight: 600;
  color: #1E73BE;
  font-size: 0.9rem;
}

.phb-info-value {
  color: #1E73BE;
  font-weight: 600;
  font-size: 0.9rem;
}

.phb-pets-allowed .phb-info-value {
  color: #1E73BE;
}

/* Responsive Design */
@media (max-width: 768px) {
  .phb-guest-info {
    padding: 0.75rem;
    margin: 0.75rem 0;
  }

  .phb-guest-info>div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}