/*
 * HofFinder Map Styles
 */

/* Map Container */
.hofinder-map-container {
    width: 100%;
    min-height: 300px;
    position: relative;
    z-index: 1;
}

/* Consent Overlay */
.hofinder-map-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 1000; /* Über der Karte */
}

.hofinder-map-consent-overlay p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Floating Action Button (FAB) */
.hofinder-fab {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--hofinder-primary-color, #0073aa); /* Wird per JS gesetzt */
    color: white;
    border: none;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    line-height: 1;
    z-index: 999; /* Unter dem Modal, über der Karte */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hofinder-fab:hover {
    background-color: var(--hofinder-primary-color-dark, #005177); /* Dunklere Farbe für Hover */
}

.hofinder-fab .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.hofinder-fab-bottom-left {
    right: auto;
    left: 16px;
}

/* Modal */
.hofinder-modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 1001; /* Über allem */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.hofinder-modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% von oben und zentriert */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.hofinder-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.hofinder-modal-close:hover,
.hofinder-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styling */
.hofinder-form-group {
    margin-bottom: 15px;
}

.hofinder-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.hofinder-form-group input[type="text"],
.hofinder-form-group input[type="file"],
.hofinder-form-group select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.hofinder-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.hofinder-form-group .required {
    color: red;
}

.hofinder-form-group input[name="zip"],
.hofinder-form-group input[name="city"] {
    width: 49%;
    display: inline-block;
}

.hofinder-form-group input[name="zip"] {
    margin-right: 1%;
}

/* Toast Message */
.hofinder-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1002;
    right: 30px;
    top: 30px;
    font-size: 17px;
    box-shadow: 0 6px 20px 0 rgba(0,0,0,0.19);
}

.hofinder-toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 3.5s;
    animation: fadein 0.5s, fadeout 0.5s 3.5s;
}

@-webkit-keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 30px; opacity: 1;}
}

@keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {top: 30px; opacity: 1;}
    to {top: 0; opacity: 0;}
}

@keyframes fadeout {
    from {top: 30px; opacity: 1;}
    to {top: 0; opacity: 0;}
}
