/* casasylocalesperu.com - Custom Styles & Airbnb UI enhancements */

/* Ocultar barra de scroll en contenedores horizontales pero permitir desplazamiento */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Pines interactivos en el Mapa estilo Airbnb */
.airbnb-price-pin {
    background-color: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    display: inline-block;
}

.airbnb-price-pin:hover,
.airbnb-price-pin.active {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
    z-index: 9999 !important;
}

/* Efecto Mosaico de Fotos de la Propiedad */
.gallery-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 8px;
    border-radius: 1.25rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-mosaic {
        display: block;
        height: 280px;
    }
}

.gallery-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.gallery-mosaic img:hover {
    opacity: 0.92;
}

/* Flatpickr Airbnb Custom Styling */
.flatpickr-calendar {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15) !important;
    border: 1px solid #e2e8f0 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}

.flatpickr-day.inRange {
    background: #ffe4e6 !important;
    border-color: #ffe4e6 !important;
    color: #be123c !important;
}

/* Animaciones suaves */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
