:root {
    --color-primary: #8B4513;
    --color-secondary: #A0522D;
    --color-accent: #CD853F;
    --color-light: #F5F5DC;
    --color-dark: #3E2723;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--color-dark);
    background-color: var(--color-light);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://www.turistinfo.ro/images/cazare/1268223.jpg");
    background-size: cover;
    background-position: 60% 50%; /* Valoare implicită pentru ecrane medii */
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Ecrane mari (PC, ecran complet) */
@media (min-width: 1200px) {
    .hero {
        background-position: 50% 30%; /* Mută mai mult spre dreapta pentru a centra casa */
    }
}

/* Ecrane medii (fereastră micșorată sau tabletă) */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero {
        background-position: 80% 30%; /* Păstrează poziția care arată bine pe fereastră micșorată */
    }
}

/* Ecrane mici (mobil) */
@media (max-width: 767px) {
    .hero {
        height: 60vh;
        background-position: 65% 50%; /* Ajustare pentru mobil, unde casa trebuie să fie vizibilă */
    }
}

.section {
    padding: 4rem 1rem;
}

.room-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: transform 0.3s ease;
}

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    width: 100%;
}

.carousel-prev, .carousel-next {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    opacity: 1;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.wood-bg {
    background-color: var(--color-secondary);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v10H0zm0 20h100v10H0zm0 20h100v10H0zm0 20h100v10H0zm0 20h100v10H0z' fill='%238B4513' fill-opacity='0.2'/%3E%3C/svg%3E");
}

.nav-link {
    position: relative;
    color: white;
    margin: 0 1rem;
    font-weight: 600;
}

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

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

.mobile-menu {
    display: none;
}

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

    .mobile-menu {
        display: block;
    }

    .hero {
        height: 60vh;
    }
}