
.map-header{
    height: 60px;
    border-bottom: 1px solid #e0e0e0;
}
.map-header a{
    line-height: 60px;
    padding-left: 20px;
}
.map-header a img{
    width: 40px;
    height: 40px;
}
.map-wrapper{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
}
.map-wrapper #map.markers-map{
    min-width: 60%;
    height: calc(100vh - 60px);
}
.map-wrapper .card-section{
    width: 40%;
    height: calc(100vh - 60px);
}
.map-wrapper .detail-section{
    width: 40%;
    height: calc(100vh - 60px);
    background: #fff;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    top: 60px;
    right: 0;
    transition: all 0.3s ease;
    transform: translateX(100%);
}
.map-wrapper .detail-section.open{
    transform: translateX(0%);
}
.map-wrapper #map.markers-map .map-marker:hover,
.map-wrapper #map.markers-map .map-marker.hover{
    transform: scale(3.0);
    transition: all 0.3s ease;
    /*outline: 0.5px solid black;*/
    /*border: 0.5px solid white;*/

}
.map-wrapper #map.markers-map .map-marker{
    width: 20px;
    height: 20px;
    border: 1px solid white;
    /*outline: 2px solid black;*/
    border-radius: 16px;
    transition: all 0.3s;
}
.map-wrapper #map.markers-map .map-marker img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.map-wrapper #map.markers-map .map-marker.festival img {
    filter: hue-rotate(32deg) brightness(1.35);
}

.map-wrapper #map.markers-map .map-marker.accommodation img {
    filter: hue-rotate(198deg) brightness(1.55);
}

.map-wrapper #map.markers-map .map-marker.tourist img {
    filter: hue-rotate(284deg) brightness(1.25);
}

.card-section {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.filter-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-btn {
    padding: 8px 16px;
    min-width: 90px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: #00c73c;
}

.filter-btn.active {
    background: #00c73c;
    color: #fff;
    border-color: #00c73c;
}

.filter-btn.primary.active {
    background: #00c73c;
    color: #fff;
}

.filter-btn.secondary {
    padding: 6px 12px;
    font-size: 13px;
    background: #f8f9fa;
}

.filter-btn.secondary.active {
    color: #fff;
    border: 1px solid #007641;
    background-color: #007641;
}

.filter-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 0;
    transition: min-height 0.3s ease;
}

.filter-secondary:not(:empty) {
    min-height: 36px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.filter-search-btn {
    padding: 8px 20px;
    border: 1px solid #00c73c;
    background: #00c73c;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-search-btn:hover {
    background: #00a832;
    border-color: #00a832;
}

.filter-reset-btn {
    padding: 8px 16px;
    border: 1px solid #6c757d;
    background: #fff;
    color: #6c757d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-reset-btn:hover {
    background: #6c757d;
    color: #fff;
}

.card-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}
.card.highlight {
    border-color: #00c73c;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(0, 199, 60, 0.2);
}

.card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.card.hover,
.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /*transform: translateY(-2px);*/
    border-color: #00c73c;
}

.card-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-address {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #f5f5f5;
}

.page-btn.active {
    background: #00c73c;
    color: #fff;
    border-color: #00c73c;
}

.page-btn.prev,
.page-btn.next {
    font-weight: bold;
}


.back-btn {
    position: sticky;
    top: 0;
    left: 0;
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    z-index: 10;
}

.back-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.detail-image {
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.detail-content {
    padding: 24px;
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.detail-address {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.detail-description {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}

.detail-description p {
    margin: 0 0 16px 0;
}

.detail-description p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px){
    .map-wrapper{
        flex-direction: column;
    }
    .map-wrapper #map.markers-map{
        min-width: 100%;
        height: calc(60vh - 60px);
    }
    .map-wrapper .card-section{
        width: 100%;
        height: 40vh;
    }
    .map-wrapper .detail-section{
        width: 100%;
        height: 40vh;
        top: 60vh;
    }
}
