/**
 * ===========================================================================
 * RESPONSIVE DESIGN SYSTEM (GOLDEN RULE — WITH SCALING INTENT)
 * ===========================================================================
 *
 * WHY (Intent)
 * - Desktop (1440px) is the primary design reference
 * - Figma designs may exist ONLY for desktop initially
 * - UI must remain readable and balanced on all devices
 * - Responsive behavior must be predictable, not improvised
 *
 * Responsive design exists to PRESERVE INTENT, not exact sizes.
 *
 *
 * HOW (Strategy & Governance)
 *
 * 1. PRIMARY DESIGN REFERENCE (LOCKED)
 *    - 1440px is the ONLY authoritative design reference
 *    - All sizes (font, spacing, layout) are evaluated here first
 *
 *    Example:
 *    - Desktop heading = 74px
 *    - Desktop spacing = 6rem
 *
 *
 * 2. RESPONSIVE SCALING PHILOSOPHY
 *    - Desktop values define INTENT
 *    - Other devices receive DERIVED values
 *
 *    Derived values must:
 *    - preserve hierarchy
 *    - preserve readability
 *    - avoid visual dominance or crowding
 *
 *    Pixel-perfect matching on non-desktop devices is NOT required.
 *
 *
 * 3. AUTO-SCALING PERMISSION (IMPORTANT)
 *    When Figma designs for tablet/mobile are NOT available:
 *
 *    - Developer/Agent MAY derive responsive values using media queries
 *    - BUT ONLY for:
 *      • font-size
 *      • vertical spacing
 *
 *    - Structural changes are NOT allowed
 *
 *
 * 4. SCALING RULE OF THUMB (INDUSTRY PRACTICE)
 *    - Tablet (≤768px):
 *      • Reduce large text by ~25–30%
 *      • Reduce section spacing by ~30–40%
 *
 *    - Mobile (<576px):
 *      • Reduce large text by ~40–50%
 *      • Reduce section spacing by ~50%
 *
 *    These are GUIDELINES, not strict math.
 *
 *
 * 5. CONFIRMATION RULE (SAFETY VALVE)
 *    - If a responsive adjustment affects:
 *      • visual hierarchy
 *      • brand prominence
 *      • key headings (hero / page title)
 *
 *    → Developer MUST confirm before implementation.
 *
 *
 * WHAT (Implementation Rules)
 *
 * - Desktop values live in style.css
 * - Responsive reductions live ONLY in media.css
 *
 * - media.css MAY:
 *   • reduce font-size
 *   • reduce padding / margin
 *   • hide non-critical elements
 *
 * - media.css MUST NOT:
 *   • increase sizes beyond desktop
 *   • redefine layout structure
 *   • change grid logic
 *
 * - Units:
 *   • rem preferred (allows natural scaling)
 *   • px allowed ONLY when matching Figma exactly on desktop
 *
 *
 * DESIGN REVIEW REFERENCES
 * - Desktop review at 1440px
 * - Tablet sanity check at 768px
 * - Mobile sanity check at 402px
 *
 *
 * GOLDEN RULE (DO NOT BREAK)
 * - Desktop defines intent.
 * - Other devices adapt the intent.
 * - media.css refines, never re-designs.
 * - When in doubt, ASK before scaling.
 * ===========================================================================
 */

/* tablet size */
@media (max-width: 1024px) {
    .container-padding-x {
        padding-left: var(--container-padding-x-tablet);
        padding-right: var(--container-padding-x-tablet);
    }

    .container-padding-y {
        padding-top: var(--container-padding-y-tablet);
        padding-bottom: var(--container-padding-y-tablet);
    }
}

/* mobile size */
@media (max-width: 768px) {
    .desktop-height {
        height: auto;
    }

    .desktop-show {
        display: none;
    }

    .mobile-show {
        display: block;
    }

    .mobile-hide {
        display: none;
    }

    .container-padding-x {
        padding-left: var(--container-padding-x-mobile);
        padding-right: var(--container-padding-x-mobile);
    }

    .container-padding-y {
        padding-top: var(--container-padding-y-mobile);
        padding-bottom: var(--container-padding-y-mobile);
    }

    .container-padding-y-md {
        padding-top: var(--container-padding-y-mobile);
        padding-bottom: var(--container-padding-y-mobile);
    }

    .container-padding-bottom {
        padding-bottom: var(--container-padding-y-mobile);
    }

    .container-padding-top {
        padding-top: var(--container-padding-y-mobile);
    }

    .container-padding-y-header {
        padding-top: var(--header-padding-y-mobile);
        padding-bottom: var(--header-padding-y-mobile);
    }

    .container-padding-x-header {
        padding-left: var(--header-padding-x-mobile);
        padding-right: var(--header-padding-x-mobile);
    }

    .property-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        padding-top: var(--footer-padding-top-mobile);
        padding-bottom: var(--footer-padding-bottom-mobile);
    }

    .home-hero-title {
        font-size: var(--font-size-xl);
    }

    .home-hero-subtitle {
        font-size: var(--font-size-sm);
    }

    .section-title {
        font-size: var(--font-size-xl);
        font-weight: var(--font-weight-medium);
    }

    .properties-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* Menu overlay */
    .menu-overlay {
        padding: 0px;
        border: none;
    }

    .menu-modal {
        padding: 24px 16px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .menu-modal-title-wrap .overlay-brand-logo-img,
    .footer-brand-logo-img {
        max-height: 24px;
        max-width: 139px;
    }

    .menu-modal-close-wrap .overlay-close-button-img {
        width: 13px;
        height: 13px;
    }

    .menu-modal-header {
        padding-top: 2px;
        margin-bottom: 40px;
        padding-bottom: 24px;
    }

    .-menu-modal-close-wrap {
        position: relative;
        top: 0%;
        height: 24px;
        width: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(0%);
    }

    .menu-modal-header .call-icon-img {
        filter: brightness(0) invert(1);
    }

    .menu-modal-content {
        padding: 0px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .menu-modal-columns {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 0px;
    }

    .menu-column {
        max-width: 100%;
        gap: 6px;
        border-bottom: 1px solid var(--color-white);
    }

    .menu-column .menu-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .menu-column.menu-column-open .menu-list {
        max-height: 400px;
    }

    .menu-column-title {
        font-weight: var(--font-weight-normal);
        font-size: 22px;
        line-height: 37px;
        letter-spacing: 0.02em;
        border-bottom: none;
        position: relative;
        padding-right: 28px;
        cursor: pointer;
    }

    .menu-column-title::after {
        content: '';
        position: absolute;
        right: 0;
        top: 35%;
        transform: translateY(-50%) rotate(0deg);
        width: 18px;
        height: 18px;
        background-color: var(--color-white);
        -webkit-mask: url(../images/svg/down_arrow.svg) center/contain no-repeat;
        mask: url(../images/svg/down_arrow.svg) center/contain no-repeat;
        transition: transform 0.25s ease;
    }

    .menu-column.menu-column-open .menu-column-title::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .menu-link {
        display: block;
        font-weight: var(--text_font_weight_normal);
        font-size: 20px;
        line-height: 20px;
        letter-spacing: 0.02em;
    }

    .menu-ist li {
        margin-bottom: 14px;
    }

    .menu-social-title {
        font-size: var(--text_font_size_base);
        line-height: 29px;
    }

    .menu-social-icons {
        gap: 24px;
    }

    .sub-header-wrap .icon-wrap {
        width: 12px;
        height: 12px;
    }

    .sub-header-list {
        justify-content: space-between;
        gap: 16px;
    }

    .home-hero-content-wrap {
        padding: 0px 16px;
    }

    .properties-worth-wrap {
        flex-direction: column;
    }

    .properties-worth-card {
        max-width: 100%;
    }

    .properties-worth-card-head {
        flex-direction: column;
    }

    .property-services-card {
        max-width: 100%;
        min-height: 100%;
        padding: 16px;
    }

    .property-services-card-text {
        font-size: var(--font-size-lg);
    }

    .cta-home-btn {
        width: 100%;
    }

    .reviews-cards {
        overflow-x: auto;
    }

    .reviews-card {
        min-width: 100%;
        display: block;
    }

    .footer-main {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 32px;
    }

    .footer-link-list {
        gap: 0px;
    }

    .footer-contact-list {
        gap: 12px;
    }

    .footer-partners {
        flex-direction: column;
        gap: 24px;
    }

    .footer-bottom {
        margin-top: 32px;
    }

    .footer-done-by-wrap {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer-done-by-item {
        display: block;
        text-align: center;
    }

    .card-service-detail {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .guide-wrapper {
        flex-direction: column-reverse;
        align-items: center;
        gap: 32px;
    }

    .guide-content {
        align-items: center;
        text-align: center;
    }

    /* about page style start */
    .about-banner {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .section-title {
        font-weight: var(--font-weight-medium);
        font-size: var(--font-size-xl);
    }

    .coverage-area-title-paragraph {
        font-size: var(--font-size-base);
    }

    .title-button-wrap {
        flex-direction: column;
        gap: 16px;
    }

    .about-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .review-section .btn-sell-secondary-bordered {
        width: 100%;
    }

    .card-service-detail {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .about-card-wrap {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* about page style end */

    /* sell with us style start */
    .page-image-content-wrap {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .auction-card-wrap {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .auction-card-heading {
        font-size: var(--font-size-lg);

    }

    .selling-page-service-wrap {
        flex-direction: column;
    }

    .selling-property-view-title-wrap {
        flex-direction: column;
        gap: 16px;
    }

    .selling-property-wrap {
        flex-direction: column;
    }

    .selling-property-view-wrap {
        flex-direction: column;
    }

    .selling-property-view-wrap.card-has-after-image {
        flex-direction: column-reverse;
    }

    .additonal-package-card-wrap {
        flex-direction: column;
        gap: 16px;
    }

    .additonal-package-card {
        max-width: 100%;
    }

    .coverage-area-footer-card {
        flex-direction: column;
        gap: 32px;
        display: flex;
        justify-content: space-between;
    }

    .additonal-pakage-heading {
        font-size: var(--font-size-lg);
    }

    .auction-card-wrap {
        padding: 0px;
    }

    .selling-property-wrap {
        gap: 24px;
    }

    .marketing-solution-card-wrap {
        gap: 0px;
    }

    .sell-btn-primary {
        width: 100%;
    }

    .marketing-solution-card-paragraph {
        color: var(--color-muted);
    }

    .age-area-footer-card-btn {
        width: 100%;
    }

    .coverage-area-footer-card-left {
        width: 100%;
    }

    .coverage-area-footer-card-right {
        width: 100%;
    }

    .coverage-area-footer-card-btn {
        max-width: 100%;
    }

    /* sell with us style end */
    /* blog list style start */
    .blog-list-heading-wrap {
        flex-direction: row;
        gap: 16px;

    }

    .blog-list-heading {
        font-weight: var(--font-weight-medium);
        font-size: var(--font-size-xl);
    }

    .blog-list-paragraph {
        font-weight: var(--font-weight-medium);
        font-size: var(--font-size-md);
        line-height: 28px;
    }

    /* blog list style end */

    /* valuation  style start*/
    .valuation-subtitle {
        font-size: var(--font-size-lg);
    }

    .contact-form-wrap {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* blog list style end */

    /* privacy policy style start */
    .policy-intro h2 {
        font-size: var(--font-size-lg);
    }

    /* privacy policy style start */
    .coverage-area-card-wrap {
        flex-direction: column;
    }

    .blog-list-card-wrap {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    /* property-detail style start */
    .property-detail-carousel-wrap {
        padding-bottom: 56px;
    }

    .property-detail-slide img {
        max-height: 300px;
        cursor: pointer;
    }

    .gallery-wrap {
        padding-left: var(--container-padding-x-mobile);
        padding-right: var(--container-padding-x-mobile);
    }

    .gallery-header {
        padding: 12px 0;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
    }

    .gallery-main-center {
        left: 44px;
        right: 44px;
    }

    .gallery-thumbs {
        height: 72px;
        padding: 12px 0;
    }

    .gallery-thumb {
        height: 48px;
    }

    .property-detail-carousel .owl-nav {
        position: absolute;
        bottom: -56px;
        left: 16px;
        width: calc(100% - 32px);
        top: auto;
        transform: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
        margin: 0;
    }

    .property-detail-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        border-radius: 50% !important;
        border: 1px solid var(--color-primary) !important;
        background: var(--color-white);
        display: flex !important;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

    .property-detail-carousel .owl-nav button img {
        width: 8px !important;
        filter: brightness(0);
    }

    .property-detail-carousel .owl-dots {
        display: flex !important;
        justify-content: center;
        position: absolute;
        bottom: -35px;
        left: 0;
        right: 0;
        margin: 0;
        pointer-events: none;
    }

    .property-detail-carousel .owl-dots .owl-dot {
        pointer-events: auto;
    }

    .property-detail-carousel.owl-theme .owl-dots .owl-dot span {
        display: block;
        width: 10px;
        height: 10px;
        margin: 0 5px;
        background-color: var(--color-secondary-light);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .property-detail-carousel.owl-theme .owl-dots .owl-dot.active span,
    .property-detail-carousel.owl-theme .owl-dots .owl-dot:hover.active span {
        background-color: var(--color-secondary);
    }

    .property-detail-carousel.owl-theme .owl-dots .owl-dot:hover span {
        background-color: var(--color-secondary-light);
    }

    .property-detail-title-heading {
        font-size: var(--font-size-xl);
        font-weight: var(--font-weight-medium);
    }

    .property-heading-badge-wrap {
        flex-direction: column-reverse;
    }

    .media-section-image-wrap {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .property-media-type {
        font-size: var(--font-size-lg);
    }

    .feature-type-wrap {
        flex-direction: column;
    }

    .property-list-features-type {
        flex-direction: column;
    }

    .property-bedroom-type-wrap {
        flex-direction: column;
        gap: 32px;
    }

    /* property-detail style end */
    .about-card-footer-wrap {
        flex-direction: column;
    }

    /* property-detail style start */
    .property-services-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 16px;

    }

    .property-services-wrap {
        gap: 32px;
    }

    .property-services-heading-wrap {
        gap: 16px;
    }

    .property-card-image {
        max-height: 300px;
    }

    /* property-detail style end */
    .selling-package-card {
        max-width: 100%;
        border-radius: 0px;
        padding: 12px 0px;
        border-top: 1px solid var(--color-primary);
        border-bottom: none;
    }

    .selling-package-card.active {
        background-color: transparent;
        border-color: var(--color-primary);
    }

    .selling-package-card .selling-package-card-heading {
        color: var(--color-primary);
        font-family: var(--font-secondary);
        max-width: 100%;
        text-align: left;
        font-size: var(--font-size-base);
        min-height: auto;
    }

    .selling-package-card.active .selling-package-card-heading {
        color: var(--color-primary);
    }

    .selling-package-card .selling-package-card-paragraph {
        max-width: 100%;
        text-align: left;
        min-height: auto;
        color: var(--color-secondary);
    }

    .selling-package-card-heading {
        font-size: var(--font-size-lg);
    }

    .selling-property-view-wrap {
        gap: 8px;
    }

    /* new home style start */
    .new-home-card-wrap {
        gap: 24px;
    }

    .newhome-image-content-wrap {
        gap: 32px;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .search-button-wrap {
        flex-direction: column;
    }

    .new-home-card-wrap {
        padding-left: 0px;
    }

    .new-home-image-wrap {
        width: 100%;
    }

    .new-home-search {
        width: 100%;
        border: 1px solid var(--color-muted);
    }

    /* new home style end */
    .investment-image-content-wrap {
        flex-direction: column;
    }

    .investment-contact-block {
        text-align: left;
    }

    .investment-contact-wrap {
        max-width: 100%;
    }

    .investment-contact-row {
        gap: 10px;
    }

    .investment-contact-icon {
        width: 28px;
        height: 28px;
    }

    .investment-contact {
        font-size: var(--font-size-base);
        line-height: 1.4;
    }

    .investment-contact-copy img {
        width: 20px;
        height: 20px;
    }

    .card-investment-wrap {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 4px;
    }

    .card-investment-wrap .property-card-count {
        font-size: 28px;
    }

    .investment-card {
        flex-direction: row;
        width: 100%;
        height: 100%;
        align-items: start;
    }

    .about-card-image {
        max-width: 100%;
    }

    .explore-card {
        grid-template-columns: repeat(1, minmax(0, 1fr));

    }

    .explore-image img {
        max-width: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .guide-subtitle {
        padding-bottom: 48px;
    }

    .client-say-carousel,
    .follow-journey-carousel {
        overflow: hidden;
        position: relative;
        padding-bottom: 64px;
    }

    .client-say-carousel .owl-nav,
    .follow-journey-carousel .owl-nav {
        top: 93%;
        width: 100%;
        left: 0%;
    }

    .client-say-carousel .owl-dots,
    .follow-journey-carousel .owl-dots {
        display: flex !important;
        justify-content: center;
        position: absolute;
        bottom: 19px;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        pointer-events: none;
        z-index: 1;
    }

    .client-say-carousel .owl-dots .owl-dot,
    .follow-journey-carousel .owl-dots .owl-dot {
        pointer-events: auto;
    }

    .card-detail-heading {
        font-size: var(--font-size-lg);
    }

    .auction-card {
        padding: 16px;
    }

    .auction-card-circle {
        width: 32px;
        height: 32px;
    }

    .auction-count {
        font-size: var(--font-size-lg);
        margin-top: -10px;
    }

    .property-card-count {
        font-family: var(--font-secondary);
        font-size: 72px;
        line-height: 120%;
    }

    .coverage-area-key-benifit .property-card-heading span {
        display: inline-block;
    }

    .coverage-area-key-benifit .property-card-heading {
        font-size: var(--font-size-lg);
        margin-top: 0px;
    }

    .let-benefit-body-wrap {
        padding: 0px;
    }

    .coverage-area-key-benifit .property-card-content {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }

    .let-benefit-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        cursor: pointer;
    }

    .let-benefit-toggle .arrow {
        flex-shrink: 0;
        display: inline-flex;
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .let-benefit-item.active .let-benefit-toggle .arrow {
        transform: rotate(0deg);
    }

    .let-benefit-body {
        display: none;
    }

    .let-benefit-item.active .let-benefit-body {
        display: block;
    }

    .coverage-area-key-benifit .coverage-area-benifit {
        padding: 20px 0;
        margin-top: 0;
        border-bottom: 1px solid var(--color-primary);
    }

    .coverage-area-key-benifit .coverage-area-benifit:first-child {
        border-top: 1px solid var(--color-primary);
    }

    .coverage-area-key-benifit .coverage-area-benifit-subheading {
        font-size: var(--font-size-lg);
        line-height: 1.3;
        margin: 0;
    }
    .coverage-area-benifit-title-wrap
    {
        margin-bottom: 48px;
    }

    .coverage-area-key-benifit .coverage-area-benifit-subheading.let-benefit-toggle {
        justify-content: flex-start;
        gap: 0;
    }

    .coverage-area-key-benifit .coverage-area-benifit-subheading .desktop-hide.mobile-show {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .coverage-area-key-benifit .coverage-area-benifit-subheading .coverage-area-content-icon {
        height: 28px;
        width: auto;
        margin: 0 !important;
    }

    .coverage-area-key-benifit .coverage-area-benifit-subheading.let-benefit-toggle::after {
        content: '';
        width: 12px;
        height: 12px;
        flex-shrink: 0;
        margin-left: auto;
        background: url(../images/up-arrow.svg) no-repeat center / contain;
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .coverage-area-key-benifit .let-benefit-item.active .coverage-area-benifit-subheading.let-benefit-toggle::after {
        transform: rotate(0deg);
    }

    .coverage-area-key-benifit .coverage-area-benifit-content {
        font-size: var(--font-size-sm);
        line-height: 1.5;
        margin-top: 12px;
    }

    .coverage-area-benifit-content-wrap {
        min-height: auto;
        padding-top: 0px;
    }

    .about-card-feedback-content {
        padding: 16px;
    }

    .about-card-feedback-content .section-title {
        display: block;
    }

    .review-carousel .owl-nav {
        top: 96%;
        left: 0;
        width: 100%;
    }

    .about-team-wrap {
        flex-direction: column;
    }

    .about-team-item {
        border-bottom: 1px solid var(--color-primary);
        padding: 20px 0;
    }

    .about-team-item:first-child {
        border-top: 1px solid var(--color-primary);
    }

    .about-team-toggle {
        display: flex;
        align-items: center;
        margin: 0;
        cursor: pointer;
    }

    .about-team-toggle::after {
        content: '';
        width: 12px;
        height: 12px;
        margin-left: auto;
        background: url(../images/up-arrow.svg) no-repeat center / contain;
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .about-team-item.is-open .about-team-toggle::after {
        transform: rotate(0deg);
    }

    .about-team-panel {
        display: none;
        margin-top: 16px;
    }

    .about-team-item.is-open .about-team-panel {
        display: flex;
    }

    .about-team-wrap-mobile .about-card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .about-card-subheading {
        font-size: var(--font-size-base);
    }

    .about-team-item .section-title {
        font-size: var(--font-size-base);
    }
    .featured-properties-buttons .btn{
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* small mobile */
@media (max-width: 480px) {
    .property-services-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .sub-header-wrap li a 
    {
        font-size: var(--font-size-xs);
    }
}