:root {
    --navy-blue: #0C2340;
    --gold: #C99700;
    --light-gold: #F4B400;
    --light-blue: #5D92B1;
    --off-white: #F5F5F5;
    --dark-gray: #333333;
}
html{
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    background-color: #FFFFFF;
}
body>section{
    scroll-margin: 80px;
}
.navy-bg {
    background-color: var(--navy-blue);
}

.gold-bg {
    background-color: var(--gold);
}

.navy-text {
    color: var(--navy-blue);
}

.gold-text {
    color: var(--gold);
}

.btn-primary {
    background-color: var(--navy-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #051629;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--gold);
    color: var(--navy-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.badge-secondary {
    background-color: var(--gold);
    color: var(--navy-blue);
}

.search-bar {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 1rem;
}

.text-input {
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    padding: 0.625rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.text-input:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(93, 146, 177, 0.3);
    outline: none;
}

.select-input {
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    padding: 0.625rem;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.select-input:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(93, 146, 177, 0.3);
    outline: none;
}

.header-nav-link {
    position: relative;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

.header-nav-link:hover {
    color: var(--gold);
}

.header-nav-link:hover::after {
    width: 100%;
}

.property-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.property-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.metric-container {
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container {
    height: 500px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.animated-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-container {
    height: 6px;
    background: #D1D5DB;
    border-radius: 3px;
}

.slider-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.slider-connect {
    background: var(--gold);
}

.tooltip {
    background-color: var(--navy-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    position: absolute;
    z-index: 10;
    transform: translateY(-125%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
}

#propertyModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
}

.tab-nav-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.tab-nav-item.active {
    color: var(--navy-blue);
}

.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--navy-blue);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
}

.progress-bar {
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--gold);
    border-radius: 4px;
}

.neighborhood-score {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.neighborhood-label {
    width: 100px;
    font-size: 0.875rem;
    color: #6B7280;
}

.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn i {
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.favorite-btn.active i {
    color: var(--gold);
}

.badge-roi {
    background-color: #10B981;
    color: white;
}

.badge-cashflow {
    background-color: #3B82F6;
    color: white;
}

.filter-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #F3F4F6;
    color: #6B7280;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background-color: var(--navy-blue);
    color: white;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-blue);
    z-index: 40;
    padding: 1.5rem;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-link {
    color: white;
    font-size: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .header-nav {
        display: none !important;
    }
    .search-bar {
        flex-direction: column;
    }
    .search-bar>div {
        margin-bottom: 1rem;
        width: 100%;
    }
    .search-bar>div:last-child {
        margin-bottom: 0;
    }
    .property-grid {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 300px;
    }
}


/* Animated elements */

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Loading spinner */

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--gold);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* for mobile device */
:root {
    --navy-blue: #0C2340;
    --gold: #C99700;
    --light-gold: #D4AF37;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background-color: #f7f7f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    background-color: var(--navy-blue);
}

.gold-accent {
    background-color: var(--gold);
}

.gold-text {
    color: var(--gold);
}

.search-container {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
    z-index: 100;
}

.property-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.property-card:active {
    transform: scale(0.98);
}

.property-card.expanded {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.text-for-info {
    background-color: var(--gold);
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    transition: background-color 0.2s;
}

.text-for-info:active {
    background-color: var(--navy-blue);
}

.price-range-slider {
    height: 10px;
    margin: 15px 0 25px;
}

.noUi-connect {
    background: var(--gold);
}

.noUi-handle {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    top: -10px !important;
    right: -14px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    background-color: white;
    border: 2px solid var(--gold);
}

.noUi-handle:before, .noUi-handle:after {
    display: none;
}

.filter-pill {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    white-space: nowrap;
    border: 1px solid #e0e0e0;
}

.filter-pill.active {
    background-color: var(--navy-blue);
    color: white;
}

.cap-rate-box {
    background-color: #e9f2ff;
    border-radius: 6px;
    font-weight: 600;
    padding: 6px;
    font-size: 15px;
}

.cash-flow-box {
    color: #10B981;
    font-weight: 600;
}

.loading-indicator {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-indicator.visible {
    display: block;
}

.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.expanded-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.property-card.expanded .expanded-details {
    max-height: 300px;
}

.filters-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filters-container::-webkit-scrollbar {
    display: none;
}

.preview-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: var(--navy-blue);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.noUi-horizontal {
  height: 12px;
  margin-left: 12px;
  margin-right: 12px;
}
/* blog page */
.article_container article>img{
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 1.2rem;
}
.article_container h1{
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.article_container header{
    margin-bottom: 2rem;
}
.article_container section{
    margin-bottom: 1.5rem;
}
.article_container h2{
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.article_container p{
    margin-bottom: 1.1rem;
}
.article_container a{
    color: #3B82F6;
    text-decoration: underline;
}
