/* =========================================
   PRIMENEST REALTY
   Professional Navy Blue, Gold & White Theme
========================================= */

:root {
    --navy: #10243a;
    --navy-light: #183752;
    --gold: #d4af37;
    --gold-dark: #b89426;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --text: #526174;
    --heading: #172b43;
    --border: #e5e9ef;
}

/* GENERAL STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--heading);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.section-padding {
    padding: 90px 0;
}

/* NAVIGATION */

.main-navbar {
    background: var(--navy);
    padding: 16px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

.brand-logo {
    color: var(--white) !important;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.brand-logo span {
    color: var(--gold);
}

.main-navbar .nav-link {
    color: #e4e9f0 !important;
    font-size: 15px;
    font-weight: 600;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--gold) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* BUTTONS */

.btn {
    border-radius: 5px;
    font-weight: 700;
    padding: 12px 22px;
    transition: all 0.3s ease;
}

.btn-gold {
    background: var(--gold);
    border: 2px solid var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--navy);
    padding: 9px 13px;
    font-size: 13px;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-outline-light:hover {
    color: var(--navy);
}

/* HERO SECTION */

.hero-section {
    min-height: 660px;
    position: relative;
    display: flex;
    align-items: center;
    background-image:
        url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=85");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0 150px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 24, 42, 0.94) 0%,
        rgba(8, 24, 42, 0.78) 50%,
        rgba(8, 24, 42, 0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-label,
.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(38px, 5vw, 65px);
    font-weight: 800;
    line-height: 1.15;
    max-width: 750px;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content > p {
    color: #e3e8ef;
    font-size: 17px;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-buttons,
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* SEARCH SECTION */

.search-section {
    position: relative;
    z-index: 5;
    margin-top: -65px;
    padding: 0 0 35px;
}

.search-box {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 12px 45px rgba(15, 35, 55, 0.13);
}

.search-heading {
    margin-bottom: 25px;
}

.search-heading h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.search-heading p {
    color: var(--text);
    margin-bottom: 0;
}

.form-label {
    color: var(--heading);
    font-weight: 700;
    font-size: 14px;
}

.form-select,
.form-control {
    min-height: 48px;
    border: 1px solid #dce2e9;
    border-radius: 5px;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

/* SECTION HEADINGS */

.section-heading {
    max-width: 750px;
    margin: 0 auto 45px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 15px;
}

.section-heading p {
    color: var(--text);
    font-size: 16px;
}

/* FEATURED PROPERTIES */

.featured-section {
    background: var(--light-bg);
}

.property-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(16, 36, 58, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(16, 36, 58, 0.12);
}

.property-image-wrapper {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: #e8edf2;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 13px;
    border-radius: 4px;
}

.rent-badge {
    background: var(--navy);
    color: var(--white);
}

.property-card-body {
    padding: 24px;
}

.property-location {
    display: block;
    color: #8b6d16;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.property-card-body h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.property-description {
    color: var(--text);
    font-size: 14px;
    min-height: 70px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 0;
    margin: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
}

.property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.property-price {
    color: var(--navy);
    font-size: 17px;
    font-weight: 800;
}

.property-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
}

.demo-disclaimer {
    max-width: 850px;
    margin: 35px auto 0;
    text-align: center;
    font-size: 12px;
    color: #6b7786;
}

/* WHY CHOOSE US */

.why-section {
    background: var(--white);
}

.benefit-card {
    padding: 35px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 5px 22px rgba(16, 36, 58, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.benefit-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8df;
    border-radius: 12px;
    font-size: 30px;
    margin-bottom: 22px;
}

.benefit-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.benefit-card p {
    margin-bottom: 0;
    font-size: 14px;
}

/* CALL TO ACTION */

.cta-section {
    padding: 85px 0;
    background: linear-gradient(
        120deg,
        var(--navy),
        var(--navy-light)
    );
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 18px;
}

.cta-section p {
    color: #e0e7ef;
    max-width: 650px;
    margin: 0 auto 28px;
}

.cta-buttons {
    justify-content: center;
}

/* FOOTER */

.main-footer {
    background: #091725;
    color: #c8d1dc;
    padding: 65px 0 0;
}

.footer-brand {
    display: inline-block;
    color: var(--white);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-description {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.main-footer h4 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #c8d1dc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 45px;
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

/* NO SEARCH RESULTS */

#no-properties-message {
    color: var(--text);
    padding: 20px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 991px) {

    .main-navbar .navbar-collapse {
        padding-top: 18px;
    }

    .main-navbar .nav-link {
        margin: 5px 0;
    }

    .main-navbar .btn {
        margin-top: 10px;
    }

    .hero-section {
        min-height: 580px;
    }

    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width: 767px) {

    .brand-logo {
        font-size: 22px;
    }

    .hero-section {
        min-height: 600px;
        padding: 80px 0 110px;
        background-position: 58% center;
    }

    .hero-overlay {
        background: rgba(8, 24, 42, 0.78);
    }

    .hero-content h1 {
        font-size: 39px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .search-section {
        margin-top: -45px;
    }

    .search-box {
        padding: 24px 18px;
    }

    .search-heading h2 {
        font-size: 22px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .property-image-wrapper {
        height: 230px;
    }

    .property-description {
        min-height: auto;
    }

    .cta-section {
        padding: 65px 0;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .main-footer {
        padding-top: 50px;
    }
}

@media (max-width: 380px) {

    .hero-content h1 {
        font-size: 33px;
    }

    .property-card-body {
        padding: 18px;
    }

    .property-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* ======================================
   PRIMENEST REALTY
   PROPERTY DETAILS PAGE
====================================== */

/* Property price */
.property-price-box {
    background: #ffffff;
    padding: 18px 22px;
    border-left: 4px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.property-price-box h2 {
    color: #0b1f3a;
    font-weight: 800;
    font-size: 1.7rem;
}

/* Main gallery image */
.main-gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 100%;
    min-height: 300px;
    background: #f1f1f1;
}

.main-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

/* Gallery label */
.gallery-label {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(11, 31, 58, 0.9);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Clickable thumbnails */
.gallery-thumbnail {
    display: block;
    width: 100%;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}

.gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.04);
}

.gallery-thumbnail:hover {
    transform: translateY(-2px);
}

.gallery-thumbnail.active {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.gallery-thumbnail:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
}

/* Property information cards */
.property-info-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #eeeeee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.property-info-card .section-heading {
    color: #0b1f3a;
    font-weight: 800;
}

/* Property statistics */
.property-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    height: 100%;
}

.property-stat i {
    color: #d4af37;
    font-size: 1.5rem;
}

.property-stat span {
    color: #777777;
    font-size: 0.85rem;
}

.property-stat strong {
    color: #0b1f3a;
    font-size: 0.95rem;
}

/* Property features */
.property-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.property-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #444444;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.property-feature-item i {
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Inquiry card */
.property-contact-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #eeeeee;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 100px;
}

.property-contact-card h3 {
    color: #0b1f3a;
    font-weight: 800;
}

.property-contact-icon {
    color: #d4af37;
    font-size: 1.6rem;
}

/* Breadcrumb links */
.breadcrumb a {
    color: #0b1f3a;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #b89622;
}

/* Mobile layout */
@media (max-width: 767px) {

    .property-price-box {
        width: 100%;
    }

    .property-price-box h2 {
        font-size: 1.4rem;
    }

    .main-gallery-image,
    .main-gallery-image img {
        min-height: 250px;
    }

    .gallery-thumbnail img {
        height: 140px;
    }

    .property-info-card,
    .property-contact-card {
        padding: 20px;
    }

    .property-features-grid {
        grid-template-columns: 1fr;
    }

    .property-contact-card {
        position: static;
    }

}

/* =========================================
   PRIMENEST REALTY
   FINAL PROFESSIONAL POLISH
========================================= */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Consistent body typography */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #242b35;
    line-height: 1.7;
}

/* Consistent headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0b1f3a;
    line-height: 1.25;
    font-weight: 700;
}

/* Improved links */
a {
    transition: color 0.25s ease;
}

/* Professional navigation */
.main-navbar {
    background: #0b1f3a;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    padding-top: 14px;
    padding-bottom: 14px;
    z-index: 1000;
}

.brand-logo {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff !important;
}

.brand-logo span,
.footer-brand span {
    color: #d4af37;
}

.main-navbar .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 10px 14px !important;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #d4af37;
}

.main-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Gold buttons */
.btn-gold {
    background: #d4af37;
    color: #0b1f3a;
    border: 2px solid #d4af37;
    border-radius: 7px;
    font-weight: 700;
    padding: 11px 22px;
    transition: all 0.25s ease;
}

.btn-gold:hover {
    background: #b89622;
    border-color: #b89622;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Consistent section spacing */
.section-padding {
    padding-top: 75px;
    padding-bottom: 75px;
}

.section-heading {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #0b1f3a;
}

/* Professional property cards */
.property-card,
.property-item .card {
    border: 1px solid #eeeeee;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(11, 31, 58, 0.07);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.property-card:hover,
.property-item .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(11, 31, 58, 0.14);
}

/* Keep property images consistent */
.property-card img,
.property-item .card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover img,
.property-item .card:hover img {
    transform: scale(1.04);
}

/* Card content */
.property-card .card-body,
.property-item .card-body {
    padding: 22px;
}

.property-card .card-title,
.property-item .card-title {
    color: #0b1f3a;
    font-weight: 800;
}

/* Gold property prices */
.property-card .price,
.property-item .price {
    color: #9a7610;
    font-weight: 800;
}

/* Consistent form controls */
.form-control,
.form-select {
    min-height: 48px;
    border-radius: 7px;
    border-color: #d9dee5;
}

.form-control:focus,
.form-select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.17);
}

/* Consistent buttons */
.btn,
button {
    transition: all 0.25s ease;
}

/* Professional footer */
.main-footer {
    background: #09172b;
    color: #ffffff;
}

.main-footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d4dbe5;
    text-decoration: none;
}

.footer-links a:hover {
    color: #d4af37;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

/* Improved keyboard accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 3px;
}

/* Mobile refinements */
@media (max-width: 767px) {

    .section-padding {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .main-navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-logo {
        font-size: 1.3rem;
    }

    .main-navbar .navbar-nav {
        padding-top: 12px;
    }

    .main-navbar .nav-link {
        padding: 9px 0 !important;
    }

    .property-card img,
    .property-item .card img {
        height: 220px;
    }

    .property-card:hover,
    .property-item .card:hover {
        transform: translateY(-3px);
    }

}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}

/* ======================================
   BACK TO TOP BUTTON
====================================== */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4af37;
    color: #0b1f3a;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #b89622;
    color: #ffffff;
    transform: translateY(-3px);
}

.back-to-top:focus-visible {
    outline: 3px solid #0b1f3a;
    outline-offset: 3px;
}

@media (max-width: 576px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}