/* ============================================================================
 * CCJ Map (bt_bb_ccj_map) – minimal styles used by the shortcode + ccj.js
 * ==========================================================================*/

.container-filters {
    display: flex;
    align-content: space-between;
    gap: 15px;
}

/* Number input – remove browser spinners only inside CCJ map */
.bt_bb_ccj_map input[type=number]::-webkit-inner-spin-button,
.bt_bb_ccj_map input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bt_bb_widget_select .bt_bb_widget_select_items {
    overflow: scroll;
    max-height: 75px;
}

/* Firefox */
.bt_bb_ccj_map input[type=number] {
    -moz-appearance: textfield;
}

/* Controls layout */
.ccj-form-group-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Full-height container for map + overlay sidebar */
.bt_bb_ccj_map .ccj-container {
    padding: 0;
    height: 100dvh;
}

/* Wrapper holding sidebar + map */
.bt_bb_ccj_map .ccj-map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Map column */
.bt_bb_ccj_map .map-container {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 0;
}

/* Actual Google Map element */
.bt_bb_ccj_map #map {
    width: 100%;
    height: 100%;
}

/* Sidebar overlay on top of the map */
.bt_bb_ccj_map .sidebar {
    text-align: left;
    position: absolute;
    left: 50%;
    bottom: 65px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    max-height: 50vh;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    padding: 0 20px;
    color: #fff;
}

.bt_bb_ccj_map .ccj-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bt_bb_ccj_map .ccj-sidebar-toggle {
    border: none;
    background: transparent;
    color: #ffffff;
    width: 28px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.9;
    padding: 0;
}

.bt_bb_ccj_map .ccj-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.bt_bb_ccj_map .ccj-sidebar-toggle-icon {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 14px;
    height: 10px;
    border: 2px solid currentColor; /* maximize look */
}

.bt_bb_ccj_map .sidebar.sidebar-collapsed .ccj-sidebar-toggle-icon {
    border: none;
    height: 0;
    border-bottom: 2px solid currentColor; /* minimize look */
}

.bt_bb_ccj_map .sidebar p {
    color: #fff;
}

.bt_bb_ccj_map .sidebar hr {
    border-color: rgba(255, 255, 255, .2);
}

/* Form groups + inputs (sport / sex / vârsta) */
.bt_bb_ccj_map .ccj-form-group {
    margin-bottom: 15px;
    min-width: 100px;
}

.bt_bb_ccj_map .ccj-form-control {
    display: block;
    width: 100%;
    height: auto;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.bt_bb_ccj_map .ccj-form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow:
        inset 0 1px 1px rgba(0, 0, 0, .075),
        0 0 8px rgba(102, 175, 233, .6);
}

/* Bold Builder custom select tweaks */
.ccj-form-group .bt_bb_widget_select_selected > div {
    margin-top: 0;
    font-size: 15px;
}

.ccj-form-group .bt_bb_widget_number input[type="number"] {
    background-color: transparent;
    font-weight: 700;
    border: 1px solid white;
    line-height: 1.1;
    padding: .625em .4375em;
    border-radius: 0;
    color: #fff;
    max-width: 60px;
}

/* Buttons row (Filtrează) */
.bt_bb_ccj_map .ccj-buttons-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 15px;
    margin-bottom: 15px;
}

.ccj-map-wrapper .bt_bb_link i.fa {
    margin-right: 10px;
}

/* Titles (sidebar + infowindow) */
.ccj-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 12px;
}

.center-title {
    font-size: 20px;
}

.sport-title {
    font-size: 18px;
    text-transform: uppercase;
    text-align: center;
}

.antrenor-title {
    font-size: 16px;
}

/* Lista de locații (#results) */
.card-locatie {
    padding: 8px;
}

.card-locatie:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-detalii {
    color: rgb(70, 183, 241);
    cursor: pointer;
}

.bt_bb_widget_select .bt_bb_widget_select_selected {
    border: 1px solid white;
}

/* Mobile: sidebar devine bloc normal, filtre pliate */
#showFilters {
    display: none;
}

@media (max-width: 767px) {
    .container-filters {
        display: none;
    }

    #showFilters {
        display: block;
    }
}

/* ============================================================================
 * InfoWindow – card cu detaliile locației (conținutul din buildInfoHtml)
 * ==========================================================================*/
.ccj-infowindow {
    max-width: 260px;
    background: #ffffff;
    color: #222222;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.ccj-infowindow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.ccj-infowindow-title {
    font-weight: 700;
    font-size: 15px;
}

.ccj-infowindow-sport {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #444444;
    white-space: nowrap;
}

.ccj-infowindow-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #555555;
    margin-bottom: 8px;
}

.ccj-infowindow-address i.fa {
    color: #667eea;
    margin-top: 2px;
}

.ccj-infowindow-groups {
    border-top: 1px solid #eeeeee;
    padding-top: 6px;
}

.ccj-infowindow-groups-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
}

.ccj-infowindow-groups-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 140px;
    overflow-y: auto;
}

.ccj-infowindow-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.ccj-infowindow-group:last-child {
    border-bottom: none;
}

.ccj-infowindow-group-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.ccj-infowindow-group-left i.fa {
    font-size: 13px;
}

.ccj-infowindow-group-code {
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.ccj-infowindow-group-age {
    font-size: 11px;
    color: #777777;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .bt_bb_ccj_map .sidebar {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .ccj-infowindow {
        max-width: 220px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .ccj-infowindow-title {
        font-size: 14px;
    }

    .ccj-infowindow-groups-list {
        max-height: 120px;
    }
}

