/* =========================================================
   KINETIC MARKET — GEODIRECTORY MAP BUBBLE
   OpenStreetMap / Leaflet
   ========================================================= */

.leaflet-popup.gd-osm-bubble {
    --km-green: #035841;
    --km-red: #C62828;
    --km-text: #252525;
    --km-muted: #717171;
    --km-border: #e8e8e8;
    font-family: inherit;
}

/* POPUP CONTAINER */

.leaflet-popup.gd-osm-bubble .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: visible;
    border: 1px solid var(--km-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
}

.leaflet-popup.gd-osm-bubble .leaflet-popup-content {
    width: 260px !important;
    max-width: calc(100vw - 48px);
    margin: 0 !important;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.leaflet-popup.gd-osm-bubble .gd-bubble {
    padding: 0;
    background: transparent;
}

.leaflet-popup.gd-osm-bubble .gd-bubble-inside {
    padding: 18px;
}

.leaflet-popup.gd-osm-bubble .leaflet-popup-tip {
    background: #fff;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, .08);
}

/* TITLE */

.leaflet-popup.gd-osm-bubble .geodir-post-title {
    padding-right: 25px;
    margin-bottom: 14px;
}

.leaflet-popup.gd-osm-bubble .geodir-entry-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    white-space: normal;
}

.leaflet-popup.gd-osm-bubble .geodir-entry-title a {
    color: var(--km-green) !important;
    text-decoration: none !important;
    transition: color .2s ease;
}

.leaflet-popup.gd-osm-bubble .geodir-entry-title a:hover {
    color: var(--km-red) !important;
}

/* CLOSE BUTTON */

.leaflet-popup.gd-osm-bubble .leaflet-popup-close-button {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    border-radius: 50%;
    background: #f3f3f3;
    color: #555 !important;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.leaflet-popup.gd-osm-bubble .leaflet-popup-close-button:hover {
    background: var(--km-green);
    color: #fff !important;
}

/* IMAGE */

.leaflet-popup.gd-osm-bubble .geodir-bubble_image {
    padding-bottom: 0 !important;
    margin-bottom: 13px;
}

.leaflet-popup.gd-osm-bubble .geodir-image-container,
.leaflet-popup.gd-osm-bubble .geodir-bubble_image a {
    overflow: hidden;
    border-radius: 8px;
}

.leaflet-popup.gd-osm-bubble .geodir-image-container {
    background: #f5f5f5;
}

.leaflet-popup.gd-osm-bubble .geodir-bubble_image img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform .25s ease;
}

.leaflet-popup.gd-osm-bubble .geodir-bubble_image a:hover img {
    transform: scale(1.035);
}

.leaflet-popup.gd-osm-bubble .geodir-bubble_image .fa-link {
    display: none !important;
}

/* RATING AND FAVORITES */

.leaflet-popup.gd-osm-bubble .geodir-bubble-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0;
}

.leaflet-popup.gd-osm-bubble .geodir-post-rating,
.leaflet-popup.gd-osm-bubble .gd-rating-info-wrap,
.leaflet-popup.gd-osm-bubble .gd-rating,
.leaflet-popup.gd-osm-bubble .gd-fav-info-wrap {
    margin: 0 !important;
}

.leaflet-popup.gd-osm-bubble .gd-rating-wrap {
    font-size: 14px;
}

.leaflet-popup.gd-osm-bubble .geodir-addtofav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
    transition: background .2s ease;
}

.leaflet-popup.gd-osm-bubble .geodir-addtofav-icon:hover {
    background: #fce9e7;
}

.leaflet-popup.gd-osm-bubble .geodir-addtofav-icon i {
    font-size: 15px;
}

/* ADDRESS */

.leaflet-popup.gd-osm-bubble .geodir-bubble-meta-side {
    padding-top: 12px;
    border-top: 1px solid var(--km-border);
}

.leaflet-popup.gd-osm-bubble .geodir-field-address {
    position: relative;
    display: block;
    margin: 0 0 12px !important;
    padding: 0 0 0 24px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--km-text);
    font-size: 13px;
    line-height: 1.55;
    white-space: normal;
}

.leaflet-popup.gd-osm-bubble
.geodir-field-address .geodir_post_meta_title {
    display: none !important;
}

.leaflet-popup.gd-osm-bubble
.geodir-field-address .geodir-i-address {
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    color: var(--km-green);
}

.leaflet-popup.gd-osm-bubble
.geodir-field-address .geodir-i-address i {
    color: var(--km-green) !important;
    font-size: 14px;
}

/* Combined city, state, ZIP line */

.leaflet-popup.gd-osm-bubble .km-bubble-city-line {
    display: inline;
    white-space: normal;
}

.leaflet-popup.gd-osm-bubble .km-bubble-city-line [itemprop] {
    display: inline;
}

/* BUSINESS HOURS */

.leaflet-popup.gd-osm-bubble .geodir-field-business_hours {
    position: relative;
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 1px solid #e8eee9 !important;
    border-radius: 7px;
    background: #f7faf8 !important;
    font-size: 12px;
}

.leaflet-popup.gd-osm-bubble
.geodir-field-business_hours > a {
    display: block;
    color: var(--km-text) !important;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Status on its own line */

.leaflet-popup.gd-osm-bubble .geodir-i-biz-hours {
    display: block !important;
    margin-bottom: 3px;
    font-weight: 650;
}

/* Hours on second line */

.leaflet-popup.gd-osm-bubble .gd-bh-expand-range {
    display: inline-block;
    padding-left: 19px;
}

.leaflet-popup.gd-osm-bubble .gd-bh-today-range {
    color: var(--km-muted);
}

.leaflet-popup.gd-osm-bubble
.geodir-i-biz-hours.text-danger,
.leaflet-popup.gd-osm-bubble
.geodir-i-biz-hours.text-danger font {
    color: var(--km-red) !important;
}

.leaflet-popup.gd-osm-bubble
.geodir-i-biz-hours.text-success,
.leaflet-popup.gd-osm-bubble
.geodir-i-biz-hours.text-success font {
    color: var(--km-green) !important;
}

/* EXPANDED BUSINESS HOURS */

.leaflet-popup.gd-osm-bubble .gd-bh-open-hours {
    min-width: 250px;
    max-width: calc(100vw - 40px);
    padding: 8px;
    border: 1px solid var(--km-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    font-size: 12px;
}

.leaflet-popup.gd-osm-bubble .gd-bh-days-list {
    padding: 7px 8px !important;
    border-radius: 4px;
    color: var(--km-text);
}

.leaflet-popup.gd-osm-bubble .gd-bh-days-today {
    background: #eef5f1;
    font-weight: 700;
}

.leaflet-popup.gd-osm-bubble
.gd-bh-days-today .gd-bh-days-d {
    color: var(--km-green) !important;
}

.leaflet-popup.gd-osm-bubble .gd-bh-days-closed {
    color: var(--km-muted);
}

/* RESPONSIVE */

@media (max-width: 480px) {

    .leaflet-popup.gd-osm-bubble .leaflet-popup-content {
        width: 240px !important;
    }

    .leaflet-popup.gd-osm-bubble .gd-bubble-inside {
        padding: 15px;
    }

    .leaflet-popup.gd-osm-bubble .geodir-entry-title {
        font-size: 17px !important;
    }

    .leaflet-popup.gd-osm-bubble .geodir-bubble_image img {
        height: 135px;
    }
}
