/* RI Dog Walking Spots Frontend Styles with Leaflet - Modernized */
.ridws-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 25px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ridws-search-sort {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.ridws-search-input,
.ridws-sort-select,
.ridws-filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #000000;
    font-weight: 500;
    min-width: 150px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ridws-search-input:focus,
.ridws-sort-select:focus,
.ridws-filter-select:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.15);
    transform: translateY(-1px);
}

.ridws-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #000000;
    color: #000000;
    padding: 14px 28px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ridws-btn:hover {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ridws-btn.active {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ridws-reset-btn {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    border: 2px solid #6b7280;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.2);
}

.ridws-reset-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #6b7280;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.25);
}

#ridws-map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#ridws-map {
    width: 100%;
    height: 1050px; /* Increased by 50% from 700px */
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

#ridws-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.ridws-spot-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ridws-spot-card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.ridws-spot-card h3 {
    margin: 0 0 12px 0;
    color: #000000;
    font-size: 1.3em;
    font-weight: 700;
}

.ridws-spot-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.ridws-spot-features {
    margin-top: 12px;
    font-size: 0.9em;
    color: #000000;
    font-weight: 500;
}

.ridws-spot-amenities {
    margin-top: 10px;
    font-size: 0.85em;
    color: #6b7280;
}

/* Custom Leaflet Puppy Marker */
.ridws-puppy-marker {
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ridws-puppy-marker:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Leaflet Popup Styles */
.ridws-popup h3 {
    margin: 0 0 12px 0;
    color: #000000;
    font-size: 1.2em;
    font-weight: 700;
}

.ridws-popup p {
    margin: 0 0 12px 0;
    color: #6b7280;
    line-height: 1.5;
}

.ridws-popup-btn {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.ridws-popup-btn:hover {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Modal Styles */
.ridws-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.ridws-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ridws-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #000000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ridws-close:hover {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.ridws-modal h2 {
    margin: 0 0 25px 0;
    color: #000000;
    font-size: 1.6em;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    border-radius: 2px;
}

.ridws-modal-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ridws-modal-description {
    color: #000000;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.ridws-modal-features {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ridws-modal-features h4 {
    margin: 0 0 15px 0;
    color: #000000;
    font-weight: 700;
}

.ridws-modal-features ul {
    margin: 0;
    padding-left: 20px;
    color: #000000;
}

.ridws-modal-amenities {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.ridws-modal-amenities h4 {
    margin: 0 0 15px 0;
    color: #000000;
    font-weight: 700;
}

.ridws-amenity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ridws-amenity-tag {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ridws-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ridws-modal-btn {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ridws-modal-btn:hover {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ridws-modal-btn.share {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #000000;
    border: 2px solid #000000;
}

.ridws-modal-btn.share:hover {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: #ffffff;
}

/* Form Styles */
#ridws-submit-form,
#ridws-edit-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#ridws-submit-form input,
#ridws-submit-form textarea,
#ridws-edit-form input,
#ridws-edit-form textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    font-family: inherit;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#ridws-submit-form input:focus,
#ridws-submit-form textarea:focus,
#ridws-edit-form input:focus,
#ridws-edit-form textarea:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.15);
    transform: translateY(-1px);
}

#ridws-submit-form textarea,
#ridws-edit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.ridws-photo-upload {
    border: 2px dashed #d1d5db;
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.ridws-photo-upload:hover {
    border-color: #9ca3af;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.ridws-photo-upload label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #000000;
}

.ridws-photo-upload input[type="file"] {
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
}

#photo-preview {
    margin-top: 18px;
}

#photo-preview img {
    max-width: 220px;
    max-height: 160px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ridws-amenities {
    border: 2px solid #e5e7eb;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ridws-amenities label:first-child {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
    color: #000000;
}

.ridws-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ridws-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ridws-checkbox-grid label:hover {
    background: rgba(107, 114, 128, 0.05);
}

.ridws-checkbox-grid input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 4px;
}

#ridws-submit-form button[type="submit"],
#ridws-edit-form button[type="submit"] {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: #ffffff;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#ridws-submit-form button[type="submit"]:hover,
#ridws-edit-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Social sharing buttons */
.ridws-social-share {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.ridws-social-btn {
    padding: 10px 18px;
    border: 2px solid #000000;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.ridws-social-btn:hover {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Rating stars */
.ridws-rating {
    display: flex;
    gap: 3px;
    margin: 12px 0;
    align-items: center;
}

.ridws-star {
    color: #fbbf24;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ridws-star.empty {
    color: #d1d5db;
}

.ridws-rating-input {
    display: flex;
    gap: 5px;
    margin: 15px 0;
    align-items: center;
}

.ridws-rating-input .star {
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ridws-rating-input .star:hover,
.ridws-rating-input .star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

/* No results message */
.ridws-no-results {
    text-align: center;
    padding: 50px;
    color: #6b7280;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ridws-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .ridws-search-sort {
        margin-left: 0;
        width: 100%;
    }
    
    .ridws-search-input,
    .ridws-sort-select,
    .ridws-filter-select {
        min-width: auto;
        flex: 1;
    }
    
    .ridws-btn {
        width: 100%;
        text-align: center;
    }
    
    #ridws-map {
        height: 750px; /* Adjusted for mobile */
        border-radius: 16px;
    }
    
    #ridws-list {
        grid-template-columns: 1fr;
    }
    
    .ridws-modal-content {
        width: 95%;
        padding: 25px;
        margin: 20px;
        border-radius: 16px;
    }
    
    .ridws-modal-actions {
        justify-content: center;
    }
    
    .ridws-modal-btn {
        flex: 1;
        text-align: center;
    }
    
    .ridws-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.ridws-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #6b7280;
    font-size: 18px;
}

.ridws-error {
    color: #000000;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e5e7eb;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Override Leaflet default styles to match our theme */
.leaflet-popup-content-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.leaflet-control-zoom a {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaflet-control-zoom a:hover {
    background-color: #000000;
    color: #ffffff;
}

.leaflet-control-zoom {
    border-radius: 8px;
    overflow: hidden;
}