/* Map Container */
.wat-map-container {
    margin-bottom: 2em;
}

/* Search Box */
.wat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wat-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wat-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.wat-category-select {
    min-width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.wat-search-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.wat-search-button:hover {
    background-color: #005177;
}
/*.wat-search-only>div {max-height:1px;}*/

/* Search-only container styles */
.wat-search-only {
    max-width: 800px;
    text-align: center;
    padding: 10px 20px;
}

.wat-search-only .wat-search-container {
    justify-content: center;
    margin-bottom: 0;
}

.wat-search-only .wat-search-input {
    max-width: 400px;
}

.wat-search-only .uk-form-icon {
    color:#666;
}
/* Map styles */
.wat-map {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Results styles */
.wat-results {
    margin-top: 20px;
}

.wat-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.wat-business-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.wat-business-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.wat-business-title a {
    color: #0073aa;
    text-decoration: none;
}

.wat-business-title a:hover {
    color: #005177;
}

.wat-business-meta {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.wat-business-rating {
    color: #ffa500;
    margin: 5px 0;
}

.wat-business-address {
    color: #444;
    margin: 5px 0;
}

/* Region archive styles */
.wat-region-header {
    margin-bottom: 30px;
    text-align: center;
}

.wat-region-breadcrumbs {
    margin-bottom: 10px;
    color: #666;
}

.wat-region-breadcrumbs a {
    color: #0073aa;
    text-decoration: none;
}

.wat-region-title {
    font-size: 32px;
    margin: 0 0 15px 0;
}

.wat-region-description {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.wat-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.wat-city-link {
    display: block;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    transition: all 0.2s;
}

.wat-city-link:hover {
    background: #f5f5f5;
    border-color: #0073aa;
}

.wat-business-count {
    color: #666;
    font-size: 14px;
}

/* Loading overlay */
.wat-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.wat-search-overlay.active {
    display: flex;
}

/* Make container position relative for overlay */
.wat-container form {
    position: relative;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wat-search-container {
        flex-direction: column;
    }
    
    .wat-search-input,
    .wat-category-select,
    .wat-search-button {
        width: 100%;
    }
    
    .wat-city-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .wat-search-box {
        flex-direction: column;
    }

    #wat-category {
        width: 100%;
    }

    .wat-results,
    .wat-business-list {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.wat-loading {
    position: relative;
}

.wat-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wat-result-item {
    animation: fadeIn 0.3s ease-in-out;
}

/* Admin Styles */
.wat-api-log table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

.wat-api-log th,
.wat-api-log td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wat-api-log th {
    background-color: #f5f5f5;
}

.wat-api-log tr:hover {
    background-color: #f9f9f9;
}

/* Meta Boxes */
.wat-meta-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.wat-meta-box input[type="text"],
.wat-meta-box input[type="url"],
.wat-meta-box input[type="number"],
.wat-meta-box textarea {
    width: 100%;
    margin-bottom: 10px;
}
