/* ============================================================
   Rumah go - Rentals Landing Page
   Clean, modern, mobile-first, professional Malaysian rental site.
   ============================================================ */

/* ---------- Design tokens (CSS variables) ---------- */
:root {
    --brand:        #0e7490;   /* teal blue - primary */
    --brand-dark:   #0b5f77;
    --brand-light:  #e0f2f6;
    --accent:       #f59e0b;   /* WhatsApp-friendly warm accent */
    --green-wa:     #25d366;   /* WhatsApp green */
    --ink:          #0f172a;   /* main text */
    --ink-muted:    #5b6574;   /* secondary text */
    --line:         #e6eaf0;   /* borders */
    --surface:      #ffffff;
    --surface-soft: #f7f9fb;
    --shadow-sm:    0 1px 2px rgba(15,23,42,.06);
    --shadow-md:    0 10px 25px -8px rgba(15,23,42,.15);
    --shadow-lg:    0 24px 48px -16px rgba(15,23,42,.20);
    --radius:       14px;
    --radius-sm:    9px;
    --font:         "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --container:    1180px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.icon { vertical-align: -3px; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-whatsapp {
    background: var(--green-wa);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(37,211,102,.6);
}
.btn-whatsapp:hover { background: #1fb857; }

.btn-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.5);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-outline {
    background: var(--surface);
    color: var(--brand);
    border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand-light); }

.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
}
.brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--brand);
    color: #fff;
}
.main-nav ul { display: flex; gap: 8px; align-items: center; }
.main-nav a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font-weight: 500;
    transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--brand); background: var(--brand-light); }

.nav-toggle {
    display: none;
    border: 0; background: none;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(6,40,56,.82), rgba(14,116,144,.55) 55%, rgba(10,60,80,.72));
}
.hero-content { padding-top: 70px; padding-bottom: 70px; max-width: 680px; }
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    margin-bottom: 18px;
}
.hero-title { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.5px; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); opacity: .95; max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections & headings ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--surface-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.4px; }
.section-sub { color: var(--ink-muted); font-size: 17px; }

/* ---------- Listings grid ---------- */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}

/* ---------- Property card ---------- */
.property-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .22s ease;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.property-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-soft);
}
.property-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.property-card:hover .property-card-media img { transform: scale(1.04); }

.property-type {
    position: absolute;
    top: 12px; left: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(11,95,119,.92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}
.property-price {
    position: absolute;
    bottom: 12px; left: 12px;
    background: #fff;
    color: var(--ink);
    padding: 6px 13px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}
.property-price small { font-weight: 500; color: var(--ink-muted); font-size: 12px; }

.property-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.property-name { font-size: 18px; }
.property-name a:hover { color: var(--brand); }
.property-location { color: var(--ink-muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.property-location .icon { color: var(--brand); }

.property-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-muted); font-size: 13.5px; }
.property-meta li { display: flex; align-items: center; gap: 6px; }
.property-meta .icon { color: var(--brand); }

.property-desc { color: var(--ink-muted); font-size: 14px; margin: 0; }

.property-card-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.property-card-actions .btn { flex: 1 1 auto; }


/* ---------- Benefits ("Why Rent With Us") ---------- */
.benefits { background: var(--surface-soft); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}
.benefit-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform .18s ease, box-shadow .22s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-icon {
    width: 58px; height: 58px;
    margin: 0 auto 16px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: var(--brand-light);
    color: var(--brand);
}
.benefit-card h3 { font-size: 18px; }
.benefit-card p { color: var(--ink-muted); font-size: 14.5px; margin: 0; }

/* ---------- WhatsApp CTA banner ---------- */
.cta-banner {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    color: #fff;
    padding: 62px 0;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-title { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.4px; margin-bottom: 6px; }
.cta-sub { opacity: .92; font-size: 17px; margin: 0; }
.cta-banner .btn-whatsapp { box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1b26; color: #cbd5e1; padding-top: 56px; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
.site-footer .brand { color: #fff; }
.footer-tag { color: #94a3b8; font-size: 14.5px; margin-top: 14px; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-nav a, .footer-contact a { color: #cbd5e1; display: block; padding: 4px 0; font-size: 14.5px; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(148,163,184,.15); padding: 20px 0; }
.footer-bottom p { margin: 0; color: #94a3b8; font-size: 13.5px; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 60;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--green-wa);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 24px -6px rgba(37,211,102,.65);
    transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Error / 404 ---------- */
.error-page { min-height: 55vh; display: flex; align-items: center; }
.error-inner { text-align: center; }
.error-code { font-size: 72px; font-weight: 800; color: var(--brand); line-height: 1; display: block; }
.error-title { font-size: 28px; margin: 8px 0; }
.error-text { color: var(--ink-muted); max-width: 440px; margin: 0 auto 22px; }


/* ---------- Property detail page ---------- */
.detail { padding-top: 34px; }
.crumbs { font-size: 14px; color: var(--ink-muted); margin-bottom: 22px; }
.crumbs a { color: var(--brand); }
.crumbs a:hover { text-decoration: underline; }
.crumb-sep { margin: 0 8px; color: var(--line); }

.chip.property-type { position: static; display: inline-block; background: var(--brand-light); color: var(--brand); margin-bottom: 8px; }

.detail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.detail-title { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.4px; margin: 8px 0 6px; }
.detail-price { text-align: right; }
.detail-price-amount { font-size: 30px; font-weight: 800; color: var(--brand); }
.detail-price-term { color: var(--ink-muted); font-size: 15px; }

.detail-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 34px;
}
.detail-main-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-soft); }
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.gallery-thumb { border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; padding: 0; background: none; aspect-ratio: 4 / 3; transition: border-color .15s ease; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand); }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.detail-block { margin-bottom: 34px; }
.block-title { font-size: 22px; letter-spacing: -.3px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--brand-light); }
.detail-text { color: #1f2937; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: #1f2937; }
.feature-list .icon { color: var(--green-wa); margin-top: 3px; }
.steps-list { counter-reset: step; list-style: none; padding-left: 0; }
.steps-list li { counter-increment: step; position: relative; padding: 8px 0 8px 40px; color: #1f2937; }
.steps-list li::before {
    content: counter(step);
    position: absolute; left: 0; top: 8px;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: var(--brand-light); color: var(--brand);
    border-radius: 50%; font-weight: 700; font-size: 14px;
}
.detail-note { color: var(--ink-muted); font-size: 14px; }

.enquiry-card, .facts-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.enquiry-title, .facts-title { font-size: 18px; margin-bottom: 8px; }
.enquiry-text { color: var(--ink-muted); font-size: 14.5px; }
.enquiry-hint { color: var(--ink-muted); font-size: 13px; text-align: center; margin: 12px 0 0; }

.facts-list { margin: 0; }
.fact-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--ink-muted); }
.fact-row dd { margin: 0; font-weight: 600; text-align: right; }

.related { margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-price { text-align: left; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .section { padding: 54px 0; }
    .header-inner { min-height: 62px; }

    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .main-nav.open { max-height: 320px; }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
    .main-nav a { padding: 12px 12px; }

    .header-cta { display: none; }

    .cta-inner { justify-content: center; text-align: center; }
    .hero-content { padding-top: 56px; padding-bottom: 56px; }
    .hero-actions .btn { width: 100%; }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 440px) {
    .listings-grid { grid-template-columns: 1fr; }
    .property-card-actions .btn { flex: 1 1 100%; }
    .detail-gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
}

