/* Térkép szekció stílusok - Látnivalók oldal */

.map-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.map-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.map-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.map-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.map-section-title i {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.map-section-subtitle {
    font-size: 1.125rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.map-wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.map-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-header-left h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map-header-left p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.map-header-right {
    display: flex;
    gap: 0.75rem;
}

.map-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.map-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .map-content {
        flex-direction: row;
    }
}

.map-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: var(--gray-100);
}

@media (min-width: 1024px) {
    .map-container {
        width: 66.666%;
        min-height: 700px;
    }
}

#attractionsMap {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

@media (min-width: 1024px) {
    #attractionsMap {
        min-height: 700px;
    }
}

.map-sidebar {
    width: 100%;
    background: white;
    border-top: 1px solid var(--border-color);
    max-height: 600px;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .map-sidebar {
        width: 33.333%;
        border-top: none;
        border-left: 1px solid var(--border-color);
        max-height: 700px;
    }
}

.map-sidebar-content {
    padding: 1.5rem;
}

.map-search {
    margin-bottom: 1.5rem;
}

.map-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.map-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.1);
}

.map-search-wrapper {
    position: relative;
}

.map-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 1.25rem;
}

.map-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 0.25rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.map-search-clear.visible {
    display: flex;
}

.map-search-clear:hover {
    color: var(--text-color);
}

.map-categories {
    margin-bottom: 1.5rem;
}

.map-categories-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.map-category-chip {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nunito', sans-serif;
}

.map-category-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.map-category-chip.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.1);
}

.map-category-chip i {
    font-size: 1rem;
}

.map-results-count {
    padding: 0.75rem 1rem;
    background: rgba(244, 208, 63, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.map-poi-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-poi-item {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.map-poi-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.map-poi-item.active {
    border-color: var(--primary-color);
    background: rgba(244, 208, 63, 0.05);
}

.map-poi-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.map-poi-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.map-poi-info {
    flex: 1;
}

.map-poi-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.map-poi-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--text-color);
}

.map-poi-description {
    font-size: 0.875rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-poi-details {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(244, 208, 63, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.map-poi-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.map-poi-details-close {
    background: rgba(244, 208, 63, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.map-poi-details-close:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 208, 63, 0.3);
}

.map-poi-coordinates {
    font-size: 0.875rem;
    font-family: monospace;
    color: var(--text-color);
    background: white;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    z-index: 1000;
}

.map-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.map-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--light-text);
}

.map-empty-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.map-empty-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-empty-subtext {
    font-size: 0.875rem;
}

/* Leaflet popup testreszabása */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-family: 'Nunito', sans-serif;
    background: white !important;
}

[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: var(--gray-100) !important;
}

.leaflet-popup-content {
    margin: 1rem;
}

.custom-popup-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937 !important;
    margin-bottom: 0.5rem;
}

/* Dark mode támogatás - erősebb szabályokkal */
html[data-theme="dark"] .custom-popup-title,
[data-theme="dark"] .custom-popup-title,
body[data-theme="dark"] .custom-popup-title {
    color: #f3f4f6 !important;
}

.custom-popup-category {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.custom-popup-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.custom-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Custom marker stílusok */
.custom-marker {
    background: none;
    border: none;
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}

/* Dark mode támogatás */
[data-theme="dark"] .map-wrapper {
    background: var(--gray-100);
}

[data-theme="dark"] .map-sidebar {
    background: var(--gray-100);
    border-color: var(--border-color);
}

[data-theme="dark"] .map-poi-item {
    background: var(--card-background);
    border-color: var(--border-color);
}

[data-theme="dark"] .map-search-input {
    background: var(--input-background);
    border-color: var(--input-border);
    color: var(--text-color);
}

/* Reszponzív */
@media (max-width: 768px) {
    .map-section {
        padding: 2rem 0;
    }

    .map-section-container {
        padding: 0 1rem;
    }

    .map-section-title {
        font-size: 2rem;
    }

    .map-header {
        padding: 1rem;
    }

    .map-header-left h3 {
        font-size: 1.25rem;
    }

    .map-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .map-container {
        min-height: 400px;
    }

    #attractionsMap {
        min-height: 400px;
    }

    .map-sidebar {
        max-height: 400px;
    }
}
