/* ==================================================
   STARAD PRODUCT LOCATOR — STYLES
================================================== */
/* Fix Astra theme padding inside your custom grid */
.starad-loop-results .ast-grid-common-col {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* Optional: if Astra forces a min-height that stretches your cards */
.starad-loop-results .ast-grid-common-col {
    min-height: auto !important;
}

/* MAIN WRAPPER */
/* For Mobile screens (tablets and phones under 768px wide) */
/* For Mobile screens (tablets and phones under 768px wide) */
@media (max-width: 768px) {
    .starad-loop-results {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Forces 2 columns */
        gap: 10px !important;
        /* Optional: you can make the gap smaller on mobile if 20px is too big */
    }

}

.starad-search-wrapper {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 12px;
    position: relative;
    z-index: 999;
}

/* LOCATION CONTROL */

.starad-location-control {
    width: 230px;
    position: relative;
    flex-shrink: 0;
}

.starad-location-selected {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #dfe5e2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: .2s ease;
}

.starad-location-selected:hover {
    border-color: var(--e-global-color-1a67c9d);
}

.starad-location-icon {
    display: flex;
    align-items: center;
    color: #777;
}

.starad-current-location {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.starad-location-arrow {
    display: flex;
    transition: transform .2s ease;
}

.starad-location-control.open .starad-location-arrow {
    transform: rotate(180deg);
}

/* LOCATION DROPDOWN */

.starad-location-dropdown {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e5e4;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .10);
    overflow: hidden;
    display: none;
}

.starad-location-control.open .starad-location-dropdown {
    display: block;
}

/* LOCATION SEARCH (icon shown only as part of the placeholder) */

.starad-search-wrapper .starad-location-search svg {
    display: none !important;
}

.starad-search-wrapper .starad-location-search {
    height: 50px;
    position: relative;
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
    border-bottom: 1px solid #eeeeee;
}

.starad-search-wrapper .starad-location-search input.starad-location-input {
    width: 100% !important;
    height: 50px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 14px 0 42px !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 17px 17px !important;

    font-size: 14px !important;
}

.starad-search-wrapper .starad-location-search input.starad-location-input:not(:placeholder-shown) {
    background-image: none !important;
    padding-left: 16px !important;
}

.starad-search-wrapper .starad-location-search input.starad-location-input::placeholder {
    font-size: 14px;
    color: #999;
}

/* LOCATION LIST */

.starad-search-wrapper .starad-location-list {
    max-height: 290px;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.starad-location-option {
    padding: 11px 15px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: .15s ease;
}

.starad-location-option:hover,
.starad-location-option.active {
    background: var(--e-global-color-1a67c9d, #26b36a);
    color: #fff;
}

.starad-location-no-results {
    display: none;
    padding: 18px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* PRODUCT SEARCH (currently unused / commented out in markup) */

.starad-product-search {
    flex: 1;
    min-width: 0;
    position: relative;
}

.starad-product-search-inner {
    min-height: 56px;
    position: relative;
    background: #fff;
    border: 1px solid #dfe5e2;
    border-radius: 4px;
    transition: .2s ease;
}

.starad-product-search-inner:focus-within {
    border-color: #26b36a;
    box-shadow: 0 0 0 2px rgba(38, 179, 106, .08);
}

.starad-product-input {
    width: 100% !important;
    height: 56px !important;
    box-sizing: border-box !important;
    padding: 0 55px 0 18px !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.starad-product-search-icon {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    display: flex;
    pointer-events: none;
}

/* LOADING SPINNER */

.starad-search-loading {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #ddd;
    border-top-color: #26b36a;
    border-radius: 50%;
    display: none;
    animation: staradSpin .7s linear infinite;
}

.starad-product-search.loading .starad-search-loading {
    display: block;
}

.starad-product-search.loading .starad-product-search-icon {
    display: none;
}

@keyframes staradSpin {
    to {
        transform: rotate(360deg);
    }
}

/* PRODUCT RESULTS DROPDOWN */

.starad-product-results {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e3e5e4;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    overflow: hidden;
    display: none;
    z-index: 9999;
}

.starad-product-results.show {
    display: block;
}

.starad-product-results-inner {
    max-height: 390px;
    overflow-y: auto;
}

/* PRODUCT RESULT ROW */

.starad-product-result {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: #222 !important;
    border-bottom: 1px solid #eeeeee;
    transition: .15s ease;
}

.starad-product-result:last-child {
    border-bottom: 0;
}

.starad-product-result:hover {
    background: #f3fbf7;
}

.starad-product-image {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 3px;
    overflow: hidden;
    background: #f3f3f3;
}

.starad-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.starad-product-result-content {
    flex: 1;
    min-width: 0;
}

.starad-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.35;
    margin-bottom: 4px;
}

.starad-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #777;
}

.starad-product-category {
    color: #26a966;
}

.starad-product-price {
    font-weight: 600;
    color: #333;
}

.starad-product-no-results {
    display: none;
    padding: 22px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* FILTER CHIPS */

.starad-filter-bar {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    font-size: 15px;
}

.starad-filter-label {
    color: #444;
}

.starad-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #b9bfe0;
    border-radius: 4px;
    font-size: 14px;
    color: #222;
}

.starad-chip-remove {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    line-height: 1;
    font-size: 18px;
    color: #777 !important;
    cursor: pointer;
}

.starad-chip-remove:hover {
    color: var(--e-global-color-1d51e8b);
}

.starad-chip-clear {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: var(--e-global-color-1a67c9d);
    font-size: 14px;
    cursor: pointer;
}

.starad-chip-clear:hover {
    color: var(--e-global-color-1d51e8b);
}

/* NO PRODUCTS FOUND (archive-level message) */

.starad-result-count {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
    font-family: var(--e-global-typography-b041898-font-family), Sans-serif;
    font-size: var(--e-global-typography-b041898-font-size);
    font-weight: var(--e-global-typography-b041898-font-weight);
    line-height: var(--e-global-typography-b041898-line-height);
}

.starad-no-products-found h3 {
    padding: 24px 0;
    font-family: var(--e-global-typography-75bb1a7-font-family), Sans-serif;
    font-size: var(--e-global-typography-75bb1a7-font-size);
    font-weight: var(--e-global-typography-75bb1a7-font-weight);
    text-transform: var(--e-global-typography-75bb1a7-text-transform);
    line-height: var(--e-global-typography-75bb1a7-line-height);
    letter-spacing: var(--e-global-typography-75bb1a7-letter-spacing);
    color: var(--e-global-color-1d51e8b);
}

.starad-no-products-found p {
    font-family: var(--e-global-typography-b041898-font-family), Sans-serif;
    font-size: var(--e-global-typography-b041898-font-size);
    font-weight: var(--e-global-typography-b041898-font-weight);
    line-height: var(--e-global-typography-b041898-line-height);
}

/* ==================================================
   LOAD MORE BUTTON — matches the "Book Now" button
================================================== */

.starad-load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.starad-load-more {
    background-color: var(--e-global-color-1d51e8b);
    font-family: var(--e-global-typography-ec7ff60-font-family), Sans-serif;
    font-size: var(--e-global-typography-ec7ff60-font-size);
    font-weight: 600;
    text-transform: var(--e-global-typography-ec7ff60-text-transform);
    line-height: var(--e-global-typography-ec7ff60-line-height);
    letter-spacing: var(--e-global-typography-ec7ff60-letter-spacing);
    border-radius: 0px 0px 0px 0px;
    padding: 12px 20px 8px 20px;
    border: 0;
    cursor: pointer;
    color: #fff;
}

.starad-load-more:hover,
.starad-load-more:focus {
    background-color: var(--e-global-color-1a67c9d);
}

.starad-load-more:disabled {
    opacity: 0.6;
    cursor: default;
}

/* MOBILE */

@media (max-width: 767px) {

    .starad-search-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .starad-location-control {
        width: 100%;
    }

    .starad-location-dropdown {
        position: absolute;
    }

    .starad-product-search {
        width: 100%;
    }
}

/* Applies ONLY to tablet screens */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .starad-loop-results {
        display: grid !important;
        /* Forces grid layout active within this range */
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}