/* Julia Motel — Custom Styles & Overrides */

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #fffbeb;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333ea, #a855f7);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7e22ce, #9333ea);
}

/* Selection color */
::selection {
    background: rgba(147, 51, 234, 0.2);
    color: #1e0033;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #a855f7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shift on images */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Subtle entrance animation for hero elements */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Glass morphism utility */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow utilities */
.shadow-plum {
    box-shadow: 0 10px 40px rgba(88, 28, 135, 0.15);
}

.shadow-plum-lg {
    box-shadow: 0 20px 60px rgba(88, 28, 135, 0.2);
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(88, 28, 135, 0.15);
}

/* Ripple effect for buttons */
.btn-primary::after,
.cta-phone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after,
.cta-phone:hover::after {
    opacity: 1;
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll-indicator,
    .floating-shapes,
    .swiper-pagination {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        padding: 40px 24px;
        background: #f5f5f5 !important;
    }

    section {
        padding: 40px 24px;
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .amenity-icon,
    .about-feature-icon,
    .location-detail-icon {
        border: 1px solid currentColor;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .room-card:hover {
        transform: none;
    }

    .amenity-card:hover {
        transform: none;
    }

    .location-detail:hover {
        transform: none;
    }
}
