@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static !important;
  }
}

/* Inner-page search box width on large screens */
@media (min-width: 992px) {
  .search-box-inner-page {
    max-width: 78%;
  }
}

@media (max-width: 991.98px) {
  main.main-with-nav-offset {
    padding-top: 72px;
  }
}

@media (max-width: 767.98px) {
  main.main-with-nav-offset {
    padding-top: 64px;
  }
}

@media (min-width: 992px) {
  main.main-with-nav-offset {
    padding-top: 125px;
  }
}

/* ── Header / navigation (align with Bootstrap navbar-expand-lg) ── */
@media (max-width: 991.98px) {
  .mainMenuFor .navbarToggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .mainMenuFor .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    transform: none !important;
  }

  .mainMenuFor .dropdown-menu.dashboard-header {
    left: 0 !important;
    right: auto !important;
    min-width: 100%;
  }

  .mainMenuFor .navbar-brand img {
    height: 38px !important;
    max-width: 180px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .mainMenuFor .navbar-brand img {
    height: 42px !important;
  }
}

/* ── Search boxes — fluid widths on tablet/desktop ── */
@media (max-width: 1199.98px) {
  .protyListingview .searchBoxOnBanner {
    max-width: 100% !important;
    width: 100% !important;
  }

  .protyListingview .searchBoxOnBanner .inpSearchType input[type="text"],
  .protyListingview .searchBoxOnBanner .inpSearchCountry input[type="text"],
  .protyListingview .searchBoxOnBanner .inpSearchType input,
  .protyListingview .searchBoxOnBanner .inpSearchCountry select,
  .varticlyCenter .protyListingview .searchBoxOnBanner .inpSearchType input[type="text"],
  .varticlyCenter .protyListingview .searchBoxOnBanner .inpSearchCountry input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .protyListingview .searchBoxOnBanner .inSigleRow {
    flex-wrap: wrap;
  }

  .protyListingview .searchBoxOnBanner .imageWidRedioBtn,
  .protyListingview .searchBoxOnBanner .imageWidRedioBtn .d-inline-block {
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .protyListingview .searchBoxOnBanner .inSigleRow {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .protyListingview .searchBoxOnBanner .inpSearchCountry,
  .protyListingview .searchBoxOnBanner .inpSearchType,
  .protyListingview .searchBoxOnBanner .imageWidRedioBtn,
  .protyListingview .searchBoxOnBanner .moreoption {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #eee !important;
    margin: 0 !important;
  }

  .protyListingview .searchBoxOnBanner .inpSearchBtn {
    width: 100% !important;
  }

  .protyListingview .searchBoxOnBanner .inpSearchBtn .searchBtn {
    width: 100% !important;
    height: 44px !important;
    border-radius: 0 0 6px 6px !important;
  }

  .protyListingview .searchBoxOnBanner #searchForm {
    padding: 12px !important;
  }

  .searchBoxOnBanner .form-wrapper button {
    width: 100% !important;
    margin-top: 0 !important;
  }
}

/* ── Inner-page banners (properties, brokers) ── */
@media (max-width: 991.98px) {
  .forInnerPage {
    height: auto !important;
    min-height: 360px;
    padding-bottom: 24px;
  }

  .bannerArea.forInnerPage .varticlyCenter {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 72px 16px 20px;
    width: 100%;
  }

  .bannerArea.forInnerPage .protyListingview .searchBoxOnBanner {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .forInnerPage {
    min-height: 320px;
  }

  .bannerArea.forInnerPage .varticlyCenter {
    padding: 64px 12px 16px;
  }
}

/* Fix legacy rule that made mobile banners taller */
@media (max-width: 600px) {
  .forInnerPage {
    height: auto !important;
    min-height: 300px !important;
  }
}

/* ── Home hero ── */
@media (max-width: 991.98px) {
  .forVideoSaeg {
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .bannerArea.forVideoSaeg .varticlyCenter {
    position: relative !important;
    top: auto !important;
    padding: 100px 16px 40px;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .forVideoSaeg {
    min-height: 85vh;
    min-height: 85dvh;
  }

  .bannerArea.forVideoSaeg .varticlyCenter {
    padding: 88px 12px 32px;
  }

  .varticlyCenter .welComeTextForRemp h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  .varticlyCenter .welComeTextForRemp h2 {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
}

/* ── Services / legacy page-img-header banners ── */
@media (max-width: 991.98px) {
  .page-img-header {
    width: 100% !important;
    height: auto !important;
    min-height: 280px;
    padding: 72px 16px 24px;
    justify-content: flex-start !important;
  }

  .page-banner-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    margin-bottom: 16px;
  }

  .new-search-filter {
    position: relative !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .new-search-filter form,
  .new-search-filter .d-md-flex {
    width: 100%;
    flex-direction: column !important;
  }

  .new-search-filter .inpSearchCountry,
  .new-search-filter .inpSearchType,
  .new-search-filter .imageWidRedioBtn,
  .new-search-filter .search {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 8px;
  }

  .new-search-filter #countryName,
  .new-search-filter .search input,
  .new-search-filter select {
    width: 100% !important;
  }

  .new-search-filter .form-submit {
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .page-img-header {
    min-height: 260px;
    padding-top: 64px;
  }

  .page-banner-title {
    font-size: 24px !important;
  }
}

/* ── Listing pages (brokers, services) ── */
@media (max-width: 991.98px) {
  .listing-wrap {
    padding: 48px 0 !important;
  }

  .broker-listing .broker-outer-img-wrap {
    height: 280px;
  }
}

@media (max-width: 767.98px) {
  .listing-wrap {
    padding: 32px 0 !important;
  }

  .broker-listing .broker-outer-img-wrap {
    height: 240px;
  }

  .broker-listing .broker_outer_detail_wrap {
    bottom: 0;
    position: relative;
  }
}

/* ── Property listing grid ── */
@media (max-width: 767.98px) {
  ul.listOPropertyes {
    grid-template-columns: 1fr !important;
  }

  .property-list-body .titleIndVisSe h4 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  ul.listOPropertyes {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Property detail ── */
@media (max-width: 991.98px) {
  .properyDeepDetail .propertyDetailTable table,
  .porertyDocument .propertyDetailTable table {
    width: 100% !important;
    max-width: 100% !important;
  }

  #map_canvas {
    width: 100% !important;
    max-width: 100% !important;
  }

  .porertyDocument .propDetailsLeft {
    width: 100% !important;
    max-width: 100% !important;
  }

  .auction-popup {
    width: 100% !important;
    max-width: 320px;
    left: 50% !important;
    transform: translateX(-50%);
  }

  .broker-detail-page-wrap {
    padding: 80px 24px !important;
  }

  .propartyDetailPage {
    padding-top: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .broker-detail-page-wrap {
    padding: 64px 16px !important;
  }

  .broker-img-wrap {
    height: 280px !important;
  }

  .card-body-wrap {
    padding: 24px !important;
  }
}

/* ── Forms & contact ── */
@media (max-width: 1280px) {
  .form-card {
    margin-inline: 0 !important;
    padding: 40px 24px !important;
  }
}

@media (max-width: 767.98px) {
  .form-card {
    padding: 24px 16px !important;
  }

  .form-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .newsletter-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }

  .newsletter-content-wrap {
    padding: 24px 16px !important;
  }

  .newsletter-heading {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .office-detail,
  .contact-form-wrap {
    padding: 32px 16px !important;
  }
}

/* ── Pagination ── */
@media (max-width: 767.98px) {
  .pagiNaston {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
  }

  .pagiNaston .panel-title {
    float: none !important;
    width: 100%;
  }

  .pagiNaston .panel-heading {
    float: none !important;
    width: 100%;
    margin-left: 0 !important;
  }

  .pagiNaston .btn-group {
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ── Footer ── */
@media (max-width: 767.98px) {
  footer .aboutCompay p {
    width: 100% !important;
  }

  .bottamFoter .row > [class*="col-"] {
    justify-content: center !important;
    text-align: center;
    margin-bottom: 12px;
  }

  .bottamFoter .social-media {
    justify-content: center !important;
  }

  .copyright-text {
    text-align: center;
  }
}

/* ── Tabs / nav wrap fix ── */
@media (max-width: 767.98px) {
  .nav-tabs,
  .wizard_steps,
  .btn-group#paginations {
    flex-wrap: wrap !important;
  }
}

/* ── More filters dropdown (properties) ── */
@media (max-width: 991.98px) {
  .protyListingview .searchBoxOnBanner .morecontent {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    box-shadow: none !important;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-top: 8px;
    padding: 12px !important;
  }
}

/* ── Homepage sections ── */
@media (max-width: 991.98px) {
  .featuredProperty,
  .explore-categories,
  .aboutTech196,
  .cta1 {
    padding: 48px 0 !important;
  }

  .about_single_box {
    margin-bottom: 16px;
  }

  .homepage .bannerArea {
    min-height: auto !important;
    padding-top: 72px !important;
  }
}

@media (max-width: 767.98px) {
  .featuredProperty,
  .explore-categories,
  .aboutTech196,
  .cta1 {
    padding: 32px 0 !important;
  }

  .titleIndVisSe h2,
  .about_box_title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .featured_property_carousel .owl-item {
    height: auto !important;
    min-height: 220px;
  }
}

/* ── Modals ── */
@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 0.75rem;
  }
}

/* ── Container overflow safety ── */
.container,
.container-fluid {
  overflow-x: clip;
}

/* ── Contact & FAQ banners ── */
@media (max-width: 991.98px) {
  .cBannerPart,
  .faqBannerPart {
    min-height: 200px !important;
    height: auto !important;
    padding: 72px 16px 32px !important;
  }

  .contactContianPart {
    padding: 32px 0 !important;
  }
}

@media (max-width: 767.98px) {
  .cBannerPart .page-banner-title,
  .faqBannerPart .page-banner-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 820px) {
  .myProBorColor,
  .Registercobor {
    padding: 24px 16px !important;
  }

  .dash-content {
    padding: 16px !important;
  }
}
