/**
 * Public styles for the GeoVee Client plugin
 */

/* Container */
.geovee-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Search Form */
.geovee-search-form {
    margin-bottom: 20px;
}

.geovee-input-group {
    display: flex;
    gap: 10px;
}

.geovee-address-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

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

.geovee-search-button:hover {
    background-color: #005a87;
}

/* Map Container - Modern Google Maps Style */
.geovee-map-container {
    margin-bottom: 20px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.geovee-map {
    height: 200px; /* Slightly larger for better visibility */
    width: 100%;
    border-radius: 12px;
}

/* Results Container */
.geovee-results-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.geovee-results-header {
    background-color: #f9f9f9;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.geovee-results-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.geovee-results-content {
    padding: 15px;
}

.geovee-result-item {
    margin-bottom: 10px;
}

.geovee-result-date {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.geovee-result-time {
    font-size: 16px;
    margin-bottom: 5px;
}

.geovee-result-offer {
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.geovee-result-distance {
    font-size: 14px;
    color: #666;
}

.geovee-results-footer {
    background-color: #f9f9f9;
    padding: 15px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.geovee-next-button {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.geovee-next-button:hover {
    background-color: #005a87;
}

/* Loading Indicator */
.geovee-loading {
    text-align: center;
    padding: 20px;
}

.geovee-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 115, 170, 0.2);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: geovee-spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

.geovee-loading-text {
    color: #666;
}

@keyframes geovee-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error Message */
.geovee-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Font Size Classes */
.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .geovee-input-group {
        flex-direction: column;
    }
    
    .geovee-address-input,
    .geovee-search-button {
        width: 100%;
    }
    
    .geovee-search-button {
        margin-top: 10px;
    }
}