/* Base styles */
:root {
    --primary-color: #1a4b84; /* Deep Mediterranean Blue */
    --secondary-color: #e4a853; /* Warm Tuscan Sun */
    --accent-color: #c41e3a; /* Italian Red */
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --terracotta: #E76F51; /* Terracotta */
    --olive: #606c38; /* Olive Green */
    --sand: #ffd7ba; /* Sandy Beach */
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/images/site/monterosso.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 8rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    transform: translateY(-2px);
}

/* Cards and Sections */
.card {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2.5rem 0;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1rem;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Language selector */
.language-selector select {
    border-radius: 20px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 500;
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a4b84' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.language-selector select:hover {
    border-color: var(--primary-color);
}

.language-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 75, 132, 0.2);
    border-color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .footer {
        text-align: center;
        padding: 2rem 0;
    }
    
    .footer-brand {
        font-size: 1.5rem;
    }
    
    .footer-text {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        margin-bottom: 1rem;
    }
}

/* Gallery Styles */
.villa-gallery-image {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    max-width: 200px;
    max-height: 150px;
    width: 100%;
    height: auto;
}

.villa-gallery-image:hover {
    transform: scale(1.02);
}

.villa-gallery-card {
    text-align: center;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.villa-room-section {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1rem;
    height: 100%;
}

.villa-room-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.villa-room-description {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.villa-modal-body img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
} 