/* ==========================================================================
   Property Experts Meerut - Responsive Design Rules
   Breakpoints:
   - 1440px+ (Large Screens)
   - 1024px - 1439px (Laptops & Desktops)
   - 768px - 1023px (Tablets)
   - 320px - 767px (Mobiles)
   ========================================================================== */

/* --- Laptop & Medium Desktops (1024px - 1439px) --- */
@media (max-width: 1439px) {
  :root {
    --max-width: 1140px;
  }

  .hero-heading {
    font-size: 3.1rem;
  }

  .nav-menu-desktop {
    gap: 13px;
  }

  .nav-link {
    font-size: 0.8125rem;
    padding: 6px 0;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-logo-img {
    height: 44px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .header-actions {
    gap: 8px;
  }

  .header-post-btn {
    padding: 6px 11px;
    font-size: 0.78rem;
  }

  .header-enquiry-btn {
    padding: 6px 13px;
    font-size: 0.78rem;
  }

  .property-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .category-cards-grid {
    gap: 20px;
  }

  .category-card {
    height: 350px;
    padding: 28px 24px;
  }

  .footer-top-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1.1fr;
    gap: 30px;
  }
}

/* --- Category cards: 2 per row below 1200px --- */
@media (max-width: 1199px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Tablets & Small Laptops (768px - 1023px) --- */
@media (max-width: 1023px) {
  :root {
    --max-width: 100%;
    --header-height: 80px;
  }

  .section {
    padding: 70px 0;
  }

  /* Header */
  .nav-menu-desktop {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Hero Part 1 - Video */
  .hero-video-section {
    height: 440px;
  }

  /* Hero Part 2 - Content */
  .hero-content-section {
    padding: 44px 0 40px 0;
  }

  .hero-content-inner .hero-heading {
    font-size: 2.6rem;
  }

  /* Hero Part 3 - Search */
  .hero-search-section {
    padding: 36px 0 40px 0;
  }

  .hero-search-section .hero-search-form {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-search-section .form-group-btn {
    grid-column: span 2;
  }

  .hero-search-section .btn-search-hero {
    width: 100%;
    justify-content: center;
  }

  /* Category Cards */
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Property Grid */
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* About Section */
  .about-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Founder Section */
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .founder-img {
    height: 420px;
  }

  .founder-name-title {
    font-size: 2.2rem;
  }

  /* Explore Section */
  .explore-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .explore-horizontal-card {
    min-height: 320px;
  }

  /* Why Choose Us */
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .why-choose-col:not(:last-child)::after {
    display: none;
  }

  .why-choose-col {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* Subpages */
  .filter-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .property-details-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Mobile Phones (320px - 767px) --- */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Compact section paddings to eliminate excessive vertical scrolling */
  .section {
    padding: 34px 0;
  }

  .section-sm {
    padding: 20px 0;
  }

  .section-title {
    font-size: 1.65rem;
    margin-bottom: 6px;
  }

  .section-subtitle {
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }

  /* Header */
  .brand-logo-img {
    height: 44px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .header-actions .header-enquiry-btn {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  /* Hero Part 1 - Video */
  .hero-video-section {
    height: 340px;
    margin-top: var(--header-height);
  }

  .hero-video-controls {
    bottom: 12px;
    right: 14px;
  }

  /* Hero Part 2 - Content */
  .hero-content-section {
    padding: 34px 0 30px 0;
  }

  .hero-content-inner .hero-heading {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-content-inner .hero-title-highlight {
    padding: 4px 14px 6px 14px;
    margin-top: 6px;
    display: inline-block;
    border-width: 2px;
    max-width: 100%;
  }

  .hero-content-inner .hero-eyebrow {
    padding: 5px 12px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .hero-content-inner .hero-description {
    font-size: 0.925rem;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .hero-content-inner .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-content-inner .hero-buttons .btn,
  .hero-content-inner .hero-buttons .btn-outline-dark {
    width: 100%;
    padding: 11px 18px;
    font-size: 0.875rem;
    justify-content: center;
  }

  /* Hero Part 3 - Search */
  .hero-search-section {
    padding: 28px 0 32px 0;
  }

  .hero-search-section .hero-search-box {
    padding: 16px 14px;
  }

  .hero-search-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-search-title {
    font-size: 1.15rem;
    margin-bottom: 0;
  }

  .hero-search-subtitle {
    font-size: 0.75rem;
  }

  .hero-search-section .hero-search-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-search-section .form-group-btn {
    grid-column: span 1;
  }

  .hero-search-section .btn-search-hero {
    width: 100%;
    justify-content: center;
  }

  /* Category Cards: 2 in one row on mobile */
  .category-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    height: 190px;
    padding: 14px 10px;
    border-radius: var(--radius-md);
  }

  .category-card-badge {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
  }

  .category-card-badge svg {
    width: 15px;
    height: 15px;
  }

  .category-card-title {
    font-size: 1.05rem;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .category-card-text {
    font-size: 0.72rem;
    margin-bottom: 6px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-card-cta {
    font-size: 0.72rem;
  }

  /* Property Grid & Cards: 2 products in 1 line on mobile */
  .property-grid,
  .listing-results .property-grid,
  #homepagePropertiesGrid,
  #propertiesCatalogGrid,
  #featuredPropertiesGrid,
  #residentialPropertiesGrid,
  #commercialPropertiesGrid,
  #similarPropertiesGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 8px !important;
  }

  .property-card {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(11, 29, 42, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FFFFFF;
  }

  .property-image-container {
    aspect-ratio: 4 / 3;
    height: 125px;
    max-height: 135px;
  }

  .property-badge-featured {
    top: 6px;
    left: 6px;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 5px;
    letter-spacing: 0.5px;
    border-radius: 3px;
  }

  .property-badge-purpose {
    bottom: 6px;
    left: 6px;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
  }

  .property-card-badges-bottom {
    bottom: 6px;
    right: 6px;
    gap: 3px;
  }

  .property-photo-count-badge {
    font-size: 0.58rem;
    padding: 2px 4px;
    gap: 2px;
    border-radius: 3px;
  }

  .property-photo-count-badge svg {
    width: 10px;
    height: 10px;
  }

  .property-video-badge {
    font-size: 0.58rem;
    padding: 2px 4px;
    gap: 2px;
    border-radius: 3px;
  }

  .property-video-badge svg {
    width: 8px;
    height: 8px;
  }

  .property-favorite-btn {
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
  }

  .property-favorite-btn svg {
    width: 13px;
    height: 13px;
  }

  .property-content {
    padding: 8px 7px 10px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .property-meta-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
  }

  .property-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
  }

  .property-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2em;
  }

  .property-location {
    font-size: 0.7rem;
    gap: 3px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .property-location svg {
    width: 11px;
    height: 11px;
  }

  .property-specs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    margin-bottom: 6px;
    font-size: 0.64rem;
    border-top: 1px dashed rgba(11, 29, 42, 0.08);
    border-bottom: 1px dashed rgba(11, 29, 42, 0.08);
  }

  .property-spec-item {
    gap: 2px;
    font-size: 0.64rem;
  }

  .property-spec-item svg {
    width: 10px;
    height: 10px;
  }

  .property-spec-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42px;
  }

  .property-footer {
    margin-top: auto;
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .property-price-box {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .property-price-label {
    font-size: 0.58rem;
  }

  .property-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--navy-darkest);
  }

  .btn-view-details {
    width: 100%;
    text-align: center;
    padding: 5px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 3px;
    background: var(--navy-dark);
  }

  /* Subcategories Pills in Subpages */
  .area-pill {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }

  /* About Section */
  .about-section-grid {
    gap: 24px;
  }

  .about-heading {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .about-paragraph {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .trust-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trust-feature-card {
    padding: 10px 10px;
    gap: 8px;
  }

  .trust-icon-circle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .trust-icon-circle svg {
    width: 16px;
    height: 16px;
  }

  .trust-feature-info h4 {
    font-size: 0.82rem;
    margin-bottom: 2px;
  }

  .trust-feature-info p {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .about-experience-badge {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
  }

  .about-experience-badge .badge-number {
    font-size: 1.35rem;
  }

  /* Founder Section */
  .founder-section {
    padding: 34px 0;
  }

  .founder-header-block {
    gap: 9px;
    margin-bottom: 18px;
    align-items: flex-start;
  }

  .founder-img {
    height: 260px;
  }

  .founder-name-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .founder-credential-pill {
    font-size: 0.8125rem;
    padding: 5px 12px;
  }

  .founder-exp-pill {
    font-size: 0.8125rem;
    padding: 5px 12px;
  }

  .founder-tags-row {
    gap: 8px;
  }

  .founder-role {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .founder-exp-highlight {
    padding: 10px 14px;
    margin-bottom: 18px;
  }

  .founder-exp-badge {
    font-size: 0.925rem;
  }

  .founder-exp-sub {
    font-size: 0.775rem;
  }

  .founder-section-heading {
    font-size: 1.2rem;
  }

  .founder-pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .founder-pillar-card {
    padding: 8px 4px;
    text-align: center;
  }

  .founder-pillar-title {
    font-size: 0.8rem;
  }

  .founder-image-badge {
    padding: 8px 12px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .founder-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .founder-actions-row .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 9px 16px;
    font-size: 0.875rem;
  }

  /* Explore Section */
  .explore-horizontal-card {
    min-height: 200px;
    padding: 18px 16px;
  }

  .explore-card-title {
    font-size: 1.35rem;
  }

  /* Why Choose Us: 2 in one row on mobile */
  .why-choose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .why-choose-col {
    padding: 14px 12px;
  }

  .why-icon-box {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .why-icon-box svg {
    width: 20px;
    height: 20px;
  }

  .why-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .why-desc {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* CTA Section */
  .cta-section {
    padding: 34px 0;
  }

  .cta-box {
    padding: 26px 18px;
  }

  .cta-heading {
    font-size: 1.65rem;
    margin-bottom: 8px;
  }

  .cta-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .cta-buttons-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .cta-buttons-row .btn {
    width: 100%;
    padding: 10px 18px;
  }

  /* Compact 2-Column Mobile Footer */
  .footer-main {
    padding-top: 32px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
    padding-bottom: 22px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .footer-logo {
    height: 38px;
    margin-bottom: 10px;
  }

  .footer-brand-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .footer-social-links {
    gap: 8px;
    margin-bottom: 4px;
  }

  .social-icon-btn {
    width: 34px;
    height: 34px;
  }

  .footer-col-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-bottom: 4px;
  }

  .footer-nav-list li {
    margin-bottom: 6px;
  }

  .footer-nav-list a {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .footer-contact-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-contact-item {
    gap: 8px;
    margin-bottom: 0;
  }

  .footer-contact-item a,
  .footer-contact-item span {
    font-size: 0.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 8px;
    font-size: 0.775rem;
  }

  .footer-legal-links {
    justify-content: center;
    gap: 12px;
  }

  /* Floating Buttons */
  .floating-whatsapp-btn {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }

  .back-to-top-btn {
    bottom: 74px;
    right: 20px;
    width: 38px;
    height: 38px;
  }

  /* Subpages Compact Hero */
  .page-hero-banner {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 22px;
  }

  .page-hero-title {
    font-size: 1.75rem;
    margin-bottom: 6px;
  }

  .page-hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .breadcrumbs {
    font-size: 0.8rem;
  }

  .listing-status-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .listing-status-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .listing-sort-box {
    flex: 1;
    justify-content: flex-end;
  }

  .listing-sort-box .filter-select {
    padding: 6px 10px;
    font-size: 0.8125rem !important;
  }

  .detail-title {
    font-size: 1.6rem;
  }

  .detail-price-badge {
    font-size: 1.55rem;
  }

  .detail-quick-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px;
    gap: 10px;
  }

  .gallery-thumbnails-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .gallery-view-all-btn {
    bottom: 8px;
    right: 8px;
    font-size: 0.75rem;
    padding: 6px 12px;
    gap: 5px;
  }

  .lightbox-backdrop {
    padding: 10px 8px;
  }

  .lightbox-header {
    padding: 4px 6px 6px;
  }

  .lightbox-prop-title {
    font-size: 0.95rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lightbox-counter {
    font-size: 0.72rem;
    padding: 2px 6px;
  }

  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-rail-thumb {
    width: 54px;
    height: 40px;
  }

  .amenities-list-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form-card, .contact-info-card {
    padding: 22px 16px;
  }

  .modal-window {
    max-width: 95vw;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-body {
    padding: 16px 14px;
  }

  .details-table th, .details-table td {
    padding: 8px 6px;
    font-size: 0.8125rem;
    word-break: break-word;
  }

  .details-table th {
    width: 45%;
  }

  /* Prevent iOS zoom on input focus */
  .filter-input, .filter-select, .form-control-wrapper select, textarea.filter-input {
    font-size: 16px !important;
  }

  .legal-content-card {
    padding: 22px 16px;
  }

  /* Universal Subpage Filter Rows & Panels on Mobile */
  .filter-grid-row,
  .filter-grid-row-secondary {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .filter-panel-box {
    padding: 18px 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }

  .explore-cards-grid > div {
    padding: 22px 16px !important;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* ==========================================================================
     POST YOUR PROPERTY PAGE — MOBILE ENHANCEMENTS (max-width: 767px)
     ========================================================================== */
  .post-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .filter-panel-box.post-form-panel {
    padding: 20px 15px !important;
    margin-bottom: 0 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 18px rgba(7, 24, 39, 0.06) !important;
  }

  .post-panel-title {
    font-size: 1.15rem !important;
    margin-bottom: 14px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(11, 29, 42, 0.08) !important;
  }

  .post-form-panel .filter-grid-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .post-span-2,
  .post-span-all {
    grid-column: auto !important;
  }

  .post-form-panel .form-group {
    width: 100% !important;
  }

  .post-form-panel .filter-label {
    font-size: 0.8125rem !important;
    margin-bottom: 4px !important;
    display: block !important;
  }

  .post-form-panel .filter-input,
  .post-form-panel .filter-select,
  .post-form-panel textarea.filter-input {
    width: 100% !important;
    padding: 11px 12px !important;
    font-size: 16px !important;
    border-radius: var(--radius-sm) !important;
  }

  .post-form-panel textarea.filter-input {
    min-height: 84px !important;
  }

  /* Multi-photo upload dropzone on mobile */
  .photo-upload-container {
    margin: 8px 0 16px !important;
  }

  .photo-upload-dropzone {
    padding: 20px 14px !important;
    border-radius: var(--radius-sm) !important;
    gap: 6px !important;
  }

  .photo-dropzone-icon {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 2px !important;
  }

  .photo-dropzone-title {
    font-size: 0.925rem !important;
    line-height: 1.3 !important;
  }

  .photo-dropzone-sub {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }

  .photo-preview-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .photo-cover-badge {
    font-size: 0.58rem !important;
    padding: 1px 4px !important;
  }

  .photo-remove-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
  }

  .upload-progress-wrap {
    padding: 10px 12px !important;
    margin-top: 12px !important;
  }

  .post-consent {
    font-size: 0.775rem !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
  }

  .post-form-panel .filter-actions-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  .post-form-panel .filter-actions-group .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
  }

  /* Live Listing Preview Card on Mobile — Beautiful full-width card */
  .post-aside {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    margin-top: 8px !important;
  }

  .post-preview-head {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }

  .post-preview-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 18px rgba(7, 24, 39, 0.06) !important;
    overflow: hidden !important;
  }

  .post-preview-card .post-preview-image {
    height: 170px !important;
    max-height: 190px !important;
    aspect-ratio: 16 / 9 !important;
  }

  .post-preview-card .property-content {
    padding: 14px 14px 16px !important;
  }

  .post-preview-card .property-meta-tags {
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  .post-preview-card .property-tag {
    font-size: 0.7rem !important;
    padding: 2px 7px !important;
  }

  .post-preview-card .property-title {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    min-height: auto !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 6px !important;
  }

  .post-preview-card .property-location {
    font-size: 0.8125rem !important;
    margin-bottom: 10px !important;
    white-space: normal !important;
  }

  .post-preview-card .property-location svg {
    width: 14px !important;
    height: 14px !important;
  }

  .post-preview-card .property-specs {
    padding: 8px 0 !important;
    font-size: 0.775rem !important;
    margin-bottom: 12px !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }

  .post-preview-card .property-spec-item {
    font-size: 0.775rem !important;
    gap: 5px !important;
  }

  .post-preview-card .property-spec-item svg {
    width: 13px !important;
    height: 13px !important;
  }

  .post-preview-card .property-spec-item span {
    max-width: none !important;
    overflow: visible !important;
  }

  .post-preview-card .property-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 4px !important;
  }

  .post-preview-card .property-price-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
  }

  .post-preview-card .property-price-label {
    font-size: 0.65rem !important;
  }

  .post-preview-card .property-price {
    font-size: 1.15rem !important;
  }

  .post-preview-card .btn-view-details {
    display: none !important;
  }

  /* What happens next steps box */
  .post-steps {
    margin-top: 18px !important;
    padding: 16px 14px !important;
    border-radius: var(--radius-md) !important;
  }

  .post-steps-title {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }

  .post-steps ol {
    padding-left: 20px !important;
    font-size: 0.825rem !important;
    line-height: 1.45 !important;
  }

  .post-steps li {
    margin-bottom: 6px !important;
  }

  /* Post Success Card on Mobile */
  .post-success {
    padding: 10px 0 !important;
  }

  .post-success p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }

  .post-success .btn,
  .post-success a.btn-whatsapp {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* --- Extra Small Mobiles (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.8rem;
  }

  .page-hero-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-search-box {
    padding: 16px 14px;
  }

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

  .gallery-thumbnails-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .founder-brands-list {
    gap: 6px 8px;
  }

  .founder-brand-pill {
    font-size: 0.8125rem;
    padding: 3px 8px;
  }

  .page-btn {
    width: 36px;
    height: 36px;
    font-size: 0.825rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 10px;
  }
}

/* Reduced Motion Preference Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Header & Post Property Laptop / Tablet Styles --- */
@media (max-width: 1439px) {
  .nav-menu-desktop {
    gap: 14px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-post-btn {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }

  .post-form-panel .filter-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1279px) {
  .brand-name {
    display: none;
  }
}

@media (max-width: 1199px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .post-aside {
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .post-form-panel .filter-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1099px) {
  .nav-menu-desktop {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .post-aside {
    max-width: 100%;
  }

  .post-span-2 {
    grid-column: span 2;
  }

  .post-form-panel .filter-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .header-post-btn {
    display: none;
  }
}

/* Header keeps the full-width container so the nav + buttons fit on laptops */
.container.header-inner {
  max-width: 1320px;
}

/* --- Listing pages: sidebar search --- */
@media (max-width: 1439px) {
  .listing-results .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Between 1024px and 1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
  .listing-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
  }

  .listing-results .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .land-deals-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* --- Listing Pages: Mobile & Tablet Off-Canvas Side Search Drawer (< 1024px) --- */
@media (max-width: 1023px) {
  .listing-layout {
    grid-template-columns: 1fr;
    display: block;
  }

  .btn-filter-drawer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--navy-dark);
    color: #FFFFFF;
    border: 1px solid var(--gold);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(11, 29, 42, 0.15);
    white-space: nowrap;
    transition: all var(--transition-fast);
  }

  .btn-filter-drawer-toggle:hover {
    background: var(--gold);
    color: var(--navy-dark);
  }

  .btn-filter-drawer-toggle svg {
    stroke: var(--gold);
  }

  .btn-filter-drawer-toggle:hover svg {
    stroke: var(--navy-dark);
  }

  .floating-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    left: 18px;
    z-index: 990;
    background: var(--navy-dark);
    color: #FFFFFF;
    border: 1px solid var(--gold);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(11, 29, 42, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .floating-filter-btn:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
  }

  .floating-filter-btn svg {
    stroke: var(--gold);
  }

  .floating-filter-btn:hover svg {
    stroke: var(--navy-dark);
  }

  .filter-drawer-close-btn {
    display: flex;
  }

  .listing-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    background: #FFFFFF !important;
    z-index: 1250 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 6px 0 35px rgba(11, 29, 42, 0.3) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    display: block !important;
  }

  .listing-sidebar.drawer-active {
    transform: translateX(0) !important;
  }

  .listing-sidebar .filter-panel-box {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 22px 18px 36px !important;
    background: #FFFFFF !important;
    margin-bottom: 0 !important;
    min-height: 100% !important;
  }

  .listing-sidebar .filter-grid-row,
  .listing-sidebar .filter-grid-row-secondary {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .listing-sidebar .filter-actions-group {
    margin-top: 14px !important;
    gap: 8px !important;
  }

  .listing-results .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .land-card-col-6,
  .land-card-col-4 {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .category-card-wide {
    padding: 20px 14px;
  }

  .land-deals-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .land-deals-list {
    grid-template-columns: 1fr;
    padding: 12px 14px 12px 28px;
    font-size: 0.8rem;
    gap: 6px;
  }

  /* Land Grid 5: 2 products in 1 line on mobile */
  .land-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 18px;
  }

  .land-card-col-6,
  .land-card-col-4 {
    grid-column: span 1 !important;
  }

  .land-card-item:nth-child(5) {
    grid-column: 1 / -1 !important;
  }

  .land-card-img-wrap,
  .land-card-col-6 .land-card-img-wrap {
    height: 125px !important;
  }

  .land-badge-pill {
    top: 6px;
    left: 6px;
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  .land-badge-type {
    top: 6px;
    right: 6px;
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  .land-card-body {
    padding: 9px 8px 10px !important;
  }

  .land-card-title {
    font-size: 0.82rem !important;
    line-height: 1.25;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2em;
  }

  .land-card-loc {
    font-size: 0.7rem !important;
    gap: 3px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .land-card-loc svg {
    width: 11px;
    height: 11px;
  }

  .land-card-features {
    gap: 3px 4px;
    margin-bottom: 6px;
  }

  .land-feature-tag {
    font-size: 0.62rem;
    padding: 1px 5px;
    border-radius: 2px;
  }

  .land-card-footer {
    padding-top: 5px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .land-card-price-label {
    font-size: 0.58rem;
  }

  .land-card-price {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .land-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .btn-land-details,
  .btn-land-enquire {
    padding: 4px 4px;
    font-size: 0.68rem;
    text-align: center;
    justify-content: center;
    width: 100%;
    border-radius: 3px;
  }
}


