:root {
    --color-primary: #D7D2CB;
    --color-primary-rgb: 215, 210, 203;

    --color-base: #867B75;

    --color-light-backlight: #FFD180;
    --color-dark-backlight: #8C6E54;

    --color-text-dark: #2D2B28;
    --color-text-white: #FFFFFF;
    --color-text-milk: #FFF8E7;

    --navbar-height: 62px;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-white);
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
}

.line {
    border: 0;
    height: 2px;
    background: var(--color-base);
    width: 300px;
}


/* Navbar */
.navbar-toggler {
    border: 2px solid #867B75;
    padding: 6px 10px;
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23867B75' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar .container {
    position: relative;
}

.navbar {
    background-color: var(--color-primary);
}

.navbar a:hover {
    color: var(--color-dark-backlight);
    text-decoration: underline;
    opacity: 1;
    cursor: pointer;
}

.navbar .nav-link,
.navbar .nav-link:focus {
    color: var(--color-text-dark);
}

.navbar-brand img {
    height: 36px;
    max-height: 100%;
}

.language-switcher a {
    display: inline-block;
    padding-right: 6px;
}

.language-switcher img {
    opacity: 1;
    transition: opacity 0.3s ease;
    vertical-align: middle;
    width: 24px;
    height: auto;
    filter: grayscale(60%);
}

.language-switcher img:hover {
    transform: scale(1.4);
    opacity: 1.2;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    filter: grayscale(30%);
}

.contact-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
}

.contact-info small,
.contact-info a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

@media (min-width: 991px) and (max-width: 1199px) {
    .contact-info {
        left: 40%;
        transform: translateX(-40%);
    }
}

/* Navbar */


/* Hero */
.hero {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 100vh;
    background-color: var(--color-base);
}

.hero-left {
    position: relative;
    width: 30%;
    min-height: 100vh;
    animation: heroZoomIn 1.2s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}

.hero-left img {
    width: 60%;
}

.hero-right {
    width: 70%;
    background-image: url('/static/img/hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    opacity: 0;
    transform: translateX(50px);
    animation: heroRightFadeIn 1.2s ease-out forwards;
    animation-delay: 0.4s;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
    }

    .hero-left {
        width: 100%;
        min-height: 100vh;
    }

    .hero-right {
        display: none;

    }

    .hero-left img {
        width: 80%;
    }
}

@keyframes heroZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroRightFadeIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-projects {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 300;
    border: 1px solid var(--color-text-dark);
}

.btn-projects:hover {
    color: var(--color-dark-backlight);
    border: 1px solid var(--color-dark-backlight);
    background-color: var(--color-primary);
}

.btn-projects:focus {
    background-color: var(--color-primary) !important;
    color: var(--color-text-dark) !important;
}

.slogan {
    width: 70%;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--color-text-milk);
    opacity: 0;
    transform: translateX(-50px);
    animation: sloganSlideIn 1s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes sloganSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero */


.projects-main {
    padding-top: 130px;
    padding-bottom: 65px;
}

.news-main {
    padding-top: 65px;
    padding-bottom: 130px;
}

.contacts {
    padding: 130px 0;
}

@media (max-width: 992px) {

    .projects-main,
    .contacts {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {

    .projects-main,
    .contacts {
        padding: 50px 0;
    }
}


/* News */
.news {
    background-color: var(--color-primary);
}

.news h2,
.news h4,
.news p {
    color: var(--color-text-dark);
}

section.news.all-news,
section.news.news-detail-section {
    padding-top: var(--navbar-height);
}


.project-filter .form-select {
    background-color: var(--color-base);
    color: var(--color-text-white);
    font-size: 14px;
}

.project-filter .form-select:focus {
    border: none;
    box-shadow:
        0 0 10px var(--color-light-backlight),
        0 0 20px var(--color-light-backlight),
        0 0 30px rgba(0, 0, 0, 0.15);

}

.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
    background-color: var(--color-base);
}

.news-card:hover {
    box-shadow:
        0 0 10px var(--color-light-backlight),
        0 0 20px var(--color-light-backlight),
        0 0 30px rgba(0, 0, 0, 0.15);
}

.news-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card .card-body {
    background-color: var(--color-base);
}

.news-card .card-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-milk);
    margin-bottom: 20px;

    line-height: 1.3;
    min-height: calc(1.3em * 2);
}

.news-card small {
    color: var(--color-text-white);
}

.news-card .card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text-white);
    line-height: 1.5;
}

.news-all-btn {
    background-color: var(--color-primary);
}

.news-all-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-dark-backlight);
    border: 1px solid var(--color-dark-backlight);
}

.news-gallery .gallery-image-wrapper {
    height: 250px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.news-gallery .gallery-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.news-gallery h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* News */


/* About */
.about-section {
    min-height: 500px;
    background-color: var(--color-base);
}

.about-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.about-text {
    background-color: var(--color-base);
    color: var(--color-text-white);
}

.about-text h2 {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--color-text-milk);
}

.about-text p {
    color: var(--color-text-white);
}

.about-text .custom-list {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: 1.5rem;
}

.animate-on-scroll-left,
.animate-on-scroll-right {
    opacity: 0;
    transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.animate-on-scroll-left {
    transform: translateX(-100px);
}

.animate-on-scroll-right {
    transform: translateX(100px);
}

.animate-on-scroll-left.visible,
.animate-on-scroll-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* About */


/* Contacts */
.contacts {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

.contact-item {
    padding: 20px;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
    background-color: var(--color-base);
}

.contact-item:hover {
    box-shadow:
        0 0 10px var(--color-light-backlight),
        0 0 20px var(--color-light-backlight),
        0 0 30px rgba(0, 0, 0, 0.15);
}

.contact-link {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-light-backlight);
    text-decoration: underline;
}

.contacts h5 {
    color: var(--color-text-milk);
}

.contact-item p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px;
    color: var(--color-text-white);
}

.contacts a,
.contacts small {
    color: var(--color-text-white);
}

.contacts i {
    color: var(--color-text-milk);
}

.contact-animate-left {
    transform: translateX(-80px);
}

.contact-animate-right {
    transform: translateX(80px);
}

.contact-animate-bottom {
    transform: translateY(80px);
}


.contact-animate-left {
    transform: translateX(-80px);
}

.contact-animate-right {
    transform: translateX(80px);
}

.contact-animate-bottom {
    transform: translateY(80px);
}

/* Contacts */


/* Projects Page */
.projects {
    background-color: var(--color-primary);
}

.projects h2,
.projects h4,
.projects p {
    color: var(--color-text-dark);
}

section.projects.clickable-section {
    cursor: pointer;
}

section.projects.all-projects,
section.project-detail-section,
section.news.news-detail-section {
    padding-top: var(--navbar-height);
}

.project-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease;
    background-color: var(--color-base);

    max-width: 400px;
}

.project-card:hover {
    box-shadow:
        0 0 10px var(--color-light-backlight),
        0 0 20px var(--color-light-backlight),
        0 0 30px rgba(0, 0, 0, 0.15);
}

.project-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card .card-body {
    background-color: var(--color-base);
}

.project-card .card-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-milk);
    margin-top: 10px;

    line-height: 1.3;
    min-height: calc(1.3em * 2);
}

.project-card .card-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text-white);
    line-height: 1.5;
}

.project-btn {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border: 1px solid var(--color-text-dark);
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-btn:hover,
.project-btn:focus,
.project-all-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-dark-backlight);
    border: 1px solid var(--color-dark-backlight);
}

.project-btn:active {
    background-color: var(--color-primary) !important;
    color: var(--color-dark-backlight) !important;
    border: 1px solid var(--color-dark-backlight) !important;
}

.project-all-btn {
    background-color: var(--color-primary);
}

.project-gallery .gallery-image-wrapper {
    height: 250px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.project-gallery .gallery-img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

.project-table td,
.project-table th {
    font-family: 'Montserrat', sans-serif;
    font-size: small;
    background-color: var(--color-base);
    color: var(--color-text-white);
    line-height: 1.2;
    border: none !important;
    font-weight: normal;
}

.project-table td {
    font-weight: bold;
}

.project-table {
    margin-left: 10px;
}

.project-table th {
    width: 45%;
    white-space: nowrap;
}

/* Projects Page */


/* Project Detail Page */
.project-detail-section {
    background-color: var(--color-primary);
}

.project-detail-section h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
}

.project-header,
.project-gallery h4,
.project-description h4,
.building-image-container h4,
.project-video-section h4 {
    color: var(--color-text-dark);

}

.carousel-inner {
    min-width: 0;
}

.carousel-item {
    transition: transform 2s ease-in-out;
}

.project-news {
    padding: 0px 20px;
    background-color: var(--color-base);
    color: var(--color-text-white);
    line-height: 1.7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-news h4 {
    color: var(--color-text-milk);
}

.news-item {
    background-color: var(--color-base);
    color: var(--color-text-white);
    border: none;
    padding: 6px 0px;

}

.news-item:hover {
    color: var(--color-light-backlight);
    text-decoration: none;
}

@media (min-width: 1200px) {
    .project-news {
        line-height: 2;
    }
}

.project-description {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    line-height: 1.7;
    text-align: justify;
}

.building-image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.main-apartment-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.main-apartment-image::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0) 20%,
            rgba(0, 0, 0, 0) 80%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.apt-label {
    position: absolute;
    color: var(--color-text-white);
    font-weight: bold;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-size: clamp(0.6rem, 1vw + 0.3rem, 1.2rem);
}

.apt-label.reserved {
    color: #CE0C0C;
}

#apartmentsTable .apt-row {
    cursor: pointer;
}

#apartmentsTable .apt-details td {
    background: var(--color-base)
}

.table-hover thead th {
    background-color: var(--color-base);
    color: var(--color-text-milk);
    font-weight: bold;
}

.table-hover td {
    padding: 2px 0px;
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    font-weight: bold;
    font-size: 14px;
}

.table-hover em {
    color: var(--color-text-white);
}

.text-iva {
    color: var(--color-text-dark);
}

.project-gallery .gallery-image-wrapper {
    height: 250px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.project-gallery .gallery-img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

.video-preview {
    position: relative;
    max-width: 100%;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    font-size: 4rem;
    color: var(--color-text-white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.btn-download {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 400;
    border: 1px solid var(--color-text-dark);
    transition: all 0.3s ease;
}

.btn-download:hover {
    color: var(--color-dark-backlight);
    background-color: var(--color-primary);
    border-color: var(--color-dark-backlight);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-download:focus {
    background-color: var(--color-primary) !important;
    color: var(--color-text-dark) !important;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.text-reserved td {
    color: #B94A48;
    font-weight: bold;
}

@media (max-width: 768px) {
    .apt-label {
        transform: translate(-50%, 0%);
    }
}

/* Project Detail Page */


/* Map */
#map {
    height: 500px;
    width: 100%;
}

.gm-style-iw-chr {
    display: none !important;
}

.gm-style-iw {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

.gm-style-iw-d {
    width: 100% !important;
    max-width: none !important;
    overflow: hidden !important;
}

.infoContent-header {
    padding: 24px 12px;
    font-weight: bold;
    background-color: var(--color-primary);
    font-size: 15px;
    text-align: center;
    color: var(--color-text-dark);
}

.infoContent-body {
    padding: 24px 12px;
    text-align: left;
    background-color: var(--color-base);
    font-size: 15px;
    color: var(--color-text-white);
}

.infoContent-body i {
    margin-right: 5px;
}

.infoContent-nav-button {
    position: absolute;
    top: 50%;
    left: 85%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.infoContent-nav-button:hover {
    background: var(--color-light-backlight);
    transform: translate(-50%, -50%) scale(1.1);
}

.infoContent-nav-button svg {
    fill: var(--color-base);
}

.infoContent-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--color-base);
    border: none;
    color: var(--color-text-white);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.infoContent-close:hover {
    background: var(--color-light-backlight);
}

/* Map */


/* Footer */
footer {
    background: #3C3733;
    color: var(--color-text-milk);
    font-size: 15px;
    margin: 0;
    padding: 0;
}

.footer a {
    color: var(--color-light-backlight);
    text-decoration: none;
}


.footer a:hover {
    text-decoration: underline;
}

.footer p {
    padding: 6px;
}

@media (max-width: 767.98px) {
    .vigila-nudge-sm {
        transform: translateY(calc(-50% + 50px)) !important;
    }
}

/* Footer */


/* Terms Conditions and Privacy Policy  */
section.terms-policy-class {
    padding-top: var(--navbar-height);
}

.terms-policy-class {
    background-color: var(--color-primary);
}

.terms-policy {
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-dark);
    max-width: 1200px;
    margin: 0px auto;
    padding: 20px;
    text-align: justify;
}

.terms-policy h1 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.terms-policy h2 {
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 5px;
}

.terms-policy h3 {
    font-size: 16px;
    font-weight: 400;
}

.terms-policy .highlight {
    font-weight: bold;
}

.terms-policy .terms-policy-header {
    margin-bottom: 30px
}

.terms-policy .uppercase {
    text-transform: uppercase;
}

.terms-policy .clause {
    margin-bottom: 25px;
}

.terms-policy .procedure-list {
    margin-left: 20px;
}

.terms-policy .link {
    color: var(--color-dark-backlight);
    text-decoration: none;
}

.terms-policy .link:hover {
    text-decoration: underline;
}

/* Terms Conditions and Privacy Policy */


.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* GDPR */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--color-text-white);
    padding: 15px;
    display: none;
    font-size: 14px;
    font-weight: 400;
    z-index: 1000;
}

.gdpr-banner a {
    color: #FDC238;
    text-decoration: underline;
}

.gdpr-buttons {
    margin-top: 10px;
}

.gdpr-buttons .btn {
    margin: 0 5px;
    background-color: #FDC238;
    border: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-dark);
}

/* GDPR */

/* Cookies */
.cookies-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.cookies-table th,
.cookies-table td {
    border: 1px solid var(--bs-border-color, #dee2e6);
    text-align: left;
}

.cookies-table .cell-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cookies-table .cell-wrap {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cookies-table thead th {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

/* Cookies */