/**
 * NapoliGaribaldi Booking - Public CSS
 */

/* Base Styles */
.ngb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Animations */
@keyframes ngb-spin {
    to { transform: rotate(360deg); }
}

@keyframes ngb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ngb-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ngb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-spin {
    animation: ngb-spin 1s linear infinite;
}

.animate-pulse {
    animation: ngb-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Structure Cards */
.ngb-structure-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ngb-structure-card:hover {
    transform: translateY(-4px);
}

/* Price Display */
.ngb-price-direct {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.ngb-price-ota {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.ngb-savings-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Service badges */
.ngb-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #475569;
    transition: all 0.2s ease;
}

.ngb-service-badge:hover {
    background: #e2e8f0;
}

/* OTA badges */
.ngb-ota-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
}

/* Calendar Styles */
.ngb-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.ngb-calendar th {
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;
    color: #64748b;
    font-size: 0.875rem;
}

.ngb-calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    min-height: 50px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.ngb-calendar-day:not(.disabled):hover {
    background: #eff6ff;
}

.ngb-calendar-day.selected {
    background: #2563eb;
    color: white;
}

.ngb-calendar-day.disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

.ngb-calendar-day.booked {
    background: #fef2f2;
    color: #fca5a5;
    cursor: not-allowed;
}

.ngb-calendar-day .day-number {
    font-weight: 500;
}

.ngb-calendar-day .day-price {
    font-size: 0.625rem;
    color: #10b981;
    font-weight: 600;
}

.ngb-calendar-day.selected .day-price {
    color: #bfdbfe;
}

/* Image Gallery */
.ngb-gallery-main {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 1rem;
    background: #f1f5f9;
}

.ngb-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ngb-gallery-main:hover img {
    transform: scale(1.02);
}

.ngb-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ngb-gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.ngb-gallery-nav.prev { left: 1rem; }
.ngb-gallery-nav.next { right: 1rem; }

.ngb-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.ngb-gallery-thumb {
    flex-shrink: 0;
    width: 5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.ngb-gallery-thumb.active,
.ngb-gallery-thumb:hover {
    border-color: #2563eb;
}

.ngb-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Booking Widget */
.ngb-booking-widget {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 1rem;
}

/* Filter Sidebar */
.ngb-filter-group {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.ngb-filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ngb-filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

/* Custom Checkbox */
.ngb-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.ngb-checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ngb-checkbox:hover .ngb-checkbox-input {
    border-color: #3b82f6;
}

.ngb-checkbox-input.checked {
    background: #2563eb;
    border-color: #2563eb;
}

.ngb-checkbox-input.checked svg {
    color: white;
}

/* Loading States */
.ngb-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: ngb-shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes ngb-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .ngb-container {
        padding: 0 0.75rem;
    }
    
    .ngb-gallery-main {
        aspect-ratio: 4/3;
        border-radius: 0.75rem;
    }
    
    .ngb-calendar-day {
        min-height: 40px;
    }
    
    .ngb-calendar-day .day-price {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ngb-dark-support {
        /* Add dark mode styles here if needed */
    }
}

/* Print styles */
@media print {
    .ngb-booking-widget,
    .ngb-gallery-nav,
    .ngb-filter-sidebar {
        display: none !important;
    }
}

/* Scrollbar */
.ngb-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ngb-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.ngb-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ngb-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
