/* ============================================================================
   public/css/pk.css: PK Enterprises public website styles
   ============================================================================
   Loaded AFTER Bootstrap in layouts/site.blade.php, so these rules win.
   All brand colours live in the :root variables below. Change a colour
   here and the whole site follows.
   ========================================================================== */

/* ── 1. BRAND TOKENS ───────────────────────────────────────────────────────── */
:root {
    --pk-navy: #111827;        /* Primary Dark: header top bar, footer, headings */
    --pk-blue: #2563EB;        /* Primary Accent: buttons, links, active states */
    --pk-blue-dark: #1D4ED8;   /* hover state for blue */
    --pk-white: #FFFFFF;       /* Neutral background */
    --pk-slate: #64748B;       /* Secondary: subtitles, metadata, borders */
    --pk-light: #F1F5F9;       /* alternate section background */
    --pk-border: #E2E8F0;
    --pk-radius: 14px;
    --pk-shadow: 0 10px 30px rgba(17, 24, 39, .08);
    --pk-shadow-hover: 0 18px 40px rgba(17, 24, 39, .14);

    /* Tell Bootstrap to use our blue as its "primary" colour too */
    --bs-primary: #2563EB;
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: #2563EB;
    --bs-link-hover-color: #1D4ED8;
}

/* ── 2. BASE TYPOGRAPHY ────────────────────────────────────────────────────── */
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #334155;
    background: var(--pk-white);
}
h1, h2, h3, h4, h5, h6, .pk-brand {
    font-family: 'Poppins', sans-serif;
    color: var(--pk-navy);
}
a { text-decoration: none; }

/* ── 3. BUTTONS ────────────────────────────────────────────────────────────── */
.btn-pk {
    background: var(--pk-blue);
    color: #fff;
    border: 1px solid var(--pk-blue);
    font-weight: 500;
    border-radius: 10px;
    transition: all .2s ease;
}
.btn-pk:hover, .btn-pk:focus { background: var(--pk-blue-dark); border-color: var(--pk-blue-dark); color: #fff; transform: translateY(-1px); }

.btn-pk-outline {
    background: transparent;
    color: var(--pk-blue);
    border: 1px solid var(--pk-blue);
    font-weight: 500;
    border-radius: 10px;
}
.btn-pk-outline:hover { background: var(--pk-blue); color: #fff; }

.btn-whatsapp { background: #25D366; color: #fff; font-weight: 600; border-radius: 10px; }
.btn-whatsapp:hover { background: #1EBE5A; color: #fff; }

/* ── 4. TOP BAR + HEADER ───────────────────────────────────────────────────── */
.pk-topbar {
    background: var(--pk-navy);
    color: #CBD5E1;
    font-size: .85rem;
    padding: 8px 0;
}
.pk-topbar a { color: #CBD5E1; }
.pk-topbar a:hover { color: #fff; }
.pk-topbar i { color: var(--pk-blue); margin-right: 4px; }

.pk-header {
    background: #fff;
    box-shadow: 0 1px 0 var(--pk-border);
    transition: box-shadow .2s ease;
}
.pk-header.scrolled { box-shadow: 0 6px 20px rgba(17, 24, 39, .08); } /* added by pk.js on scroll */
.pk-header .navbar { padding: 14px 0; }
.pk-header .nav-link { color: var(--pk-navy); font-weight: 500; padding: 8px 14px !important; }
.pk-header .nav-link:hover, .pk-header .nav-link.active { color: var(--pk-blue); }
.navbar-toggler { border: 0; color: var(--pk-navy); }
.navbar-toggler:focus { box-shadow: none; }

.pk-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--pk-navy); }
.pk-brand small { display: block; font-family: 'Inter', sans-serif; font-size: .7rem; font-weight: 500; color: var(--pk-slate); letter-spacing: .5px; text-transform: uppercase; }
.pk-brand span:last-child { line-height: 1.1; }
.pk-logo {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--pk-blue); color: #fff;
    font-weight: 700; font-size: 1.05rem;
}
.pk-brand-light, .pk-brand-light span { color: #fff; }

/* ── 5. HERO ───────────────────────────────────────────────────────────────── */
/* Optional photo: save any landscape image as public/img/hero.jpg */
.pk-hero {
    position: relative;
    padding: 110px 0 90px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .92), rgba(17, 24, 39, .70)),
        url('../img/hero.jpg') center / cover no-repeat,
        var(--pk-navy);
}
.pk-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; margin: 14px 0; }
.pk-hero .lead { color: #CBD5E1; font-size: 1.15rem; }
.pk-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(37, 99, 235, .18);
    border: 1px solid rgba(37, 99, 235, .45);
    color: #BFDBFE;
    font-size: .85rem;
    font-weight: 500;
}
.pk-eyebrow-dark { background: rgba(37, 99, 235, .08); color: var(--pk-blue); }

.pk-search-card {
    margin-top: 44px;
    background: #fff;
    border-radius: var(--pk-radius);
    padding: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}
.pk-hero-search .form-label { font-size: .8rem; font-weight: 600; color: var(--pk-slate); margin-bottom: 4px; }
.pk-hero-search .form-label i { color: var(--pk-blue); }
.pk-hero-search .form-select { border-color: var(--pk-border); padding-top: .55rem; padding-bottom: .55rem; }

/* ── 6. STATS STRIP ────────────────────────────────────────────────────────── */
.pk-stats { padding: 40px 0; border-bottom: 1px solid var(--pk-border); }
.pk-stat-number { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--pk-navy); }
.pk-stat-label { color: var(--pk-slate); font-size: .9rem; }

/* ── 7. SECTIONS ───────────────────────────────────────────────────────────── */
.pk-section { padding: 80px 0; }
.pk-section-alt { background: var(--pk-light); }
.pk-section-title { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.pk-section-title span { color: var(--pk-blue); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }
.pk-section-title h2 { font-weight: 700; margin: 8px 0; }
.pk-section-title p { color: var(--pk-slate); margin: 0; }

.pk-page-header { background: var(--pk-navy); padding: 50px 0 40px; }
.pk-page-header h1 { color: #fff; font-weight: 700; }
.pk-page-header .breadcrumb { margin: 0; }
.pk-page-header .breadcrumb a { color: #93C5FD; }
.pk-page-header .breadcrumb-item.active, .pk-page-header .breadcrumb-item + .breadcrumb-item::before { color: #CBD5E1; }

/* ── 8. PROPERTY CARD ──────────────────────────────────────────────────────── */
.pk-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.pk-card:hover { transform: translateY(-6px); box-shadow: var(--pk-shadow-hover); }

.pk-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pk-light); }
.pk-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pk-card:hover .pk-card-media img { transform: scale(1.06); }

.pk-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pk-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 50px;
    font-size: .72rem; font-weight: 600; line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.pk-card-type {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(17, 24, 39, .85); color: #fff;
    padding: 4px 10px; border-radius: 6px; font-size: .75rem;
}

.pk-card-body { padding: 18px 18px 8px; flex: 1; }
.pk-card-price { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--pk-blue); }
.pk-card-total { font-size: .8rem; color: var(--pk-slate); }
.pk-card-title { font-size: 1.05rem; font-weight: 600; margin: 8px 0 6px; line-height: 1.4; }
.pk-card-title a { color: var(--pk-navy); }
.pk-card-title a:hover { color: var(--pk-blue); }
.pk-card-location { color: var(--pk-slate); font-size: .88rem; margin-bottom: 10px; }
.pk-card-location i { color: var(--pk-blue); }
.pk-card-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: #475569; }
.pk-card-meta i { color: var(--pk-slate); margin-right: 3px; }
.pk-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px; border-top: 1px solid var(--pk-border);
    font-size: .8rem; color: var(--pk-slate);
}
.pk-card-footer a { font-weight: 600; color: var(--pk-blue); }

/* ── 9. TYPE TILES + FEATURES + CTA ────────────────────────────────────────── */
.pk-type-tile {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 24px 10px; text-align: center;
    background: #fff; border: 1px solid var(--pk-border); border-radius: var(--pk-radius);
    color: var(--pk-navy); transition: all .2s ease; height: 100%;
}
.pk-type-tile i { font-size: 2rem; color: var(--pk-blue); }
.pk-type-tile small { color: var(--pk-slate); }
.pk-type-tile:hover { border-color: var(--pk-blue); box-shadow: var(--pk-shadow); transform: translateY(-4px); }

.pk-feature { padding: 32px; border-radius: var(--pk-radius); border: 1px solid var(--pk-border); height: 100%; transition: box-shadow .2s ease; }
.pk-feature:hover { box-shadow: var(--pk-shadow); }
.pk-feature i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(37, 99, 235, .1); color: var(--pk-blue); font-size: 1.6rem; margin-bottom: 16px; }
.pk-feature h3 { font-size: 1.15rem; font-weight: 600; }
.pk-feature p { color: var(--pk-slate); margin: 0; }

.pk-cta { background: linear-gradient(135deg, var(--pk-blue), var(--pk-navy)); color: #fff; padding: 70px 0; }
.pk-cta h2 { color: #fff; font-weight: 700; }
.pk-cta p { color: #DBEAFE; margin-bottom: 24px; }

.pk-empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--pk-border); border-radius: var(--pk-radius); color: var(--pk-slate); }
.pk-empty i { font-size: 2.5rem; color: var(--pk-blue); }

/* ── 10. SEARCH PAGE ───────────────────────────────────────────────────────── */
.pk-filter-card { background: #fff; border: 1px solid var(--pk-border); border-radius: var(--pk-radius); padding: 20px; position: sticky; top: 100px; }
.pk-filter-card .form-label { font-size: .82rem; font-weight: 600; color: var(--pk-slate); }
.pagination { --bs-pagination-active-bg: var(--pk-blue); --bs-pagination-active-border-color: var(--pk-blue); }

/* ── 11. DETAIL PAGE ───────────────────────────────────────────────────────── */
.pk-detail-head { background: var(--pk-light); padding: 30px 0; border-bottom: 1px solid var(--pk-border); }
.pk-detail-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin: 6px 0; }
.pk-detail-price { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--pk-blue); }

.pk-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; height: 460px; }
.pk-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: opacity .2s; }
.pk-gallery a:hover img { opacity: .88; }
.pk-gallery-main { display: block; height: 100%; }
.pk-gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }
.pk-gallery-thumbs a { position: relative; display: block; }
.pk-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17, 24, 39, .6); color: #fff; font-weight: 600; border-radius: 10px; }
.pk-gallery-empty img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; }

.pk-box { background: #fff; border: 1px solid var(--pk-border); border-radius: var(--pk-radius); padding: 24px; margin-bottom: 20px; }
.pk-box-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--pk-border); }
.pk-facts span { display: block; font-size: .8rem; color: var(--pk-slate); }
.pk-facts strong { color: var(--pk-navy); }
.pk-description { line-height: 1.8; }
.pk-utility { padding: 10px 14px; background: var(--pk-light); border-radius: 8px; }
.pk-utility i { color: var(--pk-blue); margin-right: 6px; }
.pk-sidebar { position: sticky; top: 100px; }

/* ── 12. ABOUT + CONTACT ───────────────────────────────────────────────────── */
.pk-about-panel { background: var(--pk-navy); color: #E2E8F0; border-radius: var(--pk-radius); padding: 36px; }
.pk-about-panel h3 { color: #fff; }
.pk-about-panel li { padding: 8px 0; }
.pk-about-panel i { color: #60A5FA; margin-right: 8px; }

.pk-contact-item { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--pk-border); border-radius: var(--pk-radius); margin-bottom: 14px; }
.pk-contact-item i { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(37, 99, 235, .1); color: var(--pk-blue); font-size: 1.3rem; }
.pk-contact-item p { margin: 2px 0 0; color: var(--pk-slate); }

/* ── 13. FOOTER ────────────────────────────────────────────────────────────── */
.pk-footer { background: var(--pk-navy); color: #94A3B8; padding: 64px 0 0; margin-top: 0; }
.pk-footer h6 { color: #fff; font-weight: 600; margin-bottom: 16px; }
.pk-footer a { color: #94A3B8; }
.pk-footer a:hover { color: #fff; }
.pk-footer li { padding: 4px 0; }
.pk-footer-contact i { color: var(--pk-blue); margin-right: 6px; }
.pk-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding: 20px 0; text-align: center; font-size: .85rem; }

/* ── 14. FLOATING WHATSAPP ─────────────────────────────────────────────────── */
.pk-whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 1030;
    display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .2s ease;
}
.pk-whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ── 15. MOBILE ADJUSTMENTS (phones & small tablets) ───────────────────────── */
@media (max-width: 991.98px) {
    .pk-header .navbar-collapse { padding: 12px 0; }
    .pk-gallery { grid-template-columns: 1fr; height: auto; }
    .pk-gallery-main { height: 280px; }
    .pk-gallery-thumbs { height: 140px; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; }
    .pk-filter-card, .pk-sidebar { position: static; }
    .pk-section { padding: 56px 0; }
}
@media (max-width: 575.98px) {
    .pk-hero { padding: 70px 0 60px; }
    .pk-search-card { padding: 16px; margin-top: 30px; }
    .pk-stat-number { font-size: 1.6rem; }
}