/* Atletica Widget - WordPress Plugin CSS */
.atletica-widget-container {
    margin: 20px 0;
}

.atletica-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.atletica-widget .widget-header {
    text-align: center;
    margin-bottom: 20px;
}

.atletica-widget .widget-header h2 {
    color: #2c5aa0;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.atletica-widget .search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .atletica-widget .search-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.atletica-widget .form-group {
    position: relative;
}

.atletica-widget .form-group input,
.atletica-widget .form-group select,
.atletica-widget button {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.atletica-widget .form-group input:focus,
.atletica-widget .form-group select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.atletica-widget button {
    background: #2c5aa0;
    color: white;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.atletica-widget button:hover {
    background: #1e3d6f;
    transform: translateY(-1px);
}

.atletica-widget .view-all-btn {
    background: #28a745;
}

.atletica-widget .view-all-btn:hover {
    background: #1e7e34;
}

.atletica-widget .map-container {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.atletica-widget .loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.atletica-widget .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.atletica-widget .results-list {
    margin-top: 15px;
}

/* Leaflet popup customization */
.leaflet-popup-content {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.leaflet-popup-content h4 {
    margin: 0 0 8px 0;
    color: #2c5aa0;
    font-size: 16px;
    font-weight: 600;
}

.leaflet-popup-content p {
    margin: 4px 0;
}

.leaflet-popup-content a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

/* Custom cluster marker styles */
.marker-cluster-small {
    background-color: rgba(44, 90, 160, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(44, 90, 160, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(44, 90, 160, 0.7);
}

.marker-cluster-medium div {
    background-color: rgba(44, 90, 160, 0.9);
}

.marker-cluster-large {
    background-color: rgba(44, 90, 160, 0.8);
}

.marker-cluster-large div {
    background-color: #2c5aa0;
}

.marker-cluster {
    border-radius: 20px;
}

.marker-cluster div {
    min-width: 30px;
    min-height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 50%;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-medium div {
    min-width: 40px;
    min-height: 40px;
    font-size: 13px;
}

.marker-cluster-large div {
    min-width: 50px;
    min-height: 50px;
    font-size: 14px;
    font-weight: 900;
}

.marker-cluster span {
    line-height: 1;
}

/* Widget-specific overrides */
.widget .atletica-widget {
    padding: 15px;
    margin: 0;
}

.widget .atletica-widget .widget-header h2 {
    font-size: 18px;
}

.widget .atletica-widget .search-form {
    grid-template-columns: 1fr;
    gap: 8px;
}

/* Results summary styling */
.atletica-widget .results-summary {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #2c5aa0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
}

.atletica-widget .results-summary p {
    margin: 0 0 8px 0;
}

.atletica-widget .results-summary button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.atletica-widget .results-summary button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}