/* BeautyHills Studiofinder Frontend Styles */

.bh-studiofinder-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Intro nutzt Theme-Klassen (.cp-intro / .section-*) – keine eigenen Schriftgrößen */
.bh-sf-intro-section.cp-intro {
    background-color: #fff;
}

.bh-sf-intro-section .cp-intro-text {
    margin-bottom: 1rem;
}

.bh-sf-intro-section .cp-intro-text:last-child {
    margin-bottom: 0;
}

/* Unterer Teil: helles Beige wie Content-Pages */
.bh-sf-finder-section {
    background-color: #FBF9F6;
    padding: 3rem 0 4rem;
}

.bh-studiofinder {
    display: flex;
    width: 100%;
    height: 700px;
    background: #fff;
    font-family: 'Mulish', sans-serif;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

/* Sidebar */
.bh-sf-sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
    height: 100%;
    overflow: hidden;
}

/* Search */
.bh-sf-search {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.bh-sf-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.bh-sf-search-input:focus {
    outline: none;
    border-color: #000;
}

.bh-sf-search-btn {
    padding: 12px 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.bh-sf-search-btn:hover {
    background: #333;
}

/* Filters */
.bh-sf-filters {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.bh-sf-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.bh-sf-filter-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #E6503E;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
}

/* List */
.bh-sf-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.bh-sf-loading {
    padding: 30px;
    text-align: center;
    color: #666;
}

/* Studio Item */
.bh-sf-item {
    display: flex;
    gap: 15px;
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.bh-sf-item:hover,
.bh-sf-item.active {
    background: #f9f9f9;
}

.bh-sf-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.bh-sf-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bh-sf-item-content {
    flex: 1;
    min-width: 0;
}

.bh-sf-item-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.bh-sf-item-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.bh-sf-badge-premium {
    display: inline-block;
    padding: 2px 6px;
    background: #E6503E;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 2px;
    flex-shrink: 0;
}

.bh-sf-item-description {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px 0;
}

.bh-sf-item-address {
    font-size: 12px;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.bh-sf-item-phone {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px 0;
}

.bh-sf-item-distance {
    font-size: 11px;
    color: #999;
    margin: 0 0 8px 0;
}

.bh-sf-item-actions {
    display: flex;
    gap: 10px;
}

.bh-sf-item-website {
    display: inline-block;
    padding: 5px 12px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s;
}

.bh-sf-item-website:hover {
    background: #333;
    color: #fff;
}

/* Map */
.bh-sf-map-container {
    flex: 1;
    position: relative;
}

.bh-sf-map {
    width: 100%;
    height: 100%;
    min-height: 700px;
}

/* Info Window */
.bh-sf-infowindow {
    padding: 10px;
    max-width: 280px;
}

.bh-sf-infowindow h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 700;
}

.bh-sf-infowindow p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #666;
}

.bh-sf-infowindow a {
    color: #000;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .bh-studiofinder {
        flex-direction: column;
        height: auto;
    }

    .bh-sf-sidebar {
        width: 100%;
        max-height: 400px;
        order: 2;
    }

    .bh-sf-map-container {
        order: 1;
        height: 400px;
    }

    .bh-sf-map {
        min-height: 400px;
    }
}
