/* Booking Engine - Custom Styles */

/* Base */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    font-size: 16px; /* Prevent zoom on iOS */
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

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

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* Smooth transitions */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Gallery modal */
#galleryModal {
    backdrop-filter: blur(4px);
}

#galleryModal img {
    max-height: 90vh;
    max-width: 95vw;
}

/* Property cards hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Calendar cell styles */
.calendar-cell {
    @apply p-2 text-center text-sm rounded-lg transition cursor-pointer;
}

.calendar-cell.available {
    @apply hover:bg-blue-50 text-slate-700;
}

.calendar-cell.unavailable {
    @apply bg-slate-100 text-slate-400 cursor-not-allowed;
}

.calendar-cell.selected {
    @apply bg-blue-600 text-white;
}

.calendar-cell.in-range {
    @apply bg-blue-100 text-blue-700;
}

.calendar-cell.past {
    @apply text-slate-300 cursor-not-allowed;
}

/* Price tag */
.price-tag {
    @apply text-xs text-slate-500 block;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }

    /* Property cards - full width on small mobile */
    .grid-cols-1 {
        gap: 1rem;
    }

    /* Larger touch targets */
    button, a, select, input {
        min-height: 44px;
    }

    /* Better card padding on mobile */
    .p-5 {
        padding: 1rem;
    }

    /* Improve card image aspect ratio on mobile */
    .aspect-\[4\/3\] {
        aspect-ratio: 16/10;
    }
}

/* Very small screens */
@media (max-width: 375px) {
    h1 {
        font-size: 1.375rem;
    }

    /* Tighter spacing */
    .px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    main {
        padding: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .border-slate-200 {
        border-color: #475569;
    }

    .text-slate-500,
    .text-slate-600 {
        color: #334155;
    }
}

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