html {
  scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
}

/* ===== MAIN BANNER ===== */
.search-banner {
    position:relative;
    min-height: 83vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* .search-banner img.u-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 83%; 
    z-index: 0;
    filter: brightness(0.798) saturate(1.5) contrast(1);
    transform: scale(1);
} */

.search-banner video.u-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.750) saturate(1) contrast(1);
}

.search-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background: linear-gradient(
        to right,
        rgb(0, 0, 0) 20%,
        transparent 60%,
        transparent 80%,
        rgba(0, 0, 0, 0.628) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* wrapper – relative to stack content */
.wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.search-banner .wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 4rem;
    margin-left: 3rem;
}

/* heading */
.banner-text {
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #ffffff;
    width: 40%;
    padding-top: 3rem;
}

.banner-heading {
    font-size: 3.4rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #ffffff;
    justify-content: baseline;
    width: 100%;
    text-transform:uppercase;
}

.banner-heading::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #3b8bc0;
    margin: 1rem 0 0.5rem 0;
    border-radius: 3px;
}

.banner-sub-heading {
    margin-top: 1rem;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    color: #ffffff;
    justify-content: baseline;
    width: 100%;
}

.search-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    margin-top: 7rem;
    position: relative;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    border-radius: 16px;
    padding: 1rem 1.5rem;
    background: rgb(33, 33, 33);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    width: 100%;
    position: relative;
    justify-content: center;
}

.search-panel-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.search-panel-form-item {
    flex: 1 1 0;
    min-width: 80px;
    max-width: unset;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.6rem;
    height: 44px;
    transition: border-color 0.2s ease;
}

.search-panel-form-item-button {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 140px;
}

.search-panel-form-item svg {
    flex-shrink: 0;
    width: 23px;
    height: 23px;
    opacity: 0.5;
}

.form-select {
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.6rem 0.4rem 0.2rem;
    width: 100%;
    color: #e8e8e8;
    background: transparent;
    font-size: 0.79rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.2rem center;
    padding-right: 1.4rem;
    height: 100%;
    outline: none;
}

.form-select option {
    background: #1a1a2e;
    color: #e8e8e8;
    padding: 0.5rem;
    font-size: 0.78rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b8bc0 0%, #2a6f9a 100%);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    letter-spacing: 0.03em;
    font-size: 0.78rem;
    cursor: pointer;
    width: 100%;
    min-height: 44px;
    height: 44px;
    white-space: nowrap;
}

.btn-icon svg {
    fill: #ffffff;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== HIGHLIGHTED LOCATIONS BANNER ===== */
.highlighted-locations-banner {
    padding: 0 2rem;
    background: #ffffff;
    margin: 0rem 0 0 0;
}

.highlighted-locations-title {
    font-size: 33px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.highlighted-locations-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #3b8bc0;
    margin: 0.5rem 0 0.5rem 0;
    border-radius: 3px;
}

.higlighted-locations-grid {
    display:inline-flex;
    gap: 1.1rem;
    margin-left: 0rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0rem 0rem;
}

.property-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.property-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.247);
    pointer-events: none;
}

.property-ribbon.available {
    background: #27a346;
    color: #ffffff;
}

.property-ribbon.unavailable {
    background: #dc3545;
    color: #ffffff;
}

.property-ribbon::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid inherit;
}

.property-ribbon.available::after {
    border-left-color: #28a745;
}

.property-ribbon.unavailable::after {
    border-left-color: #dc3545;
}

.carousel-track {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.property-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4.5 / 3;
    background: #f0f4f6;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
    isolation: isolate;
}

.labelType {
    position: absolute;
    bottom: 60px;
    left: 12px;
    background: rgba(1, 63, 87, 0.9);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    margin-bottom: -3rem;
}

.labelType {
    position: absolute;
    bottom: 60px;
    left: 12px;
    background: rgba(1, 63, 87, 0.9);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    margin-bottom: -3rem;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: 20px;
}
/* 
.carousel-counter {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.5);
    color: #ffffff;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 3;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
} */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #333;
    font-size: 1rem;
}

.carousel-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }

.property-card-description {
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: -0.5rem;
}

.property-card-description h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.property-card-description .location {
    font-size: 0.85rem;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-card-description .location i {
    color: #029eda;
}

.inline-details {
    display: flex;
    gap: 1.2rem;
    padding: 0rem 0;
}

.inline-details p {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.inline-details p:not(:last-child)::after {
    content: '|';
    margin-left: 0.8rem;
    color: #ccc;
}

/* Simple svg icons */
.inline-details p:nth-child(1)::before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("/media/bedroom1.png");
    filter: brightness(0) saturate(100%) invert(47%) sepia(89%) saturate(1233%) hue-rotate(174deg) brightness(96%) contrast(91%);
    background-size: contain;
}

.inline-details p:nth-child(2)::before {
  content: "";
  width: 16px; 
  height: 16px;  
  background-image: url("/media/bathroom.png");  
  filter: brightness(0) saturate(100%) invert(47%) sepia(89%) saturate(1233%) hue-rotate(174deg) brightness(96%) contrast(91%);
  background-size: contain;
}

.inline-details p:nth-child(3)::before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("/media/square-metre.svg");
    filter: brightness(0) saturate(100%) invert(47%) sepia(89%) saturate(1233%) hue-rotate(174deg) brightness(96%) contrast(91%);
    background-size: contain;
}

.property-card-description h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 1rem 0 1rem 0;
}

.property-card-description h3 .price-period {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
}

.property-card-description button {
    background: none;
    border: none;
    font-weight: 900;
    font-size: 0.80rem;
    color: #029eda;
    cursor: pointer;
    width: auto;
    text-align: left;
    text-transform: uppercase;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.property-card-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.property-card-description button::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.property-card-description button:hover {
    color: #0278a8;
}

.property-card-description button:hover::after {
    transform: translateX(5px);
}

/* === NOSOTROS BANNER === */
.nosotros-page-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.nosotros-banner {
    position: relative;
    min-height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 2.5rem;
}

.nosotros-banner img.u-cover-nosotros {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.798) saturate(1.5) contrast(1);
    z-index: 0;
}

.nosotros-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.885) 20%,
        transparent 50%,
        rgba(0, 0, 0, 0.609) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.img-nosotros-text {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    color: #ffffff;
    margin-left: 3rem;
}

.img-nosotros-ribbon {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b8bc0;
    margin-bottom: 1rem;
}

.img-nosotros-title {
    font-size: 2.8rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-transform: uppercase;
    width: 55%;
}

.img-nosotros-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #3b8bc0;
    margin: 1rem 0 0.5rem 0;
    border-radius: 3px;
}

.img-nosotros-subtext {
    margin-top: 1rem;
    font-size: 1.15rem;
    font-weight: 500;
    width: 40%;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1.6;
}

.quienes-somos-section {
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: start; /* Pins everything to the top edge */
}

.quienes-somos-container {
    margin: 4rem 5rem 0 3rem;
    z-index: 2;
}

.quienes-somos-section img.u-cover-quienes-somos {
    width: 100%;
    height: 480px;
    min-height: 100;
    filter: brightness(0.9) saturate(1.1) contrast(1);
    border-bottom-left-radius: 16px;
}

.quienes-ribbon {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b8bc0;
    margin-bottom: 1rem;
}

.quienes-subtitle {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.quienes-subtitle::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #3b8bc0;
    margin: 1rem 0 0.5rem 0;
    border-radius: 3px;
}

.quienes-text {
    font-size: 1.15rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.7rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.quienes-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #3b8bc0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quienes-btn:hover {
    color: #0278a8;
    gap: 0.8rem;
}

.quienes-btn::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.quienes-btn:hover::after {
    transform: translateX(1px);
}

/* === MISSION / VISION */
.nosotros-info-wrapper {
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    padding: 2rem 3vw; /* Replaces the negative margin hack with proper spacing */
}

.nosotros-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.info-card {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.info-icon {
    color: #3b8bc0;
    margin-bottom: 1.25rem;
}

.info-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 1rem;
}

.info-title::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: #3b8bc0;
    margin: 1rem 0 0.5rem 0;
    border-radius: 3px;
}

.info-text {
    font-size: 1.05rem;
    color: #000000;
    line-height: 1.6;
}

/* Stats Box Group Grid Layout */
.stats-grid-card {
    background: #e8f2ff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    color: #3b8bc0;
    position: relative;
}

/* 1. Vertical separator line ONLY after the first item (top-left) */
.stat-item:nth-child(1)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: #cbd5e1;
}

/* 2. Horizontal separator line ONLY under the top row (items 1 and 2) */
.stat-item:nth-child(1)::before,
.stat-item:nth-child(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%; /* Insets the line so it doesn't touch the outer edges */
    right: 10%; /* Insets the line on the right side */
    height: 1px;
    background-color: #cbd5e1;
}

.stat-item:nth-child(3)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: #cbd5e1;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a202c;
    margin-top: 0.2rem;
}

/* Values Section */
.values-header {
    text-align: center;
    margin-bottom: 3rem;
}

.values-ribbon {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b8bc0;
    margin-bottom: 0.5rem;
}

.values-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.values-main-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #3b8bc0;
    margin: 1rem auto 0.5rem auto;
    border-radius: 3px;
}

.values-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.values-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.8rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 270px;
}

.values-card img {
    height: 4.5rem;
    width: 4.5rem;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: #e8f2ff;
    padding: 0.5rem;
}

.values-card h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 1rem 0;
    padding: 0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.values-card p {
    font-size: 0.90rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
}

/* ==== APPOINTMENT BANNER ==== */
.appointment-banner {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #feffff 0%, #ffffff 100%);
}

.appointment-container {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(224, 242, 254, 0.9);
}

.appointment-container h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Sections */
.form-section {
    margin-bottom: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

/* Step Number Badge */
.step-number {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 0.75rem;
}

/* Step 1: 3-column row layout */
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid #bae6fd;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.field-error-text {
    font-size: 0.78rem;
    color: #0284c7;
    margin-top: 0.3rem;
}

/* Step 2: Property Preview Layout */
.property-selection-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0f2fe;
    border-radius: 16px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.property-preview-img,
.property-preview-img2 {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
}

.property-dropdown-wrapper {
    flex: 1;
}

/* Step 3: Calendar & Time Grid Layout */
.schedule-grid-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.mini-calendar-card {
    background: #ffffff;
    border: 2px solid #e0f2fe;
    border-radius: 16px;
    padding: 1rem;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.8rem;
    padding: 0 0.5rem;
}

.cal-header button {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.cal-day:hover:not(.muted) {
    background-color: #bae6fd;
    transform: scale(1.05);
}

.cal-day.active {
    background-color: #0284c7;
    color: #ffffff;
    font-weight: 600;
    transform: scale(1);
}

.cal-day.muted {
    background-color: transparent;
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.4;
}

.cal-day.today-highlight {
    border: 2px solid #0284c7;
}

/* Status message improvements */
.form-status {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-weight: 500;
    margin-bottom: 1rem;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Field error text */
.field-error-text {
    display: none;
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 0.2rem;
}

.form-group.error .field-error-text {
    display: block;
}

.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
}

/* Submit Button */
.btn-submit-styled {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.btn-submit-styled:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-1px);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
/* Large screens (1200px and below) */
@media (max-width: 1200px) {
    .highlighted-locations-banner-grid {
        padding: 0 2rem;
    }
 
    .locations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}
 
/* Medium screens (992px and below) */
@media (max-width: 992px) {
    .highlighted-locations-banner-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
 
    .highlighted-locations-text {
        width: 100%;
        text-align: center;
    }
 
    .highlighted-locations-text p {
        margin: 0 auto;
    }
 
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
 
    .locations-grid>div:nth-child(5) .location-card {
        margin-top: 0;
    }
 
    .location-card-img {
        height: 240px;
    }
 
    .values-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
 
    .contact-form-group-grid {
        margin: 0 1.5rem;
        gap: 0.7rem 1rem;
    }
 
    #submitBtn {
        width: 40%;
    }
}
 
/* Tablet screens (768px and below) */
@media (max-width: 768px) {
    .highlighted-locations-banner {
        padding: 3rem 0;
    }
 
    .highlighted-locations-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
 
    .highlighted-locations-text p {
        font-size: 1rem;
    }
 
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
 
    .locations-grid>div:nth-child(1) .location-card-img,
    .locations-grid>div:nth-child(4) .location-card-img {
        height: 220px;
    }
 
    .locations-grid>div:nth-child(2) .location-card-img,
    .locations-grid>div:nth-child(3) .location-card-img,
    .locations-grid>div:nth-child(5) .location-card-img {
        height: 200px;
    }
 
    .location-card-title {
        padding: 1.5rem 1rem 1rem;
    }
 
    .location-card-title a {
        font-size: 0.95rem;
    }
 
    .location-card-title a::after {
        display: none;
    }
 
    .values-features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
 
    .values-card {
        padding: 1.5rem;
    }
 
    .contact-service {
        padding: 3rem 1.5rem;
    }
 
    .page-content {
        border-radius: 20px;
    }
 
    .contact-text {
        padding: 1.5rem 1rem;
    }
 
    .contact-text p {
        font-size: 16px;
    }
 
    .form-container {
        padding: 1rem;
    }
 
    .form-container h3 {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
 
    .contact-form-group-grid {
        grid-template-columns: 1fr;
        margin: 0 1rem;
        gap: 0.7rem;
    }
 
    .contact-form-group-full {
        grid-column: 1;
    }
 
    .form-button-wrapper {
        margin: 0 1rem;
    }
 
    #submitBtn {
        width: 100%;
        justify-content: center;
    }
}
 
/* Mobile (640px and below) */
@media (max-width: 640px) {
    .search-banner {
        min-height: 90vh;
    }
 
    .banner-heading {
        font-size: 2.2rem;
    }
 
    .wrapper {
        padding: 1.5rem 1rem;
    }
 
    .search-container {
        padding: 0;
    }
 
    .search-bar {
        padding: 1.2rem 1rem 1.5rem;
        border-radius: 1.5rem;
    }
 
    .search-panel-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
 
    .search-panel-form-item {
        flex: 1 1 auto;
        min-width: unset;
    }
 
    .btn-primary {
        justify-content: center;
        padding: 0.8rem 1.2rem;
        width: 100%;
    }
}
 
/* Mobile small (480px and below) */
@media (max-width: 480px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
 
    .locations-grid>div:nth-child(1) .location-card-img,
    .locations-grid>div:nth-child(4) .location-card-img {
        height: 200px;
    }
 
    .locations-grid>div:nth-child(2) .location-card-img,
    .locations-grid>div:nth-child(3) .location-card-img,
    .locations-grid>div:nth-child(5) .location-card-img {
        height: 200px;
    }
 
    .location-card-title a {
        font-size: 0.85rem;
    }
 
    .values-card h2 {
        font-size: 1rem;
    }
 
    .values-card p {
        font-size: 0.85rem;
    }
 
    .consult-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
}
 
/* ---------- Laptops pequeñas (<= 1200px) ---------- */
@media (max-width: 1200px) {
    .search-banner .wrapper {
        margin-left: 2rem;
        padding: 5rem 1.5rem 3rem;
    }
 
    .banner-text {
        width: 55%;
    }
 
    .banner-heading {
        font-size: 2.8rem;
    }
 
    .search-container {
        padding: 0 1rem;
        margin-top: 3rem;
    }
 
    .highlighted-locations-banner {
        padding: 0 1.5rem;
    }
 
    /* 4 columnas eran demasiado angostas aquí */
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
 
    .img-nosotros-text {
        margin-left: 2.5rem;
        margin-right: 2rem;
    }
 
    .img-nosotros-title {
        font-size: 2.3rem;
        width: 70%;
    }
 
    .img-nosotros-subtext {
        width: 60%;
    }
 
    .quienes-somos-container {
        margin: 3rem 2rem 0 2rem;
    }
 
    .quienes-somos-section img.u-cover-quienes-somos {
        height: 420px;
    }
 
    /* Misión / Visión / Estadísticas */
    .nosotros-top-grid {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 3rem;
    }
 
    .stats-grid-card {
        grid-column: 1 / -1;
    }
 
    .values-features-grid {
        gap: 1.5rem;
    }
 
    .values-card {
        height: auto;
        min-height: 270px;
    }
}
 
/* ---------- Tablet (<= 991px) : aquí el header ya es hamburguesa ---------- */
@media (max-width: 991px) {
    .search-banner {
        min-height: auto;
        padding: 0rem 0 2rem 0;
    }

    .search-banner video.u-cover,
    .search-banner::after {
        height: 100%;
        object-fit: cover;
        object-position: 30% center;
        transform: scale(1);
    }
 
    .search-banner .wrapper {
        margin-left: 0;
        margin-top: 1.5rem;
        padding: 2.5rem 1.5rem 1rem;
    }
 
    .banner-text {
        width: 100%;
    }
 
    .banner-heading {
        font-size: 2.4rem;
    }
 
    .search-container {
        margin-top: 2rem;
        padding: 0 1.5rem;
    }
 
    /* Filtros: 2 por fila y botón a lo ancho */
    .search-panel-form {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
 
    .search-panel-form-item {
        flex: 1 1 calc(50% - 0.7rem);
        min-width: 140px;
    }
 
    .search-panel-form-item-button {
        flex: 1 1 100%;
        max-width: 100%;
    }
 
    .highlighted-locations-banner {
        margin-top: 2rem;
        padding: 0 1.5rem;
    }
 
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
 
    /* Nosotros */
    .nosotros-banner {
        min-height: 45vh;
        margin-top: 1.5rem;
    }
 
    .img-nosotros-text {
        margin-left: 2rem;
        margin-right: 2rem;
    }
 
    .img-nosotros-title {
        font-size: 2rem;
        width: 85%;
    }
 
    .img-nosotros-subtext {
        width: 85%;
    }
 
    /* Quiénes somos: texto arriba, foto abajo */
    .quienes-somos-section {
        grid-template-columns: 1fr;
    }
 
    .quienes-somos-container {
        margin: 2.5rem 2rem 1.5rem;
    }
 
    .quienes-text {
        max-width: 100%;
    }
 
    .quienes-somos-section img.u-cover-quienes-somos {
        height: 320px;
        object-fit: cover;
        border-bottom-left-radius: 0;
    }
 
    .nosotros-info-wrapper {
        padding: 2rem 1.5rem;
    }
 
    .nosotros-top-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
 
    .info-card {
        padding: 2rem 1.5rem;
    }
 
    .values-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
 
    .values-card {
        height: auto;
        min-height: 0;
    }
 
    /* Formulario de cita */
    .appointment-banner {
        padding: 3rem 1.5rem;
    }
 
    .appointment-container {
        padding: 2rem;
    }
 
    .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
 
    .schedule-grid-layout {
        grid-template-columns: 1fr;
    }
}
 
/* ---------- Móvil (<= 768px) ---------- */
@media (max-width: 768px) {
    .search-banner::after {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }
 
    .search-banner .wrapper {
        padding: 2rem 1.25rem 1rem;
    }
 
    .banner-heading {
        font-size: 2.1rem;
    }
 
    .banner-sub-heading {
        font-size: 1.05rem;
    }
 
    .search-container {
        padding: 0 1.25rem;
    }
 
    .search-bar {
        padding: 1rem;
        border-radius: 14px;
    }
 
    .highlighted-locations-banner {
        padding: 0 1.25rem;
        margin-top: 1.5rem;
    }
 
    .highlighted-locations-title {
        font-size: 26px;
    }
 
    /* Tarjetas de propiedades en una columna */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
 
    /* Nosotros */
    .nosotros-banner::after {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.55) 55%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }
 
    .img-nosotros-text {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        padding: 1.5rem 0;
    }
 
    .img-nosotros-title {
        font-size: 1.75rem;
        width: 100%;
    }
 
    .img-nosotros-subtext {
        width: 100%;
        font-size: 1rem;
    }
 
    .quienes-somos-container {
        margin: 2rem 1.25rem 1.5rem;
    }
 
    .quienes-text {
        font-size: 1.05rem;
    }
 
    .nosotros-info-wrapper {
        padding: 2rem 1.25rem;
    }
 
    .stat-item {
        padding: 1.5rem 1rem;
        gap: 0.8rem;
    }
 
    .stat-number {
        font-size: 2.2rem;
    }
 
    .stat-label {
        font-size: 0.8rem;
    }
 
    .values-header {
        margin-bottom: 2rem;
    }
 
    .values-main-title {
        font-size: 1.8rem;
    }
 
    /* Cita */
    .appointment-banner {
        padding: 2.5rem 1.25rem;
    }
 
    .appointment-container {
        padding: 1.75rem 1.25rem;
        border-radius: 18px;
    }
 
    .appointment-container h1 {
        font-size: 1.6rem;
    }
 
    .subtitle {
        margin-bottom: 1.8rem;
    }
 
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
 
    /* La foto de la propiedad pasa arriba del selector */
    .property-selection-box {
        flex-direction: column;
        align-items: stretch;
    }
 
    .property-preview-img,
    .property-preview-img2 {
        width: 100%;
        height: 200px;
    }
}
 
/* ---------- Móvil chico (<= 480px) ---------- */
@media (max-width: 480px) {
    .banner-heading {
        font-size: 1.8rem;
    }
 
    .banner-sub-heading {
        font-size: 0.98rem;
    }
 
    /* Filtros uno debajo del otro */
    .search-panel-form {
        flex-direction: column;
        align-items: stretch;
    }
 
    .search-panel-form-item {
        flex: 1 1 auto;
        min-width: 0;
    }
 
    .highlighted-locations-title {
        font-size: 22px;
    }
 
    .property-card-description h2 {
        font-size: 1rem;
    }
 
    .property-card-description h3 {
        font-size: 1.35rem;
    }
 
    .inline-details {
        flex-wrap: wrap;
        gap: 0.7rem;
    }
 
    .inline-details p {
        font-size: 0.75rem;
    }
 
    .inline-details p:not(:last-child)::after {
        margin-left: 0.5rem;
    }
 
    .img-nosotros-ribbon,
    .values-ribbon {
        font-size: 0.8rem;
    }
 
    .img-nosotros-title {
        font-size: 1.45rem;
    }
 
    .img-nosotros-subtext {
        font-size: 0.95rem;
        line-height: 1.5;
    }
 
    .quienes-text {
        font-size: 1rem;
        line-height: 1.6rem;
    }
 
    .quienes-somos-section img.u-cover-quienes-somos {
        height: 240px;
    }
 
    .info-card {
        padding: 1.5rem 1.25rem;
    }
 
    .info-text {
        font-size: 0.98rem;
    }
 
    /* Estadísticas en una columna, sin líneas separadoras */
    .stats-grid-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
 
    .stat-item:nth-child(1)::after,
    .stat-item:nth-child(3)::after,
    .stat-item:nth-child(2)::before {
        display: none;
    }
 
    .stat-item:nth-child(1)::before,
    .stat-item:nth-child(2)::before,
    .stat-item:nth-child(3)::before {
        left: 6%;
        right: 6%;
    }
 
    .stat-item {
        padding: 1.25rem 1rem;
    }
 
    .stat-number {
        font-size: 2rem;
    }
 
    /* Valores en una columna */
    .values-features-grid {
        grid-template-columns: 1fr;
    }
 
    .values-main-title {
        font-size: 1.5rem;
    }
 
    .values-card {
        padding: 1.5rem 1.25rem;
    }
 
    /* Cita */
    .appointment-container {
        padding: 1.25rem 1rem;
    }
 
    .appointment-container h1 {
        font-size: 1.35rem;
    }
 
    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
 
    .mini-calendar-card {
        padding: 0.75rem;
    }
 
    .cal-day {
        font-size: 0.75rem;
        border-radius: 6px;
    }
 
    .cal-days-grid {
        gap: 3px;
    }
 
    .property-preview-img,
    .property-preview-img2 {
        height: 160px;
    }
 
    .btn-submit-styled {
        font-size: 0.95rem;
        padding: 0.85rem 1.25rem;
    }
}