/**
 * Tour Search Public CSS
 */

.tour-search-container {
    max-width: 100%;
    margin: 0 0 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tour-search-form {
    margin-bottom: 20px;
    background-color:#3857F1;
/*    background-color:red;*/
    padding:13px 10px;
}

#tour-search-form {
    display: flex;
    max-width: 700px;
    margin-left:auto;
    margin-right:auto;
}

#tour-search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#tour-search-button {
    padding: 10px 20px;
    background-color: #fff;
    color: #30373e;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

#tour-search-button:hover {
    background-color: #efefef;
}
/* Lightbox Modal Styles */
.tour-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tour-search-modal.active {
    opacity: 1;
    visibility: visible;
}

.tour-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 1;
}

.tour-search-modal-container {
    position: relative;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 30px;
    z-index: 2; /* Higher than overlay */
}

.tour-search-modal.active .tour-search-modal-container {
    transform: translateY(0);
}

.tour-search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    z-index: 10;
    padding: 5px 10px;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}
.tour-search-close:hover {
    background-color: #f1f1f1;
    color: #d63638;
}

.tour-search-loading {
    text-align: center;
    padding: 20px;
}

.tour-search-throbber {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: tour-search-spin 1s infinite linear;
}

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

.tour-search-results-content {
    display: none;
}

.tour-search-results-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.tour-search-result {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tour-search-result:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tour-search-result-title {
    margin-bottom: 5px;
    font-size: 18px;
}

.tour-search-result-title a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.tour-search-result-title a:hover {
    text-decoration: underline;
}

.tour-search-result-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.tour-search-error {
    color: #d63638;
    font-weight: bold;
}
@media (min-width:992px) {
    #tour-search-input {
        padding: 11.5px;
        font-size: 19px;
    }    
    #tour-search-button {
        padding: 11.5px 21px;
        font-size: 19px;
    }
    .tour-search-form {
        padding-top:16px;
        padding-bottom:16px;
    }
}
@media (min-width:1200px) {
    #tour-search-input {
        padding: 13px;
        font-size: 22px;
    }  
    #tour-search-button {
        padding: 13px 22px;
        font-size: 22px;
    }
    .tour-search-form {
        padding-top:20px;
        padding-bottom:20px;
    }    
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    #tour-search-form {
        flex-direction: column;
    }
    
    #tour-search-input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    #tour-search-button {
        border-radius: 4px;
        width: 100%;
    }
    
    .tour-search-modal-container {
        padding: 20px;
        width: 95%;
    }
    
    .tour-search-result-title {
        font-size: 16px;
    }
}

/* Prevent body scrolling when modal is open */
body.tour-search-modal-open {
    overflow: hidden;
}