/* VenueWise Search Styles */
.venuewise-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.venuewise-search-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.venuewise-search-input:focus {
    border-color: transparent !important;
}

.venuewise-search-results {
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    height: 300px;
    border-top: 1px solid #464646;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    display: flex;
}

.venuewise-venue-item {
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.venuewise-venue-item:hover img {
    filter: brightness(0) saturate(100%) invert(49%) sepia(82%) saturate(800%) hue-rotate(32deg);
}

.venuewise-venue-item:hover .venuewise-venue-title {
    color: #C8D200;
}

.venuewise-venue-item:last-child {
    border-bottom: none;
}

.venuewise-search-results::-webkit-scrollbar {
    width: 10px;
}

.venuewise-search-results::-webkit-scrollbar-thumb {
    background: #363636;
}

.venuewise-search-results::-webkit-scrollbar-track {
    background: #fff;
}

/* Handle on hover */
.venuewise-search-results::-webkit-scrollbar-thumb:hover {
    background: #464646;
}

.venuewise-venue-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    transition: 0.3s all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.global-search-modal__result-icon {
    width: 24px;
    height: 24px;
}

.venuewise-loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.venuewise-no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.venuewise-error {
    color: #dc3545;
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

#venuewiseSearch {
    background: transparent;
    color: #fff;
    padding-left: 50px;
    background: url(https://venuewise.com/blog/wp-content/uploads/2025/07/search2.svg);
    background-repeat: no-repeat;
    background-position: 12px center;
    background-color: #363636;
    border-color: #363636;
}

#venuewiseSearch::placeholder {
    color: #fff;
}

#venuewiseSearchResults {
    position: absolute;
    z-index: 2;
}

.global-search-modal__title {
    display: none;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 40px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .venuewise-search-container {
        max-width: 100%;
    }

    .venuewise-search-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .venuewise-search-results {
        max-height: 300px;
    }
}

/* Animation for results */
.venuewise-search-results.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- VenueWise Modal Styles --- */
.venuewise-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.venuewise-modal {
    background: #232323;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding-top: 8px;
    min-width: 630px;
    max-width: 95vw;
    width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.venuewise-modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.venuewise-modal-close:hover,
.venuewise-modal-close:focus {
    color: #fff;
    background: unset;
}

.venuewise-modal .venuewise-search-input {
    background: transparent;
    color: #fff;
    border-color: transparent;
    padding-left: 60px;
    background-image: url(https://venuewise.com/blog/wp-content/uploads/2025/07/search2.svg);
    background-repeat: no-repeat;
    background-position: 24px center;
    background-size: 18px;
}

.venuewise-modal .venuewise-search-input::placeholder {
    color: #fff;
}

.venuewise-modal .venuewise-search-results {
    margin-top: 10px;
    max-height: 300px;
}

.global-search-modal__footer {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    padding: 8px 24px;
    background: #464646;
    border-radius: 0 0 12px 12px;
}

.global-search-modal__footer-content {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.global-search-modal__help-text {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.global-search-modal__avatar-group {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 3px;
    align-items: center;
}

.global-search-modal__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #99999A;
    aspect-ratio: 1;
}

.global-search-modal__advisor-button {
    color: #c8d200;
    border: 1px solid #c8d200;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 4px;
    transition: 0.3s all;
}

.global-search-modal__advisor-button:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.dialog__bilbilak {
    display: none;
    justify-content: center;
    padding: 1rem 0;
    position: sticky;
    top: 0px;
    width: 100%;
    background: #212324;
    z-index: 2;
}

.dialog__bilbilak:before {
    background: #b3b2b2;
    border-radius: 1rem;
    content: "";
    display: block;
    height: 4px;
    width: 50px;
}

#icon-open-modal {
    display: none;
}
@media screen and (max-width: 600px) {

    .venuewise-modal {
        min-width: 0;
        width: 95vw;
        padding: 16px 4vw 16px 4vw;
    }

    .venuewise-modal-overlay {
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .dialog__spacer {
        min-height: 20vh;
        width: 100%;
    }

    .venuewise-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 0 32px 32px;
    }

    .dialog__bilbilak {
        display: flex;

    }

    .venuewise-modal-close {
        display: none;
    }

    .venuewise-search-input {
        background-position: 0 center !important;
        padding: 0 0 0 30px !important;
    }

    .venuewise-modal .venuewise-search-results {
        max-height: unset;
        height: auto;
        padding: 24px 0;
        min-height: 80dvh;
    }

    .global-search-modal__title {
        display: block;
    }

    .global-search-modal__footer {
        display: none;
    }

    #venuewiseSearch{
        display: none;
    }

    #icon-open-modal {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

/* --- End Modal Styles --- */