/* =========================================================
   PROP-KEYS HEADER - FINAL RECTIFIED VERSION
   ========================================================= */

:root {
    --pk-blue: #087bea;
    --pk-blue-dark: #006bd1;
    --pk-navy: #153e68;
    --pk-text: #263242;
    --pk-muted: #687483;
    --pk-border: #e6ebf1;
    --pk-header-height: 66px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--pk-text);
    background: #fff;
}

/* =========================================================
   HEADER
   ========================================================= */

.pk-header {
    position: relative;
    z-index: 1050;
    width: 100%;
    height: var(--pk-header-height);
    background: #fff;
    border-top: 1px solid #dce2e9;
    border-bottom: 1px solid #e7ebf0;
    box-shadow: 0 2px 9px rgba(18, 48, 78, .09);
}

.pk-header-inner {
    width: 100%;
    height: 100%;
    padding: 0 45px;
    display: flex;
    align-items: center;
}

/* =========================================================
   LOGO
   ========================================================= */

.pk-logo {
    width: 207px;
    min-width: 207px;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
}

.pk-logo img {
    width: 190px;
    height: 59px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

/* =========================================================
   DESKTOP NAV
   ========================================================= */

.pk-desktop-nav {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
}

.pk-nav-link {
    position: relative;
    height: 100%;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 0;
    outline: 0;
    background: transparent;

    color: #293441;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    transition: color .2s ease;
}

.pk-nav-link:hover,
.pk-nav-link.active {
    color: var(--pk-blue);
}

.pk-nav-link.active::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 0;
    height: 2px;
    background: var(--pk-blue);
    border-radius: 3px 3px 0 0;
}

.pk-drop-btn i {
    font-size: 9px;
    transition: transform .2s ease;
}

.pk-dropdown {
    position: relative;
    height: 100%;
}

.pk-dropdown:hover .pk-drop-btn i {
    transform: rotate(180deg);
}

.pk-dropdown-menu {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 1px);
    left: 50%;
    width: 220px;

    padding: 8px;

    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: 8px;
    box-shadow: 0 13px 32px rgba(25, 54, 90, .15);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, 8px);
    transition: all .18s ease;
}

.pk-dropdown:hover .pk-dropdown-menu,
.pk-dropdown:focus-within .pk-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.pk-dropdown-menu a {
    display: block;
    padding: 9px 12px;

    color: #344153;
    text-decoration: none;

    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
}

.pk-dropdown-menu a:hover {
    color: var(--pk-blue);
    background: #f1f7ff;
}

/* =========================================================
   EXPERT PHONE
   ========================================================= */

.pk-expert {
    min-width: 171px;
    margin-left: 4px;

    display: flex;
    align-items: center;

    color: #263442;
    text-decoration: none;
}

.pk-phone-icon {
    width: 34px;
    height: 34px;
    margin-right: 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--pk-blue);
    font-size: 27px;
}

.pk-expert-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pk-expert-copy strong {
    color: #202b38;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pk-expert-copy small {
    margin-top: 4px;
    color: #788390;
    font-size: 12px;
    white-space: nowrap;
}

/* =========================================================
   COMPARE PROPERTY ICON
   Circular icon + "0" badge, matching supplied reference.
   ========================================================= */

.pk-compare {
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin: 0 9px 0 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--pk-blue);
    text-decoration: none;
}

.pk-compare-circle {
    position: relative;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--pk-blue);

    border: 2px solid currentColor;
    border-radius: 50%;

    transition:
        color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}

.pk-compare-circle > i {
    font-size: 23px;
    line-height: 1;
    font-weight: 400;
}

.pk-compare-count {
    position: absolute;
    top: -7px;
    right: -6px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--pk-navy);
    background: #fff;

    border: 2px solid currentColor;
    border-radius: 50%;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.pk-compare:hover .pk-compare-circle {
    color: var(--pk-navy);
    background: #f5f9ff;
    transform: scale(1.03);
}

/* =========================================================
   MOBILE COMPARE ICON
   ========================================================= */

.pk-mobile-compare .pk-compare-circle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.pk-mobile-compare .pk-compare-circle > i {
    font-size: 21px;
}

.pk-mobile-compare .pk-compare-count {
    width: 18px;
    height: 18px;
    top: -6px;
    right: -6px;
    font-size: 10px;
}

.pk-mobile-compare:hover .pk-compare-circle {
    color: var(--pk-navy);
}

/* =========================================================
   GET IN TOUCH
   ========================================================= */

.pk-list-btn {
    min-width: 142px;
    height: 38px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: var(--pk-blue);

    border-radius: 6px;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 4px 13px rgba(8, 123, 234, .18);

    transition:
        background .18s ease,
        transform .18s ease;
}

.pk-list-btn:hover {
    color: #fff;
    background: var(--pk-blue-dark);
    transform: translateY(-1px);
}

/* =========================================================
   MOBILE HEADER COMPARE
   Logo -> Compare -> Hamburger
   ========================================================= */

.pk-mobile-header-compare {
    display: none;

    width: 50px;
    min-width: 50px;
    height: 52px;
    margin-right: 5px;

    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.pk-mobile-header-compare .pk-compare-circle {
    width: 43px;
    height: 43px;
}

.pk-mobile-header-compare .pk-compare-circle > i {
    font-size: 21px;
}

.pk-mobile-header-compare .pk-compare-count {
    width: 20px;
    height: 20px;
    top: -6px;
    right: -5px;
    font-size: 10px;
}

.pk-mobile-header-compare:hover .pk-compare-circle {
    background: #f5f9ff;
}

.pk-mobile-header-compare:hover .pk-compare-circle > i {
    color: var(--pk-navy);
}

.pk-mobile-header-compare:hover .pk-compare-count {
    color: #fff;
    background: var(--pk-navy);
}

/* =========================================================
   MOBILE HAMBURGER
   ========================================================= */


.pk-mobile-toggle {
    display: none;

    width: 44px;
    height: 42px;

    padding: 8px 9px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid #dce5ef;
    border-radius: 8px;

    background: #fff;
    cursor: pointer;
}

.pk-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 5px;
    background: var(--pk-navy);
}

/* =========================================================
   MOBILE OFFCANVAS
   IMPORTANT:
   .offcanvas-start makes Bootstrap open from LEFT.
   ========================================================= */

.pk-offcanvas {
    width: min(88vw, 370px) !important;

    border-right: 1px solid #e3e9f0;
    border-left: 0;

    box-shadow: 14px 0 35px rgba(0, 0, 0, .14);
}

.pk-mobile-head {
    min-height: 75px;
    padding: 9px 17px;

    border-bottom: 1px solid #e8edf2;
}

.pk-mobile-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pk-mobile-logo {
    width: 170px;
    height: 55px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.pk-close {
    margin: 0 !important;
    opacity: .75;
}

.pk-mobile-nav {
    width: 100%;
}

/* =========================================================
   MOBILE MAIN LINKS
   ========================================================= */

.pk-mobile-link {
    width: 100%;
    min-height: 54px;

    padding: 0 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #293646;
    background: #fff;

    border: 0;
    border-bottom: 1px solid #e9eef3;

    text-align: left;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: background .15s ease, color .15s ease;
}

.pk-mobile-link span {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.pk-mobile-link span i {
    width: 22px;

    color: var(--pk-blue);
    font-size: 17px;
    text-align: center;
}

.pk-mobile-link.active {
    color: var(--pk-blue);
    background: #f3f8ff;
}

.pk-mobile-link:hover {
    background: #f7faff;
}

.pk-mobile-sub-toggle {
    cursor: pointer;
}

.pk-mobile-sub-toggle > i {
    color: #8290a0;
    font-size: 14px;
    transition: transform .2s ease;
}

.pk-mobile-sub-toggle[aria-expanded="true"] > i {
    transform: rotate(180deg);
}

/* =========================================================
   MOBILE SUB MENU
   ========================================================= */

.pk-mobile-sub {
    padding: 5px 0 7px 43px;

    background: #f8fafc;
    border-bottom: 1px solid #e7edf3;
}

.pk-mobile-sub a {
    display: block;

    padding: 9px 10px;

    color: #586779;
    text-decoration: none;

    border-left: 2px solid transparent;

    font-size: 13px;
    font-weight: 500;
}

.pk-mobile-sub a:hover {
    color: var(--pk-blue);
    background: #eef6ff;
    border-left-color: var(--pk-blue);
}

/* =========================================================
   MOBILE BOTTOM
   ========================================================= */

.pk-mobile-bottom {
    padding-top: 16px;
}

/* Expert card */
.pk-mobile-expert {
    min-height: 89px;
    padding: 12px 14px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: #f3f8ff;
    border: 1px solid #d9eaff;
    border-radius: 9px;
}

.pk-mobile-expert-icon {
    width: 43px;
    height: 43px;
    min-width: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: var(--pk-blue);

    border-radius: 50%;
    font-size: 17px;
}

.pk-mobile-expert small {
    display: block;
    margin-bottom: 4px;

    color: #738296;
    font-size: 10px;
}

.pk-mobile-expert a {
    color: #173e68;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

/* Compare row */
.pk-mobile-compare {
    min-height: 49px;
    margin-top: 10px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #293747;
    background: #fff;

    border: 1px solid #e1e8f0;
    border-radius: 8px;

    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.pk-mobile-compare span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pk-mobile-compare span i {
    color: var(--pk-blue);
    font-size: 17px;
    transition: color .18s ease;
}

.pk-mobile-compare:hover span i {
    color: var(--pk-navy);
}

.pk-mobile-compare > i {
    color: #8995a3;
    font-size: 13px;
}

.pk-mobile-compare:hover {
    color: var(--pk-blue);
    background: #f6faff;
}

/* Get In Touch mobile */
.pk-mobile-list-btn {
    min-height: 49px;
    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #fff;
    background: var(--pk-blue);

    border-radius: 7px;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.pk-mobile-list-btn:hover {
    color: #fff;
    background: var(--pk-blue-dark);
}


/* =========================================================
   GET IN TOUCH POPUP / MODAL
   ========================================================= */

.pk-contact-modal {
    z-index: 2000;
}

.pk-contact-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 525px;
    margin: 1.75rem auto;
}

.pk-contact-modal-content {
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .28);
}

/* Blue title bar */
.pk-contact-modal-header {
    min-height: 67px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(110deg, #1f55a1 0%, #0875ef 100%);
}

.pk-contact-modal-header h2 {
    margin: 0;

    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* Large X exactly in the blue header */
.pk-contact-close {
    width: 36px;
    height: 36px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 5px;

    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: .98;

    transition: background .18s ease;
}

.pk-contact-close span {
    display: block;
    margin-top: -4px;
    font-weight: 300;
}

.pk-contact-close:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}

/* Body */
.pk-contact-modal-body {
    padding: 25px 23px 21px;
}

.pk-contact-intro {
    margin: 0 0 21px;

    color: #77818d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    text-align: center;
}

.pk-form-group {
    margin-bottom: 16px;
}

.pk-form-group label {
    display: block;
    margin: 0 0 7px;

    color: #303740;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.pk-form-group label span {
    color: #ef3340;
}

.pk-form-control {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;

    color: #4e5965;
    background: #f8fafc;

    border: 1px solid #d6dee8;
    border-radius: 12px;
    outline: 0;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;

    box-shadow: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.pk-form-control::placeholder {
    color: #7a838d;
    opacity: 1;
}

.pk-form-control:focus {
    background: #fff;
    border-color: #5c9be8;
    box-shadow: 0 0 0 3px rgba(8, 123, 234, .10);
}

.pk-message-control {
    min-height: 100px;
    height: 100px;
    padding-top: 13px;
    padding-bottom: 13px;
    resize: vertical;
}

.pk-form-control.is-invalid {
    border-color: #dc3545;
}

.pk-send-message {
    width: 100%;
    min-height: 55px;
    margin-top: -1px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    color: #fff;
    background: linear-gradient(105deg, #204e95 0%, #0875ef 100%);

    border: 0;
    border-radius: 12px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(8, 117, 239, .18);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.pk-send-message i {
    font-size: 18px;
    transform: rotate(-8deg);
}

.pk-send-message:hover {
    color: #fff;
    filter: brightness(.96);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(8, 117, 239, .25);
}

.pk-send-message:active {
    transform: translateY(0);
}

.pk-contact-success {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;

    color: #176b3a;
    background: #eefaf3;
    border: 1px solid #bfe8ce;
    border-radius: 8px;

    font-size: 13px;
    text-align: center;
}

.pk-contact-success.show {
    display: block;
}

/* Dark page overlay */
.modal-backdrop.show {
    opacity: .72;
}

/* =========================================================
   MOBILE POPUP
   ========================================================= */

@media (max-width: 575.98px) {

    .pk-contact-modal .modal-dialog {
        width: calc(100% - 20px);
        max-width: none;
        margin: .75rem auto;
    }

    .pk-contact-modal-content {
        border-radius: 14px;
    }

    .pk-contact-modal-header {
        min-height: 60px;
        padding: 0 16px;
    }

    .pk-contact-modal-header h2 {
        font-size: 21px;
    }

    .pk-contact-close {
        width: 34px;
        height: 34px;
        font-size: 32px;
    }

    .pk-contact-modal-body {
        padding: 19px 15px 15px;
    }

    .pk-contact-intro {
        margin-bottom: 17px;
        font-size: 13px;
        line-height: 1.5;
    }

    .pk-desktop-break {
        display: none;
    }

    .pk-form-group {
        margin-bottom: 13px;
    }

    .pk-form-group label {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .pk-form-control {
        min-height: 47px;
        padding: 0 13px;
        border-radius: 9px;
        font-size: 14px;
    }

    .pk-message-control {
        height: 92px;
        min-height: 92px;
        padding-top: 11px;
    }

    .pk-send-message {
        min-height: 49px;
        border-radius: 9px;
        font-size: 14px;
    }
}

/* =========================================================
   DEMO AREA
   ========================================================= */

.pk-demo {
    min-height: calc(100vh - var(--pk-header-height));

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f9fc;
}

.pk-demo-content {
    text-align: center;
}

.pk-demo-content h1 {
    margin: 0 0 8px;

    color: var(--pk-navy);
    font-size: 34px;
    font-weight: 700;
}

.pk-demo-content p {
    margin: 0;

    color: #6d7987;
    font-size: 16px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .pk-header-inner {
        padding-left: 25px;
        padding-right: 25px;
    }

    .pk-logo {
        width: 178px;
        min-width: 178px;
    }

    .pk-logo img {
        width: 170px;
    }

    .pk-nav-link {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 11px;
    }

    .pk-expert {
        min-width: 150px;
    }

    .pk-compare {
        margin-right: 5px;
    }

    .pk-list-btn {
        min-width: 125px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    :root {
        --pk-header-height: 66px;
    }

    .pk-header-inner {
        padding: 0 14px 0 12px;
    }

    .pk-logo {
        width: auto;
        min-width: 0;
        flex: 1;
    }

    .pk-logo img {
        width: 178px;
        max-height: 60px;
    }

    .pk-desktop-nav,
    .pk-expert,
    .pk-compare,
    .pk-list-btn {
        display: none;
    }

    .pk-mobile-header-compare {
        display: inline-flex;
    }

    .pk-mobile-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .pk-demo {
        min-height: calc(100vh - 66px);
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .pk-logo img {
        width: 164px;
    }

    .pk-mobile-toggle {
        width: 41px;
        height: 39px;
    }

    .pk-mobile-toggle span {
        width: 22px;
    }

    .pk-offcanvas {
        width: 88vw !important;
    }
}
