/* Offset anchor-link scrolling so targets aren't hidden under the sticky navbar.
   Navbar height = 50px logo + 2×16px (py-3) = ~82px; 90px gives a comfortable gap. */
html {
    scroll-padding-top: 90px;
}

/* --- Casa Marbella Brand Variables --- */
:root {
    --cm-dark-blue: #243164;
    --cm-light-blue: #99D0EE;
    --cm-dark-hover: #1b254a; /* Slightly darker for button hovers */
}

/* --- Utility Classes based on Brand Colors --- */
.text-cm-dark {
    color: var(--cm-dark-blue) !important;
}

.text-cm-light {
    color: var(--cm-light-blue) !important;
}

.bg-cm-dark {
    background-color: var(--cm-dark-blue) !important;
}

.bg-cm-light {
    background-color: var(--cm-light-blue) !important;
}

/* Custom Buttons */
.btn-cm-dark {
    background-color: var(--cm-dark-blue);
    border-color: var(--cm-dark-blue);
}

    .btn-cm-dark:hover {
        background-color: var(--cm-dark-hover);
        border-color: var(--cm-dark-hover);
        color: white;
    }

.btn-cm-light {
    background-color: var(--cm-light-blue);
    border-color: var(--cm-light-blue);
    color: var(--cm-dark-blue);
}

    .btn-cm-light:hover {
        background-color: #7ec4e8;
        border-color: #7ec4e8;
        color: var(--cm-dark-blue);
    }

/* --- General Typography & Layout --- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* Navbar */
.navbar-nav .nav-link {
    color: var(--cm-dark-blue);
}

    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
        color: var(--cm-light-blue);
    }

.social-icons a {
    color: var(--cm-dark-blue);
    transition: color 0.3s ease;
}

    .social-icons a:hover {
        color: var(--cm-light-blue);
    }

/* --- Hero Section --- */
.hero-img {
    height: 75vh;
    object-fit: cover;
}
/* Ensure text is readable over photos */
.shadow-text {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* --- Search Bar --- */
.search-container .card {
    /* Adding a subtle border top to anchor it visually */
    border-top: 4px solid var(--cm-dark-blue) !important;
}

/* --- Property Cards --- */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .property-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

    .property-card .card-img-top {
        height: 250px;
        object-fit: cover;
    }

/* Listing Cards (Properties page) */
.listing-card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.listing-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

    .listing-card-img-wrapper img {
        height: 220px;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.listing-card:hover .listing-card-img-wrapper img {
    transform: scale(1.05);
}

/* Pagination active state */
.page-link.bg-cm-dark:hover {
    background-color: var(--cm-dark-hover) !important;
    border-color: var(--cm-dark-hover) !important;
}

.border-cm-dark {
    border-color: var(--cm-dark-blue) !important;
}

/* Exclusive Cards (Image Backgrounds) */
.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.exclusive-card img {
    transition: transform 0.5s ease;
}

.exclusive-card:hover img {
    transform: scale(1.05);
}

/* --- Client Logo Cards --- */
.client-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    background: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .client-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    }

.client-logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.client-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cm-dark-blue);
    margin-top: 0.75rem;
    text-align: center;
    line-height: 1.3;
}

/* --- Contact Page --- */
.contact-info-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .contact-info-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    }

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--cm-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(153, 208, 238, 0.25);
}

.map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

    .map-container iframe {
        display: block;
    }

/* --- Buyers Guide step nav strip --- */
.step-nav-link {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.step-nav-link:hover {
    opacity: 1;
}

.step-nav-link:hover .badge {
    background-color: white !important;
}

/* --- Footer --- */
.text-light-50 {
    color: rgba(255, 255, 255, 0.7);
}
footer a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}