/* InfoIschia Hotel Detail Page Styles
   Extracted from hotel_detail.html inline styles for maintainability.
   Linked only by the hotel detail template. */

/* ============================================
   CSS VARIABLES (inherits from common.css)
   ============================================ */
:root {
    --primary: #1e3c72;
    --primary-dark: #152a4f;
    --secondary: #2a5298;
    --accent: #f5a623;
    --accent-hover: #e09000;
    --light-bg: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

html { overflow-x: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
body { overflow-x: hidden; position: relative; width: 100%; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--light-bg); }

/* Header styles are in _header.html partial — do NOT duplicate here */

/* ============================================
   HERO SECTION
   ============================================ */
.hero-image { position: relative; width: 100%; height: 550px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-badges-top { position: absolute; top: 15px; right: 15px; z-index: 10; display: flex; gap: 8px; }
.hero-badges-top .badge { font-size: 0.85rem; padding: 6px 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 3rem 0 2.2rem; color: white; }
.hero-overlay h1 { font-size: 2.5rem; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-subtitle { color: rgba(255,255,255,0.9); font-size: 0.95rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.stars { color: var(--accent); font-size: 1.2rem; }

/* View all photos button */
.hero-gallery-btn { position: absolute; bottom: 80px; right: 20px; z-index: 10; background: rgba(0,0,0,0.7); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(4px); }
.hero-gallery-btn:hover { background: rgba(0,0,0,0.9); transform: translateY(-1px); }

/* Slider */
.hero-image .carousel, .hero-image .carousel-inner, .hero-image .carousel-item { height: 100%; width: 100%; }
.hero-image .carousel-control-prev, .hero-image .carousel-control-next { width: 10%; opacity: 0.8; }
.hero-image .carousel-indicators { bottom: 40px; }
.hero-image .carousel-indicators button { width: 10px; height: 10px; border-radius: 50%; }

/* ============================================
   QUICK INFO BAR
   ============================================ */
.quick-info-bar { background: white; border-bottom: 1px solid #e9ecef; padding: 0.75rem 0; position: relative; z-index: 11; }
.quick-info-items { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.quick-info-item { display: flex; align-items: center; gap: 0.5rem; }
.quick-info-rating { background: var(--primary); color: white; font-weight: 700; font-size: 1.1rem; padding: 4px 10px; border-radius: var(--radius-sm); line-height: 1.2; }
.quick-info-rating small { font-weight: 400; font-size: 0.75rem; opacity: 0.8; }
.quick-info-icon { font-size: 1.1rem; }
.quick-info-label { font-size: 0.85rem; font-weight: 500; color: #555; }

/* ============================================
   PREMIUM BUTTON
   ============================================ */
.btn-premium { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border: none; color: white; font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 600; letter-spacing: 0.3px; box-shadow: 0 4px 18px rgba(30, 60, 114, 0.35); transition: all 0.3s ease; }
.btn-premium:hover { background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%); box-shadow: 0 6px 24px rgba(30, 60, 114, 0.45); transform: translateY(-2px); color: white; }
.btn-premium:active { transform: translateY(0); }

/* ============================================
   BOOKING BOX
   ============================================ */
.booking-main { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2rem; margin-top: 1.5rem; position: relative; z-index: 10; }
.price-big { font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; }
.price-big small { font-size: 1.2rem; font-weight: 400; color: #666; }
.summary-box { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: var(--radius-md); padding: 1.5rem; }

/* ============================================
   OPTION CARDS (Room, Treatment, Accommodation)
   ============================================ */
.option-card { border: 2px solid #e9ecef; border-radius: var(--radius-md); padding: 1rem; margin-bottom: 0.75rem; cursor: pointer; transition: all 0.2s; }
.option-card:hover { border-color: var(--primary); background: #f8f9fa; }
.option-card.selected { border-color: var(--primary); background: #e8f4fc; box-shadow: 0 0 0 1px var(--primary); }
.option-card input[type="radio"] { display: none; }
.option-card .price-tag { font-weight: 700; color: var(--accent); }

/* Room card enhancement */
.room-option-card { padding: 0.85rem 1rem; }
.room-option-card .room-card-name { font-size: 0.95rem; word-wrap: break-word; line-height: 1.3; }
.room-option-card .room-features { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.room-option-card .room-feature { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; color: #666; background: #f0f4f8; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.room-option-card .room-feature i { font-size: 0.65rem; color: var(--secondary); }
.room-option-card.selected .room-feature { background: #d4e6f7; color: var(--primary); }
.room-option-card.selected .room-feature i { color: var(--primary); }
.room-badge-best { font-size: 0.7rem; padding: 4px 8px; white-space: nowrap; flex-shrink: 0; }
.room-supplement-tag { font-weight: 700; color: var(--accent); font-size: 0.9rem; white-space: nowrap; flex-shrink: 0; }

/* Legacy room-features compat */
.option-card .room-features { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.option-card .room-feature { display: inline-flex; align-items: center; gap: 3px; font-size: 0.75rem; color: #888; background: #f0f0f0; padding: 2px 8px; border-radius: 20px; }

/* ============================================
   TRANSPORT
   ============================================ */
.city-search-wrapper { position: relative; }
#cityResults { position: absolute; top: 100%; left: 0; right: 0; z-index: 100; max-height: 250px; overflow-y: auto; }
#cityResults .list-group-item { cursor: pointer; }
#cityResults .list-group-item:hover { background: #f0f0f0; }
.transport-option { border: 2px solid #e9ecef; border-radius: 10px; padding: 1rem; margin-bottom: 0.5rem; cursor: pointer; transition: all 0.2s; }
.transport-option:hover { border-color: #28a745; }
.transport-option.selected { border-color: #28a745; background: #e8f5e9; }

/* ============================================
   INFO CARDS
   ============================================ */
.info-card { background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.5rem; margin-bottom: 1.2rem; transition: box-shadow 0.2s; }
.info-card:hover { box-shadow: var(--shadow-md); }
.info-card h5 { color: var(--primary); margin-bottom: 1rem; font-size: 1.1rem; font-weight: 700; }
.included-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.9rem; line-height: 1.3; }
.included-item i { color: #28a745; font-size: 0.85rem; }

/* ============================================
   ACCENT BUTTON
   ============================================ */
.btn-accent { background: var(--accent); border: none; color: white; font-weight: 600; padding: 1rem 2rem; font-size: 1.1rem; border-radius: 10px; transition: all 0.2s; }
.btn-accent:hover { background: var(--accent-hover); color: white; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(245,166,35,0.4); }

/* ============================================
   AMENITIES GRID
   ============================================ */
.amenities-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.amenity-item { display: flex; flex-direction: column; align-items: center; width: 80px; text-align: center; }
.amenity-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 8px; transition: transform 0.2s; background: var(--primary); color: #fff; }
.amenity-icon:hover { transform: scale(1.15); background: var(--secondary); box-shadow: 0 4px 12px rgba(30, 60, 114, 0.4); }
.amenity-label { font-size: 0.75rem; color: #333; font-weight: 600; line-height: 1.2; }

/* Amenities show more/less */
.amenities-grid.collapsed .amenity-item:nth-child(n+9) { display: none; }
.amenities-toggle { background: none; border: 1px solid #dee2e6; color: var(--primary); font-size: 0.85rem; font-weight: 600; padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: all 0.2s; margin-top: 12px; }
.amenities-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ============================================
   HOTEL DESCRIPTION (Markdown)
   ============================================ */
.hotel-description p { margin-bottom: 0.75rem; }
.hotel-description p:last-child { margin-bottom: 0; }
.hotel-description ul, .hotel-description ol { margin-bottom: 0.75rem; padding-left: 1.5rem; }
.hotel-description h1, .hotel-description h2, .hotel-description h3 { margin-top: 1rem; margin-bottom: 0.5rem; font-size: 1.1rem; }

/* ============================================
   GALLERY
   ============================================ */
/* Legacy grid (kept for compat) */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery-thumb { position: relative; border-radius: var(--radius-sm); overflow: hidden; height: 100px; display: block; cursor: pointer; }
.gallery-thumb-large { grid-column: span 2; height: 160px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-thumb-overlay i { color: white; font-size: 1.5rem; opacity: 0; transition: opacity 0.3s; }
.gallery-thumb:hover .gallery-thumb-overlay { background: rgba(0,0,0,0.3); }
.gallery-thumb:hover .gallery-thumb-overlay i { opacity: 1; }
.gallery-thumb-more { position: absolute; inset: 0; background: rgba(0,0,0,0.6); color: white; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Gallery v2 — Larger thumbnails, hotel-style grid */
.gallery-grid-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery-thumb-v2 { position: relative; border-radius: var(--radius-sm); overflow: hidden; height: 130px; display: block; cursor: pointer; }
.gallery-thumb-featured { grid-column: span 2; height: 200px; }
.gallery-thumb-v2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-thumb-v2:hover img { transform: scale(1.05); }
.gallery-thumb-v2 .gallery-thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-thumb-v2 .gallery-thumb-overlay i { color: white; font-size: 1.5rem; opacity: 0; transition: opacity 0.3s; }
.gallery-thumb-v2:hover .gallery-thumb-overlay { background: rgba(0,0,0,0.25); }
.gallery-thumb-v2:hover .gallery-thumb-overlay i { opacity: 1; }
.gallery-thumb-v2 .gallery-thumb-more { position: absolute; inset: 0; background: rgba(0,0,0,0.55); color: white; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }

/* Gallery lightbox modal */
.gallery-lightbox .modal-content { background: rgba(0,0,0,0.95); border: none; border-radius: 0; }
.gallery-lightbox .modal-body { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 0; }
.gallery-lightbox .modal-body img { max-height: 85vh; max-width: 100%; object-fit: contain; }
.gallery-lightbox .btn-close { position: absolute; top: 15px; right: 15px; z-index: 10; filter: invert(1); opacity: 0.8; }
.gallery-lightbox .btn-close:hover { opacity: 1; }
.gallery-lightbox .gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: white; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(4px); }
.gallery-lightbox .gallery-nav:hover { background: rgba(255,255,255,0.3); }
.gallery-lightbox .gallery-nav.prev { left: 15px; }
.gallery-lightbox .gallery-nav.next { right: 15px; }
.gallery-lightbox .gallery-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; }
.gallery-lightbox .gallery-thumbnails { display: flex; gap: 4px; justify-content: center; padding: 12px 0; overflow-x: auto; }
.gallery-lightbox .gallery-thumbnails img { width: 60px; height: 40px; object-fit: cover; border-radius: 4px; opacity: 0.5; cursor: pointer; transition: opacity 0.2s; }
.gallery-lightbox .gallery-thumbnails img.active { opacity: 1; outline: 2px solid white; }

/* ============================================
   STICKY BARS
   ============================================ */
.sticky-booking-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050; background: white; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); padding: 12px 16px; border-top: 1px solid #eee; transition: transform 0.3s ease; }
.sticky-booking-bar.hidden { transform: translateY(100%); }

@media (min-width: 769px) { .sticky-price-bar { display: none !important; } }
.sticky-price-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1060; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); padding: 10px 16px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -4px 24px rgba(0,0,0,0.25); transition: transform 0.3s ease; }
.sticky-price-bar.hidden { transform: translateY(100%); }
.sticky-price-bar .sticky-price-info { display: flex; flex-direction: column; min-width: 0; }
.sticky-price-bar .sticky-price-amount { font-size: 1.8rem; font-weight: 800; color: white; letter-spacing: 0.5px; line-height: 1.1; }
.sticky-price-bar .sticky-price-detail { font-size: 0.7rem; color: rgba(255,255,255,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.sticky-price-bar .sticky-btn { background: var(--accent); color: white; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.sticky-price-bar .sticky-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ============================================
   CONTACT BUTTONS
   ============================================ */
.contact-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; border-radius: var(--radius-md); padding: 12px 14px; transition: all 0.2s; gap: 8px; }
.contact-btn i { font-size: 1.3rem; flex-shrink: 0; }
.contact-btn-label { font-size: 0.75rem; color: #666; line-height: 1; }
.contact-btn-value { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.contact-btn-phone { background: white; border: 2px solid var(--primary); }
.contact-btn-phone i { color: var(--primary); }
.contact-btn-phone .contact-btn-value { color: var(--primary); }
.contact-btn-phone:hover { background: #f0f4f8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30, 60, 114, 0.15); }
.contact-btn-whatsapp { background: #25D366; border: 2px solid #25D366; }
.contact-btn-whatsapp i { color: white; }
.contact-btn-whatsapp .contact-btn-label { color: rgba(255,255,255,0.85); }
.contact-btn-whatsapp .contact-btn-value { color: white; }
.contact-btn-whatsapp:hover { background: #20b858; border-color: #20b858; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }

/* CTA main button pulse animation */
.cta-main-btn { position: relative; overflow: hidden; }
.cta-main-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%); transform: translateX(-100%); animation: ctaShimmer 3s ease-in-out infinite; }
@keyframes ctaShimmer { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }

/* ============================================
   CALENDAR (Flatpickr)
   ============================================ */
.calendar-container { background: white; border-radius: var(--radius-md); padding: 1.5rem; }
.flatpickr-calendar { box-shadow: none !important; width: 100% !important; }
.flatpickr-months { margin-bottom: 10px; }
.flatpickr-day { border-radius: 50%; margin: 2px; height: 40px; line-height: 40px; }
.flatpickr-day.available-arrival { background: #e8f5e9 !important; border: 2px solid #4caf50 !important; }
.flatpickr-day.available-arrival:hover { background: #c8e6c9 !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--primary) !important; border-color: var(--primary) !important; }
.flatpickr-day.inRange { background: #e3f2fd !important; border-color: #e3f2fd !important; }
.flatpickr-day.flatpickr-disabled { color: #ccc !important; text-decoration: line-through; }
.flatpickr-day.valid-checkout { background: #e3f2fd !important; border-color: #2196f3 !important; }
.flatpickr-day.valid-checkout:hover { background: #bbdefb !important; }
.flatpickr-day.checkout-invalid { background: #ffebee !important; }
.flatpickr-day .day-price { font-size: 9px; color: #28a745; font-weight: 600; display: block; line-height: 1; margin-top: -2px; }
.flatpickr-day.available-arrival { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 40px !important; line-height: 1.2 !important; }
.flatpickr-day.available-arrival .day-number { font-size: 14px; }
.flatpickr-day.selected .day-price, .flatpickr-day.startRange .day-price, .flatpickr-day.endRange .day-price { color: white !important; }
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; }
.legend-dot.available { background: #4caf50; }
.legend-dot.selected { background: var(--primary); }
.legend-dot.unavailable { background: #ccc; }

/* Inline calendar in modal */
.inline-calendar .calendar-container { max-width: 100%; margin: 0 auto; padding: 5px; overflow-x: hidden; }
.inline-calendar .flatpickr-calendar { margin: 0 auto; }
.inline-calendar .flatpickr-months { padding: 8px 0 12px 0; display: flex !important; }
.inline-calendar .flatpickr-month { font-size: 1rem; flex: 1; }
.inline-calendar .flatpickr-innerContainer { display: flex !important; gap: 20px; justify-content: center; }
.inline-calendar .flatpickr-rContainer { width: auto !important; }
.inline-calendar .flatpickr-weekdaycontainer { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; width: 100% !important; margin-bottom: 6px; }
.inline-calendar .flatpickr-weekday { width: auto !important; max-width: none !important; font-size: 0.75rem; font-weight: 600; text-align: center; }
.inline-calendar .dayContainer { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; width: 100% !important; justify-items: center !important; min-width: unset !important; max-width: 100% !important; }
.inline-calendar .flatpickr-days { width: auto !important; }
.inline-calendar .flatpickr-day { height: 42px !important; width: 42px !important; max-width: 42px !important; flex-basis: 42px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; }
.inline-calendar .flatpickr-day .day-number { font-size: 1.1rem; font-weight: 600; display: block !important; width: 100% !important; text-align: center !important; }
.inline-calendar .flatpickr-day .day-price { font-size: 9px !important; color: #28a745; display: block !important; width: 100% !important; text-align: center !important; }
.inline-calendar .flatpickr-day.inRange,
.inline-calendar .flatpickr-day.selected,
.inline-calendar .flatpickr-day.startRange,
.inline-calendar .flatpickr-day.endRange { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; }

/* ============================================
   CTA BOTTOM SECTION
   ============================================ */
.cta-bottom-section { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding: 2.5rem 1rem; margin-top: 2rem; border-top: 1px solid #dee2e6; }

/* Footer — override base.html generic footer styles */
footer.site-footer { margin-top: 0; }

/* Mobile offcanvas styles are in _header.html partial — do NOT duplicate here */

/* ============================================
   WIZARD MODAL
   ============================================ */
#wizardModal .modal-dialog { max-width: 550px; }
#wizardModal .wizard-room-card { border: 1px solid #e0e0e0; border-radius: var(--radius-md); padding: 15px; margin-bottom: 15px; background: white; }
#wizardModal .wizard-room-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#wizardModal .wizard-counter { display: flex; align-items: center; gap: 8px; }
#wizardModal .wizard-counter button { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
#wizardModal .wizard-counter .count { min-width: 30px; text-align: center; font-weight: bold; }
#wizardModal .btn-warning { background: var(--accent); border-color: var(--accent); color: white; }
#wizardModal .btn-warning:hover { background: #e8951e; border-color: #e8951e; }
#wizardModal .btn-warning:disabled { background: #ccc; border-color: #ccc; cursor: not-allowed; opacity: 0.5; }

/* Stepper controls */
.wizard-stepper-row { display: flex; align-items: center; gap: 12px; }
.wizard-stepper-group { flex: 1; }
.wizard-stepper-group label { font-size: 0.8rem; color: #666; margin-bottom: 4px; display: block; }
.stepper-control { display: flex; align-items: center; gap: 0; border: 1px solid #dee2e6; border-radius: var(--radius-sm); overflow: hidden; }
.stepper-control button { width: 44px; height: 44px; border: none; background: #f8f9fa; font-size: 1.1rem; font-weight: 700; color: var(--primary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.stepper-control button:hover:not(:disabled) { background: #e9ecef; }
.stepper-control button:disabled { color: #ccc; cursor: not-allowed; }
.stepper-control .stepper-value { min-width: 40px; text-align: center; font-weight: 700; font-size: 1rem; color: var(--primary); }
.wizard-ages-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.wizard-ages-row select { width: auto; min-width: 90px; }
.wizard-room-price-estimate { font-size: 0.85rem; color: #666; padding-top: 8px; border-top: 1px solid #f0f0f0; margin-top: 10px; }
.wizard-room-price-estimate .price-value { font-weight: 700; color: var(--accent); }
.wizard-remaining { background: #e3f2fd; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; margin-bottom: 16px; }
.wizard-remaining.all-assigned { background: #e8f5e9; color: #2e7d32; }
.wizard-remaining.has-error { background: #fce4ec; color: #c62828; }

/* Room group cards */
.room-group-card .card-header { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; }
.room-group-card .occupant-display { display: flex; align-items: center; gap: 15px; padding: 10px; background: #f8f9fa; border-radius: var(--radius-sm); margin-bottom: 15px; }
.room-group-card .occupant-item { display: flex; align-items: center; gap: 6px; }
.room-group-card .occupant-count { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.room-group-card .occupant-label { font-size: 0.9rem; color: #666; }
.btn-remove-room { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; border-radius: 50%; }
.btn-remove-room:hover { color: white; background: rgba(255,255,255,0.15); }

/* Distribution summary */
.distribution-summary { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 16px; }
.distribution-summary .room-line { font-size: 0.9rem; color: #555; padding: 2px 0; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .hero-image { height: 380px; }
    .hero-overlay h1 { font-size: 1.6rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
    .hero-subtitle { font-size: 0.8rem; }
    .hero-overlay { padding: 2rem 0 2rem; }
    .booking-main { margin-top: 1rem; }
    .booking-main .text-muted.mb-1 { font-size: 1.1rem !important; }
    .booking-main .badge { font-size: 0.95rem !important; padding: 8px 14px !important; }
    .quick-info-items { gap: 1rem; }
    .quick-info-label { font-size: 0.8rem; }
    .hero-gallery-btn { bottom: 70px; right: 12px; font-size: 0.8rem; padding: 6px 12px; }

    /* Calendar */
    .flatpickr-calendar .flatpickr-months .flatpickr-month { font-size: 18px !important; }
    .flatpickr-calendar .flatpickr-day { font-size: 16px !important; height: 42px !important; line-height: 42px !important; }
    .flatpickr-calendar .flatpickr-weekday { font-size: 14px !important; }

    /* Booking selects */
    #adultsSelect, #childrenSelect { font-size: 13px !important; padding: 0.4rem 0.5rem !important; width: 70px !important; }
    #childAgesInputs select { max-width: 55px !important; font-size: 13px !important; padding: 0.25rem 0.5rem !important; }

    /* Inline calendar mobile */
    .inline-calendar .dayContainer { width: 100% !important; min-width: unset !important; max-width: 100% !important; justify-content: space-around !important; }
    .inline-calendar .flatpickr-innerContainer { gap: 0 !important; flex-direction: column !important; }
    .inline-calendar .flatpickr-weekdaycontainer { justify-content: space-around !important; }
    .inline-calendar .flatpickr-weekday { width: auto !important; max-width: none !important; flex: 1 !important; flex-basis: auto !important; }
    .inline-calendar .flatpickr-current-month { font-size: 1.6rem !important; font-weight: 700 !important; }
    .inline-calendar .flatpickr-weekday { font-size: 0.95rem !important; font-weight: 700 !important; }
    .inline-calendar .flatpickr-day { height: 46px !important; width: 46px !important; max-width: 46px !important; flex-basis: 46px !important; margin: 0px !important; font-size: 1.2rem !important; font-weight: 600 !important; }
    .inline-calendar .flatpickr-day .day-number { font-size: 1.2rem; font-weight: 600; }
    .inline-calendar .flatpickr-day .day-price { font-size: 9px !important; }

    /* iOS auto-zoom prevention */
    select, input[type="text"], input[type="number"], input[type="search"],
    input[type="email"], input[type="tel"], textarea { font-size: 16px !important; }
}

/* Small phone */
@media (max-width: 576px) {
    .amenity-item { width: 70px; }
    .amenity-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .amenities-grid { gap: 12px; }
    .amenity-label { font-size: 0.7rem; }

    /* Gallery v2 mobile */
    .gallery-thumb-featured { height: 160px; }
    .gallery-thumb-v2 { height: 100px; }

    /* Room cards mobile — hide variant/amenity badges, fix badge overlap */
    .room-option-card .room-features { display: none; }
    .room-option-card .room-card-name { font-size: 0.88rem; }
    .room-badge-best { font-size: 0.6rem; padding: 3px 6px; }

    /* Sticky price bar mobile */
    .sticky-price-bar .sticky-price-amount { font-size: 1.5rem; }
    .sticky-price-bar .sticky-price-detail { max-width: 120px; }

    /* Wizard bottom-sheet */
    #wizardModal .modal-dialog { margin: 0; max-width: 100%; min-height: auto; position: fixed; bottom: 0; left: 0; right: 0; transform: translateY(0); }
    #wizardModal .modal-content { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 85vh; overflow-y: auto; }
    #wizardModal .modal-body { padding: 12px; }
    .wizard-stepper-row { gap: 8px; }
    .stepper-control button { width: 48px; height: 48px; font-size: 1.2rem; }
    .wizard-ages-row select { min-width: 80px; height: 44px; }
    .btn-remove-room { min-width: 44px; min-height: 44px; }

    /* Booking popup bottom-sheet */
    #bookingPopup .modal-dialog { margin: 0; max-width: 100%; position: fixed; bottom: 0; left: 0; right: 0; }
    #bookingPopup .modal-content { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; }
    #bookingPopup .modal-header { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

    /* Quote modal bottom-sheet */
    #quoteModal .modal-dialog { margin: 0; max-width: 100%; position: fixed; bottom: 0; left: 0; right: 0; }
    #quoteModal .modal-content { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; }
}

/* iOS safe area for fixed bars */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .sticky-booking-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    .sticky-price-bar { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
}

/* ============================================
   iOS MOBILE FIXES
   ============================================ */

/* Bottom spacer — prevent footer from being hidden behind sticky bar */
.v2-footer { padding-bottom: 80px; }

/* Suppress iOS tap highlight */
a, button, .option-card, .transport-option, .gallery-thumb, .gallery-thumb-v2 {
    -webkit-tap-highlight-color: transparent;
}

/* iOS momentum scroll inside modals */
.modal-body { -webkit-overflow-scrolling: touch; }

/* Prevent iOS rubber-band overscroll when modal is open */
body.modal-open { overscroll-behavior: none; }

/* Touch targets — ensure minimum 44px for interactive elements on mobile */
@media (max-width: 768px) {
    .option-card { min-height: 44px; }
    .amenities-toggle { min-height: 44px; padding: 10px 16px; }
    .hero-gallery-btn { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; }
    .gallery-lightbox .gallery-nav { width: 44px; height: 44px; }
    .gallery-lightbox .btn-close { width: 44px; height: 44px; }
    /* CTA buttons */
    .cta-bottom-section .btn { min-height: 48px; }
}

/* Hide WhatsApp sticky button on hotel detail page */
.whatsapp-sticky { display: none; }

/* Safe area for landscape mode (notch on sides) */
@supports (padding-left: env(safe-area-inset-left)) {
    .sticky-price-bar { padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
    .sticky-booking-bar { padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
}
