/* Open Studios Frontend Map Styles */

/* Notice Styles */
.open-studios-notice {
    padding: 20px;
    text-align: center;
}

.open-studios-notice .alert {
    padding: 20px;
    border: 1px solid;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
    font-family: Arial, sans-serif;
}

.open-studios-notice .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.open-studios-notice .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.open-studios-notice .alert i {
    margin-right: 10px;
    font-size: 1.2em;
}

.open-studios-notice .alert strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.open-studios-frontend-container {
    display: flex;
    height: auto;
    font-family: Arial, sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}



/* Ensure all text in sidebar is white */
.open-studios-sidebar,
.open-studios-sidebar * {
    color: white !important;
}

.sidebar-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}



/* Weekend Buttons */


.weekend-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: transparent;
    border: 1px solid #666;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    border-radius: 0;
}

.weekend-btn:hover {
    border-color: #EB2044;
    background: rgba(235, 32, 68, 0.1);
}

.weekend-btn.active {
    border-color: #EB2044;
    background: #EB2044;
    color: white;
}

.weekend-btn.active .weekend-label,
.weekend-btn.active .weekend-dates {
    color: white !important;
}

.weekend-label {
    display: block;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-align: center;
}

.weekend-dates {
    display: block;
    font-size: 11px;
    margin-top: 3px;
    color: white !important;
    opacity: 1;
    text-align: center;
}



/* Filters Section */
.sidebar-filters h3 {
    color: white;
    font-size: 16px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.filter-group {
    margin-bottom: 20px;
}

/*.filter-or {
    text-align: center;
    color: white;
    font-size: 12px;
    margin: 15px 0;
    font-style: italic;
}*/

.filter-label {
    display: block;
    color: white !important;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    background: #000000;
    border: 1px solid #666;
    color: white;
    font-size: 13px;
    cursor: pointer;
    border-radius: 0;
    font-family: inherit;
}

.filter-select:focus {
    outline: none;
    border-color: #EB2044;
}

.filter-select option {
    background: #333;
    color: white;
    padding: 8px;
}

/* Custom Dropdown Styles - Matching images 5 & 6 */
.custom-dropdown-container {
    margin-bottom: 15px;
    position: relative;
}

.custom-dropdown {
    position: relative;
    background: transparent;
    border: 1px solid white;
    border-radius: 0;
    cursor: pointer;
    user-select: none;
    width: 280px;
    max-width: 380px; /* Match the width from images 5 & 6 */
}

.dropdown-header {
    color: white;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    padding: 20px 42px 20px 42px;
}

.custom-dropdown:hover .dropdown-header,
.custom-dropdown.active .dropdown-header {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    /*border: 1px solid white;*/
    border-top: none;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 120px; /* Limit height to prevent overlap */
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.custom-dropdown.active .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-item {
    padding: 14px 18px;
    color: white;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #fff;
    transition: background-color 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.dropdown-item:hover {
    background: #EB2044;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.selected {
    background: #EB2044;
    font-weight: 500;
}

/* Custom scrollbar for dropdown */
.dropdown-list::-webkit-scrollbar {
    width: 16px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: #2c3e50;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #EB2044;
    border-radius: 4px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Search Artist By Name Filter Styles - Matching dropdown design */
.search-filter-container {
    margin-bottom: 15px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: transparent;
    border: 1px solid white;
    border-radius: 0;
    width: 280px;
    max-width: 380px;
    cursor: text;
    transition: all 0.3s ease;
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.05);
}

.search-input {
    width: 100% !important;
    padding: 20px 50px 20px 42px !important; /* Extra right padding for clear button */
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    outline: none !important;
    font-family: inherit !important;
    cursor: text !important;
}

.search-input::placeholder {
    color: white !important;
    opacity: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: #000 !important;
    /* padding: 20px 50px 20px 42px !important; */
}

.search-input:focus {
    outline: none !important;
}

.clear-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    border: none !important;
    color: white !important;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: none;
    z-index: 10;
    padding: 20px !important;
}

.clear-search-btn:hover {
    background: #000;
    transform: translateY(-50%) scale(1.1);
}

/* Artist Auto-Suggestion Dropdown Styles */
.artist-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border: 1px solid white;
    border-top: none;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-height: 200px;
    overflow: hidden; /* Remove scrollbar from container */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.artist-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
}

.suggestions-list {
    max-height: 200px;
    overflow-y: auto; /* Only the inner list should scroll */
}

.suggestion-item {
    padding: 12px 18px;
    color: white;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* More subtle border */
    transition: background-color 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-transform: none; /* Override uppercase from search input */
    display: flex;
    align-items: center;
    gap: 12px; /* Space between avatar and name */
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background: #EB2044;
    border-bottom-color: rgba(255, 255, 255, 0.2); /* Slightly more visible on hover */
}

.suggestion-item:last-child {
    border-bottom: none; /* Remove border from last item */
}

/* Suggestion Avatar Styles */
.suggestion-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0; /* Prevent avatar from shrinking */
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s ease;
}

.suggestion-avatar-initial {
    background: linear-gradient(135deg, #EB2044, #ff6b8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.suggestion-item:hover .suggestion-avatar,
.suggestion-item.highlighted .suggestion-avatar {
    border-color: rgba(255, 255, 255, 0.4);
}

.suggestion-name {
    flex: 1; /* Take remaining space */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestions-loading {
    padding: 14px 18px;
    color: #ccc;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    text-transform: none;
}

.suggestions-empty {
    padding: 14px 18px;
    color: #888;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    text-transform: none;
}

/* Custom scrollbar for suggestions */
.suggestions-list::-webkit-scrollbar {
    width: 16px;
}

.suggestions-list::-webkit-scrollbar-track {
    background: #2c3e50;
}

.suggestions-list::-webkit-scrollbar-thumb {
    background: #EB2044;
    border-radius: 4px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

.filter-or {
    text-align: center;
    color: white;
    font-size: 12px;
    margin: 15px 0;
    font-style: italic;
}

/* Download Buttons */
.sidebar-downloads {
    margin-top: 15px;
    /* padding-top: 20px; */
}

.download-btn {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: transparent;
    border: 1px solid #EB2044;
    color: #EB2044;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 0;
    font-family: inherit;
}

.download-btn:hover {
    background: #EB2044;
    /*color: white;*/
}

.download-btn i {
    margin-right: 6px;
    font-size: 10px;
}

/* Artist List Notice */
.artist-list-notice {
    /* padding-top: 15px; */
    /* border-top: 1px solid #444; */
    /* margin-top: 15px; */
}

/*.artist-list-notice p {
    color: #ccc;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}*/

/* Map Container */
.open-studios-map-container {
    flex: 1;
    position: relative;
    background: #f5f5f5;
}

#openStudiosMap {
    width: 100%;
    height: 100%;
}

/* Map Loading */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    z-index: 5;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #EB2044;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Info Window Styles */
.studio-info-window {
    max-width: 300px;
    padding: 15px;
}

.studio-info-header {
    border-bottom: 2px solid #EB2044;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.studio-info-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.studio-info-artist {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.studio-info-details {
    margin-bottom: 10px;
}

.studio-info-details p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #555;
}

.studio-info-details strong {
    color: #333;
}

.studio-availability {
    background: #f8f9fa;
    padding: 8px;
    margin-top: 10px;
    border-radius: 4px;
}

.studio-availability h6 {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.availability-times {
    font-size: 11px;
    color: #555;
}

/* Notice Styles */
.open-studios-notice {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .open-studios-frontend-container {
        flex-direction: column;
        height: auto;
    }
    
    .open-studios-sidebar {
        width: 100%;
        height: auto;
    }
    
    .open-studios-map-container {
        height: 400px;
    }
    
    .weekend-btn {
        text-align: center;
    }
}

/* Additional styling fixes */
.open-studios-frontend-container * {
    box-sizing: border-box;
}

/* Ensure full width for parent containers */
.wp-block-group__inner-container,
.entry-content,
.site-content {
    max-width: none !important;
    width: 100% !important;
}

/* Override theme constraints */
body .open-studios-frontend-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    z-index: 1;
}

/* Force full width regardless of parent containers */
.page-content .open-studios-frontend-container,
.entry-content .open-studios-frontend-container,
.content-area .open-studios-frontend-container,
.site-main .open-studios-frontend-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Custom Map Controls */
.map-filter-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-size: 12px;
    color: #333;
    z-index: 1000;
}

/* Studio count display */
.studio-count {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
}

/* iPad Air */
@media only screen and (min-width: 820px) and (max-width: 1180px) {
    .open-studios-sidebar {
        width: 100% !important;
        height: auto;
    }
    .sidebar-downloads {
        margin-top: 0px !important; 
    }
}
 
 /* iPad Mini */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .open-studios-sidebar {
        width: 100% !important;
        height: auto;
    }
}
