/* Colors/fonts consume the shared --fvb-* variables from grundlagen-plugin
   (fallbacks = fv-bauerbach.de's established palette), same convention as
   the rest of the plugin family. */

.fvsbo-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fvsbo-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fvsbo-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0 0 0.75rem;
}

.fvsbo-form__field label {
    font-family: var(--fvb-font-heading, 'Poppins'), sans-serif;
    font-weight: 600;
    color: var(--fvb-dark, #191919);
}

.fvsbo-form__field input,
.fvsbo-form__field select,
.fvsbo-form__field textarea {
    font-family: var(--fvb-font-body, 'Lato'), sans-serif;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.fvsbo-form__error {
    color: var(--fvb-red, #e81717);
    font-size: 0.85rem;
    margin: 0;
}

.fvsbo-form__submit button {
    background: var(--fvb-red, #e81717);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    cursor: pointer;
}

.fvsbo-form__success {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--fvb-font-body, 'Lato'), sans-serif;
    color: var(--fvb-dark, #191919);
}

.fvsbo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.fvsbo-filter {
    background: #fff;
    border: 1px solid var(--fvb-red, #e81717);
    color: var(--fvb-red, #e81717);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-family: var(--fvb-font-body, 'Lato'), sans-serif;
    cursor: pointer;
}

.fvsbo-filter--active {
    background: var(--fvb-red, #e81717);
    color: #fff;
}

.fvsbo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.fvsbo-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fvsbo-card__photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.fvsbo-card__photo-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.fvsbo-card__photo-count {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.fvsbo-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fvsbo-card__badge {
    align-self: flex-start;
    background: var(--fvb-dark, #191919);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.fvsbo-card__title {
    font-family: var(--fvb-font-heading, 'Poppins'), sans-serif;
    margin: 0;
    color: var(--fvb-dark, #191919);
}

.fvsbo-card__price {
    font-weight: 700;
    color: var(--fvb-red, #e81717);
    margin: 0;
}

.fvsbo-empty {
    text-align: center;
    color: #666;
}

.fvsbo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.fvsbo-lightbox[hidden] {
    display: none;
}

.fvsbo-lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.fvsbo-lightbox__close,
.fvsbo-lightbox__arrow {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 0;
    cursor: pointer;
    line-height: 1;
}

.fvsbo-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
}

.fvsbo-lightbox__arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 2rem;
}

.fvsbo-lightbox__arrow--prev {
    left: 1rem;
}

.fvsbo-lightbox__arrow--next {
    right: 1rem;
}

.fvsbo-lightbox__counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--fvb-font-body, 'Lato'), sans-serif;
    font-size: 0.9rem;
    margin: 0;
}
