/* ============================================================
   Amar — Mobile Responsive Fix
   ============================================================ */

/* ---------- Header mobile ---------- */
@media (max-width: 899px) {
  .header-inner {
    height: 58px;
    padding: 0 14px;
  }
  .brand img { height: 38px !important; }
  .header-actions .btn { display: none; } /* login կոճակ header-ում hide */
}

/* ---------- Hero search card mobile ---------- */
@media (max-width: 759px) {
  .hero { padding: 32px 0 64px; }

  .search-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 14px;
    gap: 10px;
    border-radius: 16px;
  }
  .search-tabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }
  .search-tabs::-webkit-scrollbar { display: none; }
  .search-tabs button {
    white-space: nowrap;
    flex: none !important;
    min-width: 120px;
    font-size: 13.5px;
  }
  .search-card .field label { font-size: 11px; margin-bottom: 4px; }
  .search-card select,
  .search-card input[type="date"] {
    min-height: 44px;
    font-size: 14px;
  }
  .search-card .btn { min-height: 46px; font-size: 15px; }
}

/* ---------- Listing detail — spec cards mobile ---------- */
@media (max-width: 640px) {
  .spec-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .spec {
    padding: 10px 12px;
    gap: 8px;
  }
  .spec i { font-size: 18px !important; }
  .spec b { font-size: 13px; }
  .spec small { font-size: 11px; }
}

/* ---------- Detail layout — stack mobile ---------- */
@media (max-width: 899px) {
  .detail-layout {
    grid-template-columns: 1fr !important;
  }
  .book-panel {
    position: static !important;
    order: -1; /* Panel վերև */
  }
}

/* ---------- Gallery mobile ---------- */
@media (max-width: 759px) {
  .gallery {
    grid-template-columns: 1fr !important;
  }
  .gallery .main { grid-row: auto !important; }
  .gallery a { aspect-ratio: 4/3 !important; }
  /* 2-5-րդ նկարները hide mobile-ում */
  .gallery a:not(.main) { display: none; }
}

/* ---------- Browse layout mobile ---------- */
@media (max-width: 899px) {
  .browse-layout {
    grid-template-columns: 1fr !important;
  }
  /* Filters collapse */
  .filters {
    display: none;
  }
  .filters.open {
    display: block;
  }
}

/* Mobile filter toggle button */
.filter-toggle {
  display: none;
}
@media (max-width: 899px) {
  .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
  }
}

/* ---------- Cards grid mobile ---------- */
@media (max-width: 480px) {
  .grid-listings {
    grid-template-columns: 1fr !important;
  }
  .card-title { font-size: 16px !important; }
  .price { font-size: 18px !important; }
}

/* ---------- Amenities mobile ---------- */
@media (max-width: 480px) {
  .amenity { font-size: 12.5px; padding: 6px 11px; }
  .amenity i { font-size: 15px; }
}

/* ---------- Booking page mobile ---------- */
@media (max-width: 899px) {
  .bk-step { padding: 16px 14px; }
  .bk-step-head h2 { font-size: 17px; }
  .pay-option { padding: 11px 13px; }
  .pay-option i { font-size: 20px; }
  .pay-name { font-size: 14px; }
}

/* ---------- Hero wave fix mobile ---------- */
@media (max-width: 640px) {
  .hero::after {
    height: 50px;
  }
}

/* ---------- Footer mobile ---------- */
@media (max-width: 759px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .contact-link {
    width: 100%;
    justify-content: flex-start;
  }
  .footer-social { margin-top: 10px; }
}

/* ---------- Section head mobile ---------- */
@media (max-width: 480px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-head h2 { font-size: 20px; }
  .see-all { font-size: 13.5px; }
}

/* ---------- Loc grid mobile ---------- */
@media (max-width: 480px) {
  .loc-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .loc-card .loc-name { font-size: 17px; }
}

/* ---------- Steps mobile ---------- */
@media (max-width: 759px) {
  .steps { grid-template-columns: 1fr !important; }
}

/* ---------- Top contact bar hide mobile ---------- */
@media (max-width: 599px) {
  .top-contact-bar { display: none; }
}

/* ---------- Hero search card date inputs fix ---------- */
.search-card input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-size: 15px;
  background: var(--white);
  font-family: var(--font-body);
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 759px) {
  .search-card {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  .search-card .field {
    width: 100%;
    box-sizing: border-box;
  }
  .search-card input[type="date"] {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px;
  }
  /* Grid-ը column-ով — ամen input ьr toghi */
  .search-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px !important;
  }
}
