/* WhatsApp + trust strip + scroll reveal */

.trust-strip {
    background: linear-gradient(135deg, #eef4ff 0%, #fff 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.trust-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.trust-item strong {
    display: block;
    color: var(--primary);
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.trust-item p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 300;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem 0.85rem 0.85rem;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex-shrink: 0;
}

.whatsapp-float-label {
    padding-right: 0.15rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

@media (max-width: 768px) {
    .whatsapp-float-label { display: none; }
    .whatsapp-float {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .trust-strip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .trust-strip-grid { grid-template-columns: 1fr; }
}

/* Star ratings */
.star-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.35rem 0 0.5rem;
}

.star-rating-stars {
    display: inline-flex;
    gap: 0.1rem;
    line-height: 1;
}

.star-rating .star {
    font-size: 1rem;
    line-height: 1;
}

.star-rating--sm .star { font-size: 0.85rem; }

.star.is-full { color: #febb02; }
.star.is-half {
    color: #febb02;
    opacity: 0.55;
}
.star.is-empty { color: #d1d5db; }

.star-rating-value {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
}

.star-rating--sm .star-rating-value { font-size: 0.85rem; }

.star-rating-count {
    color: var(--muted);
    font-size: 0.82rem;
}

/* Availability counter */
.availability-counter {
    margin: 0 auto 2rem;
    max-width: 1140px;
    padding: 0 3%;
}

.availability-counter-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #002855 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.availability-counter-number {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    min-width: 2.5ch;
    color: var(--accent);
}

.availability-counter-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.availability-counter-text span {
    font-size: 0.88rem;
    opacity: 0.85;
}

/* Share box */
.share-box {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
}

.share-box-title {
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: #166534;
    font-size: 0.92rem;
}

.btn-whatsapp-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: #25d366;
    color: #fff;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease;
}

.btn-whatsapp-share:hover { filter: brightness(0.95); }

.btn-whatsapp-share svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Reviews */
.reviews-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.reviews-section .section-title {
    margin: 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.review-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.review-card-header strong {
    display: block;
    color: var(--primary);
    font-size: 0.92rem;
}

.review-date {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.review-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.55;
}

.property-card-body .star-rating {
    margin: 0.15rem 0 0.5rem;
}

.property-card-body .star-rating-count {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .availability-counter-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* Zahara experience */
.zahara-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.65rem;
    background: rgba(254, 187, 2, 0.2);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.zahara-lifestyle {
    padding: 3rem 0;
    background:
        radial-gradient(circle at top right, rgba(254, 187, 2, 0.12), transparent 35%),
        linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}

.zahara-lifestyle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.zahara-now-card {
    min-width: 220px;
    padding: 1rem 1.15rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.zahara-now-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.75;
    margin-bottom: 0.35rem;
}

.zahara-now-temp {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.zahara-now-note {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.45;
}

.zahara-experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.zahara-experience-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    color: #fff;
    min-height: 180px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.zahara-experience-card:hover {
    transform: translateY(-4px);
}

.zahara-experience-card.is-sunset { background: linear-gradient(145deg, #f97316, #c2410c); }
.zahara-experience-card.is-food { background: linear-gradient(145deg, #0ea5e9, #0369a1); }
.zahara-experience-card.is-beach { background: linear-gradient(145deg, #14b8a6, #0f766e); }
.zahara-experience-card.is-nature { background: linear-gradient(145deg, #22c55e, #15803d); }

.zahara-experience-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.65rem;
}

.zahara-experience-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.zahara-experience-card p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    opacity: 0.92;
}

/* Apartment finder */
.apartment-finder {
    padding: 0 0 3rem;
}

.apartment-finder-panel {
    padding: 1.5rem;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.apartment-finder-intro {
    margin-bottom: 1.5rem;
}

.finder-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.finder-step {
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.finder-step-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.finder-step-title {
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: var(--navy);
}

.finder-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.finder-chip {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.finder-chip:hover,
.finder-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.finder-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.finder-results {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.finder-results-header h3 {
    margin: 0 0 0.25rem;
    color: var(--primary);
}

.finder-results-header p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.finder-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.finder-result-card {
    position: relative;
    display: block;
    padding: 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.finder-result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.finder-result-card.is-top-match {
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.finder-match-badge {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.25rem 0.55rem;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.finder-result-card h4 {
    margin: 0 0 0.35rem;
    color: var(--primary);
    font-size: 1rem;
}

.finder-result-card p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.finder-result-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.finder-see-all {
    display: inline-flex;
}

@media (max-width: 900px) {
    .zahara-experience-grid,
    .finder-steps,
    .finder-results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .zahara-lifestyle-header {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .zahara-experience-grid,
    .finder-steps,
    .finder-results-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mapa interactivo Zahara --- */
.zahara-map-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.zahara-map-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.zahara-map-header .section-title {
    margin-bottom: 0.35rem;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.map-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-filter:hover {
    border-color: var(--primary, #003580);
    color: var(--primary, #003580);
}

.map-filter.is-active {
    background: var(--primary, #003580);
    border-color: var(--primary, #003580);
    color: #fff;
}

.zahara-map-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    min-height: 480px;
}

.zahara-map-canvas {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    min-height: 480px;
    z-index: 1;
}

.zahara-map-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.zahara-map-sidebar h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.map-place-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.map-place-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.map-place-button:hover {
    border-color: var(--primary, #003580);
    box-shadow: 0 2px 12px rgba(0, 53, 128, 0.12);
}

.map-place-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 1.2rem;
}

.map-place-button strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.map-place-button small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: #64748b;
}

.zahara-map-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.zahara-map-marker {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 2px solid #fff;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.map-popup {
    min-width: 180px;
}

.map-popup-tag {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e2e8f0;
    color: #475569;
}

.map-popup strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.map-popup p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.map-popup-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #003580);
}

@media (max-width: 900px) {
    .zahara-map-layout {
        grid-template-columns: 1fr;
    }

    .zahara-map-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .zahara-map-sidebar {
        max-height: 280px;
        order: 2;
    }

    .zahara-map-canvas {
        min-height: 360px;
        order: 1;
    }
}
