/* Main CSS - Bienes Raíces Ferreira */

:root {
    --primary-color: #336699;
    --secondary-color: #6c757d;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Bootstrap Primary Overrides */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #2a5580 !important;
    border-color: #2a5580 !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header & Nav */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    color: #444;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .nav-link {
        color: var(--primary-color) !important;
        padding: 0.4rem 1.1rem !important;
        border-radius: 50px;
        border: 2px solid var(--primary-color);
        margin: 0 0.35rem;
    }

    .nav-link:hover {
        background-color: #e9ecef;
        border-color: #adb5bd;
        color: #495057 !important;
    }

    .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
    }
}

@media (max-width: 991.98px) {

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color) !important;
        background-color: rgba(51, 102, 153, 0.05);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Cards */
.property-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
    box-shadow: var(--card-shadow);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card-img-top-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.card-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.card-body {
    padding: 1.25rem;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-zone {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.specs-row {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: auto;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Details Page */
.detail-gallery-main {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amenity-chip {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: #e9ecef;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.amenity-chip i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

/* Footer */
footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 2rem 0 0.5rem;
    margin-top: 2rem;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

footer a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}

/* Utilities */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.sticky-bottom-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive specific adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .detail-gallery-main {
        height: 250px;
    }
}