/* Relax Inn — Custom Styles */
/* These styles complement Tailwind and handle edge cases */

/* Base reset adjustments */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Better focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff8a6e;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Custom date input styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(340deg);
    cursor: pointer;
}

/* Prevent text overflow in cards */
.card-lift h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ensure proper line clamping for room descriptions */
.card-lift p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile menu animation enhancements */
@media (prefers-reduced-motion: no-preference) {
    .mobile-menu a {
        opacity: 0;
        transform: translateY(12px);
    }
    .mobile-menu.open a {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
    .mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
    .mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
    .mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .mobile-menu,
    #menu-btn,
    .btn-shine::after {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .font-display {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* Wide screens */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
