/* ============================================================
   Pearlan Property Developers - Public stylesheet
   ============================================================ */

:root {
    --pp-green: #339969;
    --pp-green-dark: #27784f;
    --pp-green-light: #e8f5ee;
    --pp-yellow: #ffff00;
    --pp-white: #ffffff;
    --pp-bg: #f5f7f6;
    --pp-dark: #1f2937;
    --pp-muted: #6b7280;
    --pp-border: #e5e7eb;
    --pp-radius: 12px;
    --pp-shadow: 0 4px 18px rgba(31, 41, 55, 0.08);
    --pp-shadow-lg: 0 10px 34px rgba(31, 41, 55, 0.14);
    --site-header-bg: #339969;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--pp-dark);
    background: var(--pp-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pp-green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pp-green-dark); }

.btn { font-weight: 600; border-radius: 8px; }
.btn-primary {
    background: var(--pp-green);
    border-color: var(--pp-green);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--pp-green-dark);
    border-color: var(--pp-green-dark);
    color: #fff;
}
.btn-outline-primary {
    color: var(--pp-green);
    border-color: var(--pp-green);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--pp-green);
    border-color: var(--pp-green);
    color: #fff;
}
.btn-accent {
    background: var(--pp-yellow);
    border-color: var(--pp-yellow);
    color: var(--pp-dark);
}
.btn-accent:hover, .btn-accent:focus {
    background: #e5e600;
    border-color: #e5e600;
    color: var(--pp-dark);
}
.btn-whatsapp-outline {
    color: #25d366;
    border-color: #25d366;
}
.btn-whatsapp-outline:hover, .btn-whatsapp-outline:focus {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}
.form-control, .form-select { border-radius: 8px; }
.form-label { font-size: .85rem; font-weight: 500; color: var(--pp-dark); }

/* ============================================================
   Top bar
   ============================================================ */
.top-bar {
    background: var(--pp-dark);
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
    padding: 8px 0;
}
.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.top-bar a { color: rgba(255, 255, 255, .85); }
.top-bar a:hover { color: var(--pp-yellow); }
.top-bar__contact { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar__contact i, .top-bar__hours i { color: var(--pp-yellow); margin-right: 4px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: var(--site-header-bg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--pp-shadow); }
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.site-header__logo { height: 76px; width: auto; max-width: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
    color: #fff;
    font-weight: 500;
    font-size: .92rem;
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
}
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.site-nav__link.is-active { color: var(--pp-yellow); font-weight: 600; }
.site-nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 3px;
    border-radius: 3px;
    background: var(--pp-yellow);
}
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header .icon-btn {
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
}
.site-header .icon-btn:hover { color: var(--pp-yellow); border-color: var(--pp-yellow); background: rgba(255, 255, 255, .22); }
.btn-header { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; font-size: .9rem; }
.btn-call { background: var(--pp-green); border-color: var(--pp-green); color: #fff; }
.btn-call:hover { background: var(--pp-green-dark); border-color: var(--pp-green-dark); color: #fff; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb457; border-color: #1fb457; color: #fff; }
.site-header .btn-call { background: #fff; border-color: #fff; color: var(--pp-green); }
.site-header .btn-call:hover { background: var(--pp-yellow); border-color: var(--pp-yellow); color: var(--pp-dark); }
.site-header .btn-whatsapp { background: #fff; border-color: #fff; color: #25d366; }
.site-header .btn-whatsapp:hover { background: var(--pp-yellow); border-color: var(--pp-yellow); color: var(--pp-dark); }
.site-header__toggle { border: none; display: none; }
.site-header__toggle .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ============================================================
   Mobile navigation
   ============================================================ */
.mobile-nav {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 290px;
    max-width: 85vw;
    background: var(--pp-white);
    z-index: 1050;
    transform: translateX(-105%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pp-shadow-lg);
    overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--pp-border);
}
.mobile-nav__logo { height: 40px; }
.mobile-nav__close { font-size: 2rem; line-height: 1; border: none; background: none; color: var(--pp-muted); }
.mobile-nav__links { padding: 10px 0; }
.mobile-nav__link {
    display: block;
    padding: 13px 20px;
    font-weight: 500;
    color: var(--pp-dark);
    border-left: 3px solid transparent;
}
.mobile-nav__link.is-active { color: var(--pp-green); border-left-color: var(--pp-green); background: var(--pp-green-light); }
.mobile-nav__actions { padding: 16px; margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.mobile-nav__overlay.is-open { opacity: 1; visibility: visible; }

/* Sticky app-style bottom navigation (mobile only) */
.app-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1030;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    background: var(--pp-white);
    border-top: 1px solid var(--pp-border);
    box-shadow: 0 -2px 14px rgba(31, 41, 55, .1);
    padding-bottom: env(safe-area-inset-bottom);
}
.app-nav--actions { grid-template-columns: repeat(3, 1fr); }
.app-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    padding: 8px 4px;
    font-size: .68rem;
    font-weight: 600;
    color: var(--pp-muted);
    border-right: 1px solid var(--pp-border);
}
.app-nav__item:last-child { border-right: none; }
.app-nav__item i { font-size: 1.25rem; line-height: 1; color: var(--pp-dark); }
.app-nav__item.is-active { color: var(--pp-green); }
.app-nav__item.is-active i { color: var(--pp-green); }
.app-nav__item:nth-child(4) i,
.app-nav--actions .app-nav__item:nth-child(1) i { color: var(--pp-green); }
.app-nav--actions .app-nav__item:nth-child(2) i { color: #25d366; }
.app-nav__item:active { background: var(--pp-green-light); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; }
.hero--static { background-size: cover; background-position: center; }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(17,24,39,.62) 0%, rgba(17,24,39,.42) 100%);
}
.hero--slider { display: block; height: 600px; }
.hero--slider .carousel,
.hero--slider .carousel-inner { width: 100%; height: 100%; }
.hero--slider .carousel-item { min-height: 0; height: 100%; }
.hero--slider .hero__bg { min-height: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero__content { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero__title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    max-width: 720px;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero__subtitle {
    color: rgba(255,255,255,.92);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 24px;
}
.hero__btn { padding: 12px 26px; font-size: 1rem; }
.hero--slider .hero__content { padding-top: 70px; padding-bottom: 70px; }
.hero--slider .carousel-control-prev, .hero--slider .carousel-control-next { width: 8%; }

/* ============================================================
   Hero search
   ============================================================ */
.hero-search {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow-lg);
    padding: 22px;
    margin-top: -38px;
    position: relative;
    z-index: 5;
}

/* ============================================================
   Sections / headings
   ============================================================ */
.home-section { padding: 56px 0; }
.home-section--alt { background: var(--pp-bg); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .74rem;
    font-weight: 700;
    color: var(--pp-green);
    margin-bottom: 6px;
}
.section-title {
    font-weight: 700;
    color: var(--pp-dark);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin: 0;
}

/* ============================================================
   Property cards
   ============================================================ */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.property-grid--details { grid-template-columns: repeat(2, 1fr); }
.property-card {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    overflow: hidden;
    box-shadow: var(--pp-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--pp-shadow-lg); }
.property-card__link { display: block; color: inherit; height: 100%; }
.property-card__link:hover { color: inherit; }
.property-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pp-bg); }
.property-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.property-card:hover .property-card__img { transform: scale(1.04); }
.property-card__badges {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.badge {
    font-size: .7rem;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 6px;
    letter-spacing: .3px;
}
.badge-purpose--sale { background: var(--pp-green); color: #fff; }
.badge-purpose--rent { background: #2563eb; color: #fff; }
.badge-accent { background: var(--pp-yellow); color: var(--pp-dark); }
.badge-urgent { background: #ef4444; color: #fff; }
.badge-sold { background: var(--pp-dark); color: #fff; }
.property-card__body { padding: 16px; }
.property-card__price {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--pp-green);
}
.property-card__negotiable {
    font-size: .72rem;
    font-weight: 600;
    color: var(--pp-muted);
    margin-left: 8px;
}
.property-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 8px 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.property-card__location {
    font-size: .82rem;
    color: var(--pp-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-card__location i { color: var(--pp-green); }
.property-card__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--pp-border);
    font-size: .78rem;
    color: var(--pp-dark);
}
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.meta-item i { color: var(--pp-green); }
.property-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}
.property-card__type {
    font-size: .76rem;
    font-weight: 600;
    color: var(--pp-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.property-card__details {
    font-size: .78rem;
    font-weight: 600;
    color: var(--pp-green);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* List view */
.property-grid--list { grid-template-columns: 1fr; }
.property-grid--list .property-card__media { aspect-ratio: 16 / 8; }
@media (min-width: 992px) {
    .property-grid--list .property-card__link {
        display: grid;
        grid-template-columns: 320px 1fr;
    }
    .property-grid--list .property-card__media { height: 100%; aspect-ratio: auto; }
    .property-grid--list .property-card__body { display: flex; flex-direction: column; justify-content: center; }
    .property-grid--list .property-card__footer { margin-top: auto; }
}

/* ============================================================
   Property type grid
   ============================================================ */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.type-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--pp-white);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 18px;
    transition: all .22s ease;
    color: var(--pp-dark);
}
.type-card:hover {
    border-color: var(--pp-green);
    box-shadow: var(--pp-shadow);
    transform: translateY(-3px);
    color: var(--pp-dark);
}
.type-card__icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pp-green-light);
    color: var(--pp-green);
    border-radius: 10px;
    font-size: 1.3rem;
}
.type-card__name { font-size: .98rem; font-weight: 600; margin: 0 0 2px; }
.type-card__count { font-size: .78rem; color: var(--pp-muted); }
.type-card__arrow { margin-left: auto; color: var(--pp-muted); }
.type-card:hover .type-card__arrow { color: var(--pp-green); }

.purpose-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pp-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.purpose-subtitle i { color: var(--pp-green); }

/* ============================================================
   About preview / why choose us / stats / locations / CTA
   ============================================================ */
.about-preview__img {
    width: 100%;
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.about-preview__text {
    color: var(--pp-muted);
    line-height: 1.8;
    margin-bottom: 22px;
}

.why-card {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    padding: 26px 22px;
    height: 100%;
    border: 1px solid var(--pp-border);
    transition: all .22s ease;
}
.why-card:hover { border-color: var(--pp-green); box-shadow: var(--pp-shadow); }
.why-card__icon {
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pp-green-light);
    color: var(--pp-green);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.why-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.why-card__text { font-size: .88rem; color: var(--pp-muted); line-height: 1.7; margin: 0; }

.stats-section {
    background: linear-gradient(135deg, #27784f, #1b5e3a);
    padding: 52px 0;
}
.stat-item__value {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--pp-yellow);
}
.stat-item__label { color: rgba(255,255,255,.9); font-size: .92rem; margin-top: 4px; }

.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--pp-white);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 20px 12px;
    text-align: center;
    color: var(--pp-dark);
    transition: all .22s ease;
    height: 100%;
}
.location-card:hover { border-color: var(--pp-green); box-shadow: var(--pp-shadow); transform: translateY(-3px); color: var(--pp-dark); }
.location-card i { font-size: 1.5rem; color: var(--pp-green); }
.location-card__name { font-weight: 600; }
.location-card__count { font-size: .78rem; color: var(--pp-muted); }

.cta-section {
    background: linear-gradient(120deg, #27784f, #339969);
    padding: 60px 0;
}
.cta-section__title { color: #fff; font-weight: 700; margin-bottom: 10px; }
.cta-section__text { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 26px; }
.cta-section__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-outline-light:hover { color: var(--pp-dark); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #152f22;
    color: rgba(255,255,255,.82);
    padding-top: 56px;
    margin-top: 0;
}
.footer-cols { padding-bottom: 34px; }
.footer-logo { height: 46px; margin-bottom: 16px; }
.footer-desc { font-size: .88rem; line-height: 1.75; color: rgba(255,255,255,.72); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    color: #fff;
    transition: all .2s ease;
}
.footer-social a:hover { background: var(--pp-green); color: #fff; transform: translateY(-2px); }
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 3px;
    background: var(--pp-green);
    border-radius: 3px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .9rem; }
.footer-links a:hover { color: var(--pp-yellow); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .88rem;
    line-height: 1.5;
}
.footer-contact li i { color: var(--pp-yellow); margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--pp-yellow); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(255,255,255,.6);
}

.back-to-top {
    position: fixed;
    right: 20px; bottom: 86px;
    width: 44px; height: 44px;
    background: var(--pp-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 1000;
    box-shadow: var(--pp-shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--pp-green-dark); color: #fff; }

/* ============================================================
   Page banner / breadcrumbs
   ============================================================ */
.page-banner {
    background: linear-gradient(120deg, #e8f5ee, #d8efe3);
    padding: 42px 0 40px;
}
.page-banner--small { padding: 20px 0; background: var(--pp-bg); }
.page-banner__title {
    font-weight: 700;
    color: var(--pp-dark);
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.breadcrumb { font-size: .85rem; }
.breadcrumb a { color: var(--pp-green); }
.breadcrumb-item.active { color: var(--pp-muted); }

/* ============================================================
   Listing page
   ============================================================ */
.listing-wrap { padding: 40px 0 64px; background: var(--pp-bg); }
.listing-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}
.filters-panel {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    padding: 20px;
    position: sticky;
    top: 106px;
}
.filters-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filters-panel__head h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.filters-panel__close { border: none; background: none; font-size: 1.5rem; color: var(--pp-muted); }
.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .5);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.filters-overlay.is-open { opacity: 1; visibility: visible; }
.filters-checks { display: flex; flex-direction: column; gap: 8px; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.check-label input { width: 16px; height: 16px; accent-color: var(--pp-green); }

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    padding: 14px 18px;
    box-shadow: var(--pp-shadow);
}
.listing-count { font-weight: 600; color: var(--pp-dark); }
.listing-toolbar__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; border: 1px solid var(--pp-border); border-radius: 8px; overflow: hidden; }
.view-toggle__btn {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-muted);
}
.view-toggle__btn.is-active { background: var(--pp-green); color: #fff; }

.empty-state {
    text-align: center;
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    padding: 60px 24px;
    box-shadow: var(--pp-shadow);
}
.empty-state i { font-size: 3rem; color: var(--pp-green); }
.empty-state h4 { margin: 16px 0 8px; font-weight: 600; }
.empty-state p { color: var(--pp-muted); max-width: 440px; margin: 0 auto 20px; }

/* ============================================================
   Property details
   ============================================================ */
.property-details { padding: 34px 0 70px; }
.property-details__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 26px;
}
.property-details__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.property-details__title { font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.property-details__sub { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.property-details__code { color: var(--pp-muted); font-weight: 600; }
.property-details__loc { color: var(--pp-muted); }
.property-details__loc i { color: var(--pp-green); }
.property-details__pricerow { text-align: right; }
.property-details__price { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--pp-green); }
.property-details__negotiable { font-size: .82rem; color: var(--pp-muted); font-weight: 600; }
.share-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.share-row__label { font-size: .82rem; color: var(--pp-muted); }
.share-btn {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pp-border);
    border-radius: 8px;
    color: var(--pp-dark);
    font-size: .9rem;
}
.share-btn:hover { border-color: var(--pp-green); color: var(--pp-green); }

/* Gallery */
.gallery { margin-bottom: 28px; }
.gallery__main {
    position: relative;
    border-radius: var(--pp-radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--pp-bg);
}
.gallery__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.gallery__slide.is-active { opacity: 1; visibility: visible; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--pp-dark);
    font-size: 1.2rem;
    z-index: 5;
    box-shadow: var(--pp-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__nav:hover { background: var(--pp-green); color: #fff; }
.gallery__counter {
    position: absolute;
    right: 14px; bottom: 12px;
    background: rgba(17,24,39,.7);
    color: #fff;
    font-size: .78rem;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 5;
}
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb {
    width: 92px; height: 66px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: var(--pp-bg);
    flex-shrink: 0;
}
.gallery__thumb.is-active { border-color: var(--pp-green); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.92);
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.gallery-lightbox.is-open { opacity: 1; visibility: visible; }
.gallery-lightbox__img {
    max-width: 88vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: var(--pp-shadow-lg);
}
.gallery-lightbox__close {
    position: absolute;
    top: 18px; right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    z-index: 2;
}
.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
}
.gallery-lightbox__nav--prev { left: 20px; }
.gallery-lightbox__nav--next { right: 20px; }

/* Details panels */
.details-panel {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    padding: 26px;
    margin-bottom: 24px;
}
.details-panel__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pp-green);
    display: inline-block;
}
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.overview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--pp-bg);
    border-radius: 10px;
    padding: 14px;
}
.overview-item i { font-size: 1.3rem; color: var(--pp-green); }
.overview-item span { display: block; font-size: .76rem; color: var(--pp-muted); }
.overview-item strong { font-size: .92rem; color: var(--pp-dark); }
.description-body { color: var(--pp-dark); line-height: 1.9; font-size: .95rem; }
.amenity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    background: var(--pp-bg);
    border-radius: 8px;
    padding: 11px 14px;
}
.amenity-item i { color: var(--pp-green); font-size: 1.1rem; }
.location-text { color: var(--pp-muted); }
.map-embed { border-radius: 10px; overflow: hidden; box-shadow: var(--pp-shadow); }
.map-embed iframe { width: 100%; height: 320px; display: block; }

/* Inquiry sidebar */
.inquiry-sidebar {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    padding: 24px;
    position: sticky;
    top: 106px;
}
.inquiry-sidebar__title { font-size: 1.15rem; font-weight: 600; }
.inquiry-sidebar__hint { font-size: .86rem; color: var(--pp-muted); }
.inquiry-sidebar__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.agent-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--pp-green-light);
    border-radius: 10px;
    padding: 14px;
    margin-top: 16px;
}
.agent-card__photo {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: var(--pp-shadow);
}
.agent-card__info { display: flex; flex-direction: column; font-size: .85rem; gap: 2px; }
.agent-card__info span { color: var(--pp-muted); }
.agent-card__info a { color: var(--pp-green); }
.inquiry-form .btn-accent { padding: 12px; }

/* ============================================================
   About page
   ============================================================ */
.about-page { padding: 46px 0 70px; }
.about-intro__text { font-size: 1.08rem; color: var(--pp-muted); line-height: 1.9; margin: 0; }
.about-story { margin: 40px 0; }
.about-vm { margin: 40px 0; }
.vm-card {
    background: var(--pp-white);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 30px;
    height: 100%;
    box-shadow: var(--pp-shadow);
}
.vm-card__icon {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pp-green-light);
    color: var(--pp-green);
    border-radius: 12px;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.vm-card__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.vm-card__text { color: var(--pp-muted); line-height: 1.8; margin: 0; }

.chairman-section {
    background: var(--pp-bg);
    border-radius: var(--pp-radius);
    padding: 44px 32px;
    margin: 40px 0;
}
.chairman-photo {
    width: 220px; height: 260px;
    object-fit: cover;
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow-lg);
    border: 4px solid #fff;
}
.chairman-name { font-size: 1.2rem; font-weight: 700; margin: 16px 0 2px; }
.chairman-designation { color: var(--pp-green); font-weight: 600; font-size: .9rem; }
.chairman-message { position: relative; }
.chairman-message__quote {
    position: absolute;
    top: -14px; left: -6px;
    font-size: 3.6rem;
    color: var(--pp-green);
    opacity: .25;
    line-height: 1;
}
.chairman-message__title { font-size: 1.3rem; font-weight: 600; margin-bottom: 14px; }

.team-section { margin: 46px 0; }
.team-card {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    overflow: hidden;
    box-shadow: var(--pp-shadow);
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--pp-shadow-lg); }
.team-card__photo-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: var(--pp-bg); }
.team-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.team-card:hover .team-card__photo { transform: scale(1.05); }
.team-card__body { padding: 18px; text-align: center; }
.team-card__name { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.team-card__role { color: var(--pp-green); font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.team-card__bio { font-size: .82rem; color: var(--pp-muted); line-height: 1.6; margin-bottom: 10px; }
.team-card__contacts { display: flex; gap: 8px; justify-content: center; }
.team-card__contacts a {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pp-border);
    border-radius: 8px;
    color: var(--pp-muted);
}
.team-card__contacts a:hover { border-color: var(--pp-green); color: var(--pp-green); }

.about-cta {
    background: linear-gradient(120deg, #27784f, #339969);
    border-radius: var(--pp-radius);
    padding: 36px 32px;
    color: #fff;
}
.about-cta__title { font-weight: 700; margin-bottom: 6px; }
.about-cta__text { color: rgba(255,255,255,.9); margin: 0; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-page { padding: 46px 0 70px; }
.contact-info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-info-card {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    padding: 24px;
    text-align: center;
}
.contact-info-card__icon {
    width: 50px; height: 50px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pp-green-light);
    color: var(--pp-green);
    border-radius: 50%;
    font-size: 1.3rem;
}
.contact-info-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.contact-info-card p { font-size: .85rem; color: var(--pp-muted); margin: 0; }
.contact-info-card a { display: block; color: var(--pp-dark); }
.contact-info-card a:hover { color: var(--pp-green); }

.contact-details {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    padding: 26px;
}
.contact-details__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; }
.contact-details__list { list-style: none; padding: 0; margin: 0; }
.contact-details__list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pp-border);
    font-size: .9rem;
}
.contact-details__list li:last-child { border-bottom: none; }
.contact-details__list li i { color: var(--pp-green); font-size: 1.1rem; margin-top: 2px; }
.contact-details__list span { display: block; font-size: .76rem; color: var(--pp-muted); }
.contact-details__list strong { font-weight: 600; }
.contact-details__list a { color: var(--pp-dark); }
.contact-details__list a:hover { color: var(--pp-green); }

.contact-form-wrap {
    background: var(--pp-white);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    padding: 28px;
}
.contact-form-wrap__title { font-size: 1.2rem; font-weight: 600; margin-bottom: 18px; }

/* ============================================================
   Error page
   ============================================================ */
.error-page { padding: 70px 0; }
.error-page__code {
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--pp-green);
    line-height: 1;
    opacity: .85;
}
.error-page__title { font-weight: 700; margin: 12px 0 8px; }
.error-page__text { color: var(--pp-muted); max-width: 460px; margin: 0 auto 22px; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199.98px) {
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .type-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-info-cards { grid-template-columns: repeat(2, 1fr); }
    .btn-header__label { display: none; }
}

@media (max-width: 991.98px) {
    .site-nav, .btn-header__label, .top-bar__hours { display: none; }
    .site-header__toggle { display: block; }
    .site-header__actions .btn-header { padding: 9px 12px; }
    .listing-layout { grid-template-columns: 1fr; }
    .filters-panel {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        width: 300px;
        max-width: 85vw;
        z-index: 1050;
        border-radius: 0;
        transform: translateX(-105%);
        transition: transform .3s ease;
        overflow-y: auto;
        box-shadow: var(--pp-shadow-lg);
    }
    .filters-panel.is-open { transform: translateX(0); }
    .overview-grid { grid-template-columns: repeat(2, 1fr); }
    .inquiry-sidebar { position: static; }
}

@media (max-width: 767.98px) {
    .app-nav { display: grid; }
    .home-section { padding: 36px 0; }
    .property-grid, .property-grid--details { grid-template-columns: 1fr; }
    .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .type-grid .type-card { min-width: 0; }
    .hero, .hero--slider, .hero__bg, .hero--slider .carousel-item { min-height: 380px; }
    .hero-search { margin-top: -24px; }
    .overview-grid { grid-template-columns: 1fr 1fr; }
    .amenity-list { grid-template-columns: 1fr; }
    .details-panel { padding: 20px; }
    .property-details__pricerow { text-align: left; }
    .share-row { justify-content: flex-start; }
    .chairman-section { padding: 30px 20px; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head--center { align-items: center; }

    /* Compact sticky header: keep logo visible, tighten spacing */
    .site-header__inner { padding-top: 8px; padding-bottom: 8px; gap: 10px; }
    .site-header__logo { height: 56px; }
    .site-header__actions { gap: 6px; }
    .top-bar { font-size: .78rem; }
    .top-bar__inner { gap: 6px; }
    .top-bar__contact { gap: 12px; }

    /* Property cards: 16/10 image, one per row, compact body */
    .property-card__media { aspect-ratio: 16 / 10; }
    .property-card__body { padding: 14px; }
    .property-card__meta { gap: 12px; }

    /* Hero search: stacked, full-width, touch friendly */
    .hero-search { padding: 16px; }
    .hero-search .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
    .hero-search .form-control, .hero-search .form-select, .hero-search .btn { min-height: 46px; }

    /* Listing: compact toolbar, stacked filter fields, easy sort */
    .listing-toolbar { padding: 12px 14px; gap: 10px; }
    .filters-form .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
    .listing-toolbar__right form { flex: 1 1 auto; min-width: 0; }
    .listing-toolbar__right form .form-select { width: 100%; }
    .pagination { flex-wrap: wrap; }
    .pagination .page-link {
        min-width: 44px; min-height: 44px;
        display: inline-flex; align-items: center; justify-content: center;
    }

    /* Footer: clear the bottom nav instead of a white strip */
    .site-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(70px + env(safe-area-inset-bottom)); }

    /* Full-width submit buttons on mobile */
    .contact-form-wrap .btn, .inquiry-form .btn { width: 100%; }

    /* Long URLs / emails must not overflow */
    .footer-contact a, .contact-details__list a, .description-body { overflow-wrap: anywhere; word-break: break-word; }

    /* Prevent iOS input zoom */
    .form-control, .form-select, textarea { font-size: 16px; }
}

@media (max-width: 575.98px) {
    .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .type-card { padding: 14px; }
    .type-card__icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .property-details__header { flex-direction: column; }
    .listing-toolbar { align-items: flex-start; }
    .listing-toolbar__right { width: 100%; justify-content: space-between; }
    .hero-search { padding: 16px; }

    /* Call / WhatsApp header buttons are duplicated in the bottom nav */
    .site-header__actions .btn-header { display: none; }
}

/* ============================================================
   Hero slider responsive heights
   ------------------------------------------------------------
   The slider image must fill the hero area with object-fit:cover
   instead of keeping its natural aspect ratio, otherwise the
   slider exceeds the viewport on desktop and looks cropped /
   partially visible on smaller screens. Heights below follow the
   recommended ranges: mobile 280-380, tablet 400-500, desktop
   520-650.
   ============================================================ */
.hero--slider { display: block; min-height: 0; height: 320px; }
.hero--slider .carousel,
.hero--slider .carousel-inner { width: 100%; height: 100%; }
.hero--slider .carousel-item { min-height: 0; height: 100%; position: relative; }
.hero--slider .hero__bg { min-height: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (max-width: 575.98px) {
    .hero--slider .hero__content { padding-top: 40px; padding-bottom: 40px; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero--slider { height: 400px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero--slider { height: 450px; }
}
@media (min-width: 992px) {
    .hero--slider { height: 600px; }
}
