/* ==========================================================================
   NTRBuilder.com - Modern Real Estate & Construction Design System
   ========================================================================== */

:root {
    --ntr-primary: #0B2545;
    --ntr-primary-light: #134074;
    --ntr-primary-dark: #07182D;
    --ntr-accent: #C99700;
    --ntr-accent-light: #E0A96D;
    --ntr-accent-dark: #A07800;
    --ntr-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #AA771C 100%);
    --ntr-navy-gradient: linear-gradient(135deg, #0B2545 0%, #134074 100%);
    --ntr-dark: #0F172A;
    --ntr-muted: #64748B;
    --ntr-light: #F8FAFC;
    --ntr-border: #E2E8F0;
    --ntr-success: #10B981;
    --ntr-warning: #F59E0B;
    --ntr-danger: #EF4444;
    --ntr-whatsapp: #25D366;
    --ntr-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--ntr-font-sans);
    color: #334155;
    background-color: #F8FAFC;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ntr-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--ntr-primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--ntr-accent);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.ntr-topbar {
    background-color: var(--ntr-primary-dark);
    font-size: 0.85rem;
    color: #CBD5E1;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ntr-topbar a {
    color: #CBD5E1;
}

.ntr-topbar a:hover {
    color: var(--ntr-accent-light);
}

.ntr-navbar {
    background-color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.06);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.ntr-navbar.sticky-top {
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.1);
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1E293B;
    padding: 0.6rem 1rem !important;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--ntr-primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--ntr-accent);
    border-radius: 3px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem;
}

.dropdown-item {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #F1F5F9;
    color: var(--ntr-primary);
    transform: translateX(4px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.ntr-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.85) 0%, rgba(7, 24, 45, 0.95) 100%),
                url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1600&q=80') center center / cover no-repeat;
    color: #FFFFFF;
    padding: 5rem 0 7rem;
    min-height: 520px;
}

.ntr-hero-badge {
    background: rgba(201, 151, 0, 0.18);
    border: 1px solid var(--ntr-accent);
    color: #FFE082;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.ntr-hero h1 {
    color: #FFFFFF;
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

.ntr-hero p.lead {
    color: #E2E8F0;
    font-size: 1.15rem;
    max-width: 650px;
}

.hero-search-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-ntr-primary {
    background: var(--ntr-primary);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    border: none;
    transition: all 0.25s ease;
}

.btn-ntr-primary:hover {
    background: var(--ntr-primary-light);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 37, 69, 0.25);
}

.btn-ntr-accent {
    background: var(--ntr-accent);
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    border: none;
    transition: all 0.25s ease;
}

.btn-ntr-accent:hover {
    background: var(--ntr-accent-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 151, 0, 0.35);
}

.btn-ntr-outline {
    background: transparent;
    color: var(--ntr-primary);
    border: 2px solid var(--ntr-primary);
    font-weight: 600;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-ntr-outline:hover {
    background: var(--ntr-primary);
    color: #FFFFFF;
}

.btn-whatsapp {
    background-color: var(--ntr-whatsapp);
    color: #FFFFFF !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-whatsapp:hover {
    background-color: #1EBE5D;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.badge-status {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status.available {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.badge-status.sold {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.badge-status.under-construction {
    background-color: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.badge-status.upcoming {
    background-color: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.badge-featured {
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Property Cards
   ========================================================================== */
.property-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(11, 37, 69, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--ntr-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(11, 37, 69, 0.12);
    border-color: #CBD5E1;
}

.property-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 16:10 Aspect Ratio */
    background: #0B2545;
    overflow: hidden;
}

.property-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-img-wrapper img {
    transform: scale(1.06);
}

.property-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.property-card-category {
    background: rgba(11, 37, 69, 0.8);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.property-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-card-price {
    color: var(--ntr-accent);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.property-card-price small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
}

.property-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-location {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-card-specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 0;
    margin-top: auto;
    border-top: 1px solid var(--ntr-border);
    border-bottom: 1px solid var(--ntr-border);
    font-size: 0.82rem;
    color: #475569;
}

.property-card-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-card-specs i {
    color: var(--ntr-primary-light);
}

.property-card-footer {
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.category-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid var(--ntr-border);
    box-shadow: 0 4px 15px rgba(11, 37, 69, 0.04);
    transition: all 0.3s ease;
    display: block;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--ntr-accent);
    box-shadow: 0 12px 28px rgba(201, 151, 0, 0.12);
}

.category-icon-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: #EFF6FF;
    color: var(--ntr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon-box {
    background: var(--ntr-navy-gradient);
    color: var(--ntr-accent);
    transform: scale(1.08);
}

.category-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-card p {
    font-size: 0.82rem;
    color: #64748B;
    margin-bottom: 0;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    color: var(--ntr-accent);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ntr-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: #64748B;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Build House Promotional Section
   ========================================================================== */
.build-house-promo-section {
    background: var(--ntr-navy-gradient);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.build-step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    position: relative;
    backdrop-filter: blur(8px);
    height: 100%;
}

.build-step-number {
    width: 42px;
    height: 42px;
    background: var(--ntr-gold-gradient);
    color: #0B2545;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.build-step-card h5 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.build-step-card p {
    color: #CBD5E1;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================================================
   Property Detail Page Gallery & Lightbox
   ========================================================================== */
.gallery-main-view {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #0B2545;
    height: 460px;
    cursor: pointer;
}

.gallery-main-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main-view:hover img {
    transform: scale(1.02);
}

.gallery-thumbnails-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.gallery-thumb-item {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.gallery-thumb-item:hover,
.gallery-thumb-item.active {
    border-color: var(--ntr-accent);
    opacity: 1;
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    padding: 1.25rem;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid var(--ntr-border);
    margin-bottom: 2rem;
}

.detail-spec-item {
    text-align: center;
    padding: 0.5rem;
}

.detail-spec-item i {
    font-size: 1.4rem;
    color: var(--ntr-primary-light);
    margin-bottom: 0.4rem;
}

.detail-spec-item small {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
}

.detail-spec-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ntr-primary);
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F1F5F9;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E293B;
    border: 1px solid #E2E8F0;
    margin-bottom: 8px;
    margin-right: 8px;
}

.feature-pill i {
    color: var(--ntr-success);
}

/* ==========================================================================
   Business Hours Card
   ========================================================================== */
.business-hours-table {
    margin-bottom: 0;
}

.business-hours-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #F1F5F9;
}

.business-hours-table tr.today {
    background-color: #FEF3C7;
    font-weight: 700;
}

.business-hours-table .badge-closed {
    background-color: #FEE2E2;
    color: #991B1B;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ntr-footer {
    background-color: var(--ntr-primary-dark);
    color: #94A3B8;
    padding-top: 4.5rem;
    font-size: 0.9rem;
}

.ntr-footer h5 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.ntr-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--ntr-accent);
}

.ntr-footer a {
    color: #94A3B8;
}

.ntr-footer a:hover {
    color: var(--ntr-accent-light);
    transform: translateX(4px);
    display: inline-block;
}

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

.ntr-footer-links li {
    margin-bottom: 0.6rem;
}

.ntr-footer-bottom {
    background-color: #040D18;
    padding: 1.25rem 0;
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991.98px) {
    .ntr-hero {
        padding: 3.5rem 0 5rem;
        text-align: center;
    }
    .ntr-hero h1 {
        font-size: 2.1rem;
    }
    .ntr-hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-search-card {
        margin-top: 1.5rem;
    }
    .gallery-main-view {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .ntr-hero h1 {
        font-size: 1.75rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .floating-whatsapp-btn {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}
