/* Hero Section Styles */
.camp-search-hero {
    background: var(--global-palette8);
    padding: 2rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.camp-search-hero-content {
    max-width: var(--global-kb-width, 1290px);
    margin: 0 auto;
}

.kb-search-actions {
    text-align: left;
  }
  
.camp-search-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--global-palette3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.camp-search-helper-text {
    font-size: 1rem;
    color: var(--global-palette3);
    margin-top: 1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .camp-search-hero {
        padding: 3rem 1rem;
    }

    .camp-search-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .camp-search-helper-text {
        font-size: 0.9rem;
    }
}

/* Button Filter for Advanced Search */
    .kb-event-type-filter {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }

    .kb-advanced-search-container .kb-event-type-filter .kb-event-type-btn {
        padding: 10px 22px;
        border-radius: 8px;
        border: 1px solid #dbdddf;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
        background-color: var(--global-palette9); 
        color: var(--global-palette5) !important;
        text-transform: capitalize;
        font-size: 14px;
        letter-spacing: 0.025rem;
    }
  
  .kb-advanced-search-container .kb-event-type-filter .kb-event-type-btn:hover {
      background-color: #E3E7FD;
      border: 1px solid var(--global-palette6);
      color: var(--global-palette4);
  }
  
  .kb-advanced-search-container .kb-event-type-filter .kb-event-type-btn.active {
    background-color: #E3E7FD;
    color: var(--global-palette3) !important;
    border: 1px solid var(--global-palette5);
  }
  
  .kb-advanced-search-container .kb-event-type-filter .kb-event-type-btn.active:hover {
      background-color: #E3E7FD;
  }

  .kb-event-type-btn.btn-camps {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  .kb-event-type-btn.btn-clinics {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

/* Basic Search Results */
.camp-search-results {
    max-width: 100%;
    margin: 0 auto;
    padding: 4px;
}

/* Search Results Divider */
.search-results-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    justify-content: center;
    text-align: center;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background-color: #e0e0e0;
    max-width: 150px;
}

.divider-text {
    margin: 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--global-palette4);
    padding: 8px 15px;
    background-color: #F0F4F7;
    border-radius: 13px;
    margin-top: 10px;
}

/* Style for the alternative activities divider - new styles, not changing existing ones */
.activities-divider .divider-text {
    color: #2D4F9E;
    background-color: #EEF2FC;
}

.activities-divider .divider-line {
    background-color: #CFD8F2;
}

@media (max-width: 767px) {
    .search-results-divider {
        margin: 25px 0;
    }
    
    .divider-line {
        max-width: 60px;
    }
    
    .divider-text {
        font-size: 16px;
        margin: 0 12px;
        padding: 6px 12px;
    }
}

/* Basic Search Form Styles */
.kb-camp-search-container {
    max-width: var(--global-kb-width, 1290px);
    margin: 2rem auto;
    padding: 0 var(--global-kb-spacing, 2rem);
}

.kb-search-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.kb-location-input {
    flex: 1;
    min-width: 200px;
    padding: 0.7em 1em;
    border: 1px solid var(--global-palette3);
    border-radius: 0.25rem;
}

.kb-radius-select {
    width: 120px;
    padding: 0.7em 1em;
    border: 1px solid var(--global-palette3);
    border-right: none; 
    border-left: none; 
}

.kb-search-button {
    background: var(--global-palette1);
    color: white;
    padding: 0.7em 2em;
    width: 190px;
    border: none;
    border-bottom-right-radius: 50px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top-right-radius: 50px !important;
    border-radius: 0;
}

.kb-search-button:hover {
    background: var(--global-palette2);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

#location-input {
    border-bottom-left-radius: 50px;
    border-top-left-radius: 50px;
    padding-left: 24px;
}

@media (max-width: 768px) {
    .kb-search-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    #location-input {
        width: 100%;
        border-radius: 100px !important;
        padding: 12px 24px;
    }

    #radius-select {
        width: 100%;
        background: white;
        padding: 12px 24px;
        border: 1px solid var(--global-palette3);
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        -webkit-appearance: none;
        appearance: none;
        transform: translateZ(0);
    }
   
    .kb-search-button {
        width: 100% !important;
        background: var(--global-palette1);
        color: white;
        border: none;
        border-radius: 50px !important;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .kb-search-button:hover {
        background: var(--global-palette2);
    }
}

/* Advanced Search Form Styles */
.kb-advanced-search-container {
    max-width: var(--global-kb-width, 1290px);
    margin: 2rem auto;
    padding: 0 var(--global-kb-spacing, 2rem);
    position: relative;
}

.kb-advanced-search-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.kb-advanced-search-form .kb-filter-group {
    flex: 1;
    min-width: 0;
}

.kb-advanced-search-form .kb-location-group {
    display: flex;
    flex: 2;
    min-width: 0;
}

.kb-advanced-search-form .kb-submit-group {
    flex: none;
    margin-left: auto;
}

.kb-advanced-search-form .kb-location-input {
    width: 100%;
    padding: 0.7em 1em;
    border-top: 1px solid #E1E8F1;
    border-bottom: 1px solid #E1E8F1;
    border-left: 1px solid #E1E8F1;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    height: 50px;
    background: white;
}

/* Select Input Base Styles */
.kb-advanced-search-form select {
    width: 100%;
    padding: 0.7em 1em;
    border: none;
    border-top: 1px solid #E1E8F1;
    border-bottom: 1px solid #E1E8F1;
    border-radius: 0;
    background: white;
    height: 50px;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5em;
    cursor: pointer;
}

.kb-advanced-search-form .kb-search-button {
    background: #F82249;
    color: white;
    padding: 0.7em 2em;
    min-width: 190px;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-weight: 600;
    height: 50px;
    font-size: 1rem;
    white-space: nowrap;
    margin: 0;
}

.kb-advanced-search-form .kb-search-button:hover {
    background: #d91238;
}

/* Mobile Styles - Base styles for all mobile breakpoints */
@media (max-width: 1062px) {
    .kb-advanced-search-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .kb-filter-group {
        width: 100%;
    }

    .kb-location-group {
        flex-direction: column;
        min-width: auto;
        gap: 12px;
    }

    /* Base mobile input styles that will be inherited by all smaller breakpoints */
    .kb-location-input,
    .kb-radius-input,
    .kb-radius-wrapper,
    .kb-age-select,
    .kb-type-select,
    .kb-search-button,
    .kb-advanced-search-form select,
    #location-input,
    #radius-select {
        width: 100%;
        border-radius: 12px !important;
        background: white;
        border: 1px solid #E1E8F1;
        margin: 0;
        min-height: 48px;
        padding: 0 16px;
    }

    .kb-search-button {
        margin-top: 8px;
        border: none;
    }
}

/* Clear Search Link Styles */
.kb-clear-search {
    position: relative;
    margin-left: 0;
    display: inline-block;
    margin-bottom: 12px;
}

.kb-clear-search:hover {
    color: #d91238;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .kb-clear-search {
        text-align: left;
        margin: 8px 0 12px;
    }
}

/* Modern Action Menu Dropdown Styling */
.kb-advanced-search-form select option {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 12px;
    color: #24292f;
    background: #ffffff;
    border: none;
    position: relative;
    cursor: pointer;
    font-weight: 400;
}

/* Hover and focus states */
.kb-advanced-search-form select option:hover,
.kb-advanced-search-form select option:focus {
    background: #f6f8fa;
    color: #24292f;
}

/* Selected state */
.kb-advanced-search-form select option:checked {
    background: #f6f8fa;
    color: #24292f;
    font-weight: 500;
}

/* Focus state for the select */
.kb-advanced-search-form select:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

/* Search Card Styles */
.camp-search-card {
    background: #ffffff;
    border: 1px solid #CDD6E1;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.camp-search-card:hover {
    border-color: var(--global-palette3);
}

.camp-search-card.highlighted,
.camp-search-card.selected {
    border-color: var(--global-palette3);
    box-shadow: 0 0 0 2px var(--global-palette3), 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Card Header */
.camp-search-card .card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

/* Main Header Wrapper */
.camp-search-card .header-main-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

/* Left Content */
.camp-search-card .header-left-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Title Group */
.camp-search-card .header-title-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.camp-search-card .camp-title {
    color: #001A5C;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
}

/* Details Box */
.camp-search-card .header-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

/* Badges Section */
.camp-search-card .header-badges-row {
    display: flex;
    align-items: center;
}

.camp-search-card .badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Badge styles */
.camp-search-card .badge-results {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 0 !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02rem;
    white-space: nowrap;
    overflow: hidden;
}

.badge-text {
    padding: 2px 8px;
}

.badge-count {
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-primary {
    background-color: transparent;
    color: white;
}

.badge-primary .badge-text {
    background-color: #002F87;
}

.badge-primary .badge-count {
    background-color: #001a5c;
}

.badge-clinic {
    background-color: transparent;
    color: white;
}

.badge-clinic .badge-text {
    background-color: rgb(149, 125, 6);
}

.badge-clinic .badge-count {
    background-color: #6C5B09;
}

/* Age badge styling */
.badge-age {
        display: inline-flex;
        background: rgba(0, 38, 112, 0.18);
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
}

.badge-age .badge-text {
    background-color: #d8dfe9;
    color: #002670 !important;
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .camp-search-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        border: 1.5px solid #CFD8E6;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .camp-search-card:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .camp-search-card .header-main-wrapper {
        display: block;
        width: 100%;
    }

    .camp-search-card .header-left-content {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .camp-search-card .header-title-group {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .camp-search-card .camp-title {
        display: block;
        width: 100%;
        word-break: break-word;
    }

    .camp-search-card .header-details {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }

    .camp-search-card .badges-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        width: 100%;
    }
}

/* Location Section - Updated card layout */
.camp-search-card .location-section {
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
}

.camp-search-card .location-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

/* Mobile adjustments for flexbox layout */
@media (max-width: 768px) {
    .camp-search-card .location-section {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: 12px;
    }
    
    .camp-search-card .location-info {
        margin-bottom: 12px;
    }
}

.camp-search-card .site-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.camp-search-card .site-label {
    color: #001A5C;
    font-weight: 600;
}

.camp-search-card .site-name {
    color: #001A5C;
}

.camp-search-card .distance {
    color: #001A5C;
    margin-left: auto;
}

.camp-search-card .address {
    color: #001A5C;
    opacity: 0.7;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.camp-search-card .address svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: relative;
    top: -1px;
}

@media (max-width: 768px) {
    .camp-search-card .address {
        font-size: 14px;
    }
    
    .camp-search-card .address svg {
        width: 16px;
        height: 16px;
    }
}

/* Schedule and Pricing */
.camp-search-card .schedule-pricing-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camp-search-card .schedule-section {
    color: #001A5C;
    font-size: 16px;
    font-weight: 500;
}

.camp-search-card .pricing-section {
    display: flex;
    gap: 12px;
}

.camp-search-card .price-option {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1.5px solid var(--global-palette3);
    background: var(--global-palette3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: normal;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}

.camp-search-card .price-option:hover {
    background: #001b55;
    color: #ffffff;
    border-color: #001b55;
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .camp-search-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .camp-search-card .price-option {
        -webkit-appearance: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-tap-highlight-color: transparent;
    }

    .camp-search-card .header-main-wrapper,
    .camp-search-card .schedule-pricing-wrapper,
    .camp-search-card .pricing-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Force hardware acceleration */
    .camp-search-card .price-option {
        will-change: transform;
    }

    /* Ensure proper text rendering */
    .camp-search-card .price-option {
        text-rendering: optimizeLegibility;
    }
}

/* Mobile adjustments */
@media (max-width: 1062px) {
    .camp-search-card {
        padding: 16px;
    }

    .header-pin {
        margin-top: 2%;
    }

    .camp-search-card .header-left {
        flex-direction: column;
        gap: 8px;
    }

    .camp-search-card .badges {
        margin-left: 44px;
    }

    .camp-search-card .schedule-pricing-wrapper {
        display: block;
        width: 100%;
        margin-top: 16px;
    }

    .camp-search-card .schedule-section {
        margin-bottom: 16px;
        width: 100%;
        display: block;
    }

    .camp-search-card .pricing-section {
        display: block;
        width: 100%;
    }

    .camp-search-card .price-option {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        padding: 12px;
    }

    .camp-search-card .price-option:last-child {
        margin-bottom: 0;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .camp-search-card {
        padding: 20px;
    }

    .camp-search-card .schedule-pricing-wrapper {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* Two Column Layout */
.camp-search-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 var(--global-kb-spacing, 2rem);
}

/* Results Column */
.camp-search-results-column {
    overflow-y: auto;
}

.results-count {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--global-palette3);
    margin-bottom: 1.5rem;
}

/* Map Column */
.camp-search-map-column {
    position: relative;
    display: block;
}

.camp-search-map {
    position: sticky !important;
    top: 10%;
    width: 100%; /* Adjust as needed */
    min-height: 650px;
    max-height: 850px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 6rem;
}


/* Responsive Layout */
@media (max-width: 1024px) {
    .camp-search-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .camp-search-map {
        position: relative;
        top: 0;
        height: 400px;
        min-height: auto;
    }
}

.kb-advanced-search-form .kb-radius-input {
    width: 120px;
    padding: 0.7em 1em;
    border: none;
    border-top: 1px solid #E1E8F1;
    border-bottom: 1px solid #E1E8F1;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    background: white;
    height: 50px;
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
    transform: translateZ(0); /* Safari rendering fix */
}

/* Remove spinner for Chrome/Safari/Edge */
.kb-advanced-search-form .kb-radius-input::-webkit-outer-spin-button,
.kb-advanced-search-form .kb-radius-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Safari-specific fixes */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .kb-advanced-search-form .kb-radius-input {
            border-radius: 0 !important;
            -webkit-appearance: none;
        }
    }
}

@media (max-width: 1062px) {
    .kb-advanced-search-form .kb-radius-input {
        width: 100%;
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
        border: 1px solid #E1E8F1;
        padding: 0 16px;
        margin: 0;
        height: 48px;
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Add focus states for all devices */
.kb-advanced-search-form .kb-location-input:focus,
.kb-advanced-search-form .kb-radius-select:focus,
.kb-advanced-search-form .kb-radius-input:focus,
.kb-advanced-search-form .kb-age-select:focus,
.kb-advanced-search-form .kb-type-select:focus {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--global-palette3) !important;
    outline: none;
    border-radius: inherit;
}

/* Specific focus state for location input to maintain left rounded corners */
.kb-advanced-search-form .kb-location-input:focus {
    border-radius: 50px 0 0 50px !important;
}

@media (max-width: 1062px) {
    .kb-advanced-search-form .kb-location-input:focus,
    .kb-advanced-search-form .kb-radius-input:focus,
    .kb-advanced-search-form select:focus {
        border-radius: 12px !important;
    }
}

/* Spots Warning */
.camp-search-card .spots-warning {
    color: #a15817;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(248, 154, 34, 0.18);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02rem;
    line-height: 1.4;
}

/* Radius Unit Styles */
.kb-location-group {
    position: relative;
}
.radius-unit {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
}

@media (max-width: 1062px) {
    .radius-unit {
        top: auto;
        bottom: 4px;
        right: 43px;
    }
}

/* Pin Number */
.camp-search-card .pin-number {
    background: #F82249;
    color: #ffffff;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Badge styles */
.camp-search-card .badge-type {
    background: rgba(0, 38, 112, 0.18);
    color: #002670;
}

.camp-search-card .badge-age {
    background: rgba(0, 38, 112, 0.18);
    color: #002670;
    border: none;
}

/* More Details Link - restored original styles */
.camp-search-card .more-details-link {
    color: #001A5C;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.camp-search-card .more-details-link:hover {
    color: #F82249;
}

/* Header Details */
.camp-search-card .header-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.camp-search-card .distance {
    color: #001A5C;
    font-size: 14px;
    opacity: 0.7;
}

/* Remove old distance styles */
.camp-search-card .site-info .distance {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .camp-search-card .header-details {
        align-items: flex-start;
    }
}

.map-tooltip {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 300px;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.camp-number {
    background: #E63946;
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

.camp-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1D3557;
}

.tooltip-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge-results {
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-primary {
    background:  var(--global-palette3);
    color: var(--global-palette9);
}

.badge-clinic {
    background-color: #957D06;
    color: white;
}

.badge-secondary {
    background: #457B9D;
    color: white;
}

.spots-notice {
    background: #FFF3EA;
    color: #995D24;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.camp-location,
.camp-schedule {
    color: #4A4A4A;
    margin-bottom: 0.5rem;
}

.details-button {
    display: inline-block;
    background: #E63946;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

.details-button:hover {
    background: #D1343F;
}

@media (max-width: 768px) {
    .camp-search-layout {
        padding: 0 var(--global-kb-spacing, 0rem) !important;
    }
}

/* Date Picker Styles */
.kb-date-wrapper {
    position: relative;
    width: 100%;
}

input[type="date"].kb-date-select {
    width: 100%;
    padding: 0.7em 1em;
    border: none;
    border-top: 1px solid #E1E8F1;
    border-bottom: 1px solid #E1E8F1;
    border-radius: 0;
    background: white;
    height: 50px;
    font-size: 1rem;
    appearance: none;
    padding-right: 1em;
    cursor: pointer;
    color: #24292f;
}

/* Calendar icon styling */
input[type="date"].kb-date-select::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    color: #24292f;
}

/* Date text styling */
input[type="date"].kb-date-select::-webkit-datetime-edit {
    color: #24292f;
}

input[type="date"].kb-date-select::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

/* Placeholder styling */
input[type="date"].kb-date-select:not(:valid) {
    color: #6e7781;
}

/* Focus state - match other inputs */
input[type="date"].kb-date-select:focus {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--global-palette3) !important;
    outline: none;
    border-radius: inherit;
}

/* Mobile styles */
@media (max-width: 1062px) {
    input[type="date"].kb-date-select {
        width: 100%;
        border-radius: 12px !important;
        background: white;
        border: 1px solid #E1E8F1;
        margin: 0;
        height: 48px;
        padding: 0 16px;
    }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .camp-search-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .camp-search-card .price-option {
        -webkit-appearance: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .camp-search-card .header-main-wrapper,
    .camp-search-card .schedule-pricing-wrapper,
    .camp-search-card .pricing-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Ensure proper text wrapping in Safari */
.camp-search-card .camp-title,
.camp-search-card .site-name,
.camp-search-card .address {
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}


.search-radius-warning {
    padding: 18px;
    background: var(--global-palette8);
    border-radius: 8px;
    margin-bottom: 24px;
  }

  .search-radius-warning h6{
    font-size: 20px;
    margin-bottom: 2px;
  }

/* Date Filter Styles */
.search-date-filter {
  background-color: #f7f9fc;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.date-filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.date-range-inputs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.date-field-group {
  display: flex;
  flex-direction: column;
}

.date-field-group label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--global-palette4);
}

.date-filter-input {
  border: 1px solid var(--global-palette7);
  border-radius: 4px;
  padding: 8px 12px;
  min-width: 160px;
  font-size: 14px;
  color: var(--global-palette3);
  background-color: white;
  height: 40px;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* Safari-specific fixes */
input[type="date"].date-filter-input {
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  -webkit-appearance: none;
  background-color: white;
  text-indent: 5px;
  display: inline-block;
  visibility: visible;
}

/* Fix the calendar icon display on Safari */
input[type="date"].date-filter-input::-webkit-calendar-picker-indicator {
  color: var(--global-palette3);
  opacity: 1;
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  right: 0;
}

/* Fix for Safari mobile to ensure text is visible */
input[type="date"].date-filter-input::-webkit-datetime-edit {
  color: var(--global-palette3);
  display: block;
  min-height: 20px;
}

/* Fix for date picker fields being empty/invisible until tapped */
input[type="date"].date-filter-input::-webkit-datetime-edit-fields-wrapper {
  color: var(--global-palette3);
  min-height: 20px;
  padding: 0;
}

.date-filter-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-filter-submit {
    background-color: var(--global-palette3);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 12px;
  }

.date-filter-submit:hover {
  background-color: var(--global-palette2);
}

.date-filter-clear {
  color: var(--global-palette5);
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.date-filter-clear:hover {
  color: var(--global-palette1);
}

@media (max-width: 768px) {
  .date-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .date-range-inputs {
    width: 100%;
  }
  
  .date-field-group {
    flex: 1;
  }
  
  .date-filter-input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 16px;
    padding: 10px 12px;
  }
  
  input[type="date"].date-filter-input {
    font-size: 16px;
    height: 44px;
    line-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .date-filter-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .date-filter-submit {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 16px;
  }
}

/* Date range message when no events found in range */
.date-range-message {
  margin-bottom: 20px;
}

.date-range-message .alert {
  background-color: #e6f3ff;
  border: 1px solid #cce5ff;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--global-palette5);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.date-range-message .alert::before {
  content: "ℹ️";
  margin-right: 10px;
  font-size: 16px;
}

/* Expanded search message styling */
.search-expanded-message {
  margin-bottom: 20px;
}

.search-expanded-message .alert {
  background-color: #e6ebff;
  border: 1px solid #ceccff;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--global-palette5);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.search-expanded-message .alert::before {
  content: "🔍";
  margin-right: 10px;
  font-size: 16px;
}

.search-expanded-message .alert span {
  display: none;
}

.search-expanded-message .alert p {
  margin: 0;
}

@media (max-width: 768px) {
  .date-range-message .alert,
  .search-expanded-message .alert {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .search-expanded-message .alert p {
    margin: 0;
  }
}

.kb-advanced-search-form select,
.kb-age-select,
.kb-type-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    transform: translateZ(0); /* Safari rendering fix */
}

/* Safari-specific fixes for all select elements */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        select,
        .kb-age-select,
        .kb-type-select,
        .kb-radius-select,
        #radius-select {
            border-radius: 0 !important;
            -webkit-border-radius: 0 !important;
            -webkit-appearance: none !important;
            appearance: none !important;
            background-color: white !important;
        }
    }
}

/* Override for mobile styles */
@media (max-width: 1062px) {
    select,
    .kb-age-select,
    .kb-type-select,
    .kb-radius-select,
    #radius-select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        border-radius: 0 !important;
        -webkit-border-radius: 0 !important;
    }
}

/* Add search card styling for event counts */
.select-site {
    margin-top: 5px;
    margin-bottom: 5px;
}

.multi-events-count {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: var(--global-palette1);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.category-title-container {
    display: flex;
    align-items: start;
    margin-right: 10px;
    margin-bottom: 6px;
}

/**DUPLICATE FOUND HERE keep this one*/
.category-count {
    font-size: 14px;
    color: #4a5568;
    margin-left: 6px;
    font-weight: 500;
}

/* Existing badge styling - adjust to match info window */
.badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-results {
    display: flex;
    align-items: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.badge-text {
    padding: 4px 12px;
}

.badge-count {
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.badge-primary {
    background-color: #002F87;
    color: white;
}

.badge-primary .badge-count {
    background-color: rgba(255, 255, 255, 0.2);
}

.badge-clinic {
    background-color: #AA8D3E;
    color: white;
}

.badge-clinic .badge-count {
    background-color: #6C5B09;
}

/* Map Info Window Styles */
.map-info-window {
    padding: 15px;
    font-family: var(--global-body-font-family);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.map-info-window.multi-events {
    min-width: 300px;
    max-width: 380px;
}

.cluster-info-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.multi-events-title {
    margin-bottom: 10px;
}

/* Updated Events Count with gradient background */
.multi-events-count {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: rgb(175, 35, 65);
    background: -webkit-linear-gradient(135deg, rgb(175, 35, 65) 0%, rgb(27, 59, 228) 100%);
    background: -moz-linear-gradient(135deg, rgb(175, 35, 65) 0%, rgb(27, 59, 228) 100%);
    background: linear-gradient(135deg, rgb(175, 35, 65) 0%, rgb(27, 59, 228) 100%);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    -webkit-font-smoothing: antialiased;
}

.info-address {
    font-size: 16px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* Categories in info window */
.event-category-accordion {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
}

.category-header {to csss
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f7fa;
    padding: 12px 15px;
    cursor: pointer;
}

/* Camp and Clinic badges in info window */
.category-name {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
    color: white;
    margin-right: 10px;
}

/* Camp style */
.category-name.badge-primary {
    background-color: #002F87;
}

/* Clinic style */
.category-name.badge-clinic {
    background-color: #AA8D3E;
}

/* Age ranges in info window */
.category-age-range {
    background-color: #E9EDF5;
    color: #4A5D84;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

/* Category info wrapper */
.category-title-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.category-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

/*.category-count {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}*/

.category-arrow {
    font-size: 12px;
    color: #555;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    border-top: 1px solid #e0e0e0;
}

/* View Details Button in Info Window */
.view-details-button {
    text-align: right;
    margin-top: 12px;
}

.view-details {
    display: inline-block;
    background-color: #992649;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.view-details:hover {
    background-color: #7d1d3b;
}

/* Show on map button */
.multi-events-count.show-on-map {
    font-size: 14px;
    color: white;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: #F82249;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: 4px;
}

.multi-events-count.show-on-map:hover {
    background-color: #d91238;
    color: white;
}

/* Actions div for Select Site CTA */
.camp-search-card .actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.camp-search-card .select-site .select-cta {
    display: inline-block;
    background-color: var(--global-palette1);
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 100px;
    text-decoration: none;
    transition: background-color 0.2s;
    letter-spacing: 0.025rem;
}

.camp-search-card .select-site .select-cta:hover {
    background-color: var(--global-palette1);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .camp-search-card .actions {
        justify-content: center;
    }
    
    .camp-search-card .select-site .select-cta {
        width: 100%;
        text-align: center;
        padding: 6px 12px;
    }
}

/* Hide event type filter buttons but keep clear search link */
/* .kb-event-type-btn {
    display: none !important;
} */

/* Adjust positioning of clear search link when buttons are hidden */
.kb-clear-search {
    position: relative;
    margin-left: 0;
    display: inline-block;
    margin-bottom: 12px;
    top: 6px;
    margin-left: 12px;
}

/* Add responsive styling for clear search link */
@media (max-width: 768px) {
    .kb-clear-search {
        text-align: left;
        margin: 8px 0 12px;
    }
}

/* Additional Map Info Window Components */
.info-multiple-sites {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-style: italic;
}

.info-schedule {
    font-size: 14px;
    color: #002F87;
    margin-bottom: 15px;
    font-weight: 500;
}

.schedule-info {
    display: flex;
    gap: 8px;
    margin: 4px 0 0;
  }

/* Search Card Schedule Info Styling */
.camp-search-card .schedule-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #002F87;
    margin-top: 8px;
    font-weight: 500;
}

.camp-search-card .schedule-info svg {
    margin-right: 8px;
    flex-shrink: 0;
}
