* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background: #000;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

#map {
    width: 100%;
    height: 100vh;
}

/* Header Styles */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    padding: 24px;
}

.header-content {
    max-width: 1024px;
    margin: 0 auto;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Info Card */
.info-card {
    position: absolute;
    right: 24px;
    top: 128px;
    bottom: 24px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.info-card.show {
    transform: translateX(0);
}

.info-card-content {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-actions {
    display: flex;
    justify-content: space-evenly;
    margin-top: 3px;
    margin-bottom: 15px;
}

.next-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.next-button:hover {
    background: linear-gradient(135deg, #f9fafb, #e5e7eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.next-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.next-button svg {
    width: 16px;
    height: 16px;
    stroke: #111827;
    stroke-width: 2.2;
}

.prev-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.prev-button:hover {
    background: linear-gradient(135deg, #f9fafb, #e5e7eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.prev-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.prev-button svg {
    width: 16px;
    height: 16px;
    stroke: #111827;
    stroke-width: 2.2;
}

.next-button,
.prev-button {
    justify-content: center;
    align-items: center;
}

.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-button:hover {
    background: #e5e7eb;
}

.place-image {
    width: 100%;
    height: 192px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

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

.place-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.place-category {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 12px;
}

.place-info {
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.info-item svg {
    margin-right: 8px;
}

.scrollable-content {
    flex: 1;
    overflow-y: auto;
}

.place-description {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
}

.place-highlights {
    margin-bottom: 16px;
}

.place-highlights h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.place-highlights ul {
    list-style: none;
}

.place-highlights li {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.place-tips {
    background: #eff6ff;
    border-radius: 8px;
    padding: 12px;
}

.place-tips h4 {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
}

.place-tips p {
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Legend */
.legend {
    position: absolute;
    bottom: 24px;
    left: 24px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 9;
    font-size: 0.9rem;
}

.legend h4 {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #374151;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 12px;
}

.legend-color.red {
    background: #ef4444;
}

.legend-color.blue {
    background: #3b82f6;
}

.legend-color.green {
    background: #10b981;
}

.legend ul.legend-item {
    display: block;
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.legend ul.legend-item li {
    display: block;
    padding-left: 16px;
    position: relative;
    font-size: 0.7rem;
    margin-bottom: 4px;
}

.legend ul.legend-item li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: -2px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.75rem;
}

.legend ul.legend-item li a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.legend ul.legend-item li a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.legend ul.legend-item li:last-child {
    margin-bottom: 0;
}

.maplibregl-popup {
    max-width: none !important;
}

.maplibregl-popup-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    padding: 16px !important;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
    border-top-color: rgba(255, 255, 255, 0.95) !important;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
    border-bottom-color: rgba(255, 255, 255, 0.95) !important;
}

.maplibregl-popup-anchor-left .maplibregl-popup-tip {
    border-right-color: rgba(255, 255, 255, 0.95) !important;
}

.maplibregl-popup-anchor-right .maplibregl-popup-tip {
    border-left-color: rgba(255, 255, 255, 0.95) !important;
}

.maplibregl-popup-close-button {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maplibregl-popup-close-button:hover {
    background-color: rgba(255, 255, 255, 1.2);
}

.maplibregl-ctrl-top-left {
    top: 120px !important;
    left: 0;
}


/* Animations */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.marker-pulse {
    animation: marker-pulse 2s infinite;
}

@keyframes marker-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.arrow-marker {
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.arrow-icon-inner {
    transform: rotate(45deg);
    color: white;
    font-size: 18px;
}

/* Enhanced place marker styles */
.place-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.place-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.place-marker::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.place-marker:hover::after {
    opacity: 1;
}

/* Landing Section */
.landing-section {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            #87CEEB 0%,
            #98E4FF 25%,
            #B8E6FF 50%,
            #FFE4B5 75%,
            #FFA07A 100%);
    z-index: -3;
}

/* Clouds */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    opacity: 0.7;
    animation: float 20s infinite linear;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud-1 {
    width: 80px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation-duration: 25s;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 15px;
}

.cloud-2 {
    width: 100px;
    height: 50px;
    top: 15%;
    left: -120px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.cloud-2::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-2::after {
    width: 40px;
    height: 30px;
    top: -10px;
    right: 20px;
}

.cloud-3 {
    width: 120px;
    height: 60px;
    top: 25%;
    left: -140px;
    animation-duration: 35s;
    animation-delay: -10s;
}

.cloud-3::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 20px;
}

.cloud-3::after {
    width: 50px;
    height: 40px;
    top: -20px;
    right: 25px;
}

.cloud-4 {
    width: 90px;
    height: 45px;
    top: 35%;
    left: -110px;
    animation-duration: 28s;
    animation-delay: -15s;
}

.cloud-4::before {
    width: 55px;
    height: 55px;
    top: -27px;
    left: 12px;
}

.cloud-4::after {
    width: 35px;
    height: 25px;
    top: -8px;
    right: 18px;
}

.cloud-5 {
    width: 110px;
    height: 55px;
    top: 10%;
    left: -130px;
    animation-duration: 32s;
    animation-delay: -20s;
}

.cloud-5::before {
    width: 65px;
    height: 65px;
    top: -32px;
    left: 18px;
}

.cloud-5::after {
    width: 45px;
    height: 35px;
    top: -15px;
    right: 22px;
}

.cloud-6 {
    width: 75px;
    height: 35px;
    top: 30%;
    left: -95px;
    animation-duration: 26s;
    animation-delay: -8s;
}

.cloud-6::before {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 8px;
}

.cloud-6::after {
    width: 30px;
    height: 20px;
    top: -5px;
    right: 12px;
}

@keyframes float {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(100vw + 200px));
    }
}

/* Airplane */
.airplane {
    position: absolute;
    top: 40%;
    left: 20%;
    color: #1e3a8a;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation: airplaneBob 3s ease-in-out infinite;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.airplane.flying {
    transform: translateX(80vw) translateY(60vh) rotate(15deg) scale(0.7);
    opacity: 0.6;
}

@keyframes airplaneBob {

    0%,
    100% {
        transform: translateY(0px) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/*Silhouette of bengaluru positioned*/
.skyline {
    position: absolute;
    bottom: -45px;
    left: 0;
    width: 100%;
    height: 99vh;
    display: flex;
    justify-content: center;
    z-index: -2;
    pointer-events: none;
}

.skyline img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -110px;
    object-fit: cover;
}

.building {
    background: linear-gradient(to top, #2d3748, #4a5568);
    position: relative;
    margin-right: 2px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.building::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 80%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.1) 8px,
            rgba(255, 255, 255, 0.1) 12px);
}

.building-1 {
    width: 80px;
    height: 120px;
}

.building-2 {
    width: 100px;
    height: 150px;
}

.building-3 {
    width: 70px;
    height: 100px;
}

.building-4 {
    width: 120px;
    height: 180px;
}

.building-5 {
    width: 90px;
    height: 130px;
}

.building-6 {
    width: 110px;
    height: 160px;
}

.building-7 {
    width: 85px;
    height: 110px;
}

.building-8 {
    width: 95px;
    height: 140px;
}

/* Landing Content */
.landing-content {
    text-align: center;
    color: #1f3569;
    z-index: 5;
    max-width: 600px;
    padding: 0 20px;
    margin: 0 auto 50px auto;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f3569;
    text-shadow: 0 4px 10px rgba(31, 53, 105, 0.4);
    animation: titleFadeIn 1s ease-out 0.5s both;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #1f3569;
    opacity: 0.9;
    text-shadow: 0 2px 6px rgba(31, 53, 105, 0.3);
    animation: titleFadeIn 1s ease-out 1s both;
}

.cta-button {
    background: rgba(31, 53, 105, 0.8);
    color: #ffffff;
    border: 2px solid rgba(31, 53, 105, 0.8);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    background: #1f3569;
    transform: translateY(-2px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(5px);
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid white;
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: white;
    border-radius: 3px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* Map Section */
.map-section {
    min-height: 80vh;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 830px;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.map-placeholder {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    z-index: 1;
}

.map-placeholder h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.map-placeholder p {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.map-point {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: mapPointPulse 3s ease-in-out infinite;
}

.map-point:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.4);
}

.point-1 {
    animation-delay: 0s;
}

.point-2 {
    animation-delay: 0.5s;
}

.point-3 {
    animation-delay: 1s;
}

.point-4 {
    animation-delay: 1.5s;
}

@keyframes mapPointPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(118, 75, 162, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
    }
}

.map-content h3 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.destination-cards {
    display: grid;
    gap: 20px;
}

.destination-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 10px;
    margin-bottom: 15px;
}

.destination-card h4 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 8px;
}

.destination-card p {
    color: #718096;
    font-size: 0.95rem;
}

/* Places Sidebar */
.places-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-radius: 0 20px 20px 0;
    color: #333;
}

.places-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-sidebar {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.place-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.place-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(4px);
}

.place-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    background-color: #999;
}

.place-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    padding-top: 10px;
}

/* Place Icon */
.place-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    color: #333;
}

/* Toggle Button */
.open-sidebar-btn {
    position: absolute;
    top: 270px;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 10px;
    font-size: 0.9rem;
    color: white;
    background: #007b8b;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.open-sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.open-sidebar-btn i {
    width: 14px;
    height: 14px;
    color: #666;
}

/* Arrrow icons */
#arrow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background-color: white;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    min-width: 100px;
}

.control-btn:hover {
    background-color: #ddfcfd;
    transform: translateY(-2px);
}

.control-btn i {
    width: 20px;
    height: 20px;
}

/* Small circle icon */
.info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ccc;
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-size: 12px;
    user-select: none;
}

/* Tooltip text */
.info-text {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 0;
    background-color: #eee;
    color: #000;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background-color: white;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    min-width: 100px;
}

.back-to-top:hover {
    background-color: #ddfcfd;
    transform: translateY(-2px);
}

.back-to-top i {
    width: 20px;
    height: 20px;
}

.logo-container {
    position: absolute;
    top: 75px;
    left: 75px;
    z-index: 10;
}

.landing-logo {
    width: 180px;
    height: auto;
    display: block;
}

.sub-header {
    font-size: 20px !important;
    font-weight: 800;
    color: white !important;
    text-shadow: 2px 2px 4px black;
}

.title {
    margin-bottom: 0 !important;
}

.info-wrapper {
    position: relative;
    display: inline-block;
}

.info-icons {
    cursor: pointer;
    background: #555;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.info-icons:hover {
    background: #777;
}

.info-popup {
    display: none;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    pointer-events: auto;
    min-width: 77px;
    text-align: left;
}

.info-container {
    position: absolute;
    bottom: 20px;
    right: 10px;
    left: auto;
    z-index: 50;
    font-family: 'Inter', sans-serif;
    padding: 6px 10px;
    border-radius: 8px;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.source-link:hover {
    color: #d1d1d1;
    text-decoration: none;
    transform: translateY(-1px);
}

.source-text {
    font-size: inherit;
    color: inherit;
}

.share-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    color: inherit;
    vertical-align: middle;
}

/* Tablets & Large Mobiles ≤ 1024px */
@media (max-width: 1024px) {
    #map {
        min-height: 600px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .info-card {
        right: 20px;
        top: 120px;
        bottom: 20px;
        width: 300px;
    }

    .legend {
        bottom: 95px;
        left: 20px;
        padding: 14px;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .skyline {
        bottom: -130px;
        height: 85vh;
    }

    .skyline img {
        margin-bottom: -80px;
    }

    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    #arrow-controls {
        gap: 8px;
    }

    .control-btn {
        padding: 10px 18px;
        min-width: 90px;
        font-size: 0.9rem;
    }

    .logo-container {
        top: 50px;
        left: 50px;
    }

    .landing-logo {
        width: 150px;
        height: auto;
    }
}

/* Standard Tablets & Mobiles ≤ 768px */
@media (max-width: 768px) {
    #map {
        height: 100vh;
    }

    .header {
        padding: 16px;
    }

    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

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

    /* Mobile-optimized info card */
    .info-card {
        right: 12px;
        left: auto;
        top: 90px;
        bottom: 80px;
        width: 400px;
        max-width: none;
        border-radius: 12px;
    }

    .info-card-content {
        padding: 20px;
    }

    .place-image {
        height: 160px;
        margin-bottom: 12px;
    }

    .place-name {
        font-size: 1.3rem;
    }

    .info-actions {
        flex-direction: row;
        gap: 8px;
        margin: 12px 0;
    }

    .next-button,
    .prev-button {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .button-text {
        display: none;
    }

    /* Mobile-optimized legend */
    .open-sidebar-btn {
        top: 290px;
        left: 0;
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .legend {
        bottom: 102px;
        left: 12px;
        right: auto;
        max-width: 40vw;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .legend-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .legend-item {
        font-size: 0.75rem;
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .legend-color {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }

    .legend ul.legend-item {
        display: auto;
    }

    .legend-color {
        width: 12px;
        height: 12px;
        margin-right: 8px;
    }

    .legend .legend-item img[alt="Car Icon"] {
        width: 12px !important;
        height: auto !important;
    }

    .legend .legend-item img[alt="Car Icon"]+span {
        padding-left: 2px !important;
        font-size: 0.75rem !important;
    }

    /* Mobile sidebar improvements */
    .places-sidebar {
        width: 280px;
        max-width: 90%;
    }

    .sidebar-btn-text {
        display: block;
    }

    /* Target only Start, Pause, Stop buttons */
    #arrow-controls #startArrowBtn span,
    #arrow-controls #pauseArrowBtn span,
    #arrow-controls #stopArrowBtn span,
    #arrow-controls #back-to-topbtn {
        font-size: 0;
        padding: 12px;
        display: none;
    }

    #arrow-controls #startArrowBtn,
    #arrow-controls #pauseArrowBtn,
    #arrow-controls #stopArrowBtn {
        font-size: 0;
        padding: 6px;
    }

    #arrow-controls #startArrowBtn i,
    #arrow-controls #pauseArrowBtn i,
    #arrow-controls #stopArrowBtn i {
        font-size: 24px;
    }

    #arrow-controls {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .control-btn {
        padding: 10px 16px;
        min-width: 80px;
        font-size: 0.85rem;
        flex: 1;
        max-width: 120px;
    }

    .control-text {
        display: none;
    }

    .skyline {
        bottom: -65px;
        height: 80vh;
    }

    .skyline img {
        margin-bottom: -60px;
    }

    .airplane {
        top: 30%;
        left: 10%;
        transform: scale(0.8);
    }

    .airplane svg {
        width: 50px;
        height: 50px;
    }

    .main-title {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    .cta-button {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .landing-content {
        max-width: 100%;
        padding: 0 16px;
    }

    .versioning {
        bottom: 16px;
        right: 16px;
    }

    .version-details {
        max-width: 250px;
        font-size: 0.8rem;
    }

    .logo-container {
        top: 35px;
        left: 35px;
        justify-content: center;
    }

    .landing-logo {
        width: 130px;
    }
}

/* Small Mobiles ≤ 480px */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }

    .header p {
        font-size: 0.85rem;
    }

    .info-card {
        right: 8px;
        left: 8px;
        top: 80px;
        bottom: 70px;
        width: auto;
    }

    .info-card-content {
        padding: 16px;
    }

    .place-image {
        height: 140px;
    }

    .place-name {
        font-size: 1.2rem;
    }

    .next-button,
    .prev-button {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .open-sidebar-btn {
        top: 300px;
        left: 0;
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .legend {
        bottom: 160px;
        left: 8px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .legend-items {
        gap: 8px;
    }

    .legend-color {
        width: 12px;
        height: 12px;
    }

    .legend-item {
        gap: 4px;
    }

    .legend .legend-item img[alt="Car Icon"] {
        width: 18px !important;
        height: auto !important;
    }

    .legend .legend-item img[alt="Car Icon"]+span {
        padding-left: 5px !important;
        font-size: 0.75rem !important;
    }

    .places-sidebar {
        width: 260px;
        max-width: 95%;
    }

    .sidebar-header {
        padding: 14px 16px;
    }

    .sidebar-header h2 {
        font-size: 1.1rem;
    }

    #arrow-controls {
        bottom: 16px;
        gap: 4px;
    }

    .control-btn {
        padding: 8px 12px;
        min-width: 70px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .control-btn i {
        width: 12px;
        height: 12px;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .skyline {
        bottom: -70px;
        height: 75vh;
    }

    .skyline img {
        margin-bottom: -50px;
    }

    .logo-container {
        top: 40px;
        left: 40px;
        justify-content: center;
    }

    .landing-logo {
        width: 105px;
    }

    .maplibregl-ctrl-top-left {
        top: 150px !important;
        bottom: 100px !important;
        right: 10px !important;
    }
}

/* Extra Small Devices ≤ 360px */
@media (max-width: 380px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .info-card {
        right: 4px;
        left: 4px;
        top: 75px;
        bottom: 65px;
    }

    .legend {
        bottom: 145px;
        left: 4px;
        right: 4px;
        padding: 8px 10px;
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .legend-items {
        flex-direction: column;
        gap: 4px;
    }

    .legend-item {
        min-width: auto;
    }

    .legend .legend-item img[alt="Car Icon"] {
        width: 18px !important;
        height: auto !important;
    }

    .legend .legend-item img[alt="Car Icon"]+span {
        padding-left: 4px !important;
        font-size: 1.1 !important;
    }

    #arrow-controls {
        bottom: 12px;
        gap: 2px;
        padding: 0 4px;
    }

    .control-btn {
        padding: 6px 8px;
        min-width: 60px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .control-btn i {
        width: 14px;
        height: 14px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .places-sidebar {
        width: 240px;
    }

    .open-sidebar-btn {
        top: 300px;
        left: 0;
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .logo-container {
        top: 30px;
        left: 30px;
    }

    .landing-logo {
        width: 90px;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .info-card {
        top: 60px;
        bottom: 60px;
        width: 280px;
    }

    .legend {
        bottom: 60px;
        padding: 10px;
    }

    #arrow-controls {
        bottom: 16px;
    }

    .control-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
}

.mobile-scroll-indicator {
    width: 100%;
    height: 50px;
    background: none;
    cursor: grab;
    touch-action: none;
}

.mobile-scroll-indicator:hover {
    opacity: 0.9;
}

.mobile-scroll-indicator svg {
    stroke: black;
    width: 26px;
    height: 26px;
}

@media (max-width: 768px) {
    .mobile-scroll-indicator {
        width: 40px;
        height: 50px;
        position: fixed;
        right: 2px;
        bottom: auto;
        background: #ffffff;
        border-radius: 20px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        touch-action: none;
        cursor: grab;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .mobile-scroll-indicator svg {
        width: 24px;
        height: 24px;
        stroke: #333333;
    }

    .mobile-scroll-indicator:active {
        cursor: grabbing;
        background: #f5f5f5;
        transform: scale(0.95);
    }
}

@media (min-width: 769px) {
    .mobile-scroll-indicator {
        display: none;
    }
}

/*Target older models*/
@media screen and (min-width: 1024px) and (max-width: 1366px) and (max-height: 768px) {
    .place-info {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 1px;
        padding: 4px 8px;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.8rem;
        line-height: 1.2;
        margin: 0px 0px 2px 0px;
    }

    .info-item svg {
        width: 14px;
        height: 14px;
    }

    .info-actions {
        display: flex;
        justify-content: space-between;
        gap: 2px;
        margin: 2px 3px;
    }

    .info-actions button {
        font-size: 0.7rem;
        padding: 2px 4px;
        border-radius: 9999px;
        min-width: 80px;
        margin-bottom: 5px;
    }

    .prev-button i,
    .next-button i {
        width: 14px;
        height: 14px;
    }

    .scrollable-content {
        padding: 6px 10px;
        max-height: 68vh;
        overflow-y: auto;
    }

    .place-name {
        font-size: 0.85rem;
        font-weight: 500;
        color: #333;
        padding-top: 2px;
        margin-bottom: 2px;
    }

    .place-category {
        margin-bottom: 2px;
        font-size: 0.75rem;
    }

    .place-description,
    .place-tips p,
    .place-highlights ul {
        font-size: 0.7rem;
        line-height: 1.4;
        color: #333;
    }

    .place-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .place-highlights,
    .place-tips {
        margin-bottom: 10px;
    }

    .place-highlights h4,
    .place-tips h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .place-highlights ul {
        padding-left: 16px;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .place-tips p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}