:root {
    --primary-color: #0F4C75; /* Deep Teal */
    --secondary-color: #3282B8; /* Ocean Blue */
    --accent-color: #BBE1FA; /* Sky Blue */
    --secondary: #3282B8; /* Ocean Blue */
    --card-radius: 16px;
    --radius: 16px;
}

/* General */
body {
    /*font-family: 'Segoe UI', sans-serif;*/
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--accent-color);
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.6rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
}

/* Hero Section */
.hero {
    min-height: 55vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: var(--card-radius);
    margin: 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Search Bar */
.search-bar input,
.search-bar select {
    border-radius: var(--card-radius);
    padding: 0.75rem;
}

.search-bar button {
    background-color: var(--secondary-color);
    border: none;
    border-radius: var(--card-radius);
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

.search-bar button:hover {
    background-color: var(--primary-color);
}

/* Popular Searches */
.popular-searches {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.popular-searches button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--card-radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: 0.3s;
}

.popular-searches button:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Masonry Layout */
/*.masonry { column-count: 3; column-gap: 1rem; }*/
/*@media(max-width: 992px) { .masonry { column-count: 2; } }*/
/*@media(max-width: 576px) { .masonry { column-count: 1; } }*/

/* ===== PROPERTY GRID VIEW ===== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/*.property-card {*/
/*    background-color: white;*/
/*    margin-bottom: 1rem;*/
/*    display: inline-block;*/
/*    padding: 4px;*/
/*    width: 100%;*/
/*    border-radius: var(--card-radius);*/
/*    overflow: hidden;*/
/*    transition: transform 0.3s ease, box-shadow 0.3s ease;*/
/*    position: relative;*/
/*}*/
.property-card {
    background-color: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*.property-card:hover {*/
/*    transform: translateY(-6px);*/
/*    box-shadow: 0 15px 35px rgba(0,0,0,0.18);*/
/*}*/

/*!* Fixed image height for consistency *!*/
.property-card img {
    padding: 0.3rem;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--card-radius);
}


/*!* Push price section to bottom *!*/
.property-card .card-body {
    padding: 0.5rem;
    /*display: flex;*/
    flex-direction: column;
    flex-grow: 1;
    /*text-transform: lowercase;*/
}

/*.property-card .card-body h5,*/
/*.property-card .card-body p {*/
/*    text-transform: lowercase;*/
/*}*/

/*.property-card .card-body h5::first-letter,*/
/*.property-card .card-body p::first-letter {*/
/*    text-transform: uppercase;*/
/*}*/


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

/*.property-card img { width: 100%; height: auto; display: block; border-radius: var(--card-radius); }*/
/*.property-card .card-body h5 { color: var(--primary-color); font-weight: bold; }*/
.property-card .price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Agent Mini Profile */
.agent-profile {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    /*padding: 0.25rem 0.5rem;*/
    /*padding: 0.25rem;*/
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.agent-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    /*margin-right: 0.5rem;*/
}

/* Quick Action Buttons */
.quick-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 0.25rem;
}

.quick-actions button {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.quick-actions button:hover {
    background-color: var(--primary-color);
}

/* Map + List Toggle */
.map-container {
    height: 400px;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: var(--card-radius);
    overflow: hidden;
}

/* Filters Sidebar */
.filters {
    position: fixed;
    top: 5rem;
    right: -320px;
    width: 300px;
    background-color: white;
    padding: 1rem;
    border-radius: var(--card-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: right 0.3s;
    z-index: 999;
    max-height: 90vh;
    overflow-y: auto;
}

.filters.active {
    right: 1rem;
}

.filters h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.filters-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: .5rem;
    z-index: 2;
}

.filters-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: .5rem;
    z-index: 2;
}


/* Toggle Filter Button */
.toggle-filters {
    position: fixed;
    top: 50%;
    right: 1rem;
    background-color: var(--secondary-color);
    color: white;
    outline-color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--card-radius);
    cursor: pointer;
    z-index: 1000;
    transform: translateY(-50%);
    font-weight: bold;
}

/* ===== FILTER TOGGLE ATTENTION ANIMATION ===== */
@keyframes filterPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(50, 130, 184, 0.7);
        transform: translateY(-50%) scale(1);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(50, 130, 184, 0);
        transform: translateY(-50%) scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(50, 130, 184, 0);
        transform: translateY(-50%) scale(1);
    }
}

/* Apply animation */
.toggle-filters {
    animation: filterPulse 2.2s infinite;
}

/* ===== CLOSE BUTTON INSIDE FILTER SIDEBAR ===== */
.close-filters {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.close-filters:hover {
    background: rgba(15, 76, 117, 0.1);
    transform: scale(1.1);
}

/* ===== FAVORITE HEART STATES ===== */
.favoriteBtn i {
    font-size: 1.1rem;
    color: white;
    transition: color 0.2s ease, transform 0.2s ease;
}

.favoriteBtn.favorited i {
    color: #e63946; /* premium red */
    transform: scale(1.15);
}

.favoriteBtn i {
    font-size: 1.15rem;
    color: #e63946;
    transition: transform 0.15s ease;
}

.favoriteBtn:hover i {
    transform: scale(1.15);
}

/* ===== FAVORITE CLICK EFFECT ===== */
@keyframes heartPop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.4);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1.15);
    }
}

.favoriteBtn.favorited {
    animation: heartPop 0.35s ease;
}

/* ===== FLYING HEART (TO NAVBAR) ===== */
.flying-heart {
    position: fixed;
    z-index: 9999;
    font-size: 1.3rem;
    color: #e63946;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(.4, 0, .2, 1),
    opacity 0.8s ease;
}

#aiLoader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 40%;
    height: 40%;

    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
    border-radius: 16px;
}

.ai-spinner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: #00c6ff;
    animation: spin 1s linear infinite;
}

.details-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.thumbs img {
    cursor: pointer;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
}

.agent-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem;
}

.rating i {
    color: #f4c430;
    cursor: pointer;
    font-size: 1.4rem;
}

.reference-note {
    background: rgba(50, 130, 184, 0.1);
    border-left: 4px solid var(--secondary);
    padding: .75rem;
    font-size: .9rem;
    margin-top: 1rem;
}

/************* PROPERTY DETAIL PAGE *********/
.property-description {
    line-height: 1.6;
    font-size: 0.95rem;
}

.property-description.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: #0d6efd;
    cursor: pointer;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

/**************ANALOG CLOCK*************/
.analog-clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.analog-clock {
    width: 250px;
    height: 250px;
    border: 8px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.hand {
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--secondary-color);
    top: 50%;
    left: 50%;
    transform-origin: 0% 50%;
    transform: rotate(90deg);
    transition: all 0.05s ease-in-out;
    border-radius: 2px;
}

.hour {
    height: 6px;
    width: 35%;
    background: var(--primary-color);
}

.minute {
    height: 4px;
    width: 45%;
    background: var(--secondary-color);
}

.second {
    height: 2px;
    width: 48%;
    background: #e63946; /* red accent */
}

.center-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.number {
    position: absolute;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1rem;
}

.num1 { top: 20px; right: 40px; }
.num2 { top: 40px; right: 20px; }
.num3 { top: 110px; right: 10px; }
.num4 { bottom: 40px; right: 20px; }
.num5 { bottom: 20px; right: 40px; }
.num6 { bottom: 10px; left: 110px; }
.num7 { bottom: 20px; left: 40px; }
.num8 { bottom: 40px; left: 20px; }
.num9 { top: 110px; left: 10px; }
.num10 { top: 40px; left: 20px; }
.num11 { top: 20px; left: 40px; }
.num12 { top: 10px; left: 110px; }


/********************AGENTS***************/
/* Hero Section */
.hero {
    min-height: 30vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--card-radius);
    margin: 1rem;
}
.hero h1 { font-size: 2.5rem; font-weight: bold; }
.hero p { font-size: 1.2rem; }

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.agent-card {
    background-color: white;
    border-radius: var(--card-radius);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.agent-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.agent-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
.agent-card h5 { color: var(--primary-color); font-weight: bold; margin-bottom: 0.5rem; }
.agent-card p { color: #555; margin-bottom: 0.5rem; }
.agent-card .socials button {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px; height: 40px;
    margin: 0 0.25rem;
    cursor: pointer;
    transition: 0.3s;
}
.agent-card .socials button:hover { background-color: var(--primary-color); }


     /* Pagination container */
 #pagination {
     display: flex;
     justify-content: center;
     margin-top: 2rem;
     flex-wrap: wrap;
     gap: 0.3rem;
 }

/* Page items */
#pagination .page-item {
    list-style: none;
}

/* Links */
#pagination .page-link {
    display: block;
    padding: 0.5rem 0.9rem;
    color: #3282B8;
    background-color: #f8f9fa;
    border-radius: 0.4rem;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

/* Hover */
#pagination .page-link:hover {
    background-color: #3282B8;
    color: #fff;
    transform: scale(1.05);
}

/* Active page */
#pagination .page-item.active .page-link {
    background-color: #0F4C75;
    color: #fff;
    border-color: #0F4C75;
    font-weight: 600;
    transform: scale(1.05);
}

/* Responsive: smaller screens */
@media (max-width: 576px) {
    #pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

.property-card {
    position: relative;
}

/* Badge container */
.image-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

/* Base badge */
.image-badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    white-space: nowrap;
}

/* Listing colors */
.image-badge.listing.rent {
    color: #0d6efd;
}

.image-badge.listing.sale {
    color: #198754;
}

.image-badge.listing.lease {
    color: #f59e0b;
}

.image-badge.views {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.amenity-pill {
    transition: all 0.2s ease;
}
/************* FOOTER *********/
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}
