/* Search wrapper */
.do-search-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

.do-search-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.do-search-container h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

/* Search form */
.do-search-form {
    margin-bottom: 30px;
}

.do-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.do-search-field {
    display: flex;
    flex-direction: column;
}

.do-search-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
}

.do-search-field input,
.do-search-field select {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.do-search-field input:focus,
.do-search-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.do-search-field input.do-datepicker {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%236c757d" viewBox="0 0 16 16"><path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"/><path d="M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    cursor: pointer;
}

.do-search-submit {
    display: flex;
    align-items: flex-end;
}

.do-search-button {
    padding: 12px 25px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.do-search-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.do-search-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Search results */
.do-search-results {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.do-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.do-results-header h3 {
    margin: 0;
    color: #333;
}

.do-results-count {
    color: #6c757d;
    font-size: 0.9em;
}

.do-search-summary {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    border-left: 4px solid #28a745;
    font-size: 0.95em;
}

.do-search-summary p {
    margin: 0;
}

/* Accommodations grid */
.do-accommodations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.do-accommodation-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.do-accommodation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.do-accommodation-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.do-accommodation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.do-accommodation-card:hover .do-accommodation-image img {
    transform: scale(1.05);
}

.do-no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.do-no-image .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
}

.do-accommodation-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.do-accommodation-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.do-accommodation-description {
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.5;
    flex-grow: 1;
}

.do-accommodation-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #e8f5e9;
    border-radius: 4px;
    color: #28a745;
    font-weight: 600;
}

.do-accommodation-availability .dashicons {
    color: #28a745;
}

.do-view-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.do-view-details-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

.do-view-details-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* No results */
.do-no-results {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.do-no-results p {
    margin: 0;
    font-size: 1.1em;
}

/* Pagination */
.do-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.do-page-button {
    padding: 8px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.do-page-button:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-2px);
}

.do-page-button:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

.do-page-info {
    color: #6c757d;
    font-size: 0.9em;
}

/* Loading state */
.do-search-loading {
    text-align: center;
    padding: 40px;
}

.do-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.do-search-loading p {
    color: #6c757d;
    margin: 0;
}

/* Datepicker customization */
.ui-datepicker {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ui-datepicker-header {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 2px;
    padding: 5px 0;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
}

.ui-datepicker-title {
    font-weight: 600;
}

.ui-datepicker-calendar th {
    color: #6c757d;
    font-weight: 600;
    padding: 5px;
}

.ui-datepicker-calendar td {
    padding: 2px;
}

.ui-datepicker-calendar a {
    text-align: center;
    padding: 5px;
    display: block;
    text-decoration: none;
    color: #495057;
    border-radius: 2px;
}

.ui-datepicker-calendar a:hover {
    background: #0073aa;
    color: white;
}

.ui-datepicker-calendar .ui-state-active {
    background: #28a745;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .do-search-wrapper {
        padding: 10px;
    }
    
    .do-search-container {
        padding: 20px;
    }
    
    .do-search-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .do-accommodations-grid {
        grid-template-columns: 1fr;
    }
    
    .do-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .do-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .do-page-button {
        width: 100%;
    }
}