/* Mediterranean Boutique Hotel - Clean & Elegant Styles */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Custom Font Classes */
.font-baskerville {
    font-family: 'Libre Baskerville', serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

/* Header Styles */
#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Navigation Links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c17658;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 400px;
}

/* Button Styles */
.btn-primary {
    background: #c17658;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #a65e44;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 118, 88, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 32px;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: white;
    color: #374151;
    transform: translateY(-2px);
}

/* Room Cards */
.room-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(193, 118, 88, 0.2);
}

/* Image Hover Effects */
.room-card img,
.gallery-swiper img {
    transition: transform 0.5s ease;
}

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

/* Amenity Icons */
.amenity-icon {
    transition: all 0.3s ease;
}

.amenity-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(193, 118, 88, 0.2);
}

/* Gallery Swiper */
.gallery-swiper {
    padding: 20px 0 60px;
}

.gallery-swiper .swiper-slide {
    margin-right: 20px;
}

.gallery-swiper .swiper-pagination {
    position: static;
    margin-top: 30px;
}

.swiper-pagination-bullet {
    background: rgba(193, 118, 88, 0.3);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px;
}

.swiper-pagination-bullet-active {
    background: #c17658;
    transform: scale(1.2);
}

/* Form Styles */
form input,
form textarea,
form select {
    transition: all 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    ring: 2px;
    ring-color: #c17658;
    border-color: #c17658;
    box-shadow: 0 0 0 3px rgba(193, 118, 88, 0.1);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

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

/* Hover Transitions */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a65e44;
}

/* Text Selection */
::selection {
    background: rgba(193, 118, 88, 0.2);
    color: #374151;
}

::-moz-selection {
    background: rgba(193, 118, 88, 0.2);
    color: #374151;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #c17658;
    outline-offset: 2px;
}

/* Hero Section Enhancements */
#home {
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

#home .container {
    position: relative;
    z-index: 2;
}

/* Section Spacing */
section {
    position: relative;
}

/* Card Shadow Variations */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Mediterranean Color Palette */
.bg-terracotta {
    background-color: #c17658;
}

.bg-terra-light {
    background-color: #d4967a;
}

.bg-terra-dark {
    background-color: #a65e44;
}

.bg-cream {
    background-color: #f7f3e9;
}

.bg-sage {
    background-color: #9caf88;
}

.bg-olive {
    background-color: #8b956d;
}

.bg-sand {
    background-color: #e8dcc6;
}

.bg-warm-white {
    background-color: #faf8f3;
}

.text-terracotta {
    color: #c17658;
}

.text-terra-light {
    color: #d4967a;
}

.text-terra-dark {
    color: #a65e44;
}

.text-sage {
    color: #9caf88;
}

.text-olive {
    color: #8b956d;
}

/* Grid Layouts */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Utility Classes */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .bg-terracotta,
    .bg-sage {
        background: white !important;
        color: black !important;
    }
}

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

    .animate-bounce {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-stone-600 {
        color: #000000 !important;
    }

    .text-gray-400 {
        color: #666666 !important;
    }

    .border-stone-300 {
        border-color: #000000 !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    .room-card,
    .amenity-card {
        margin-bottom: 1rem;
    }

    .grid-mobile-1 {
        grid-template-columns: 1fr;
    }

    .py-mobile-12 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 640px) {
    .text-4xl {
        font-size: 2rem;
    }

    .text-5xl {
        font-size: 2.5rem;
    }

    .px-4-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .gap-4-mobile {
        gap: 1rem;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.will-change-auto {
    will-change: auto;
}

/* Browser Support */
@supports not (backdrop-filter: blur(10px)) {
    #header {
        background: rgba(255, 255, 255, 0.95);
    }
}

@supports (object-fit: cover) {
    .img-cover {
        object-fit: cover;
    }
}

/* Image Gallery Enhancements */
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contact Form Enhancements */
.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #c17658;
    box-shadow: 0 0 0 3px rgba(193, 118, 88, 0.1);
    outline: none;
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

footer a:hover {
    color: #c17658;
    transition: color 0.3s ease;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #c17658;
    color: white;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: top 0.3s;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}
