/**
 * Villa Serena - Apartment Rental Template
 * Clean & Minimal CSS Styles
 */

/* ============================================
   BASE STYLES
   ============================================ */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Selection Color */
::selection {
    background: #208090;
    color: white;
}

/* Details/Summary (FAQ) */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-animation="fade-left"] {
    transform: translateX(50px);
}

.animate-on-scroll[data-animation="fade-right"] {
    transform: translateX(-50px);
}

.animate-on-scroll[data-animation="fade-scale"] {
    transform: scale(0.9);
}

.animate-on-scroll[data-animation="fade-rotate"] {
    transform: translateY(40px) rotate(-2deg);
}

.animate-on-scroll.animated[data-animation="fade-left"],
.animate-on-scroll.animated[data-animation="fade-right"] {
    transform: translateX(0);
}

.animate-on-scroll.animated[data-animation="fade-scale"] {
    transform: scale(1);
}

.animate-on-scroll.animated[data-animation="fade-rotate"] {
    transform: translateY(0) rotate(0);
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.animated > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.animated > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children.animated > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children.animated > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children.animated > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children.animated > *:nth-child(6) { transition-delay: 400ms; }
.stagger-children.animated > *:nth-child(7) { transition-delay: 480ms; }
.stagger-children.animated > *:nth-child(8) { transition-delay: 560ms; }

.stagger-children.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Background Animation */
.animate-hero-bg {
    animation: heroBgPan 20s ease-in-out infinite alternate;
}

@keyframes heroBgPan {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Hero Fade In Animation */
.hero-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation */
.animate-pulse-soft {
    animation: pulseSoft 2s ease-in-out infinite;
}

@keyframes pulseSoft {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Float Animation */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Bounce In */
.animate-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Slide In from Bottom */
.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Image Zoom on Hover */
.image-hover-zoom {
    overflow: hidden;
}

.image-hover-zoom img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Link Underline Animation */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-underline:hover::after {
    width: 100%;
}

/* Button Press Effect */
.btn-press {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-press:active {
    transform: scale(0.97);
}

/* Icon Rotate on Hover */
.icon-hover-rotate {
    transition: transform 0.3s ease;
}

.icon-hover-rotate:hover .material-symbols-outlined,
.icon-hover-rotate:hover svg {
    transform: rotate(15deg);
}

/* Glow Effect on Hover */
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(32, 128, 144, 0.4);
}

/* Border Animation */
.hover-border-animate {
    position: relative;
}

.hover-border-animate::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: border-color 0.3s ease;
}

.hover-border-animate:hover::before {
    border-color: #208090;
}

/* Tilt Effect */
.hover-tilt {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

/* ============================================
   CARD STYLES
   ============================================ */

.card-luxury {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-luxury:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-luxury:active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: #208090;
    opacity: 0.2;
    line-height: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 0.3;
    transform: scale(1.1);
}

/* ============================================
   GLASS EFFECTS
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-primary-enhanced {
    background: linear-gradient(135deg, #208090 0%, #1a6b7a 100%);
    box-shadow: 0 4px 15px rgba(32, 128, 144, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(32, 128, 144, 0.5);
}

.btn-primary-enhanced:hover::before {
    left: 100%;
}

.btn-primary-enhanced:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(32, 128, 144, 0.4);
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn-ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* ============================================
   SHINE EFFECT
   ============================================ */

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    z-index: 1;
}

.shine-effect:hover::before {
    left: 150%;
}

/* ============================================
   BADGES
   ============================================ */

.badge-popular {
    background: linear-gradient(135deg, #208090 0%, #1a6b7a 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(32, 128, 144, 0.4);
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Star Rating */
.star-rating .star {
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.5));
}

/* ============================================
   TEXT EFFECTS
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, #208090 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text-shadow {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #208090, #2dd4bf);
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   NAVBAR
   ============================================ */

nav.fixed {
    transition: all 0.3s ease;
}

nav.fixed.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Language Switcher */
.lang-btn {
    transition: all 0.2s ease;
}

.lang-btn:hover:not(.active) {
    background: #e5e7eb;
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.map-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(32, 128, 144, 0.3);
    border-radius: inherit;
    pointer-events: none;
}

/* ============================================
   FORM INPUTS
   ============================================ */

.input-enhanced {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.input-enhanced:focus {
    border-color: #208090;
    box-shadow: 0 0 0 4px rgba(32, 128, 144, 0.1);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #208090;
    box-shadow: 0 0 0 3px rgba(32, 128, 144, 0.1);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

#scroll-to-top {
    box-shadow: 0 4px 20px rgba(32, 128, 144, 0.4);
    transition: all 0.3s ease;
}

#scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(32, 128, 144, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(32, 128, 144, 0.5), transparent);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

.decorative-dots {
    background-image: radial-gradient(#208090 2px, transparent 2px);
    background-size: 20px 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .card-luxury:hover {
        transform: translateY(-4px);
    }
    
    .hover-lift:hover {
        transform: translateY(-4px);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

:focus-visible {
    outline: 2px solid #208090;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    nav, footer, #scroll-to-top, .scroll-progress-container {
        display: none !important;
    }
}
