/* =====================================================
   BizDirectory Rating Component
===================================================== */

.bd-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* clickable rating */

.bd-rating--link {
    text-decoration: none;
    color: inherit;
}

.bd-rating--link:hover {
    opacity: .85;
}

/* star container */

.bd-rating__stars {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--bd-star-yellow);
}

/* star svg */

.bd-rating__stars svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    shape-rendering: geometricPrecision;
}

/* spacing */

.bd-rating__stars svg:not(:last-child) {
    margin-right: 2px;
}

/* star border */

.bd-rating__stars svg path {
    stroke: var(--bd-star-yellow);
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* star states */

.bd-star--filled path {
    fill: var(--bd-star-yellow);
}

.bd-star--empty path {
    fill: transparent;
}

/* rating meta */

.bd-rating__meta {
    font-size: 13px;
    opacity: .85;
    white-space: nowrap;
}


/* =====================================================
   BizDirectory City Selector
===================================================== */

.bd-city-selector {
    position: relative;
    display: inline-block;
}


/* -------------------------------------
   Toggle Button
------------------------------------- */

.bd-city-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: transparent;
    border: none;

    cursor: pointer;

    font-weight: 500;
    font-size: 14px;

    padding: 4px 6px;
}

.bd-city-toggle i {
    font-size: 16px;
}

.bd-city-current {
    white-space: nowrap;
}


/* -------------------------------------
   Dropdown Container
------------------------------------- */

.bd-city-dropdown {
    position: absolute;
    top: 46px;
    left: 0;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;

    min-width: 220px;

    box-shadow: 0 10px 20px rgba(0,0,0,0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s;

    z-index: 1000;
}

/* dropdown arrow */

.bd-city-dropdown::before {
    content: "";
    position: absolute;

    top: -6px;
    left: 18px;

    width: 10px;
    height: 10px;

    background: #fff;

    border-left: 1px solid #eee;
    border-top: 1px solid #eee;

    transform: rotate(45deg);
}

/* open state */

.bd-city-selector.open .bd-city-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* -------------------------------------
   Search Field
------------------------------------- */

.bd-city-search {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.bd-city-search-input {
    width: 100%;
    padding: 8px 10px;

    font-size: 14px;

    border: 1px solid #ddd;
    border-radius: 4px;

    outline: none;
}

.bd-city-search-input:focus {
    border-color: #999;
}


/* -------------------------------------
   City List
------------------------------------- */

.bd-city-list {
    max-height: 260px;
    overflow-y: auto;

    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

/* Chrome / Edge scrollbar */

.bd-city-list::-webkit-scrollbar {
    width: 6px;
}

.bd-city-list::-webkit-scrollbar-track {
    background: transparent;
}

.bd-city-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.bd-city-list::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}


/* -------------------------------------
   City Item
------------------------------------- */

.bd-city-option {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    text-decoration: none;
    color: inherit;
    font-size: 14px;

    transition: background .15s ease, color .15s ease;
}

/* hover */

.bd-city-option:hover {
    background: #f5f7fa;
}

/* active city */

.bd-city-option.active {
    background: #eef3ff;
    font-weight: 500;
}

/* active city checkmark */

.bd-city-option.active::after {
    content: "\f26e"; /* Bootstrap Icons check */
    font-family: "bootstrap-icons";
    margin-left: auto;
    font-size: 14px;
    opacity: .7;
}

/* hidden when filtered */

.bd-city-option.hidden {
    display: none;
}

.bd-remove-photo-btn{
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.65);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    padding: 0!important;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.1s;
    opacity: 0.9;
}
.remove-photo-btn:hover{
    background-color: #dc3545;
    transform: scale(1.05);
}

/* =====================================================
   BizDirectory Modal Styles (Global)
===================================================== */

.bd-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1rem;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    overflow-y: auto;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Open state */
.bd-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal dialog container */
.bd-modal-dialog {
    position: relative;

    background: #fff;
    width: 100%;
    max-width: 800px;
    /*max-height: 90vh;*/

    border-radius: 20px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.3);

    margin: auto;
}

/* Header */
.bd-modal-header {
    padding: 20px 24px 0;
}

.bd-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Body */
.bd-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}



/* Close button */
.bd-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;

    background: none;
    border: none;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
    color: #333;

    transition: opacity 0.15s ease;
}

.bd-modal-close:hover {
    opacity: 0.7;
}

/* Prevent background scroll */
body.bd-modal-open {
    overflow: hidden;
}
.bd-modal-divider{
    border-top: 1px solid #e9ecef;
    margin: 12px 0 10px;
}
.bd-modal-actions{
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-direction: row-reverse;
}

@media (max-width: 480px) {

    .bd-modal-actions {
        flex-direction: column;
    }

    .bd-modal-actions button {
        width: 100%;
    }
}
/*few global styles*/
.bd-btn{
    border-radius: 50px;
    padding: 6px 20px;
    font-weight: normal;
    font-size: 100%;
    text-transform: unset;
}
.bd-btn span{ font-size: 100%; font-weight: normal; }