/* Десктоп — карта и список рядом */
@media (min-width: 769px) {
  .mobile-filter-button {display:none !important}
  .map-wrapper {
    display: flex;
  }
  #map {
    flex: 2;
    height: 100vh;
  }
  #listingsPanel {
    flex: 1;
    position: static;
    transform: none;
    height: auto;
    box-shadow: none;
  }
  .mobile-only {
    display: none;
  }
  .menu-toggle{display:none}
}

/* Мобильный — карта на весь экран, список скрыт */
@media (max-width: 768px) {
  .mobile-filter-button{
    width:60px !important;
    height:auto !important;
    background: linear-gradient(90deg, #ff6b35, #ff9f1c);
    font-weight: 700;
    color: white !important;
  }
  #resultCount{
    display:none;
  }
  .layout{
    display:block !important;
    width: 100%;
    padding: 0px;
    font-size: 12px;
  }
  .navlinks {
    display: none !important;
    flex-direction: column;
    gap: 10px;
  }
  .navlinks.open {
    display: flex !important;
    flex-direction: row;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
  }
  .navlinks a, .navlinks .hello{
    margin-left:0px !important;
  }
  #map {
    height: 100vh;
  }
  #listingsPanel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 60%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: bottom 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  #listingsPanel.open {
    bottom: 0;
  }
  .panel-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
  }
  #listingsList {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
  }
  .mobile-only {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 20px;
    background: #4f7cff;
    color: black;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
  }
  .listing-img{
    height:100% !important;
  }
  .topbar .container{
    padding:0px !important;
  }
  .navlinks a, .navlinks .hello{
    font-size:12px !important;
  }
}

