/* Historical Places Frontend Styles */

.historical-places-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.map-filters {
    flex: 0 0 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.map-filters h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.map-filters h4 {
    margin: 20px 0 10px 0;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.filter-categories,
.filter-groups {
    margin-bottom: 20px;
}

.filter-categories label,
.filter-groups label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
}

.filter-categories input,
.filter-groups input {
    margin-right: 8px;
}

#historical-places-map {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#locate-user {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

#locate-user:hover {
    background: #005a87;
}

/* Custom Map Icons */
.custom-div-icon {
    background: transparent;
    border: none;
}

.user-location-icon {
    background: transparent;
    border: none;
}

/* Popup Styles */
.place-popup {
    min-width: 200px;
    max-width: 300px;
}

.place-popup h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.place-popup h3 a {
    text-decoration: none;
    color: #333;
}

.place-popup h3 a:hover {
    color: #0073aa;
}

.place-popup img {
    margin: 10px 0;
    border-radius: 4px;
}

.place-popup p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.place-popup .button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 10px;
}

.place-popup .button:hover {
    background: #005a87;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .historical-places-container {
        flex-direction: column;
    }
    
    .map-filters {
        flex: none;
        order: 2;
        margin-top: 20px;
    }
    
    #historical-places-map {
        height: 400px !important;
        order: 1;
    }
}

/* Single Place Page Styles */
.single-historical-place .place-header {
    margin-bottom: 30px;
}

.single-historical-place .place-meta {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.single-historical-place .place-meta h3 {
    margin-top: 0;
    color: #333;
}

.single-historical-place .place-categories,
.single-historical-place .place-groups {
    margin-bottom: 15px;
}

.single-historical-place .place-categories span,
.single-historical-place .place-groups span {
    font-weight: 600;
    color: #555;
}

.single-historical-place .place-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.single-historical-place .place-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.single-historical-place .place-gallery img:hover {
    transform: scale(1.05);
}

.single-historical-place .place-map {
    height: 400px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 30px 0;
}

.single-historical-place .back-to-map {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
}

.single-historical-place .back-to-map:hover {
    background: #005a87;
    color: white;
}