/* ============================================================================
   pk-brand.css: the PK Real Estates logo everywhere + the "app" (PWA) bits
   ============================================================================
   Loaded LAST in every layout (by partials/brand-head.blade.php), so these
   rules win over pk.css / pk-panel.css.

   1. Logo tile   Every <span class="pk-logo">PK</span> in the site, the
                  seller panel, the admin panel and the login pages now shows
                  the logo icon (houses + PK) instead of the blue "PK" box.
                  The letters stay in the HTML for screen readers.
   2. Brand name  Slightly smaller in the dark sidebars (longer company name).
   3. Footer      The full round logo on a white plate (maroon on navy would
                  be too dark to read).
   4. Install-app banner (components/install-app.blade.php)
   5. Installed-app mode (when opened from the home-screen icon)
   ========================================================================== */

/* 1. Logo tile ----------------------------------------------------------- */
.pk-logo {
    background: #fff url('../img/brand/icon-192.png') center / cover no-repeat;
    color: transparent !important;
    font-size: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08);
    overflow: hidden;
}

/* 2. Brand name ------------------------------------------------------------ */
.pk-side .pk-brand { font-size: 1.05rem; }
.pk-brand > span:last-child { white-space: nowrap; }

/* 3. Footer logo ----------------------------------------------------------- */
.pk-footer-logo {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.pk-footer-logo img { display: block; width: 220px; height: auto; }

/* 4. Install-app banner ---------------------------------------------------- */
.pk-install {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; margin-bottom: 18px;
    border-radius: 16px; background: var(--pk-navy, #111827); color: #E2E8F0;
}
.pk-install img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; }
.pk-install strong { display: block; color: #fff; font-size: .98rem; }
.pk-install p { margin: 0; font-size: .84rem; color: #CBD5E1; }
.pk-install > .min-w-0 { flex: 1 1 0; }        /* text takes the free space beside the icon */
.pk-install-actions { display: flex; gap: 6px; margin-left: auto; }
.pk-install-actions .btn { border-radius: 10px; white-space: nowrap; }
.pk-install-actions .btn-link { color: #CBD5E1; text-decoration: none; }
@media (max-width: 575.98px) {
    .pk-install { flex-wrap: wrap; }
    .pk-install img { flex-basis: 40px; width: 40px; height: 40px; }
    .pk-install-actions { width: 100%; margin-left: 0; }
    .pk-install-actions .btn-pk { flex: 1; }
}

/* 5. Installed-app mode ---------------------------------------------------- */
@media (display-mode: standalone) {
    /* No grey flash when tapping buttons, like a native app */
    body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
    /* iPhone notch / Android status bar: keep the top bar below it */
    .pk-topbar-panel { padding-top: calc(10px + env(safe-area-inset-top)); }
}


/* 6. Home page "Why us": company logo card (bottom-right of the photo) -- */
.pk-why-logo {
    position: absolute; right: 0; bottom: 0;
    width: 48%; padding: 18px 22px;
    background: #fff; border: 1px solid var(--pk-border, #E2E8F0); border-radius: 20px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, .18);
}
.pk-why-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 991.98px) {
    .pk-why-logo { width: 56%; padding: 10px 14px; border-radius: 16px; }
}


/* 7. Footer bottom line: copyright + "Developed by" credit -------------- */
.pk-footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 6px 20px; text-align: left;
}
.pk-footer-credit { color: #94A3B8; }
.pk-footer-credit a { color: #E2E8F0; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(226, 232, 240, .35); }
.pk-footer-credit a:hover { color: #fff; border-bottom-color: #fff; }
@media (max-width: 767.98px) {
    .pk-footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
}