/**
 * Vijaya Bheri — Mobile Premium Responsive Layer
 * Scoped ONLY to max-width: 767px (and finer phone widths).
 * Desktop / laptop (≥768px) styles are intentionally untouched.
 */

/* =========================================================
   ≤767px — Phone / large phone
   ========================================================= */
@media only screen and (max-width: 767px) {

  /* ---------- Global overflow & base ---------- */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body.custom-cursor {
    cursor: auto;
  }

  .custom-cursor__cursor,
  .custom-cursor__cursor-two {
    display: none !important;
  }

  .page-wrapper,
  .container,
  .row {
    max-width: 100%;
  }

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

  section {
    overflow-x: hidden;
  }

  img,
  video,
  iframe,
  svg {
    max-width: 100%;
    height: auto;
  }

  /* ---------- Typography system ---------- */
  h1,
  .h1 {
    font-size: clamp(1.75rem, 5.5vw, 2.125rem) !important; /* 28–34px */
    line-height: 1.25 !important;
    word-wrap: break-word;
  }

  h2,
  .h2,
  .section-title__title {
    font-size: clamp(1.5rem, 5vw, 1.875rem) !important; /* 24–30px */
    line-height: 1.3 !important;
    word-wrap: break-word;
  }

  h3,
  .h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem) !important; /* 20–24px */
    line-height: 1.35 !important;
  }

  p,
  body,
  .floor-plan__text,
  .about-one__text,
  .feature-one__text,
  .neighborhoods__text,
  .contact-one__text {
    font-size: clamp(0.875rem, 3.6vw, 1.0625rem); /* 14–17px */
    line-height: 1.65;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .section-title__tagline {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .section-title__title br,
  .floor-plan__text br,
  .feature-one__text br,
  .main-slider__title br {
    display: none;
  }

  /* ---------- Header (compact classic) ---------- */
  .main-header__top {
    display: none !important;
  }

  .main-menu__wrapper-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0;
  }

  .main-menu__left {
    flex: 1 1 auto;
  }

  .main-menu__logo {
    padding: 10px 0 10px 4px !important;
    margin: 0 !important;
  }

  .main-menu__logo a {
    display: inline-flex;
    align-items: center;
  }

  .main-menu__logo img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
  }

  .main-menu__main-menu-box {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .main-menu .mobile-nav__toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 22px;
    color: var(--aports-base, #246070);
    margin-right: 0;
    border-radius: 8px;
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  .main-menu .mobile-nav__toggler:active {
    background-color: rgba(36, 96, 112, 0.08);
  }

  .main-menu__list,
  .main-menu__right,
  .main-menu__search-btn-box {
    display: none !important;
  }

  .stricky-header {
    min-height: 64px;
  }

  .stricky-header .main-menu__logo img {
    max-height: 38px;
  }

  /* ---------- Mobile navigation drawer ---------- */
  .mobile-nav__wrapper {
    z-index: 999999;
  }

  .mobile-nav__content {
    width: min(86vw, 340px);
    padding: 28px 22px 36px;
    background: #ffffff;
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.18);
  }

  .mobile-nav__wrapper.expanded .mobile-nav__content {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-nav__close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    top: 12px;
    right: 10px;
  }

  .mobile-nav__content .logo-box {
    margin-bottom: 24px;
    padding-right: 40px;
  }

  .mobile-nav__content .logo-box img {
    max-height: 40px;
    width: auto;
  }

  .mobile-nav__content .main-menu__list > li > a,
  .mobile-nav__content .main-menu__list > li > ul > li > a {
    font-size: 16px;
    line-height: 1.4;
    padding: 14px 0;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .mobile-nav__content .main-menu__list > li > a > button {
    width: 40px;
    height: 40px;
  }

  .mobile-nav__contact li {
    font-size: 14px;
    padding: 10px 0;
  }

  .mobile-nav__contact li a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .mobile-nav__social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  /* ---------- Hero / main slider ---------- */
  .main-slider,
  .main-slider .swiper-slide {
    min-height: 0;
  }

  .main-slider .container {
    padding-top: 120px !important;
    padding-bottom: 88px !important;
  }

  .main-slider__content {
    text-align: left;
    max-width: 100%;
  }

  .main-slider__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important; /* 28–36px */
    line-height: 1.2 !important;
    margin: 0;
  }

  .video-layer {
    z-index: 0;
  }

  .video-layer video {
    object-fit: cover;
    object-position: center center;
  }

  .main-slider .image-layer {
    background-position: center center !important;
    background-size: cover !important;
  }

  .main-slider-two .container,
  .main-slider-three .container {
    padding-top: 130px !important;
    padding-bottom: 100px !important;
  }

  .main-slider-two__title,
  .main-slider-three__title {
    font-size: clamp(1.75rem, 7vw, 2.125rem) !important;
    line-height: 1.25 !important;
  }

  .main-slider-two__sub-title {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  /* ---------- Buttons & touch targets ---------- */
  .thm-btn,
  .main-menu__btn,
  .contact-one__btn,
  .apartments-two__btn,
  .classic-submit-btn,
  .contact-submit-btn-custom,
  .btn-ppc-submit,
  .btn-project-cta {
    min-height: 48px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 22px;
    padding-right: 22px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .contact-one__btn-box .thm-btn,
  .classic-submit-btn,
  .contact-submit-btn-custom,
  .btn-ppc-submit {
    width: 100%;
  }

  /* ---------- Sections spacing ---------- */
  .floor-plan,
  .about-one,
  .feature-one,
  .apartments-one,
  .neighborhoods,
  .contact-one,
  .news-one,
  .cta-one,
  .counter-one,
  .site-footer,
  .page-header {
    padding-left: 0;
    padding-right: 0;
  }

  .floor-plan {
    padding-top: 36px !important;
    margin-top: 0 !important;
  }

  .about-one,
  .feature-one,
  .apartments-one,
  .neighborhoods,
  .news-one,
  .counter-one {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .contact-one {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .page-header {
    padding: 110px 0 50px;
  }

  .page-header__title {
    font-size: clamp(1.75rem, 6vw, 2.125rem) !important;
  }

  /* ---------- Floor plan tabs: 2×2 on mobile ---------- */
  .floor-plan__main-tab-box .tab-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 0 16px;
    width: 100%;
  }

  .floor-plan__main-tab-box .tab-buttons .tab-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: 48px;
    padding: 10px 8px;
    float: none !important;
  }

  .floor-plan__main-tab-box .tab-buttons .tab-btn + .tab-btn {
    margin: 0 !important;
  }

  .floor-plan__main-tab-box .tab-buttons .tab-btn span {
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
  }

  .floor-plan__tab-content-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .floor-plan__tab-content-left,
  .floor-plan__tab-content-righ {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .floor-plan__tab-content-details li {
    padding: 14px 16px !important;
    min-height: 52px;
  }

  .floor-plan__tab-content-righ img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
  }

  /* ---------- Feature / apartment cards ---------- */
  .apartments-one .row > [class*="col-"] {
    margin-bottom: 18px;
  }

  .apartments-one__single {
    width: 100%;
    margin: 0 auto;
  }

  .apartments-one__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
  }

  .apartments-one__title {
    font-size: 18px !important;
  }

  .apartments-two__single {
    margin-bottom: 24px;
  }

  .apartments-two__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
  }

  .apartments-two__content {
    padding: 20px 16px 24px !important;
  }

  .apartments-two__title {
    font-size: 20px !important;
  }

  .apartments-two__btn {
    width: 100%;
    margin-top: 12px;
  }

  .feature-one__single-inner,
  .vb-feature-box {
    padding: 22px 18px !important;
  }

  .vb-description__img-box {
    margin-bottom: 20px;
  }

  .vb-description__img-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .vb-description__badge {
    animation: none;
  }

  /* Learn More About Us — right aligned on mobile */
  .vb-description-section .vb-learn-more-btn {
    display: table !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    float: none;
  }

  /* ---------- Neighborhoods / map ---------- */
  .neighborhoods__left {
    margin: 0 0 24px !important;
  }

  #leaflet-map {
    min-height: 280px !important;
    height: 280px !important;
    border-radius: 12px;
    overflow: hidden;
  }

  .neighborhoods__popup-box {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
  }

  /* ---------- Contact form ---------- */
  .contact-one__form-box {
    padding: 36px 18px 40px !important;
    margin-top: 28px !important;
    border-radius: 14px;
  }

  .contact-one__input-box {
    margin-bottom: 14px;
  }

  .contact-one__input-box input,
  .contact-one__input-box textarea,
  .contact-one__input-box select,
  .classic-input,
  .classic-textarea,
  .form-control-classic,
  .form-input-custom {
    width: 100%;
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom */
    padding: 12px 14px;
    border-radius: 8px;
  }

  .contact-one__input-box textarea,
  .classic-textarea {
    min-height: 110px;
  }

  .classic-form-card,
  .hero-form-card {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .classic-label,
  .form-label-custom {
    font-size: 13px;
    margin-bottom: 6px;
  }

  /* Contact page two-column → stack */
  .contact-two__right,
  .contact-two__left {
    margin: 0 0 24px !important;
    max-width: 100%;
  }

  /* ---------- Footer ---------- */
  .site-footer__top {
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .footer-widget__column {
    margin-bottom: 28px;
  }

  .footer-widget__title {
    font-size: 18px !important;
    margin-bottom: 14px;
  }

  .footer-widget__about-text,
  .footer-widget__find-text,
  .footer-widget__Explore-list li a,
  .footer-widget__Contact-list li a,
  .footer-widget__Contact-list li p {
    font-size: 14px;
    line-height: 1.6;
  }

  .footer-widget__Contact-list li a,
  .footer-widget__Explore-list li a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-footer__social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-footer__bottom {
    padding: 16px 0;
    text-align: center;
  }

  .site-footer__bottom-text {
    font-size: 13px;
    line-height: 1.5;
  }

  /* ---------- News / blog cards ---------- */
  .news-one__single,
  .news-two__single {
    margin-bottom: 22px;
  }

  .news-one__content-box {
    margin-left: 0 !important;
  }

  .news-one__img img,
  .news-two__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
  }

  /* ---------- Gallery ---------- */
  .gallery-page .row > [class*="col-"],
  .project-one .row > [class*="col-"] {
    margin-bottom: 14px;
  }

  /* ---------- Floating CTAs (touch-friendly, less tall) ---------- */
  .floating-enquiry-btn,
  .floating-brochure-btn {
    height: auto !important;
    min-height: 120px;
    max-height: 150px;
    padding: 12px 7px !important;
    font-size: 10px !important;
    letter-spacing: 1.2px !important;
    z-index: 99990;
  }

  .floating-enquiry-btn i,
  .floating-brochure-btn i {
    font-size: 14px;
    margin-bottom: 6px;
  }

  /* ---------- Enquire drawer (mobile) ---------- */
  .enquire-drawer-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  .enquire-drawer-overlay.mode-brochure {
    justify-content: center !important;
  }

  .enquire-drawer-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh;
    border-radius: 18px 18px 0 0 !important;
    transform: translateY(110%) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28) !important;
  }

  .enquire-drawer-overlay.mode-brochure .enquire-drawer-container {
    transform: translateY(110%) !important;
  }

  .enquire-drawer-overlay.active .enquire-drawer-container,
  .enquire-drawer-overlay.mode-brochure.active .enquire-drawer-container {
    transform: translateY(0) !important;
  }

  .enquire-drawer-header {
    padding: 14px 18px;
  }

  .enquire-drawer-title {
    font-size: 18px !important;
  }

  .enquire-drawer-body {
    padding: 16px 16px 24px;
  }

  .enquire-drawer-input-wrap input,
  .enquire-drawer-input-wrap textarea {
    min-height: 48px;
    font-size: 16px;
    padding: 12px 12px 12px 40px;
  }

  .enquire-drawer-submit-btn {
    min-height: 50px;
    width: 100%;
    font-size: 15px;
    padding: 14px 18px;
  }

  /* ---------- Schedule modal ---------- */
  .schedule-visit-modal-overlay {
    padding: 12px !important;
    align-items: flex-end !important;
  }

  .schedule-visit-modal-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 18px 18px 0 0 !important;
    margin: 0 !important;
  }

  .schedule-visit-form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .schedule-visit-form-group,
  .schedule-visit-form-group.full-width {
    width: 100% !important;
  }

  .schedule-visit-input-wrap input,
  .schedule-visit-input-wrap select,
  .schedule-visit-input-wrap textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .schedule-visit-submit-btn {
    width: 100%;
    min-height: 50px;
  }

  /* ---------- Landing page ---------- */
  .landing-header {
    padding: 10px 16px;
  }

  .hero-ppc-section {
    padding: 28px 0 36px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.125rem) !important;
    line-height: 1.25 !important;
  }

  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .hero-features-list li {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .project-card-landing {
    margin-bottom: 22px;
  }

  .project-card-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
  }

  .project-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn-project-cta {
    width: 100%;
  }

  .trust-stats-bar .stat-item-box {
    margin-bottom: 16px;
  }

  /* ---------- Detail pages ---------- */
  .apartment-details__img-box img,
  .apartment-details__content-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .faq-page__tab-box .tab-buttons .tab-btn {
    width: 100%;
    margin-bottom: 8px;
  }

  .faq-page__tab-box .tab-buttons .tab-btn span {
    display: block;
    width: 100%;
    padding: 14px 18px !important;
    text-align: left;
  }

  /* Soften desktop hover transforms on touch devices */
  .vb-description__img-box:hover,
  .vb-feature-box:hover,
  .floor-plan__tab-content-details li:hover,
  .tab-buttons .tab-btn:hover {
    transform: none;
  }

  /* Counter stats: 2×2 on mobile
     Row 1: Square Areas | Car Parkings
     Row 2: Apartments | Bedrooms */
  .counter-one__list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
    width: 100%;
  }

  .counter-one__single {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
  }

  .counter-one__single .counter-one__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .counter-one__text {
    font-size: 13px;
    line-height: 1.35;
  }

  .counter-one__single h3,
  .counter-one__single .count-text {
    font-size: clamp(1.5rem, 6vw, 1.875rem) !important;
  }

  /* Counter / CTA / team stacks */
  .counter-one__inner,
  .cta-one__inner {
    text-align: center;
  }

  .cta-one__title {
    font-size: clamp(1.5rem, 5vw, 1.875rem) !important;
  }

  .brand-one .owl-carousel .owl-item img {
    margin: 0 auto;
  }

  /* Prevent absolute decorations causing overflow */
  .site-footer__shape-1,
  .about-one__shape-1,
  .about-one__shape-2,
  .cta-one__shape-1,
  .feature-one__shape-1 {
    max-width: 100%;
    pointer-events: none;
  }

  /* Search popup mobile */
  .search-popup__content {
    width: calc(100% - 32px);
    margin: 0 auto;
  }
}

/* =========================================================
   ≤480px — Compact phones
   ========================================================= */
@media only screen and (max-width: 480px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .main-menu__logo img {
    max-height: 36px;
  }

  .main-slider .container {
    padding-top: 108px !important;
    padding-bottom: 72px !important;
  }

  .main-slider__title {
    font-size: 1.75rem !important; /* 28px */
  }

  .section-title__title {
    font-size: 1.5rem !important; /* 24px */
  }

  .contact-one__form-box {
    padding: 28px 14px 32px !important;
  }

  .floating-enquiry-btn,
  .floating-brochure-btn {
    min-height: 108px;
    max-height: 130px;
    font-size: 9px !important;
  }

  #leaflet-map {
    min-height: 240px !important;
    height: 240px !important;
  }
}

/* =========================================================
   ≤360px — Very small phones
   ========================================================= */
@media only screen and (max-width: 360px) {
  .main-slider__title {
    font-size: 1.625rem !important; /* 26px */
  }

  .section-title__title {
    font-size: 1.375rem !important; /* 22px */
  }

  .main-menu__logo img {
    max-height: 32px;
  }

  .mobile-nav__content {
    width: 92vw;
    padding: 22px 16px 28px;
  }
}

/* =========================================================
   Prefers-reduced-motion
   ========================================================= */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .mobile-nav__wrapper,
  .mobile-nav__content,
  .enquire-drawer-container,
  .vb-description__img-box,
  .vb-feature-box {
    transition: none !important;
    animation: none !important;
  }
}
