:root {
    --brand-primary: #003366;
    /* Navy Blue (Lacivert) */
    /* Dark Blue - Navbar/Footer/Text */
    --brand-secondary: #00509E;
    /* Lighter Blue - Hover/Secondary */
    --brand-accent: #E63946;
    /* Red - Urgent/CTA */
    --text-dark: #1D3557;
    --text-muted: #6c757d;
    --bg-light: #F1FAEE;
    --bg-white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--brand-secondary);
}

/* Navbar */
.navbar {
    padding: 0 !important;
    background-color: #00193d;
}

.navbar-brand {
    margin-right: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    border-radius: 0;
    margin-top: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--brand-secondary);
    color: white;
}

.animated-btn {
    animation: pulse 2s infinite;
    font-weight: 800;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: white;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 34, 68, 0.7), rgba(0, 34, 68, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Tabbed Search Box */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
}

.search-tabs .nav-link {
    border-radius: 0;
    background: #f8f9fa;
    color: var(--text-dark) !important;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
}

.search-tabs .nav-link.active {
    background: white;
    color: var(--brand-primary) !important;
    border-bottom: 3px solid var(--brand-primary);
}

.search-form {
    padding: 1.5rem;
}

.form-select,
.form-control {
    border: 1px solid #dee2e6;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

/* Listings Tabs */
.nav-pills .nav-link {
    background: transparent;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    color: #00193d;
}

.nav-pills .nav-link.active {
    background: transparent;
    color: #00193d;
    border-bottom: 3px solid #00193d;
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-5px);
}

.card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-sale {
    background-color: var(--brand-primary);
}

.badge-rent {
    background-color: #ffc107;
    color: #000;
}

.price-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 100%;
    padding: 8px 15px;
    font-weight: bold;
}

/* Promo Grid */
/* Promo Masonry Grid */
.promo-masonry-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.promo-text-block {
    padding: 20px 0;
    margin-bottom: 30px;
}

.promo-text-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.promo-text-block p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.promo-divider {
    width: 50px;
    height: 3px;
    background-color: #ddd;
    margin-bottom: 20px;
}

.promo-box {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 30px;
    display: block;
    text-decoration: none;
}

.promo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.promo-box:hover img {
    transform: scale(1.1);
}

.promo-box-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.promo-box-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-box-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.promo-box-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.3s;
}

.promo-box:hover .promo-box-arrow {
    background-color: white;
    color: #333;
}

/* Height Utilities for Masonry */
.h-250 {
    height: 250px;
}

.h-300 {
    height: 300px;
}

.h-400 {
    height: 400px;
}

.h-530 {
    height: 530px;
}

/* Combined height approximation */

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 5px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: white;
    color: var(--brand-primary);
    transition: all 0.3s;
    cursor: pointer;
}

.slider-btn:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    padding-bottom: 10px;
    width: 100%;
    position: relative;
}

.slider-container .d-flex {
    width: max-content;
    display: flex;
    /* Ensure flex behavior */
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Slider Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption h1,
.carousel-caption p,
.carousel-caption .btn {
    animation: fadeIn 1s ease-out forwards;
}

.carousel-caption h1 {
    animation-delay: 0.2s;
}

.carousel-caption p {
    animation-delay: 0.4s;
}

.carousel-caption .btn {
    animation-delay: 0.6s;
}

/* Contact Section (Blue Design) */
.contact-section {
    background-color: #1f3c5e;
    /* Deep Blue from image */
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact-title-large {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 60px;
    line-height: 1.4;
    text-transform: uppercase;
}

.contact-step {
    margin-bottom: 40px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-step-number {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.contact-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-step-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
    line-height: 1.6;
    max-width: 300px;
}

.contact-form-card {
    background: white;
    padding: 40px;
    color: #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1f3c5e;
}

.contact-form-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

.form-group-clean {
    margin-bottom: 20px;
}

.form-control-clean {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background-color: #fff;
    color: #495057;
}

.form-control-clean:focus {
    border-color: #00b4d8;
    /* Cyan accent */
    outline: none;
}

.form-check-clean {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-contact-submit {
    width: 100%;
    background-color: #00a8e8;
    /* Bright Cyan/Blue */
    color: white;
    font-weight: 700;
    padding: 12px;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-contact-submit:hover {
    background-color: #0096c7;
}

/* Investment Section */
.investment-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.investment-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.investment-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.investment-link {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: all 0.3s;
}

.investment-link:hover {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

.investment-gallery {
    display: flex;
    gap: 15px;
    height: 400px;
    /* Fixed height for gallery */
}

.investment-item {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: flex 0.5s ease;
    cursor: pointer;
}

.investment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.investment-item:hover {
    flex: 2;
    /* Expand on hover */
}

.investment-item:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--brand-primary);
    color: #fff;
    font-size: 0.9rem;
}

footer h5 {
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 4rem;
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&q=80&w=1920) center center no-repeat;
    background-size: cover;
}

/* Side Widgets */
.side-widget-container {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 200px;
    background: #00193d;
    /* Dark Blue */
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.side-widget-left {
    left: 20px;
}

.side-widget-right {
    right: 20px;
}

.side-widget-header {
    background: #003366;
    /* Slightly lighter blue */
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

.side-widget-content {
    display: flex;
    flex-direction: column;
}

.side-widget-item {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.side-widget-item:last-child {
    border-bottom: none;
}

.side-widget-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 20px;
}

.side-widget-item i {
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

/* Hide on smaller screens */
@media (max-width: 1400px) {
    .side-widget-container {
        display: none !important;
    }
}