/********** Template CSS **********/
:root {
    --primary: #00B98E;
    --secondary: #FF6922;
    --light: #EFFDF5;
    --dark: #0E2E50;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.navbar {
    position: relative;
    z-index: 9999 !important;
}

/* Speziell für den ausklappbaren Teil auf Tablets/Handys */
.navbar-collapse {
    position: relative;
    z-index: 10000 !important;
    background-color: #ffffff; /* Sicherstellen, dass es nicht transparent ist */
}

/* Das Logo-Container explizit nach hinten schieben */
.navbar-brand {
    position: relative;
    z-index: 1; 
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

.custom-logo {
        min-width: 100px !important; /* Kleineres Logo auf Handys */
		margin-top: 40px !important;
    }

/*** Navbar ***/
.nav-bar {
    position: relative;
    margin-top: 45px;
    padding: 0 3rem;
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 576px) {
    .custom-logo {
        min-width: 100px !important; /* Kleineres Logo auf Handys */
        margin-top: 30px !important; /* Weniger Abstand oben auf kleinen Bildschirmen */
    }
    .navbar-brand h1 {
        font-size: 1.3rem; /* Text anpassen, damit alles in eine Zeile passt */
    }
}

@media (max-width: 991.98px) {
    .nav-bar {
        margin: 0;
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 0;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (min-width: 992px) {
    .header {
        margin-top: -120px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

@media (max-width: 768px) {
    .header-carousel .owl-nav {
        left: 25px;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #DDDDDD;
}


/*** Icon ***/
.icon {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-radius: 50px;
    border: 1px dashed var(--primary) !important;
}


/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: skew(20deg);
    z-index: 1;
}

.video-container {
    width: 100%;
    /* Wir definieren die sichtbare Fläche */
    aspect-ratio: 2.51 / 1; /* Oder dein Wert 39.5% entspräche etwa 2.53:1 */
    overflow: hidden;
    margin-bottom: 50px;
    position: relative;
	cursor: pointer;
}

.video-container video {
    width: 100%;
    height: 100%;
    /* Das ist der Zaubertrick: */
    object-fit: cover; 
    /* 'cover' zoomt leicht rein, bis der Container gefüllt ist 
       und schneidet die Ränder (Balken) sauber ab. */
    
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2); /* Ganz leichter Schatten übers Video */
    transition: opacity 0.3s;
    z-index: 10;
}

.play-button {
    background: rgba(0, 185, 142, 0.8); /* Dein Bootstrap-Grün */
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.play-button i {
    font-size: 2rem;
}

/* Verstecken, wenn Video im Vollbild oder geklickt */
.video-container.is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/*** Category ***/
.cat-item div {
    background: #FFFFFF;
    border: 1px dashed rgba(0, 185, 142, .3);
    transition: .5s;
}

.cat-item:hover div {
    background: var(--primary);
    border-color: transparent;
}

.cat-item div * {
    transition: .5s;
}

.cat-item:hover div * {
    color: #FFFFFF !important;
}


/*** Property List ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.property-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.property-item img {
    transition: .5s;
}

.property-item:hover img {
    transform: scale(1.1);
}

.property-item .border-top {
    border-top: 1px dashed rgba(0, 185, 142, .3) !important;
}

.property-item .border-end {
    border-right: 1px dashed rgba(0, 185, 142, .3) !important;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
    transition: .5s;
}

.team-item .btn {
    color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
}

.team-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Verhindert das Spiegeln von Zahlen in RTL-Layouts */
.num-fix {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block; /* Wichtig, damit das Icon nicht weghüpft */
}


/* WhatsApp Sticky Button */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-sticky:hover {
    color: #fff;
    transform: scale(1.1);
}

/* RTL Support (Arabisch) */
[dir="rtl"] .whatsapp-sticky {
    right: auto;
    left: 20px;
}


/* Styling für die mobilen Sprachkürzel */
/* Verhindert den blauen Schatten beim Klicken auf die Flagge */
.dropdown .btn-link:focus {
    box-shadow: none;
}

/* Styling des Dropdowns auf Mobile */
.dropdown-menu {
    min-width: 140px;
    margin-top: 10px !important;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
}

.dropdown-item.active {
    background-color: #f8f9fa;
    color: #00B98E; /* Deine Akzentfarbe */
    font-weight: bold;
}

/* Polylang im Burger-Menü verstecken */
@media (max-width: 991.98px) {
    .navbar-nav .lang-item {
        display: none !important;
    }
}


/* Angleichung von Flagge und Burger */
.mobile-lang-switcher button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ein wenig Schatten für die Flagge im Header, damit sie sich vom weißen Hintergrund abhebt */
.dropdown .btn-link img {
    transition: transform 0.2s ease-in-out;
}

.dropdown .btn-link:active img {
    transform: scale(0.95);
}

/* Styling für die Dropdown-Items */
.dropdown-menu {
    padding: 8px 0;
}

.dropdown-item.active {
    background-color: #00B98E15; /* Ganz zarter Hintergrund deiner Primärfarbe */
    color: #00B98E;
}

#wp-admin-bar-edit { display:none !important; }

/* Sprachen im Burger-Menü (Collapse) auf Handy/Tablet verstecken */
@media (max-width: 991.98px) {
    /* Wir suchen das li, das den Link zum pll_switcher enthält */
    #navbarCollapse li:has(a[href*="pll_switcher"]),
    #navbarCollapse .nav-item.dropdown:has(a[href*="pll_switcher"]) {
        display: none !important;
    }
}

/* Falls dein Browser :has() noch nicht perfekt unterstützt, hier die sichere Variante über die Struktur: */
@media (max-width: 991.98px) {
    #navbarCollapse .navbar-nav > li.dropdown:last-child {
        display: none !important;
    }
}

/* Einheitliche Größe für die neuen SVG-Flaggen */
.mobile-lang-switcher img, 
.dropdown-item img {
    width: 30px !important; /* Header-Größe */
    height: auto;
    display: inline-block;
}

.dropdown-item img {
    width: 22px !important; /* Dropdown-Liste etwas kleiner */
}

.lang-item img, a img[src*=".svg"] { 
    display: inline-block !important; 
    width: 22px !important; 
    height: 15px !important; 
    vertical-align: middle !important; 
    border-radius: 0;
    
    /* Der Fix gegen den 1px Spalt: */
    box-shadow: none !important; /* Alten Schatten weg */
    outline: 1px solid #000 !important;
    outline-offset: -1px; /* Zieht den Rahmen 1px nach innen aufs Bild */
    
    margin-right: 8px;
    /* Verhindert Sub-Pixel-Rendering Probleme */
    shape-rendering: crispedges; 
}


/* Erzwingt gleiche Bildhöhe ohne Verzerrung */
.property-item .position-relative img {
    width: 100%;
    height: 250px; /* Oder deine gewünschte Standardhöhe */
    object-fit: cover;
}

/* Optional: Stellt sicher, dass die "Row" alle Spalten gleich hoch zieht */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.row.g-4 > [class*='col-'] {
    display: flex;
    flex-direction: column;
}


/* Blendet nicht aktive Elemente sanft aus */
.property-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.property-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.9);
}

#property-filter {
    display: inline-flex;
    flex-wrap: wrap; /* Erlaubt den Umbruch */
    gap: 10px;       /* Setzt den Abstand gleichmäßig horizontal und vertikal */
    justify-content: center;
}

#property-filter .nav-item {
    margin: 0 !important; /* Wir nutzen gap statt margin für mehr Kontrolle */
}

.property-item img {
    background-color: #f8f9fa; /* Ein helles Grau als Platzhalter */
    transition: opacity 0.3s ease-in-out;
}

.contactprint {display:none;}


.custom-thumb-row {
    scrollbar-width: thin;
    scrollbar-color: #00B98E #f8f9fa;
}
.custom-thumb-row::-webkit-scrollbar { height: 6px; }
.custom-thumb-row::-webkit-scrollbar-thumb { background-color: #00B98E; border-radius: 10px; }

/* Spotlight Anpassung: Verhindert das Verschwinden der Scrollbars/Leisten im Browser */
.spotlight { display: block; }

/* Zusätzlicher Schutz gegen Verzerren auf kleinen Displays */
.custom-carousel-img {
    height: auto; 
    max-height: 500px; /* Verhindert, dass Bilder auf riesigen Bildschirmen zu hoch werden */
}


@media (max-width: 768px) {
    .custom-carousel-img {
        aspect-ratio: 4 / 3; /* Auf dem Handy ist ein etwas höheres Format oft schöner */
    }
}


.massage-item-container .text-muted.small {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Max 3 Zeilen anzeigen */
    -webkit-box-orient: vertical;
    overflow: hidden;
	margin-bottom:10px;
    min-height: 2.5em; /* Sorgt für einheitliche Höhe */
}


/* 1. Dropdown näher an den Menüpunkt rücken */
.navbar-nav .dropdown-menu {
    margin-top: 0; /* Entfernt den Abstand nach oben */
    border: none;
    border-radius: 8px; /* Schönere abgerundete Ecken */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Weicher, moderner Schatten */
    padding: 10px 0;
    animation: fadeInDropdown 0.3s ease; /* Kleiner Einblend-Effekt */
}

/* 2. Die einzelnen Links im Menü */
.navbar-nav .dropdown-item {
    padding: 8px 20px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s ease;
}

/* 3. Hover-Effekt (Passend zu deiner Primärfarbe) */
.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #00B98E;
    padding-left: 25px;
}

/* 4. Kleiner Pfeil oben am Dropdown (optional, sieht aber edel aus) */
.navbar-nav .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* 5. Einblend-Animation */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .nav-link {
    padding-bottom: 15px !important; /* Passt den Klickbereich an */
}

.attraction-item-container h5.text-primary {
    white-space: nowrap; /* Preis bleibt immer in einer Zeile */
    margin-left: 10px;    /* Kleiner Abstand zum Titel */
}

/* Entfernt den dicken Fokus-Ring nach dem Klicken für alle Filter-Buttons */
.btn-outline-primary:focus, 
.btn-outline-primary:active,
.btn-check:checked + .btn-outline-primary:focus {
    box-shadow: none !important;
    outline: none !important;
}


    .accordion-button:not(.collapsed) {
        background-color: var(--light);
        color: var(--primary);
        box-shadow: none;
    }
    .accordion-button:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(0, 185, 142, 0.25);
    }
    .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230E2E50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }