/* =========================================
   PROPERTY SERVICES
   GLOBAL RESPONSIVE POLISH
   ========================================= */

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Better touch targets */

button,
a {
    touch-action: manipulation;
}

/* Prevent long text from breaking layouts */

img,
video,
iframe {
    max-width: 100%;
}

.nav-toggle {
    display: none;
}

h1,
h2,
h3,
p,
a,
div {
    overflow-wrap: anywhere;
}

/* TABLET */

@media (max-width: 900px) {

    .container,
    .page {
        max-width: 94%;
    }

    nav {
        padding-left: 4%;
        padding-right: 4%;
    }

    .nav-links {
        gap: 15px !important;
    }

    .stats {
        gap: 12px;
    }

    .content-grid,
    .contact-grid {
        gap: 18px;
    }

    .property-row {
        gap: 12px;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    body {
        font-size: 14px;
    }

    nav {
        min-height: 68px;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    nav {
        position: relative;
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 10px;
    }

    .logo {
        white-space: nowrap;
        flex: 1 1 100%;
    }

    .nav-toggle {
        display: none !important;
    }

    .nav-links {
        gap: 8px !important;
        flex: 1 1 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 12px;
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(255,255,255,.07);
        border: 1px solid rgba(255,255,255,.12);
    }

    .admin-btn {
        min-height: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #ff7043, #ff3d71) !important;
        border-color: transparent !important;
    }

    .page,
    .container {
        width: 92%;
        padding-top: 38px;
        padding-bottom: 65px;
    }

    h1 {
        max-width: 100%;
    }

    /* Landing-page hero: bigger, bolder, more colour on mobile */
    .hero {
        min-height: 86vh !important;
        padding-top: 30px;
        padding-bottom: 50px;
        margin-bottom: 35px;
    }

    .hero h1 {
        font-size: clamp(48px, 13vw, 80px) !important;
        letter-spacing: -2.5px !important;
        line-height: .96 !important;
    }

    .hero p {
        line-height: 1.7;
        font-size: 16.5px;
    }

    /* Page-header heroes (Properties, Contact): more room, still punchy */
    .hero-page {
        min-height: 0 !important;
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    .hero-page h1 {
        font-size: clamp(42px, 12vw, 64px) !important;
    }

    .hero::before,
    .hero::after {
        width: 260px !important;
        height: 260px !important;
        filter: blur(65px) !important;
        opacity: 1.5;
    }

    .eyebrow {
        font-size: 12px !important;
        padding: 10px 16px !important;
    }

    /* Cards */

    .panel,
    .section,
    .form-card,
    .info-card {
        border-radius: 12px;
    }

    /* Hover states never trigger on a touchscreen, so cards otherwise
       look flat and colourless on mobile. Give them a visible colour
       accent by default instead of only on :hover. */
    .property-card {
        border-color: rgba(255,112,67,.35) !important;
        box-shadow: 0 16px 40px rgba(255,79,72,.14) !important;
    }

    .property-image {
        height: 200px !important;
    }

    /* Forms */

    input,
    select,
    textarea {
        font-size: 16px;
    }

    /* Buttons */

    .primary-btn,
    .secondary-btn,
    .submit-btn,
    .contact-btn,
    .quick-btn {
        min-height: 46px;
    }

    /* Footer */

    footer {
        padding: 24px 5%;
    }

    /* Sticky Call / WhatsApp bar on the property detail page, so a
       phone visitor can always reach you without scrolling down to
       find the contact card. */
    .mobile-cta-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: flex;
        gap: 10px;
        padding: 12px 4% calc(12px + env(safe-area-inset-bottom));
        background: rgba(11, 11, 16, .92);
        backdrop-filter: blur(18px);
        border-top: 1px solid rgba(255,255,255,.1);
    }

    .mobile-cta-bar[hidden] {
        display: none;
    }

    .mobile-cta {
        flex: 1;
        text-align: center;
        padding: 13px 10px;
        border-radius: 12px;
        font-weight: 800;
        font-size: 14px;
    }

    .mobile-cta.call {
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.16);
        color: #fff;
    }

    .mobile-cta.whatsapp {
        background: linear-gradient(135deg, #25d366, #1aa851);
        color: #fff;
    }
}

/* Bar only makes sense on a phone-width screen; desktop keeps the
   sidebar contact card that was already there. */
@media (min-width: 601px) {
    .mobile-cta-bar {
        display: none !important;
    }
}


/* SMALL PHONES */

@media (max-width: 380px) {

    .logo {
        font-size: 16px !important;
    }

    .admin-btn {
        font-size: 10px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    h1 {
        font-size: 38px !important;
    }

    .property-visual {
        height: 230px !important;
    }

    .section,
    .panel,
    .form-card,
    .info-card {
        padding: 17px !important;
    }
}


/* FLOATING WHATSAPP BUTTON */

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: linear-gradient(135deg, #25d366, #1aa851);
    box-shadow: 0 14px 34px rgba(37, 211, 102, .4);
    transition: transform .25s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
}

@media (max-width: 600px) {
    .floating-whatsapp {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* LANDSCAPE PHONES */

@media (max-height: 500px) and (orientation: landscape) {

    nav {
        min-height: 60px;
    }

    .page,
    .container {
        padding-top: 25px;
    }

    .property-visual {
        height: 300px;
    }
}