/**
 * Location Search Widget Styles
 *
 * @package Kickboxing
 */

/* ========================================
   Container
   ======================================== */
.kb-location-search-widget {
    max-width: 420px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ========================================
   Search Box
   ======================================== */
.kb-search-box {
    background: rgba(26, 26, 26, 0.85);
    border-radius: 12px;
    padding: 28px 28px 22px;
    margin-bottom: 16px;
}

.kb-search-box__title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 18px 0;
    line-height: 1.3;
}

.kb-search-box__title span {
    color: #F37021;
}

.kb-search-box__input-wrapper {
    position: relative;
    margin-bottom: 14px;
}

.kb-search-box__input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background: #ffffff;
    font-size: 15px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.kb-search-box__input:focus {
    border-bottom-color: #F37021;
}

.kb-search-box__input::placeholder {
    color: #999;
}

.kb-search-box__edit-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #F37021;
    font-size: 16px;
    pointer-events: none;
}

.kb-search-box__edit-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #F37021;
    stroke-width: 2;
}

.kb-search-box__geolocation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #F37021;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}

.kb-search-box__geolocation:hover {
    opacity: 0.8;
}

.kb-search-box__geolocation .kb-pin-icon {
    font-size: 16px;
}

/* ========================================
   Results Card
   ======================================== */
.kb-result-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: none;
}

.kb-result-card.is-visible {
    display: block;
}

.kb-result-card__label {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px 0;
    font-weight: 400;
}

.kb-result-card__city {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.kb-result-card__address {
    font-size: 14px;
    color: #444;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.kb-result-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 16px;
}

.kb-result-card__phone:hover {
    color: #F37021;
}

.kb-result-card__phone svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.kb-result-card__offer {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px 0;
}

/* ========================================
   CTA Buttons
   ======================================== */
.kb-result-card__buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.kb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.kb-btn--try-class {
    background: #F37021;
    color: #ffffff;
    border-color: #F37021;
}

.kb-btn--try-class:hover {
    background: #d95f15;
    border-color: #d95f15;
    color: #ffffff;
}

.kb-btn--join-now {
    background: #555555;
    color: #ffffff;
    border-color: #555555;
}

.kb-btn--join-now:hover {
    background: #444444;
    border-color: #444444;
    color: #ffffff;
}

.kb-btn--display-all {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    color: #F37021;
    border: 2px solid #F37021;
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.kb-btn--display-all:hover {
    background: #F37021;
    color: #ffffff;
}

/* ========================================
   Footer Link
   ======================================== */
.kb-result-card__footer {
    text-align: center;
    font-size: 13px;
    color: #444;
}

.kb-result-card__footer a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
}

.kb-result-card__footer a:hover {
    color: #F37021;
}

/* ========================================
   Loading State
   ======================================== */
.kb-result-card__loading {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
    display: none;
}

.kb-result-card__loading.is-visible {
    display: block;
}

.kb-result-card__no-results {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
    display: none;
}

.kb-result-card__no-results.is-visible {
    display: block;
}

/* ========================================
   Hero Card (standalone, no search box)
   ======================================== */
.kb-hero-location-widget .kb-result-card {
    display: block;
}

/* ========================================
   Google Autocomplete Dropdown Override
   ======================================== */
.pac-container {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    z-index: 10000;
}

.pac-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.pac-item:hover {
    background: #f5f5f5;
}

.pac-item-query {
    font-size: 14px;
}
