/* ---- Header ---- */
:root {
    --brand-navy: #014777;
    --brand-teal: #0084a3;
    --brand-sky: #30b3d6;
}

.header-section .hs-top {
    padding: 14px 0;
}

.header-section .hs-top .logo {
    padding: 0;
    margin: 0;
}

.header-section .hs-top .logo img {
    max-height: 64px;
    width: auto;
}

.header-section .hs-right {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 32px;
}

.hs-call {
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #333;
}

.hs-call-number {
    margin-left: 6px;
    font-weight: 700;
    color: var(--brand-navy);
    white-space: nowrap;
}

.hs-call-number:hover {
    color: var(--brand-teal);
    text-decoration: none;
}

.hs-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hs-btn {
    display: inline-block;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand-navy);
    border: 2px solid var(--brand-navy);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.hs-btn:hover,
.hs-btn:focus {
    color: #fff;
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    text-decoration: none;
}

.hs-btn--outline {
    color: var(--brand-navy);
    background: transparent;
}

.hs-btn--sm {
    padding: 8px 14px;
    font-size: 12px;
}

.hs-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.hs-user form {
    margin: 0;
}

/* ---- Main nav ---- */
.header-section .hs-nav .nav-menu > ul > li {
    display: inline-block;
    margin-right: 36px;
}

.header-section .hs-nav .nav-menu > ul > li > a {
    display: block;
    padding: 18px 0 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: #222;
    border-bottom: 3px solid transparent;
}

/* Drop the template's own underline so the teal border is the only one. */
.header-section .hs-nav .nav-menu > ul > li > a::before,
.header-section .hs-nav .nav-menu > ul > li > a::after {
    content: none;
    display: none;
}

.header-section .hs-nav .nav-menu > ul > li:hover > a,
.header-section .hs-nav .nav-menu > ul > li.active > a {
    color: var(--brand-navy);
    border-bottom-color: var(--brand-teal);
}

.cart-count {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    color: #fff;
    background: var(--brand-teal);
    border-radius: 10px;
}

/* ---- Footer (compact) ---- */
.footer-compact {
    padding: 28px 0 0;
    background: #f3f5fa;
}

.footer-compact .footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 40px;
}

.footer-compact .fs-about {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-compact .fs-logo {
    display: block;
}

.footer-compact .fs-logo img {
    max-height: 56px;
    width: auto;
}

.footer-compact .fs-social {
    color: var(--brand-navy);
    font-size: 18px;
}

.footer-compact .fs-social:hover {
    color: var(--brand-teal);
}

.footer-compact .fs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-compact .fs-links a {
    font-size: 14px;
    color: #555;
}

.footer-compact .fs-links a:hover {
    color: var(--brand-teal);
    text-decoration: none;
}

.footer-compact .fs-call {
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #666;
}

.footer-compact .fs-call-number {
    margin-left: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-navy);
    white-space: nowrap;
}

.footer-compact .fs-call-number:hover {
    color: var(--brand-teal);
    text-decoration: none;
}

.footer-compact .copyright-text {
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid #dde2ec;
    text-align: center;
}

.footer-compact .copyright-text p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

@media (max-width: 767px) {
    .footer-compact .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Home page spacing ---- */
.chooseus-why.spad {
    padding: 56px 0;
}

.chooseus-hero.spad {
    padding: 56px 0;
}

.property-section {
    padding: 40px 0 32px;
    background: #fff;
}

.property-section .section-title {
    margin-bottom: 24px;
}

.property-section .text-muted p {
    margin: 0;
}

/* ---- Why choose us ---- */
.chooseus-why .chooseus-features .cf-item {
    margin-bottom: 24px;
}

.chooseus-why .chooseus-features .cf-item:last-child {
    margin-bottom: 0;
}

.chooseus-why .cf-text a {
    color: var(--brand-sky);
    font-weight: 600;
    text-decoration: underline;
}

.chooseus-why .cf-text a:hover {
    color: #fff;
}

/* ---- Search section ---- */
.search-section.spad {
    padding: 28px 0;
    background: #f7f7f7;
}

.search-section .search-form-content .filter-form .search-keyword,
.search-section .search-form-content .filter-form .search-btn {
    height: 52px;
    margin: 0;
}

.search-section .search-form-content .filter-form .search-keyword {
    padding: 0 16px;
    font-size: 16px;
}

.search-section .search-form-content .filter-form .search-btn {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand-navy);
    border: 2px solid var(--brand-navy);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.search-section .search-form-content .filter-form .search-btn:hover,
.search-section .search-form-content .filter-form .search-btn:focus {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    outline: none;
}

.team-section.spad {
    padding: 50px 0;
    background: #f7f7f7;
}

/* ---- Report cards ---- */
.property-item {
    margin-bottom: 30px;
}

.property-item .pi-text ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.property-item .pi-text ul li p {
    margin: 0;
}

.property-item .primary-btn,
.pd-buy .primary-btn {
    padding: 10px 22px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand-navy);
    border: 2px solid var(--brand-navy);
    transition: background-color 150ms ease, border-color 150ms ease;
}

.property-item .primary-btn:hover,
.pd-buy .primary-btn:hover {
    color: #fff;
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    text-decoration: none;
}

.report-pagination {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.report-pagination .page-item.active .page-link {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
}

.report-pagination .page-link {
    color: var(--brand-navy);
}

/* ---- Report details ---- */
.property-details-section {
    padding: 40px 0;
}

.property-details-section .pd-social {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.property-details-section .pd-social a {
    color: var(--brand-navy);
    font-size: 18px;
}

.property-details-section .pd-social a:hover {
    color: var(--brand-teal);
}

.property-details-section .pd-widget {
    margin-top: 24px;
}

.pd-buy {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pd-buy .pt-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-navy);
}

/* ---- Legal pages (privacy policy etc.) ---- */
.legal-section {
    padding: 48px 0 56px;
    background: #fff;
}

.legal-content {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.legal-content h1 {
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-navy);
}

.legal-content .legal-meta {
    margin-bottom: 28px;
    padding-bottom: 20px;
    font-size: 14px;
    color: #777;
    border-bottom: 1px solid #e3e7ee;
}

.legal-content h2 {
    margin: 36px 0 12px;
    padding-left: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-navy);
    border-left: 4px solid var(--brand-teal);
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content ul {
    margin: 0 0 16px 20px;
    padding: 0;
    list-style: disc;
}

.legal-content ul ul {
    margin: 6px 0 6px 20px;
    list-style: circle;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--brand-teal);
    word-break: break-word;
}

.legal-content a:hover {
    color: var(--brand-navy);
}

.legal-content .legal-contact {
    margin: 0 0 16px;
    padding: 16px 20px;
    font-style: normal;
    background: #f3f5fa;
    border-left: 4px solid var(--brand-sky);
}

/* ---- Auth pages (login, register, password reset) ---- */
.auth-section {
    padding: 56px 0;
    background: #f7f7f7;
}

.auth-card {
    padding: 36px 36px 32px;
    background: #fff;
    border-top: 4px solid var(--brand-teal);
    box-shadow: 0 6px 24px rgba(1, 71, 119, 0.08);
}

.auth-card__title {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-navy);
}

.auth-card .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.auth-card .form-control {
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    color: #333;
    background: #fff;
    border: 1px solid #d5dbe6;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-card .form-control:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 132, 163, 0.15);
    outline: none;
}

.auth-card .form-control.is-invalid {
    border-color: #d93025;
    background-image: none;
}

.auth-card .invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #d93025;
}

.auth-card .form-check-label {
    font-size: 14px;
    color: #555;
}

.auth-card .form-check-input {
    accent-color: var(--brand-teal);
}

.auth-card .primary-btn {
    display: block;
    height: 50px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 46px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: var(--brand-navy);
    border: 2px solid var(--brand-navy);
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.auth-card .primary-btn:hover,
.auth-card .primary-btn:focus {
    color: #fff;
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    outline: none;
}

.auth-card .auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 20px;
    font-size: 14px;
}

.auth-card .auth-links a {
    color: var(--brand-teal);
}

.auth-card .auth-links a:hover {
    color: var(--brand-navy);
    text-decoration: none;
}

.auth-card .alert {
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 0;
}

@media (max-width: 575px) {
    .auth-card {
        padding: 28px 20px 24px;
    }
}

/*
  Dashboard brand overrides. Replaces the .theme-blush colour rules from
  dashboard-new/css/style.min.css (blush = #e47297 everywhere).

  Wiring:
    1. Load this file AFTER style.min.css (dashboard/head.blade.php).
    2. Change <body class="theme-blush"> to <body class="theme-brand">
       (dashboard/default.blade.php).
    3. Keep class="theme-color" on tables; its header colour is set below.

  Mapping:
    navy  #014777  table headers, right-sidebar tabs, search bar (white text on top, ~9.7:1)
    teal  #0084a3  active and hover accents, checked inputs, active tabs, card headings
                   (~4.4:1 on white: fine for icons and bold text, borderline for small text)
    sky   #30b3d6  not used here. Too light for white text or for text on white (~2.5:1).
                   Keep it for highlights and charts.

  Roles (change these two lines to swap sidebar colours):
    primary   = teal  (selected sidebar item background)
    secondary = navy  (sidebar hover text)
*/

/* Skip the brand tokens if they already live in your shared brand CSS. */
:root {
    --brand-navy: #014777;
    --brand-teal: #0084a3;
    --brand-sky: #30b3d6;

    --brand-primary: var(--brand-teal);
    --brand-secondary: var(--brand-navy);
}

/* ---- Replacements for the .theme-blush rules ---- */

.theme-brand #search {
    background-color: rgba(1, 71, 119, 0.9);
}

.theme-brand .checkbox input[type="checkbox"]:checked+label::after {
    background: var(--brand-teal);
    color: #fff;
}

.theme-brand .radio input[type="radio"]:checked+label::before {
    background: var(--brand-teal);
    color: #fff;
    border-color: var(--brand-teal);
}

.theme-brand .radio input[type="radio"]:checked+label::after {
    background-color: #fff;
    border-color: #fff;
}

.theme-brand .right-sidebar .nav-tabs {
    background: var(--brand-navy);
}

.theme-brand .right-sidebar .nav-tabs li a.nav-link {
    color: #fff;
}

.theme-brand .right-sidebar .nav-tabs li a.nav-link.active,
.theme-brand .right-sidebar .nav-tabs li a.nav-link:hover {
    background: #fff;
    color: var(--brand-navy);
}

/* ---- Left sidebar ---- */

.theme-brand .sidebar .menu .list li.active {
    background-color: transparent;
}

/* Icons: no resting tilt, no opposite tilt on hover */
.theme-brand .sidebar .menu .list li a i,
.theme-brand .sidebar .menu .list li a img,
.theme-brand .sidebar .menu .list li a svg,
.theme-brand .sidebar .menu .list li a .zmdi,
.theme-brand .sidebar .menu .list li a:hover i,
.theme-brand .sidebar .menu .list li a:hover img,
.theme-brand .sidebar .menu .list li a:hover svg,
.theme-brand .sidebar .menu .list li a:hover .zmdi,
.theme-brand .sidebar .menu .list li.active a i,
.theme-brand .sidebar .menu .list li.active a img,
.theme-brand .sidebar .menu .list li.active a svg {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Links: inset so the selected pill doesn't touch the sidebar edges */
.theme-brand .sidebar .menu .list li>a {
    border-radius: 10px;
}

/* Hover: secondary text colour and larger text */
.theme-brand .sidebar .menu .list a,
.theme-brand .sidebar .menu .list a span {
    transition: color 150ms ease, font-size 150ms ease;
}

.theme-brand .sidebar .menu .list a:hover,
.theme-brand .sidebar .menu .list a:hover span {
    color: var(--brand-secondary);
}

.theme-brand .sidebar .menu .list a:hover span {
    font-size: 1.1em;
}

/* Selected item: filled pill in primary, white text and icon.
   More specific than the hover rule, so it stays white on primary when hovered. */
.theme-brand .sidebar .menu .list li.active> :first-child {
    background-color: var(--brand-primary);
    color: #fff;
}

.theme-brand .sidebar .menu .list li.active> :first-child i,
.theme-brand .sidebar .menu .list li.active> :first-child span {
    color: #fff;
}

/* ---- Rest of the replacements ---- */

.theme-brand .table.theme-color thead td,
.theme-brand .table.theme-color thead th {
    background: var(--brand-navy);
    color: #fff;
}

.theme-brand .navbar-right .navbar-nav>li>a:hover {
    background: var(--brand-teal);
}

.theme-brand .inbox-widget .inbox-inner:hover .inbox-img img {
    border: 2px solid var(--brand-teal);
    transition: all 150ms linear;
}

.theme-brand .nav-tabs .nav-link.active {
    border: 1px solid var(--brand-teal);
    color: var(--brand-teal);
}

.theme-brand .card .header h2::before {
    background: var(--brand-teal);
}

.theme-brand .card .header h2 strong {
    color: var(--brand-teal);
}

.theme-brand .input-group .input-group-append .btn-outline-secondary,
.theme-brand .input-group .input-group-prepend .btn-outline-secondary {
    border-color: var(--brand-teal);
    background: var(--brand-teal);
}

/* Not carried over: the .theme-blush.bbg-blush rules (full-colour sidebar
   variant). The body does not use .bbg-blush. */

/* ---- Extras: Bootstrap 4 "primary" still renders blue. Check visually. ---- */

.theme-brand .btn-primary {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
}

.theme-brand .btn-primary:hover,
.theme-brand .btn-primary:focus,
.theme-brand .btn-primary:active,
.theme-brand .btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
}

.theme-brand .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 132, 163, 0.35);
}

.theme-brand .text-primary {
    color: var(--brand-teal) !important;
}

.theme-brand .bg-primary {
    background-color: var(--brand-teal) !important;
}

.theme-brand .badge-primary {
    background-color: var(--brand-teal);
}

/* ---- Round 2: links, outline buttons, pagination, form focus ---- */

/* Links. Deliberately the same low specificity as Bootstrap's own "a" rule
   (this file loads later), so .btn, .nav-link, .dropdown-item and the sidebar
   keep their own colours. */
a {
    color: var(--brand-teal);
}

a:hover {
    color: var(--brand-navy);
}

.theme-brand .btn-outline-primary {
    color: var(--brand-teal);
    border-color: var(--brand-teal);
}

.theme-brand .btn-outline-primary:hover {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
}

.theme-brand .page-link {
    color: var(--brand-teal);
}

.theme-brand .page-link:hover {
    color: var(--brand-navy);
}

.theme-brand .page-item.active .page-link {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
}

.theme-brand .form-control:focus,
.theme-brand .custom-select:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 132, 163, 0.25);
}

.theme-brand .custom-control-input:checked~.custom-control-label::before {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}

/* ---- Typography: Roboto ---- */
.theme-brand,
.theme-brand h1,
.theme-brand h2,
.theme-brand h3,
.theme-brand h4,
.theme-brand h5,
.theme-brand h6,
.theme-brand .btn,
.theme-brand .form-control,
.theme-brand .dropdown-menu,
.theme-brand .table,
.theme-brand .sidebar,
.theme-brand .card .header h2,
.theme-brand .swal-modal,
.theme-brand .swal-button,
.theme-brand .sweet-alert {
    font-family:
        "Roboto",
        -apple-system,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;
}

/* c3 chart labels */
.theme-brand .c3 svg {
    font-family: "Roboto", sans-serif;
}

.theme-brand .dropdown-item.active,
.theme-brand .dropdown-item:active {
    background-color: var(--brand-teal);
    color: #fff;
}

.theme-brand .table.c_table .badge-secondary {
    background-color: var(--neutral);
    color: #fff;
}

.theme-brand .table.c_table .badge-success {
    background-color: var(--success);
    color: #fff;
}

.theme-brand .table.c_table .badge-danger {
    background-color: var(--danger);
    color: #fff;
}

/* ---- Layout: content fills the width ---- */
body.theme-brand section.content {
    margin-right: 15px;
    width: auto;
    max-width: none;
}

body.theme-brand section.content .container-fluid {
    max-width: none;
}

/* ---- Cart & checkout ---- */
.checkout-section {
    padding: 40px 0 56px;
    background: #f7f7f7;
}

.checkout-section .section-title {
    margin-bottom: 20px;
}

.checkout-section .alert {
    border-radius: 0;
    font-size: 14px;
}

.cart-card,
.checkout-card {
    margin-bottom: 24px;
}

.cart-card {
    background: #fff;
    border-top: 4px solid var(--brand-teal);
    box-shadow: 0 6px 24px rgba(1, 71, 119, 0.08);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f5;
}

.cart-table thead th {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--brand-navy);
    background: #f3f5fa;
}

.cart-table .num {
    text-align: right;
    white-space: nowrap;
}

.cart-table .act {
    width: 48px;
    text-align: center;
}

.cart-table .cart-name {
    font-weight: 600;
    color: #222;
}

.cart-table .cart-empty {
    padding: 32px 20px;
    text-align: center;
    color: #666;
}

.cart-table .cart-empty a {
    color: var(--brand-teal);
    font-weight: 600;
}

.cart-remove {
    font-size: 20px;
    color: #c5ccd8;
    transition: color 150ms ease;
}

.cart-remove:hover {
    color: #d93025;
    text-decoration: none;
}

.cart-table .cart-fee td {
    font-size: 14px;
    color: #666;
}

.cart-table .cart-total td {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-navy);
    border-bottom: 0;
}

/* Stripe card field styled like the other inputs */
.stripe-field {
    height: 48px;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid #d5dbe6;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.stripe-field.StripeElement--focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 132, 163, 0.15);
}

.stripe-field.StripeElement--invalid {
    border-color: #d93025;
}

/* Template's nice-select: make it behave like a normal field */
.checkout-card .nice-select {
    float: none;
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 36px 0 14px;
    font-size: 16px;
    line-height: 46px;
    color: #333;
    background: #fff;
    border: 1px solid #d5dbe6;
    border-radius: 0;
}

.checkout-card .nice-select:focus,
.checkout-card .nice-select.open {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(0, 132, 163, 0.15);
}

.checkout-card .nice-select .list {
    width: 100%;
    max-height: 260px;
    margin-top: 2px;
    overflow-y: auto;
    border-radius: 0;
}

.checkout-card .nice-select .option {
    line-height: 40px;
    min-height: 40px;
}

/* Prefilled / locked fields */
.auth-card .form-control[readonly],
.auth-card .form-control:disabled {
    color: #555;
    background: #f3f5fa;
}

.checkout-terms summary {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-teal);
    cursor: pointer;
}

.checkout-terms a {
    font-size: 14px;
    color: var(--brand-teal);
}

.checkout-section .cart-table .act form { margin: 0; }

.checkout-section .cart-remove {
    padding: 0;
    line-height: 1;
    background: none;
    border: 0;
    cursor: pointer;
}