
.navigation-panel {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.5s ease-in-out;
    z-index: 1000;
    padding: 20px;
    padding-bottom: 120px; 
    overflow-y: auto;
    max-height: calc(100vh - 120px); 
}

.navigation-panel.active {
    right: 0;
}

/* Force panel to stay visible when active */
.app-container:not(.hidden) .navigation-panel.active {
    right: 0 !important;
}

.destination-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.destination-item {
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.destination-item:hover {
    transform: translateX(-5px);
    background: #f0f7ff;
}

.destination-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.destination-name {
    font-weight: 500;
    color: #333;
}

.panel-header {
    padding: 10px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1.2em;
    color: #1f2937;
    margin: 0;
}

.intro-bubble {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;  
    min-width: 450px;  
    opacity: 0;
    z-index: 1001;
    border: 3px solid #4285f4;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.intro-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: #4285f4 transparent transparent;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.mappy-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    text-align: center;
}

.mappy-icon {
    font-size: 2rem;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.mappy-signature {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-style: italic;
    color: #4285f4;
    font-size: 0.9rem;
}

/* Add animations */
@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.intro-bubble.active {
    opacity: 1;
    animation: 
        bubblePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        bubbleFloat 3s ease-in-out infinite 0.5s;
}


/* Destination Info Panel Styles */
.destination-info-panel {
    position: fixed;
    left: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-radius: 12px;
    max-width: 350px;
    min-width: 250px; 
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform-origin: top left;
    transition: all 0.3s ease-out;
}

.destination-info-panel.active {
    opacity: 1;
    transform: translateY(0);
}

.destination-info-panel.closing {
    opacity: 0;
    transform: translateY(-20px);
}

.info-header {
    background: #4285f4;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.info-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Close button styles */
.close-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.8;
    margin-left: 5px;
}

.close-btn:hover {
    opacity: 1;
}

/* Button container */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Content styles */
.info-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 12px 12px;
}

.subtitle {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.description {
    margin-bottom: 20px;
    line-height: 1.5;
}

.features {
    margin-bottom: 20px;
}

.feature-item {
    margin: 8px 0;
    color: #333;
}

.promo-message {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    color: #4285f4;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
}

.cta-button {
    width: 100%;
    padding: 12px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: #3367d6;
}

/* Active state for destination items */
.destination-item.active {
    background: #e8f0fe;
    border-left: 4px solid #4285f4;
    transform: translateX(-5px);
}

/* Minimized state styles */
.destination-info-panel.minimized {
    transform: translate(0, 0) scale(1); /* Reset scale to 1 */
    max-height: 60px;
    overflow: hidden;
    background: #4285f4; /* Match header background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.destination-info-panel.minimized .info-header {
    border-radius: 12px; /* Make header rounded when minimized */
}

.destination-info-panel.minimized .info-content {
    display: none; /* Hide content when minimized */
}

.destination-info-panel.minimized:hover {
    max-height: none;
    overflow: visible;
    background: rgba(255, 255, 255, 0.95);
}

.destination-info-panel.minimized:hover .info-content {
    display: block;
}


.toggle-minimize {
    background: transparent;
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

/* Arrow transformation states */
.toggle-minimize::before {
    content: '▲';
    display: block;
    transition: transform 0.3s ease;
}

.toggle-minimize:hover {
    opacity: 1;
}

.destination-info-panel.minimized .toggle-minimize::before {
    transform: rotate(180deg);  /* Rotate the triangle when minimized */
}

.action-buttons {
    padding: 15px;
    margin-top: 20px;  
    border-top: 1px solid #eee;
}

.special-action-btn {
    width: 100%;
    background: linear-gradient(45deg, #4285f4, #34a853);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;  
    font-size: 14px;      
    padding: 12px 20px;   
}

.special-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #357abd, #2d8f47);
}

.special-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}