:root {
    /* Colors */
    --color-primary: #D4AF37;
    /* Gold-ish typical for premium b&b */
    --color-secondary: #617175;
    /* Preserved from original site */
    --color-background: #F9F9F9;
    --color-surface: #FFFFFF;
    --color-surface-dark: #333333;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-inverse: #FFFFFF;
    --color-border: #E0E0E0;

    /* Spacing */
    --container-width: 1200px;
    --container-padding: 1rem;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    /* More elegant for headings */
    color: var(--color-secondary);
}

.contact-page {
    padding-top: 2rem;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.info-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    color: var(--color-text-light);
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.footer {
    background-color: var(--color-surface-dark);
    color: var(--color-text-inverse);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    margin: 0;
}

.header {
    background-color: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
}

.lang-select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-text);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--color-surface);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--color-border);
}

.mobile-nav a {
    padding: 1rem;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: none;
    }
}

.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.hero-image.active {
    animation: kenBurns 7s ease-in-out forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 4px;
    /* Slightly rounded */
}

.cta-button:hover {
    background-color: #bfa130;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

.rooms-page {
    padding-top: 2rem;
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.room-card {
    display: flex;
    flex-direction: row;
    /* Back to side-by-side */
    gap: 2rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.room-gallery {
    flex: 2;
    /* Takes up 2/3 of space */
    width: auto;
    max-width: none;
    min-width: 0;
    overflow: hidden;
}

.room-main-image {
    width: 100%;
    height: 400px;
    /* Slightly larger than original 300px, but contained */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.room-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Space for scrollbar */
    scrollbar-width: thin;
    /* Firefox */
}

.room-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.room-thumbnails img:hover {
    opacity: 1;
}

.room-details {
    flex: 1;
    /* Takes up 1/3 of space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center content if desired, or remove */
}

.room-details h2 {
    margin-top: 0;
    color: var(--color-secondary);
}

.room-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.room-features li {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.book-btn {
    margin-top: auto;
    align-self: flex-start;
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

@media (max-width: 768px) {
    .room-card {
        flex-direction: column;
    }

    .room-gallery {
        max-width: 100%;
    }
}

.services-page {
    padding-top: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.service-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

/* Featured Service Card (Corso Cappelletti) */
.featured-service-card {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.featured-service-image {
    flex: 1;
    position: relative;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    height: 100%;
    width: 100%;
}

.image-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 2;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.slider-dots .dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.featured-service-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-service-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
}

.featured-service-content>p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.featured-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-highlights li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.featured-highlights li i,
.featured-highlights li svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.featured-cta {
    align-self: flex-start;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.85rem 2rem;
}

@media (max-width: 768px) {
    .featured-service-card {
        flex-direction: column;
    }

    .featured-service-image {
        min-height: 220px;
    }

    .featured-service-content {
        padding: 1.5rem;
    }

    .featured-service-content h2 {
        font-size: 1.4rem;
    }
}

/* Home Services Bar */
.home-services-bar {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.services-bar-link {
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.services-bar-link:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.services-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.service-bar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.service-bar-item i {
    color: var(--color-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .services-bar-container {
        gap: 1.5rem;
        justify-content: space-around;
    }

    .service-bar-item span {
        font-size: 0.85rem;
    }
}