body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

#map {
    height: 100%;
    width: 100%;
}

#panorama {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
}

#close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    color: #222;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

#close-button:hover {
    background: #007bff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.popup-description {
    font-size: 14px;
    margin-bottom: 10px;
}

.view-3d-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

.view-3d-button:hover {
    background-color: #0056b3;
}

#modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 70%;
    max-width: 1100px;
    min-width: 260px;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    z-index: 1001;
    overflow: hidden;
    border: 2px solid #fff;
    height: auto;
}

#modal-content {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.7;
    padding: 32px 32px 10px 32px;
    color: #1a2a33;
    text-align: center;
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modal-content h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #097000;
    letter-spacing: 0.5px;
}

#modal-content .subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 28px;
    font-weight: 400;
}

#modal-content hr {
    width: 60%;
    max-width: 340px;
    border: none;
    border-top: 2px solid #fff;
    margin: 28px auto 24px auto;
    opacity: 1;
    border-radius: 2px;
}

.attraction-icons {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin: 32px 0 18px 0;
}

.attraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.attraction img {
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
}

.attraction p {
    font-size: 1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px 18px 32px;
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.07);
    margin-top: 8px;
    gap: 18px;
    flex-direction: column;
}

.close-btn#close-modal {
    background: linear-gradient(90deg, #38d46a 0%, #2bbf5c 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 12px 80px;
    margin: 0 auto 10px auto;
    box-shadow: 0 4px 18px rgba(56,212,106,0.13);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    display: block;
    letter-spacing: 0.5px;
}

.close-btn#close-modal:hover {
    background: linear-gradient(90deg, #2bbf5c 0%, #38d46a 100%);
    color: #fff;
    box-shadow: 0 6px 28px rgba(56,212,106,0.22);
}

.modal-footer .dont-show-again {
    font-size: 1rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 33.33vw;
    height: 100vh;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(5px) saturate(1.0);
    -webkit-backdrop-filter: blur(5px) saturate(1.0);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.4s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    border-left: 2px solid #fff;
}

.info-panel.open {
    right: 0;
}

.info-panel-content {
    display: flex;
    flex-direction: column;
}

.close-info-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 10px;
}

#info-title {
    font-size: 20px;
    margin-bottom: 10px;
}

#info-description {
    font-size: 16px;
    line-height: 1.5;
}

.popup-content {
    max-width: 200px;
    padding: 15px;
    font-family: Arial, sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.0);
    border: 2px solid #fff;
    border-radius: 10px;
    position: relative;
    left: 55%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    padding-top: 12x;
}

.popup-content h3 {
    text-align: center;
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #333;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-content p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
    text-align: center;
}

.popup-buttons {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.popup-buttons button {
    flex: 1;
    padding: 6px 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.view-3d-button {
    background-color: #007bff;
    color: white;
}

.view-3d-button:hover {
    background-color: #0056b3;
}

.more-info-button {
    background-color: #28a745;
    color: white;
}

.more-info-button:hover {
    background-color: #1e7e34;
}

#map-controls,
#map-controls-light {
    position: absolute;
    padding: 10px;
    bottom: 60px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.10);
    border: 2px solid #fff;
}

#map-controls img, 
#map-controls-light img {
  display: block;
  width: 25px;
  height: auto;
  margin: 3px 0;
  cursor: pointer;
}

#map-controls img:hover,
#map-controls-light img:hover {
  opacity: 0.7;
}

#filter-menu {
    font-family: 'Poppins', sans-serif;
    position: absolute;
    bottom: 5px;
    left: 5px;
    z-index: 1000;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
    background: rgba(255,255,255,0.10);
    border: 2px solid #fff;
}

#filter-menu label {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 0.95rem;
}

#filter-menu label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 2px solid #222;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    display: inline-block;
    vertical-align: middle;
}

#filter-menu label input[type="checkbox"]:checked {
    background-color: #fff;
    border-color: #222;
}

#filter-menu label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #222;
    border-radius: 50%;
    display: block;
    transform: translate(-50%, -50%);
}

.hidden {
    display: none !important;
  }

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: rgba(255,255,255,0.0) !important;
    box-shadow: none !important;
}

.leaflet-popup-content-wrapper {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    background: rgba(255,255,255,0.0) !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.popup-content::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 14px solid #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.10));
    z-index: 2;
}

#search-bar-container {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    width: 340px;
    background: rgba(255,255,255,0.22);
    border: 2.5px solid #e0f7ef;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(56,212,106,0.10), 0 1.5px 8px rgba(0,0,0,0.08);
    padding: 8px 18px 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: width 0.35s cubic-bezier(.4,1,.6,1), background 0.2s, left 0.25s, box-shadow 0.2s;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

#search-bar-container:hover,
#search-bar-container.expanded {
    width: 520px;
    background: rgba(255,255,255,0.32);
    box-shadow: 0 10px 40px rgba(56,212,106,0.18), 0 2px 16px rgba(0,0,0,0.13);
}

#search-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

#search-bar-icon svg {
    width: 22px;
    height: 22px;
    display: inline-block;
    opacity: 0.85;
    stroke: #097000;
    filter: drop-shadow(0 1px 2px rgba(56,212,106,0.08));
}

#search-bar {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255,255,255,0.28);
    color: #1a2a33;
    outline: none;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 4px rgba(56,212,106,0.07);
    transition: background 0.2s, box-shadow 0.2s;
}

#search-bar:focus {
    background: rgba(255,255,255,0.38);
    box-shadow: 0 2px 12px rgba(56,212,106,0.13);
}

#search-bar::placeholder {
    color: #097000;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 0.2px;
}

#search-results {
    margin-top: 14px;
    background: transparent;
    border-radius: 12px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    position: relative;
    box-shadow: none;
    padding: 0 2px;
}

#search-results .search-result {
    max-width: 320px;
    margin: 0 auto 18px auto;
    padding: 15px 18px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
    color: #097000;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #e0f7ef;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(56,212,106,0.10);
    font-weight: 500;
    text-shadow: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border 0.15s;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-results .search-result:hover {
    background: rgba(56,212,106,0.10);
    color: #1a2a33;
    transform: scale(1.045);
    box-shadow: 0 8px 28px rgba(56,212,106,0.22);
    border: 2.5px solid #38d46a;
}

#search-results .search-result:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -9px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(56,212,106,0.13) 0%, rgba(255,255,255,0.08) 100%);
    opacity: 0.7;
}

#search-bar-container {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    width: 340px;
    background: rgba(255,255,255,0.10);
    border: 2px solid #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: width 0.35s cubic-bezier(.4,1,.6,1), background 0.2s, left 0.25s, box-shadow 0.2s;
}

#search-bar-container:hover,
#search-bar-container.expanded {
    width: 520px;
    left: 50%;
    background: rgba(255,255,255,0.18);
    box-shadow: 0 4px 24px rgba(0,0,0,0.16);
}

#search-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#search-bar-icon svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    opacity: 0.9;
    stroke: #111;
}

#search-bar {
    width: 100%;
    padding: 6px 8px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255,255,255,0.18);
    color: #111;
    outline: none;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s;
}

#search-bar::placeholder {
    color: #111;
    opacity: 0.7;
    font-weight: 400;
}

#search-results {
    margin-top: 14px;
    background: transparent;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    position: relative;
    box-shadow: none;
    padding: 0 2px;
}

#search-results .search-result {
    max-width: 240px;
    margin: 0 auto 18px auto;
    padding: 15px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #333;
    background: rgba(255,255,255,0.0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    font-weight: 500;
    text-shadow: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border 0.15s;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-results .search-result:hover {
    background: rgba(255,255,255,0.18);
    color: #111;
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    border: 2.5px solid #007bff;
}

#search-results .search-result:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -9px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
    opacity: 0.7;
}

@keyframes chicken-bounce {
    0% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    }
    10% {
        transform: scale(1.15, 0.85) translateY(-10px);
    }
    20% {
        transform: scale(0.95, 1.1) translateY(-25px);
    }
    30% {
        transform: scale(1.05, 0.95) translateY(-10px);
    }
    40% {
        transform: scale(1.02, 1.02) translateY(-5px);
    }
    50% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    }
}

.popup-content.chicken-bounce {
    animation: chicken-bounce 0.7s cubic-bezier(.25,1.5,.5,1) both;
    z-index: 9999;
}

@keyframes bubble-pop {
    0% {
        transform: scale(0.7, 0.3) translateY(40px);
        opacity: 0.5;
        box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    }
    40% {
        transform: scale(1.08, 1.12) translateY(-10px);
        opacity: 1;
    }
    60% {
        transform: scale(0.96, 1.04) translateY(0);
    }
    80% {
        transform: scale(1.03, 0.97) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    }
}

.popup-content.bubble-pop {
    animation: bubble-pop-horizontal 0.7s cubic-bezier(.25,1.5,.5,1) both;
    z-index: 9999;
    transform-origin: bottom center;
}

@keyframes bubble-pop-horizontal {
    0% {
        transform: scale(0.5, 0.3) translateY(40px);
        opacity: 0.5;
        box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    }
    30% {
        transform: scale(1.15, 0.7) translateY(-10px);
        opacity: 1;
    }
    60% {
        transform: scale(0.95, 1.08) translateY(0);
    }
    80% {
        transform: scale(1.04, 0.97) translateY(0);
    }
    100% {
        transform: scale(1, 1) translateY(0);
        opacity: 1;
        box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    }
}

.leaflet-popup-content .leaflet-popup-close-button,
.popup-content .leaflet-popup-close-button,
.leaflet-popup-close-button {
    position: absolute;
    top: 12px !important;
    right: 2px !important;
    width: 15px !important;
    height: 15px !important;
    font-size: 1.7rem !important;
    line-height: 20px !important;
    border-radius: 50% !important;
    color: #222 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    opacity: 0;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s !important;
    animation: show-x-btn 0.3s linear 0.4s forwards;
}

@keyframes show-x-btn {
    to {
        opacity: 0.97;
    }
}