/**
 * GSH Developers Real Estate Marketplace
 * Responsive Styles: Mobile Drawer, Bottom Bar & Touch Layouts
 */

@media (max-width: 1024px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }

  .gsh-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gsh-hero-headline {
    font-size: 38px;
  }

  .search-fields-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-field-action {
    grid-column: span 2;
  }

  .about-flex-layout {
    flex-direction: column;
  }

  .gsh-search-layout {
    flex-direction: column;
  }

  .gsh-single-grid {
    flex-direction: column;
  }

  .gsh-single-sidebar-col {
    width: 100%;
  }

  .contact-page-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .gsh-topbar {
    display: none;
  }

  .gsh-header-inner {
    height: 70px;
  }

  .gsh-hero-section {
    padding: 50px 0 70px 0;
  }

  .gsh-hero-headline {
    font-size: 30px;
  }

  .gsh-hero-subtext {
    font-size: 15px;
  }

  .search-fields-grid {
    grid-template-columns: 1fr;
  }

  .search-field-action {
    grid-column: span 1;
  }

  .gsh-properties-grid {
    grid-template-columns: 1fr;
  }

  .single-prop-title-row {
    flex-direction: column;
    gap: 15px;
  }

  .single-price-box {
    text-align: left;
    width: 100%;
  }

  .single-hero-img {
    height: 280px;
  }

  .gsh-specs-ribbon {
    grid-template-columns: 1fr 1fr;
  }

  .specs-table-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .cta-action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .gsh-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gsh-footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding-bottom: 70px; /* Space for mobile bottom bar */
  }

  .gsh-floating-wa {
    bottom: 80px; /* Elevated above bottom action bar */
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .gsh-compare-floating-bar {
    bottom: 60px;
  }

  /* MOBILE FILTER DRAWER */
  .gsh-filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    z-index: 10001;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
  }

  .gsh-filter-sidebar.open {
    left: 0;
  }

  .sidebar-header.mobile-only {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gsh-gray-200);
  }

  .drawer-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--gsh-navy);
  }

  .tools-quick-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* MOBILE STICKY BOTTOM ACTION BAR */
.gsh-mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFFFFF;
  border-top: 1px solid var(--gsh-gray-200);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  display: flex;
  z-index: 9999;
}

.mob-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--gsh-navy);
  gap: 2px;
}

.mob-action-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.mob-action-btn.btn-call {
  background: var(--gsh-navy);
  color: #fff;
}

.mob-action-btn.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.mob-action-btn.btn-inquiry,
.mob-action-btn.btn-search {
  background: var(--gsh-gold);
  color: var(--gsh-navy);
}

/* MOBILE DRAWER NAVIGATION */
.gsh-mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.gsh-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gsh-navy);
  border-radius: 2px;
}

.gsh-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  z-index: 10002;
  box-shadow: -5px 0 25px rgba(0,0,0,0.2);
  transition: right 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.gsh-mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--gsh-gray-200);
}

.drawer-title {
  font-family: var(--gsh-font-heading);
  font-weight: 800;
  color: var(--gsh-navy);
  font-size: 16px;
}

.drawer-content {
  padding: 20px;
  flex: 1;
}

.drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-nav-list li a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--gsh-navy);
  padding: 6px 0;
}

.drawer-contact-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--gsh-gray-200);
}

.drawer-contact-info p {
  margin: 4px 0 14px 0;
  font-size: 13px;
  color: var(--gsh-gray-500);
}

.drawer-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-btn, .wa-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--gsh-radius-sm);
  font-weight: 700;
  font-size: 13px;
}

.phone-btn { background: var(--gsh-navy); color: #fff; }
.wa-btn { background: #25D366; color: #fff; }

.gsh-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: none;
}

.gsh-drawer-backdrop.show {
  display: block;
}

.gsh-mobile-filter-trigger {
  background: var(--gsh-navy);
  color: #fff;
  border: none;
  border-radius: var(--gsh-radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
