/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Custom child theme for Astra
Author: Sumit Bisht 
Author URI: https://example.com/
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/*
 * Add your custom CSS below.
 */
/**
 * Plugin Name: Property Listings & Map Layout
 * Description: Custom Post Type, Metaboxes, Filters, and Interactive Map Sync matching the layout.
 */



/* ==========================================================================
   EXACT TOP FILTER BAR STYLING (HORIZONTAL ROW)
   ========================================================================== */

.prop-filter-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    background: transparent !important;
}

/* 1. Toggle Switch (PG/Hostels vs Flats) */
.filter-toggle-pill {
    display: inline-flex !important;
    background: #eefaf9 !important;
    border: 1.5px solid #5ac4be !important;
    border-radius: 40px !important;
    padding: 3px !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.filter-toggle-btn {
    border: none !important;
    background: transparent !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2b2b2b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.filter-toggle-btn.active {
    background: #5ac4be !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(90, 196, 190, 0.3) !important;
}

/* 2. Custom Select Pill Wrap (Fixes full-width select issue) */
.filter-select-wrap {
    position: relative !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.filter-select-pill {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 30px !important;
    padding: 9px 36px 9px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer !important;
    outline: none !important;
    width: auto !important; /* Prevents stretching to 100% */
    min-width: 130px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.filter-select-pill:hover, 
.filter-select-pill:focus {
    border-color: #5ac4be !important;
}

/* Arrow Icon inside Pill */
.filter-select-wrap::after {
    content: '⌵' !important;
    font-size: 12px !important;
    font-weight: bold !important;
    color: #64748b !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-55%) !important;
    pointer-events: none !important;
}

/* 3. Divider Line */
.filter-divider {
    width: 1px !important;
    height: 28px !important;
    background: #cbd5e1 !important;
    margin: 0 6px !important;
    flex-shrink: 0 !important;
}

/* 4. More Filters Button */
.filter-more-btn {
    border: 1px solid #e2e8f0 !important;
    border-radius: 30px !important;
    padding: 9px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.filter-more-btn:hover {
    border-color: #5ac4be !important;
}

/* 5. Sort By Wrap (Far Right) */
.filter-sort-wrap {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f8fafc !important;
    padding: 6px 16px !important;
    border-radius: 30px !important;
    flex-shrink: 0 !important;
}

.filter-sort-label {
    font-size: 14px !important;
    color: #64748b !important;
    white-space: nowrap !important;
}

.filter-sort-select-wrap {
    position: relative !important;
    display: inline-block !important;
}

.filter-sort-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #5ac4be !important;
    cursor: pointer !important;
    outline: none !important;
    padding-right: 18px !important;
}

.filter-sort-select-wrap::after {
    content: '⌵' !important;
    font-size: 11px !important;
    color: #5ac4be !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

/*new*/
/* ==========================================================================
   PROPERTY FILTERS STYLESHEET
   ========================================================================== */

.prop-main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

/* DESKTOP FILTER BAR */
.prop-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  background: #fff;
  padding: 10px 0;
  position: relative;
  z-index: 10;
}

.filter-toggle-pill {
  display: inline-flex;
  background: #eaf7f6;
  border: 1.5px solid #5ac4be;
  border-radius: 30px;
  padding: 3px;
  align-items: center;
}

.filter-toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  color: #2b2b2b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-toggle-btn.active {
  background: #5ac4be;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(90, 196, 190, 0.4);
}

.filter-select-wrap {
  position: relative;
}

.filter-select-pill {
  border: 1px solid #e2e8f0;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  width: 100%;
}

.filter-select-wrap::after {
  content: "˅";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #64748b;
  pointer-events: none;
}

.filter-more-btn {
  border: 1px solid #e2e8f0;
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
}

.filter-sort-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 4px 14px;
  border-radius: 25px;
}

.filter-sort-label {
  font-size: 13px;
  color: #64748b;
}

.filter-sort-select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #5ac4be;
  cursor: pointer;
  outline: none;
}

/* MOBILE FLYOUT PANEL */
.mobile-filter-trigger-btn {
  display: none;
  width: 100%;
  padding: 12px 18px;
  background: #5ac4be;
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-flyout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: all 0.3s ease-in-out;
}

.mobile-flyout-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-flyout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mobile-flyout-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.mobile-flyout-close {
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}

.mobile-flyout-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-flyout-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-flyout-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

.mobile-flyout-footer {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
}

.mobile-apply-btn {
  flex: 2;
  background: #5ac4be;
  color: #ffffff;
  border: none;
  padding: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
}

.mobile-reset-btn {
  flex: 1;
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

/* CARDS & LAYOUT */
.prop-layout-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.prop-cards-col {
  flex: 1.25;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prop-map-col {
  flex: 0.75;
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  min-height: 550px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #eef1f5;
}

#prop-interactive-map {
  width: 100%;
  height: 100%;
}

.e-card {
  display: flex;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #eef1f5;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.e-card:hover,
.e-card.active-card {
  border-color: #5ac4be;
  box-shadow: 0 10px 25px rgba(90, 196, 190, 0.15);
}

.e-img-box {
  width: 280px;
  min-width: 280px;
  height: 200px;
  overflow: hidden;
}

.e-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e-details-box {
  flex: 1;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.e-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.e-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.e-subloc {
  font-size: 12px;
  color: #8391a5;
  margin-top: 3px;
}

.e-gender-pill {
  background: #f1f5f9;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.e-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.e-price-label {
  font-size: 11px;
  color: #8391a5;
}

.e-price-val {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.e-price-val span {
  font-size: 12px;
  color: #334155;
}

.no-results-msg {
  padding: 30px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .prop-filter-bar {
    display: none;
  }
  .mobile-filter-trigger-btn {
    display: flex;
  }
  .prop-layout-container {
    flex-direction: column-reverse;
  }
  .prop-map-col {
    width: 100%;
    height: 280px;
    position: static;
    min-height: 280px;
  }
  .e-card {
    flex-direction: column;
  }
  .e-img-box {
    width: 100%;
    min-width: 100%;
  }
}


.e-visitor-bar {
	display:none;
}

/*new */
/* --- DESKTOP ONLY (Hide on Mobile & Tablet) --- */
@media screen and (max-width: 1024px) {
    .main-menu {
        display: none !important;
    }
	.footer-desk{display: none !important;
    }
	.slide-heading {
    font-size: 33px !important;

}
	.prop-map-col{
		display:none;
	}
}

/* --- MOBILE & TABLET ONLY (Hide on Desktop) --- */
@media screen and (min-width: 1025px) {
    .mobi-menu {
        display: none !important;
    }
	
	.footer-mobi{
		display: none !important;
    }
		
	}
}
}

/*new */
