/* Property/static/Property/css/objektdetail.css */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    font-family: Arial, sans-serif;
    background-color: white;
    /* Kein Hintergrund */
    color: black;
    /* Standard Schriftfarbe auf Schwarz setzen */
}

.main-info,
.right-panel {
    margin-top: 2rem;
    background-color: white;
}

.main-info {
    display: flex;
    flex-direction: column;
}

.slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    /* Breite des Containers */
    padding-top: 56.25%;
    /* Verhältnis 16:9 */
    border: 1px solid #ccc;
    /* Umrandung für den Slider */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Schatten für den Slider */
    border-radius: 10px;
    /* Abgerundete Ecken für den Slider */
    overflow: hidden;
    /* Versteckt überlaufenden Inhalt */
    background-color: #f9f9f9;
    /* Hintergrundfarbe für den Slider */
}

.slides {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease-in-out;
    border-radius: 10px;
}

.image-number {
    text-align: center;
    font-size: 16px;
    margin-top: -20px;
    margin-bottom: 20px;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: black;
    font-size: 30px;
    padding: 16px;
    z-index: 1;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.7);
    /* Hintergrundfarbe für die Pfeile */
}

.prev:hover,
.next:hover {
    background-color: #333;
    color: white;
    /* Hintergrundfarbe für die Pfeile beim Hover */
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.address {
    margin-bottom: 20px;
}

.summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.summary-item {
    flex: 1;
    text-align: center;
}

.details {
    margin-bottom: 20px;
}

.details p {
    line-height: 1.5;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    /* Abstand zwischen den Spalten */
}

.details-column {
    display: flex;
    flex-direction: column;
}

.section-divider {
    border: none;
    border-top: 1px solid #FFA500;
    margin: 20px 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    /* Kleinere obere und untere Ränder für ein größeres Modal */
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    /* Beibehaltung der Breite */
    height: 60%;
    /* Neue Höhe */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: auto;
    /* Fügt Scrollbars hinzu, wenn der Inhalt die Höhe überschreitet */
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaaaaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 10px 20px;
}

.modal-header p {
    font-size: 16px;
    color: #333;
}

.modal-body label {
    display: block;
    margin-top: 10px;
    color: #333;
}

.modal-footer {
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.address-maps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.maps-link a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    font-size: 16px;
}

#map {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.bewerbungen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: orange;
    padding: 10px;
    color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.bewerbungen-header span {
    color: white;
}

.bewerben-button {
    background-color: #333;
    color: white;
    font-weight: 500;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.bewerben-button:hover {
    background-color: rgb(255, 201, 101);
    color: #333;
}



.bewerbungen-container {
    margin-top: 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.bewerbung {
    display: flex;
    border: 1px solid #FFA500;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: white;
    align-items: center;
}

.bewerbung-image {
    margin-right: 20px;
}

.bewerbung-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.bewerbung-details {
    flex: 1;
}

.bewerbung-details h4 {
    margin: 0;
    font-size: 16px;
}

.bewerbung-details p {
    margin: 5px 0;
    font-size: 14px;
}

.bewerbung-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-action {
    background-color: grey;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-action:hover {
    background-color: darkgrey;
}

.contact-profile-picture img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 1px solid #FFA500;
}

/* Small devices such as large phones (640px and up) */
@media screen and (max-width: 48em) {

    .detail-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-info {
        text-align: left !important;
    }

    .summary {
        display: grid;
        text-align: left !important;
    }

    .summary-item {
        text-align: left;
    }
}


.custom-popover {
    --bs-popover-max-width: 200px;
    --bs-popover-border-color: #FFA500;
    /* Violett */
    --bs-popover-header-bg: #FFA500;
    --bs-popover-header-color: #fff;
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: 0.5rem;
}

.border-custom {
    border: 1px solid #FFA500;
    padding: 10px;
    /* Optional: Innenabstand für besseren Look */
    background-color: #fff;
    /* Optional: Hintergrundfarbe, falls gewünscht */
    height: 100%;
    /* Optional: Gleiche Höhe für alle Boxen */
    box-sizing: border-box;
    /* Stellen sicher, dass Padding und Border in der Höhe enthalten sind */
}

.right-panel {
    /* Optional: Begrenze die maximale Höhe und mache das Panel scrollbar, falls notwendig */
    max-height: 100vh;
    overflow-y: auto;
}

.contact-info {
    /* Stelle sicher, dass der Inhalt innerhalb des Containers bleibt */
    word-wrap: break-word;
}

.contact-profile-picture img {
    /* Optional: Begrenze die maximale Breite des Profilbildes */
    max-width: 100%;
    height: auto;
}

.contact-info {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    /* Leichtes Grau für den Hintergrund */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Leichter Schatten für eine Erhebungseffekt */
    border-radius: 10px;
    /* Abgerundete Ecken */
    text-align: center;
    /* Zentrierter Text */
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    /* Dunklere Schriftfarbe für Überschrift */
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
    /* Leicht dunklere Schriftfarbe für Text */
}

#favoriteButton:hover {
    background-color: rgba(255, 0, 0, 0.363);
    color: white;
}