/* ============================================
   ICONAIRBNB - Responsive Styles
   ============================================ */

/* ---------- XL: 1400px+ ---------- */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* ---------- LG: 992px - 1199px ---------- */
@media (max-width: 1199.98px) {
  .listing-results { max-width: 55%; padding: 1.5rem; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px;
  }
  .gallery-main { grid-row: 1 / 2; grid-column: 1 / 3; }
}

/* ---------- MD: 768px - 991px ---------- */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 56px;
    --header-height: 72px;
  }

  .header-nav { display: none; }
  .header-actions .book-now-link { display: none; }
  .header-actions .lang-selector { padding: 0 0.625rem; }

  .hero-section { min-height: 75vh; }
  .hero-title { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
  .hero-subtitle { font-size: var(--font-size-md); }

  .search-bar-wrapper {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    padding: 0.75rem;
  }
  .search-field {
    flex: 0 0 50%;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 0.625rem 1rem;
  }
  .search-field:nth-child(2) { border-right: none; }
  .search-field:nth-child(3),
  .search-field:nth-child(4) { border-bottom: none; }
  .search-btn {
    position: absolute;
    right: 1rem;
    bottom: -24px;
    width: 48px;
    height: 48px;
  }

  .listing-layout { flex-direction: column; }
  .listing-results { max-width: 100%; }
  .listing-map { height: 300px; position: relative; top: auto; }
  .real-map-overlay { top: 0.75rem; left: 0.75rem; max-width: calc(100% - 5.5rem); }
  .map-topbar { top: 0.75rem; left: 0.75rem; right: 0.75rem; }
  .map-bottom-card { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .map-compass { top: 4.75rem; right: 0.75rem; }

  .listing-property-card { flex-direction: column; }
  .listing-img-wrap { width: 100%; min-width: auto; height: 240px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
  }

  .review-summary { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .managed-by-card { flex-direction: column; }

  .booking-card {
    position: static;
    margin-top: 1.5rem;
  }

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .section-title { font-size: var(--font-size-2xl); }
}

/* ---------- SM: 576px - 767px ---------- */
@media (max-width: 767.98px) {
  :root {
    --section-padding: 40px;
    --header-height: 72px;
    --header-height-scrolled: 72px;
  }

  body { padding-bottom: 72px; }

  .header-inner { padding: 0 1rem; }
  .header-logo-image {
    height: 36px;
    max-width: 150px;
  }
  .header-actions .lang-selector-label,
  .header-actions .lang-selector-chevron {
    display: none;
  }
  .header-actions .lang-selector {
    width: 40px;
    padding: 0;
  }
  .header-actions > .position-relative {
    display: none;
  }

  .hero-section { min-height: 65vh; }
  .hero-content { padding: 4rem 0 2rem; }

  .search-bar-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
  }
  .search-field {
    flex: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0.625rem 0.75rem;
  }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn {
    position: static;
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    margin: 0.5rem 0 0;
  }

  .category-item { min-width: 64px; font-size: 0.7rem; }
  .category-item i { font-size: 1.125rem; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 180px 180px;
  }
  .gallery-main { grid-row: 1 / 2; grid-column: 1 / 2; }

  .collection-card { height: 280px; }

  .mobile-bottom-nav { display: block; }

  .auth-card { padding: 1.5rem; }

  .section-title { font-size: var(--font-size-xl); }
  .carousel-header { gap: 1rem; }
  .carousel-view-all { font-size: var(--font-size-xs); }
  .home-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.75rem;
  }

  .confirmation-icon { width: 64px; height: 64px; font-size: 2rem; }

  .stat-number { font-size: var(--font-size-3xl); }

  .destination-card img { height: 200px; }
  .destination-card-lg img { height: 240px; }
}

/* ---------- XS: below 576px ---------- */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 32px;
  }

  .hero-section { min-height: 55vh; }
  .hero-title { font-size: 1.625rem; }
  .hero-subtitle { font-size: var(--font-size-sm); margin-bottom: 1.5rem; }

  .property-card-img-wrap { aspect-ratio: 4/3; }
  .home-property-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-rows: 200px 140px 140px;
  }

  .booking-card { padding: 1rem; }

  .listing-map { height: 340px; }
  .real-map-overlay strong { max-width: 150px; }
  .map-topbar strong { max-width: 150px; }
  .map-bottom-card { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .real-map-price-marker span { min-width: 52px; padding: 0.4rem 0.6rem; }
  .map-price-pin { min-width: 52px; padding: 0.4rem 0.6rem; }

  .review-score { font-size: 2.5rem; }

  .footer-brand { font-size: var(--font-size-lg); }

  .filter-option-grid { grid-template-columns: 1fr; }

  .contact-info-item { flex-direction: column; gap: 0.5rem; }

  .confirmation-details .confirmation-row { flex-direction: column; gap: 0.25rem; }

  .earnings-calculator { padding: 1.25rem; }
}

/* ---------- Touch device adjustments ---------- */
@media (hover: none) {
  .property-card:hover { transform: none; }
  .property-card:hover .property-card-img-wrap img { transform: none; }
  .destination-card:hover { transform: none; }
  .destination-card:hover img { transform: none; }
  .collection-card:hover { transform: none; }
  .collection-card:hover img { transform: none; }
}
