:root {
    --brand-color: #2c3e50;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fbfb;
    color: #333;
    line-height: 1.6;
    display: flex;
    margin: 2rem auto; 
    max-width: 1000px;
    padding: 20px;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4px;
}

.lang-btn {
    display: flex;
    flex-direction: row;
    height: 24px;
    gap: 4px;
    padding: 2px;
}

.lang-btn:disabled img {
    opacity: 0.4;
    /* Makes the flag/image look faded */
    transition: opacity 0.3s ease;
}

.lang-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

.container {
    max-width: 1200px;
    width: 100%;
}

header {
    margin-top: 40px;
}

section {
    margin-top: 40px;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--brand-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    color: var(--brand-color)
}

p {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: 10px;
    margin-bottom: 10px;
}

.description {
    line-height: 1.2;
}

/* Gallery - Mobile First (Stacking vertically) */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

#facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 2rem auto;    
}

#facts .fact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

#settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3px;
    max-width: 800px;
    margin: 2rem auto;    
}

#price div {
    margin-top: 10px;
    margin-bottom: 5px;
}

.fact .icon {
    display: inline-block;
    height: 55px;
    width: 55px;
    top: 4%;
    background-color: currentColor;

    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    mask-repeat: no-repeat;
}

.setting {
    font-size: small;
}

.setting .icon {
    display: inline-block;
    height: 13px;
    width: 13px;
    background-color: var(--brand-color);

    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    mask-repeat: no-repeat;
}

footer {
    margin-top: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

footer a {
    color: var(--brand-color);
    text-decoration: none;
}

.impressum-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

/* Desktop Adjustment */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    p {
    margin-bottom: 0.5rem;
}

    .gallery {
        flex-direction: row;
        justify-content: space-between;
    }

    .image-wrapper {
        flex: 1;
    }

    .impressum-content {
        flex-direction: row;
    }
}

/** 
 * icons
 */
.icon-house {
    -webkit-mask-image: url('assets/svg/icons/house.svg');
    mask-image: url('assets/svg/icons/house.svg');
}

.icon-outdoor {
    -webkit-mask-image: url('assets/svg/icons/outdoor.svg');
    mask-image: url('assets/svg/icons/outdoor.svg');
}

.icon-bedrooms {
    -webkit-mask-image: url('assets/svg/icons/bed.svg');
    mask-image: url('assets/svg/icons/bed.svg');
}

.icon-persons {
    -webkit-mask-image: url('assets/svg/icons/persons.svg');
    mask-image: url('assets/svg/icons/persons.svg');
}

.icon-shower {
    -webkit-mask-image: url('assets/svg/icons/shower.svg');
    mask-image: url('assets/svg/icons/shower.svg');
}

.icon-check {
    -webkit-mask-image: url('assets/svg/icons/check.svg');
    mask-image: url('assets/svg/icons/check.svg');
}