/* Location Filter Styling */
#location-filter-container .card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.125));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

#location-filter-container .card-body {
    background-color: var(--surface-1, #fff);
    color: var(--text-primary, #212529);
}

#location-filter-container .card-title {
    color: var(--text-primary, #212529);
    font-weight: 600;
}

#location-filter-container .card-text {
    color: var(--text-secondary, #6c757d);
}

#location-filter-container .form-control {
    background-color: var(--surface-2, #f8f9fa);
    border-color: var(--border-color, #ced4da);
    color: var(--text-primary, #212529);
}

#location-filter-container .form-text {
    color: var(--text-muted, #6c757d);
}

#location-filter-container .btn-outline-secondary {
    border-color: var(--border-color, #6c757d);
    color: var(--text-primary, #212529);
    background-color: var(--surface-1, transparent);
}

#location-filter-container .btn-outline-secondary:hover {
    background-color: var(--surface-2, #f8f9fa);
}

#location-filter-container .alert {
    background-color: var(--surface-2, #f8f9fa);
    border-color: var(--border-color, rgba(0, 0, 0, 0.125));
}

/* Enhanced Location Card Styling */
.location-card {
    border: none;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-1, #fff);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(50, 50, 93, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.location-card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 25% 15%, rgba(42, 54, 186, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 75% 85%, rgba(209, 48, 48, 0.8) 0%, transparent 50%);
    z-index: 0;
}

.location-card-content {
    padding: 1.5rem 0.5rem;
    position: relative;
    z-index: 2;
}

.location-card-title {
    font-weight: 700;
    color: var(--text-primary, #2d3748);
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.location-icon {
    font-size: 1.2em;
    margin-right: 0.75rem;
    color: #4A90E2;
    animation: pulse-location 2s infinite ease-in-out;
}

@keyframes pulse-location {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.form-control-lg {
    height: 3.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    padding-left: 1.25rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.form-control-lg:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.25);
    transform: translateY(-2px);
}

.location-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.benefit-item i {
    font-size: 1.1rem;
}

.location-submit-btn {
    height: 3.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4A90E2, #2E5A9C);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
}

.location-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #5AA0F2, #3A6AAC);
}

.location-submit-btn:active {
    transform: translateY(0);
}

/* Flippy styling is now handled by the global flippy styles */

/* Button when location filter is active */
.location-filter-button {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.location-filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.location-filter-button:active {
    transform: translateY(0);
}

.location-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon-pill {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
    animation: pulse-location 2s infinite ease-in-out;
    z-index: 2; /* Ensure icon is above backgrounds */
}

.location-text {
    font-size: 1.05rem;
    font-weight: 500;
}

.location-text strong {
    color: #4A90E2;
    font-weight: 700;
}

.location-filter-expandable {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-1, #ffffff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.location-filter-expandable:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.location-filter-compact,
.location-filter-expanded {
    background: linear-gradient(
            135deg,
            var(--theme-primary, #00a69c),
            var(--theme-secondary, #0068ba)
    );
    color: var(--text-on-brand, #f8fafc);
}

.location-filter-compact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
}

.location-filter-compact:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.location-filter-compact-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.location-filter-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.25);
    font-size: 1.25rem;
}

.location-filter-compact-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.location-filter-summary {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.location-filter-compact-actions {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex: 0 0 auto;
    min-width: 0;
    padding-right: 0.25rem;
}

.location-filter-expand-trigger,
.location-filter-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
    white-space: nowrap;
    min-height: 2.25rem;
}

.location-filter-expand-trigger {
    flex: 2 1 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    border: 1px solid rgba(248, 250, 252, 0.45);
    color: #f8fafc;
    padding: 0.45rem 1.2rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.location-filter-expand-trigger:focus-visible {
    outline: 2px solid rgba(248, 250, 252, 0.65);
    outline-offset: 2px;
}

.location-filter-expand-trigger:hover,
.location-filter-expand-trigger:focus-visible {
    background: rgba(248, 250, 252, 0.22);
    border-color: rgba(248, 250, 252, 0.75);
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.location-filter-expand-trigger i {
    color: currentColor;
}

.location-filter-expand-trigger .btn-text {
    font-weight: 700;
}

.location-filter-change {
    flex: 1 1 0;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

.location-filter-expandable .location-filter-change {
    margin-left: 0;
}

.location-filter-expandable .btn-outline-primary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.location-filter-expandable .btn-outline-primary i,
.location-filter-expandable .btn-outline-primary .btn-text {
    color: #ffffff !important;
}

.location-filter-expandable .btn-outline-primary:hover,
.location-filter-expandable .btn-outline-primary:focus {
    color: #0f172a !important;
    background: #ffffff;
    border-color: #ffffff;
}

.location-filter-expandable .btn-outline-primary:hover i,
.location-filter-expandable .btn-outline-primary:hover .btn-text,
.location-filter-expandable .btn-outline-primary:focus i,
.location-filter-expandable .btn-outline-primary:focus .btn-text {
    color: #0f172a !important;
}

.location-filter-expanded {
    display: none;
    padding: 1.25rem 1.5rem 1.5rem;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(248, 250, 252, 0.2);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.location-filter-expandable.is-expanded .location-filter-compact {
    display: none;
}

.location-filter-expandable.is-expanded .location-filter-expanded {
    display: block;
}

.location-filter-expanded-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.location-filter-expanded-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.15px;
}

.location-filter-expanded-title i {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.65rem;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.25);
}

.location-filter-expanded-days {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0.35rem;
}

.location-filter-expanded-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-filter-close-btn {
    border: none;
    background: rgba(15, 23, 42, 0.45);
    color: #f8fafc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.location-filter-close-btn:hover {
    background: rgba(15, 23, 42, 0.65);
    transform: translateY(-1px);
}

.location-filter-expanded-body {
    margin-top: 1.25rem;
}

.location-filter-empty {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.12);
    border: 1px solid rgba(248, 250, 252, 0.25);
    color: var(--text-on-brand, #f8fafc);
    font-size: 0.95rem;
    text-align: center;
}

.location-filter-empty h5 {
    color: inherit;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-filter-empty p {
    color: inherit;
    opacity: 0.9;
}

.location-filter-empty i.fa-compass {
    color: #ffffff !important;
    opacity: 0.9;
    display: block;
}

.location-filter-empty .btn-theme-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #ffffff !important;
}

.location-filter-empty .btn-theme-outline .btn-text,
.location-filter-empty .btn-theme-outline .btn-icon,
.location-filter-empty .btn-theme-outline i {
    color: #ffffff !important;
}

.location-filter-empty .btn-theme-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff !important;
}

@media (max-width: 576px) {
    .location-filter-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-filter-expandable .location-filter-change {
        width: 100%;
    }

    .location-filter-expanded-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-filter-expanded-actions {
        width: 100%;
    }

    .location-filter-expanded-actions .location-filter-change {
        flex-grow: 1;
    }
}

/* Day grouping styles */
.leagues-by-day {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
}

.day-group {
    display: flex;
    flex-direction: column;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    margin-right: 8px;
    min-width: 200px;
    flex: 1 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    cursor: default;
    position: relative;
}

.day-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: rgba(74, 144, 226, 0.15);
}

.day-name {
    font-weight: 700;
    color: #4A90E2;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    padding-bottom: 4px;
}

.league-names {
    color: #1a202c; /* Darker color for better contrast in light mode */
    font-size: 0.85rem;
    padding: 0;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

.league-names div {
    color: #1a202c; /* Ensure child divs also have proper contrast */
}

.league-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 4px 8px;
    border-radius: 6px;
    color: inherit !important;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, outline-color 0.2s ease, opacity 0.2s ease;
}

.league-link:hover,
.league-link:focus-visible {
    background: rgba(59, 130, 246, 0.12);
}

.league-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.4);
    outline-offset: 2px;
}

.league-link-bullet,
.league-link-text,
.league-link-icon {
    color: inherit !important;
}

.league-link-bullet {
    font-size: 1.1em;
    line-height: 1;
}

.league-link-text {
    flex: 1;
}

.league-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.league-link-icon i {
    color: inherit !important;
}

.league-link:hover .league-link-icon,
.league-link:focus-visible .league-link-icon {
    opacity: 1;
    transform: translateY(-1px);
}

.location-filter-expanded .day-group {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 16px rgba(15, 23, 42, 0.25);
}

.location-filter-expanded .day-group:hover {
    background: rgba(255, 255, 255, 0.12);
}

.location-filter-expanded .day-name {
    color: #bfdbfe;
    border-bottom-color: rgba(191, 219, 254, 0.35);
}

.location-filter-expanded .league-names,
.location-filter-expanded .league-names div {
    color: #f8fafc;
}

.location-filter-expanded .league-link:hover,
.location-filter-expanded .league-link:focus-visible {
    background: rgba(148, 163, 184, 0.16);
}

.location-filter-expanded .league-link,
.location-filter-expanded .league-link-text,
.location-filter-expanded .league-link-bullet,
.location-filter-expanded .league-link-icon {
    color: #f8fafc !important;
}

.edit-icon {
    font-size: 1rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.location-filter-button:hover .edit-icon {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
    opacity: 1;
}

/* Modal styling */
.location-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.location-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.location-modal-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.3);
}

.location-modal-body {
    padding: 1.5rem;
}

.location-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.location-modal-form {
    padding: 0 0.5rem;
}

.input-group-text {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #4A90E2;
}

/* Ensure modal input groups stay horizontal */
.location-modal-form .input-group {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: stretch;
}

.location-modal-form .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    min-width: 46px;
    padding: 0.5rem 0.75rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.location-modal-form .input-group-text i {
    display: inline-block;
    font-size: 1rem;
}

.location-modal-form .input-group .form-control {
    flex: 1 1 auto;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.search-radius-value {
    font-weight: 600;
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Animation for radius update */
.radius-updated {
    animation: pulse-radius 0.5s ease-out;
}

@keyframes pulse-radius {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        background: rgba(74, 144, 226, 0.2);
    }
    100% {
        transform: scale(1);
    }
}

.range-slider-container {
    position: relative;
    padding: 0.25rem 0;
}

.custom-range {
    height: 8px;
    border-radius: 4px;
}

.custom-range::-webkit-slider-thumb {
    background: #4A90E2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.range-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted, #718096);
}

.location-modal-cancel {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.location-modal-submit {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    background: linear-gradient(135deg, #4A90E2, #2E5A9C);
    border: none;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.location-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, #5AA0F2, #3A6AAC);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .day-group {
        flex: 1 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }

    .location-filter-compact {
        gap: 0.75rem 1.25rem;
    }

    .location-filter-compact-actions {
        flex: 1 0 100%;
    }

    .location-filter-expand-trigger,
    .location-filter-change {
        width: 100%;
    }
}

/* Sweepstakes promo container - base styles (desktop) */
#sweepstakes-promo-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    /* Mobile adjustments for the location card */
    #location-filter-container .col-md-4 {
        order: 2;
        margin-top: 1.5rem;
    }

    .day-group {
        flex: 1 0 100%;
        max-width: 100%;
        margin-right: 0;
    }

    /* Compressed mobile location filter card */
    .location-filter-compact {
        padding: 0.65rem 0.85rem !important;
        gap: 0.5rem 0.75rem !important;
    }

    .location-filter-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }

    .location-filter-summary {
        font-size: 0.88rem !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
    }

    .location-filter-compact-content {
        gap: 0.5rem !important;
        align-items: center !important;
    }

    .location-filter-compact-actions {
        gap: 0.5rem !important;
        padding-right: 0 !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .location-filter-expand-trigger,
    .location-filter-change {
        font-size: 0.75rem !important;
        min-height: 1.85rem !important;
        padding: 0.3rem 0.7rem !important;
        flex: 1 1 50% !important;
        width: auto !important;
    }

    .location-filter-expand-trigger .btn-text,
    .location-filter-change .btn-text {
        font-size: 0.75rem !important;
    }

    .location-filter-expandable {
        border-radius: 10px !important;
    }

    /* Reduce gap between header and location filter on mobile (match bottom gap) */
    #location-filter-container {
        margin-top: 0.2rem !important;
        margin-bottom: 0 !important;
    }

    /* Compact sweepstakes container on mobile */
    #sweepstakes-promo-container {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        padding: 0.5rem !important;
    }

    #sweepstakes-promo-container .card {
        padding: 0.75rem !important;
    }

    #sweepstakes-promo-container h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }

    #sweepstakes-promo-container p {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    #sweepstakes-promo-container .btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    /* Rely on the global responsive styles for Flippy */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight effect for the upcoming leagues section when scrolled to */
@keyframes highlightSection {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(74, 144, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

.highlight-section {
    animation: highlightSection 1.5s ease-out;
}

/* Flippy loading overlay */
.flippy-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 999999; /* Significantly higher z-index to ensure it's above everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease; /* Faster transition */
}

.flippy-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.flippy-loading-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: flippy-bounce 2s ease infinite, flippy-rotate 5s linear infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 149, 255, 0.7);
    position: relative;
}

.flippy-loading-text {
    max-width: 600px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.flippy-loading-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #0dcaf0;
}

.flippy-loading-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.flippy-loading-progress {
    width: 60%;
    max-width: 400px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.flippy-loading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #0dcaf0, #4a90e2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.flippy-loading-progress-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

@keyframes flippy-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes flippy-rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

.flippy-loading-action {
    font-style: italic;
    color: #0dcaf0;
    background-color: rgba(13, 202, 240, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.flippy-leagues-list {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 800px;
}

.flippy-league-pill {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: league-pulse 2s ease infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.flippy-league-pill.active {
    opacity: 1;
    background-color: rgba(13, 202, 240, 0.2);
    border: 1px solid rgba(13, 202, 240, 0.5);
    transform: scale(1.05);
}

@keyframes league-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Dark mode overrides */
[data-bs-theme="dark"] {
    /* Location filter card */

    #location-filter-container .card {
        border-color: var(--theme-border-color, rgba(255, 255, 255, 0.1));
        box-shadow: var(--theme-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.5));
    }

    #location-filter-container .card-body {
        background-color: var(--theme-surface-1, #1e293b);
    }

    #location-filter-container .card-title {
        color: var(--theme-text-primary, #e2e8f0);
    }

    #location-filter-container .card-text {
        color: var(--theme-text-secondary, #cbd5e1);
    }

    /* Form elements */

    #location-filter-container .form-control {
        background-color: var(--theme-surface-2, #334155);
        border-color: var(--theme-border-color, rgba(255, 255, 255, 0.1));
        color: var(--theme-text-primary, #e2e8f0);
    }

    #location-filter-container .form-control:focus {
        border-color: var(--theme-info, #3b82f6);
        box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    }

    #location-filter-container .form-text {
        color: var(--theme-text-muted, #94a3b8);
    }

    /* Enhanced button styling */

    #location-filter-container .btn-outline-secondary {
        border-color: var(--theme-border-color, rgba(255, 255, 255, 0.2));
        color: var(--theme-text-primary, #e2e8f0);
        background-color: var(--theme-surface-1, #1e293b);
    }

    #location-filter-container .btn-outline-secondary:hover {
        background-color: var(--theme-surface-2, #334155);
        transform: translateY(-2px);
        box-shadow: var(--theme-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.5));
    }

    #location-filter-container .btn-outline-secondary i.text-primary {
        color: var(--theme-info, #3b82f6) !important;
    }

    #location-filter-container .btn-outline-secondary strong {
        color: var(--theme-info, #3b82f6);
    }

    /* Add subtle pulsing effect to the location icon */
    @keyframes subtle-pulse {
        0% {
            transform: scale(1);
            opacity: 0.8;
        }
        50% {
            transform: scale(1.05);
            opacity: 1;
        }
        100% {
            transform: scale(1);
            opacity: 0.8;
        }
    }

    #location-filter-container .btn-outline-secondary i.fa-map-marker-alt {
        animation: subtle-pulse 2s infinite ease-in-out;
        color: var(--theme-info, #fff) !important;
    }

    /* Alert variants */

    #location-filter-container .alert-info {
        background-color: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.2);
        color: var(--theme-info, #3b82f6);
    }

    #location-filter-container .alert-warning {
        background-color: rgba(245, 158, 11, 0.1);
        border-color: rgba(245, 158, 11, 0.2);
        color: var(--theme-warning, #f59e0b);
    }

    #location-filter-container .invalid-feedback {
        color: var(--theme-danger, #ef4444);
    }

    /* Enhanced location card dark mode */

    .location-card {
        background-color: var(--surface-1, #1a202c);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .location-card-pattern {
        opacity: 0.08;
    }

    .location-card-title {
        color: var(--text-primary, #e2e8f0);
    }

    .form-control-lg {
        background-color: var(--surface-2, #2d3748);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text-primary, #e2e8f0);
    }

    .form-control-lg:focus {
        border-color: #4A90E2;
        box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.25);
        background-color: var(--surface-2, #2d3748);
    }

    .speech-bubble {
        background: rgba(26, 32, 44, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
        color: #cbd5e0;
    }

    .speech-bubble:after {
        background: rgba(26, 32, 44, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .speech-bubble strong {
        color: #90cdf4;
    }

    .form-text {
        color: var(--text-muted, #a0aec0);
    }

    /* Location filter button dark mode */

    .location-filter-button {
        background-color: var(--surface-1, #2d3748);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text-primary, #e2e8f0);
    }

    .location-filter-button:hover {
        background-color: var(--surface-2, #1a202c);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .location-filter-expanded {
        background: linear-gradient(
                135deg,
                rgba(10, 37, 64, 0.95),
                rgba(var(--theme-primary-rgb, 0, 184, 169), 0.85)
        );
        border-color: rgba(148, 163, 184, 0.35);
        box-shadow: 0 24px 50px rgba(2, 6, 23, 0.55);
    }

    .location-filter-empty {
        background: rgba(148, 163, 184, 0.12);
        border-color: rgba(226, 232, 240, 0.2);
        color: var(--theme-text-primary, #e2e8f0);
    }

    .location-filter-empty h5 {
        color: var(--theme-text-primary, #e2e8f0);
    }

    .location-filter-empty p {
        color: var(--theme-text-secondary, #cbd5e1);
    }

    /* Location filter empty state inherits styles from light mode */

    /* Improve location icon visibility in dark mode */

    .location-icon-pill {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
        /* Increase contrast and visibility */
        border: none;
    }

    .location-text strong {
        color: #63B3ED;
    }

    .edit-icon {
        color: white;
        background: rgba(0, 0, 0, 0.5);
    }

    .location-filter-button:hover .edit-icon {
        background: rgba(0, 0, 0, 0.6);
    }

    .location-filter-expand-trigger {
        background: rgba(148, 163, 184, 0.2);
        border-color: rgba(248, 250, 252, 0.35);
        color: #f8fafc;
    }

    .location-filter-expand-trigger:hover,
    .location-filter-expand-trigger:focus-visible {
        background: rgba(248, 250, 252, 0.3);
        border-color: rgba(248, 250, 252, 0.55);
        color: #0f172a;
    }

    .location-filter-compact-actions .location-filter-change {
        border-color: rgba(248, 250, 252, 0.4);
        color: #f8fafc;
    }

    .location-filter-compact-actions .location-filter-change:hover,
    .location-filter-compact-actions .location-filter-change:focus-visible {
        color: #0f172a;
        background: #f8fafc;
        border-color: #f8fafc;
    }

    /* Dark mode for day groupings */

    .day-group {
        background-color: rgba(59, 130, 246, 0.15);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .day-group:hover {
        background-color: rgba(59, 130, 246, 0.25);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .day-group {
        background-color: rgba(59, 130, 246, 0.15);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .day-group:hover {
        background-color: rgba(59, 130, 246, 0.2);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .day-name {
        color: #63B3ED;
        border-bottom-color: rgba(99, 179, 237, 0.3);
    }

    .league-names {
        color: #F8FAFC !important;
    }

    .league-names div {
        color: #F8FAFC !important;
    }

    .league-link,
    .league-link-text,
    .league-link-bullet,
    .league-link-icon {
        color: #F8FAFC !important;
    }

    .league-link:hover,
    .league-link:focus-visible {
        background: rgba(148, 163, 184, 0.2);
    }

    /* Modal dark mode */

    .location-modal-content {
        background-color: var(--surface-1, #1a202c);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .location-modal-header, .location-modal-footer {
        border-color: rgba(255, 255, 255, 0.05);
    }

    .modal-title {
        color: var(--text-primary, #e2e8f0);
    }

    .flippy-cameo {
        background: rgba(255, 255, 255, 0.05);
    }

    .flippy-cameo-text {
        color: var(--text-secondary, #a0aec0);
    }

    .input-group-text {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .form-control {
        background-color: var(--surface-2, #2d3748);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text-primary, #e2e8f0);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    #location-filter-container .btn-outline-secondary i.fa-map-marker-alt {
        animation: none;
    }

    .location-icon, .location-icon-pill {
        animation: none;
    }

    .flippy-image {
        animation: none;
    }
}

/* ============================================
   REFRESHED LOCATION FILTER STYLES (2026)
   Breaking free from card-based patterns
   ============================================ */

/* ------------------------------------------
   Setup State: Inline Prompt
   ------------------------------------------ */
.location-prompt-inline {
    position: relative;
    padding: 1.75rem 0 1.5rem;
    margin: 1rem 0;
    background: linear-gradient(
        135deg,
        rgba(0, 166, 156, 0.03) 0%,
        rgba(0, 104, 186, 0.02) 100%
    );
    border-radius: 0;
}

/* Gradient accent strip at top */
.location-prompt-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--flipt-primary, #00a69c), var(--flipt-secondary, #0068ba));
    border-radius: 2px 2px 0 0;
}

.location-prompt-inline__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

.location-prompt-inline__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 100%;
    margin-bottom: 0.5rem;
}

.location-prompt-inline__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--flipt-primary, #00a69c), var(--flipt-secondary, #0068ba));
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 166, 156, 0.3);
    flex-shrink: 0;
    cursor: help;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-prompt-inline__icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 166, 156, 0.4);
}

.location-prompt-inline__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text-primary, #2d3748);
    margin: 0;
    font-family: 'Karla', sans-serif;
}

.location-prompt-inline__form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.location-prompt-inline__input {
    width: 160px;
    height: 2.75rem;
    border: 2px solid rgba(0, 166, 156, 0.25);
    border-radius: 999px;
    padding: 0 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    background: var(--theme-surface-1, #ffffff);
    color: var(--theme-text-primary, #2d3748);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-prompt-inline__input::placeholder {
    color: var(--theme-text-muted, #94a3b8);
}

.location-prompt-inline__input:focus {
    outline: none;
    border-color: var(--flipt-primary, #00a69c);
    box-shadow: 0 0 0 4px rgba(0, 166, 156, 0.15);
}

.location-prompt-inline__submit {
    height: 2.75rem;
    padding: 0 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--flipt-primary, #00a69c), var(--flipt-secondary, #0068ba));
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 166, 156, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.location-prompt-inline__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 166, 156, 0.35);
}

.location-prompt-inline__submit:active {
    transform: translateY(0);
}

/* Benefit pills - inline badges */
.location-benefit-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.location-benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(0, 166, 156, 0.08);
    color: var(--theme-text-secondary, #4a5568);
    border: 1px solid rgba(0, 166, 156, 0.15);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.location-benefit-pill i {
    color: var(--flipt-primary, #00a69c);
    font-size: 0.75rem;
}

.location-benefit-pill:hover {
    background: rgba(0, 166, 156, 0.12);
    border-color: rgba(0, 166, 156, 0.25);
}

/* Alert for feedback */
.location-prompt-inline__alert {
    flex: 1 1 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: none;
}

.location-prompt-inline__alert.show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ------------------------------------------
   Filtered State: Summary Bar (Pill)
   ------------------------------------------ */
.location-summary-bar {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.location-summary-bar__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-summary-bar__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--flipt-primary, #00a69c), var(--flipt-secondary, #0068ba));
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.location-summary-bar__text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-text-primary, #2d3748);
}

.location-summary-bar__text strong {
    font-weight: 700;
    color: var(--flipt-primary, #00a69c);
}

.location-summary-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-summary-bar__btn {
    height: 2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.location-summary-bar__btn--details {
    background: rgba(0, 166, 156, 0.1);
    color: var(--flipt-primary, #00a69c);
    border: 1px solid rgba(0, 166, 156, 0.2);
}

.location-summary-bar__btn--details:hover {
    background: rgba(0, 166, 156, 0.15);
    border-color: rgba(0, 166, 156, 0.3);
}

.location-summary-bar__btn--change {
    background: transparent;
    color: var(--theme-text-secondary, #64748b);
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
}

.location-summary-bar__btn--change:hover {
    background: var(--theme-surface-2, #f1f5f9);
    color: var(--theme-text-primary, #2d3748);
}

/* Day badges floating beside the bar */
.location-summary-bar__days {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.location-day-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--theme-surface-2, #f1f5f9);
    color: var(--theme-text-secondary, #64748b);
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.08));
    transition: all 0.2s ease;
}

.location-day-badge--active {
    background: linear-gradient(135deg, var(--flipt-primary, #00a69c), var(--flipt-secondary, #0068ba));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 166, 156, 0.3);
}

/* Clickable day badges - scroll to leagues */
.location-day-badge--clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.location-day-badge--clickable:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 166, 156, 0.4);
}

.location-day-badge--clickable:active {
    transform: scale(1.05);
}

.location-day-badge--clickable:focus-visible {
    outline: 2px solid rgba(0, 166, 156, 0.6);
    outline-offset: 2px;
}

/* ------------------------------------------
   Details Overlay Panel
   ------------------------------------------ */
.location-details-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--theme-surface-1, #ffffff);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    max-height: 70vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.location-details-overlay.is-open {
    transform: translateY(0);
}

.location-details-overlay__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.location-details-overlay__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.location-details-overlay__header {
    position: sticky;
    top: 0;
    background: var(--theme-surface-1, #ffffff);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.08));
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.location-details-overlay__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-primary, #2d3748);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-details-overlay__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-2, #f1f5f9);
    color: var(--theme-text-secondary, #64748b);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.location-details-overlay__close:hover {
    background: var(--theme-surface-3, #e2e8f0);
    color: var(--theme-text-primary, #2d3748);
}

.location-details-overlay__body {
    padding: 1.5rem;
}

/* Day groups in overlay - cleaner list style */
.location-details-overlay .leagues-by-day {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-details-overlay .day-group {
    background: var(--theme-surface-2, #f8fafc);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.06));
    flex: none;
    max-width: none;
    margin: 0;
}

.location-details-overlay .day-name {
    color: var(--flipt-primary, #00a69c);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.location-details-overlay .league-names {
    color: var(--theme-text-primary, #2d3748);
}

/* ------------------------------------------
   Responsive: Mobile
   ------------------------------------------ */
@media (max-width: 767px) {
    .location-prompt-inline {
        padding: 1.25rem 0 1rem;
    }

    .location-prompt-inline__header {
        margin-bottom: 0.75rem;
    }

    .location-prompt-inline__icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .location-prompt-inline__title {
        font-size: 1rem;
    }

    .location-prompt-inline__form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .location-prompt-inline__input {
        width: 100%;
    }

    .location-prompt-inline__submit {
        width: 100%;
        justify-content: center;
    }

    .location-benefit-pills {
        justify-content: flex-start;
    }

    .location-summary-bar {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        border-radius: 16px;
    }

    .location-summary-bar__content {
        flex: 1 1 100%;
        justify-content: center;
    }

    .location-summary-bar__icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .location-summary-bar__text {
        font-size: 0.85rem;
    }

    .location-summary-bar__actions {
        flex: 1 1 100%;
        justify-content: center;
    }

    .location-summary-bar__days {
        flex: 1 1 100%;
        justify-content: center;
        order: -1;
    }

    .location-details-overlay {
        max-height: 85vh;
    }
}

/* ------------------------------------------
   Dark Mode
   ------------------------------------------ */
[data-bs-theme="dark"] .location-prompt-inline {
    background: linear-gradient(
        135deg,
        rgba(0, 184, 169, 0.05) 0%,
        rgba(30, 123, 201, 0.03) 100%
    );
}

[data-bs-theme="dark"] .location-prompt-inline__title {
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .location-prompt-inline__input {
    background: var(--theme-surface-2, #334155);
    border-color: rgba(0, 184, 169, 0.25);
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .location-prompt-inline__input::placeholder {
    color: var(--theme-text-muted, #64748b);
}

[data-bs-theme="dark"] .location-benefit-pill {
    background: rgba(0, 184, 169, 0.12);
    color: var(--theme-text-secondary, #cbd5e1);
    border-color: rgba(0, 184, 169, 0.2);
}

[data-bs-theme="dark"] .location-benefit-pill i {
    color: var(--flipt-primary-dark, #00b8a9);
}

[data-bs-theme="dark"] .location-summary-bar {
    background: transparent;
    border: none;
    box-shadow: none;
}

[data-bs-theme="dark"] .location-summary-bar__text {
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .location-summary-bar__text strong {
    color: var(--flipt-primary-dark, #00b8a9);
}

[data-bs-theme="dark"] .location-summary-bar__btn--details {
    background: rgba(0, 184, 169, 0.15);
    color: var(--flipt-primary-dark, #00b8a9);
    border-color: rgba(0, 184, 169, 0.25);
}

[data-bs-theme="dark"] .location-summary-bar__btn--change {
    color: var(--theme-text-secondary, #94a3b8);
    border-color: var(--theme-border-color, rgba(255, 255, 255, 0.1));
}

[data-bs-theme="dark"] .location-summary-bar__btn--change:hover {
    background: var(--theme-surface-2, #334155);
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .location-day-badge {
    background: var(--theme-surface-2, #334155);
    color: var(--theme-text-secondary, #94a3b8);
    border-color: var(--theme-border-color, rgba(255, 255, 255, 0.08));
}

[data-bs-theme="dark"] .location-details-overlay {
    background: var(--theme-surface-1, #1e293b);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .location-details-overlay__header {
    background: var(--theme-surface-1, #1e293b);
    border-bottom-color: var(--theme-border-color, rgba(255, 255, 255, 0.08));
}

[data-bs-theme="dark"] .location-details-overlay__title {
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .location-details-overlay__close {
    background: var(--theme-surface-2, #334155);
    color: var(--theme-text-secondary, #94a3b8);
}

[data-bs-theme="dark"] .location-details-overlay__close:hover {
    background: var(--theme-surface-3, #475569);
    color: var(--theme-text-primary, #e2e8f0);
}

[data-bs-theme="dark"] .location-details-overlay .day-group {
    background: var(--theme-surface-2, #334155);
    border-color: var(--theme-border-color, rgba(255, 255, 255, 0.06));
}

[data-bs-theme="dark"] .location-details-overlay .day-name {
    color: var(--flipt-primary-dark, #00b8a9);
}

[data-bs-theme="dark"] .location-details-overlay .league-names {
    color: var(--theme-text-primary, #e2e8f0);
}

/* =============================================================================
   COMBINED SUMMARY BARS ROW
   Location bar + Shop payout bar on same line (desktop)
   ============================================================================= */

.summary-bars-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0 1rem;
}

/* When location filter is inside the row, remove container behavior */
.summary-bars-row #location-filter-container {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Flatten the d-flex wrapper */
.summary-bars-row #location-filter-container > .d-flex {
    display: contents !important;
}

/* Shop payout module */
.summary-bars-row .home-shop-payout-module {
    margin: 0 !important;
    padding: 0 !important;
}

.summary-bars-row #home-shop-payout-root {
    display: flex;
    align-items: center;
}

/* Hide loading placeholder styling */
.summary-bars-row #home-shop-payout-root > .text-center {
    padding: 0.5rem !important;
}

/* Tablet - keep on one line but tighter */
@media (max-width: 991px) {
    .summary-bars-row {
        gap: 0.75rem;
    }
}

/* Mobile - compact single line */
@media (max-width: 767px) {
    .summary-bars-row {
        gap: 0.5rem;
        padding: 0 1rem;
        justify-content: space-between;
    }

    /* Hide day badges on mobile */
    .summary-bars-row .location-summary-bar__days {
        display: none !important;
    }

    /* Compact location bar - override base mobile styles */
    .summary-bars-row .location-summary-bar {
        gap: 0.5rem;
        margin: 0;
        padding: 0.25rem 0;
        flex-wrap: nowrap !important;
    }

    .summary-bars-row .location-summary-bar__content {
        flex: 0 1 auto !important;
        gap: 0.4rem;
    }

    .summary-bars-row .location-summary-bar__icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
        font-size: 0.7rem !important;
    }

    .summary-bars-row .location-summary-bar__text {
        font-size: 0.75rem !important;
    }

    /* Hide action buttons on mobile */
    .summary-bars-row .location-summary-bar__actions {
        display: none !important;
    }

    /* Compact shop payout - keep on one line */
    .summary-bars-row .home-shop-card {
        gap: 0.5rem;
        flex-wrap: nowrap !important;
        align-items: center;
    }

    /* Hide shop name on mobile */
    .summary-bars-row .home-shop-card__details {
        display: none !important;
    }

    .summary-bars-row .home-shop-card__logo {
        width: 1.5rem;
        height: 1.5rem;
        flex: 0 0 1.5rem;
    }

    .summary-bars-row .home-shop-card__logo-icon {
        font-size: 0.7rem;
    }

    .summary-bars-row .home-shop-card__cta {
        flex-wrap: nowrap !important;
        gap: 0.5rem;
    }

    .summary-bars-row .home-shop-card__amount {
        font-size: 0.85rem;
    }

    .summary-bars-row .home-shop-card__cta-button {
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .summary-bars-row .location-summary-bar__text {
        font-size: 0.7rem;
    }

    .summary-bars-row .home-shop-card__amount {
        font-size: 0.8rem;
    }
}

/* =============================================================================
   LEAGUE LOCATIONS SECTION
   Clean, card-free design for the league map
   ============================================================================= */

.league-locations-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.league-locations-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.league-locations-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 0.25rem 0;
}

.league-locations-subtitle {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    margin: 0;
}

.league-locations-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.league-locations-filter__label {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
}

.league-locations-filter__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.league-locations-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--theme-surface-2, #f1f5f9);
    color: var(--theme-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.league-locations-filter__btn:hover {
    background: var(--flipt-primary, #00a69c);
    color: white;
}

.league-locations-filter__btn i {
    font-size: 0.75rem;
}

.league-locations-map {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--theme-border-color, #e2e8f0);
}

/* Dark mode */
[data-bs-theme="dark"] .league-locations-filter__btn {
    background: var(--theme-surface-2, #334155);
}

[data-bs-theme="dark"] .league-locations-map {
    border-color: var(--theme-border-color, #334155);
}

/* Mobile */
@media (max-width: 576px) {
    .league-locations-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .league-locations-filter {
        align-self: flex-start;
    }

    .league-locations-title {
        font-size: 1.1rem;
    }
}
