/**
 * MAP INFO PANEL - Bottom panel with logo, titles, and action buttons
 * Vertical layout (Variant B)
 */

/* Base panel styles - extend existing om-info-panel */
.om-info-panel {
    width:550px;
    margin-left:calc(50% - 275px);
	left: 0;
	position: fixed;
	bottom: 4px;
	overflow-y: hidden;
	transition: 0.5s;
	background: rgb(255, 255, 255); /* Fallback for older browsers without RGBA-support */
	background: rgba(255, 255, 255, 0.9);
	text-align: center;

	border-radius: 1.2rem;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Content area (logo + text) */
.om-info-panel-content {
    display: flex;
    align-items: center;
    padding: 6px 15px;
    gap: 15px;
}

/* Logo */
.om-info-panel-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.om-info-panel-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25),
                0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Text content */
.om-info-panel-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    align-items: flex-start;
}

/* Floor name (multi-floor) */
.om-info-panel-floor {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

/* Map name */
.om-info-panel-map {
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
    margin: 0;
}

/* Map name for single-floor (larger) */
.om-info-panel-map.single-floor {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Establishment name */
.om-info-panel-establishment {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    margin: 0;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action bar */
.om-info-panel-actions {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 0 0 1.2rem 1.2rem;
    overflow-x: auto;
    user-select: none;
}

.om-info-panel-actions .btn {
    flex-shrink: 0; /* Changed from flex: 1 */
    min-width: fit-content; /* Ensure buttons don't collapse */
    font-size: 0.9rem;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.om-info-panel-actions .btn i,
.om-info-panel-actions .btn .material-icons {
    font-size: 18px;
    line-height: 1;
}

/* Location info panel styles */
 .om-location-panel {
	width: calc(100% - 4px);
	left: 0;
	position: fixed;
	bottom: 4px;
	overflow-y: hidden;
	transition: 0.5s;
	background: rgb(255, 255, 255); /* Fallback for older browsers without RGBA-support */
	background: rgba(255, 255, 255, 0.9);
	text-align: center;
	padding:5px;
	margin: 0 2px;
	border-radius: 1.2rem;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  }

    .om-location-panel-content {
		padding: 15px;
	}

	.om-location-panel-header {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.om-location-panel-icon {
		width: 60px;
		height: 60px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #9e9e9e;
		border-radius: 50%;
		flex-shrink: 0;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
	}

	.om-location-panel-icon i {
		width: 70%;
		height: 70%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 30px;
		color: white;
	}

	.om-location-panel-title-wrapper {
		flex: 1;
	}

	.om-location-panel-title {
		font-size: 1.1rem;
		font-weight: 600;
		color: #333;
	}

	.om-location-panel-close {
		background: none;
		border: none;
		font-size: 20px;
		color: #666;
		cursor: pointer;
		padding: 4px 8px;
		flex-shrink: 0;
		align-self: flex-start;
	}

	.om-location-panel-close:hover {
		color: #333;
	}

	.om-location-panel-body {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.om-location-accessibility-level {
		font-size: 0.9rem;
		color: #666;
	}

	.om-location-accessibility-note {
		background: #d4edda;
		color: #155724;
		padding: 8px 12px;
		border-radius: 4px;
		font-size: 0.9rem;
		border-left: 3px solid #28a745;
		margin: 0 25px;
	}

	.om-location-plan-name {
		font-size: 1.15rem;
		color: #555;
		margin-top: 4px;
	}

	.om-location-panel-actions {
		display: flex;
		gap: 10px;
		padding: 10px 15px;
		border-top: 1px solid #e0e0e0;
		background: rgba(248, 249, 250, 0.8);
		border-radius: 0 0 1.2rem 1.2rem;
		overflow-x: auto;
		user-select: none;
	}

	.om-location-panel-actions .btn {
		flex-shrink: 0;
		min-width: fit-content;
		font-size: 0.9rem;
		padding: 8px 12px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		white-space: nowrap;
	}

	/* Route Panel */
	.om-route-panel-content {
		padding: 15px;
	}

	.om-route-panel-header {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-bottom: 0;
	}

	.om-route-panel-icon {
		width: 60px;
		height: 60px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: #9e9e9e;
		border-radius: 50%;
		flex-shrink: 0;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
	}

	.om-route-panel-icon i {
		width: 70%;
		height: 70%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 30px;
		color: white;
	}

	.om-route-panel-instruction {
		flex: 1;
	}

	.om-route-panel-text {
		font-size: 1.05rem;
		font-weight: 600;
		color: #333;
		line-height: 1.3;
	}

	.om-route-panel-subtitle {
		font-size: 0.95rem;
		color: #666;
		margin-top: 4px;
	}

	.om-route-panel-close {
		background: none;
		border: none;
		font-size: 20px;
		color: #666;
		cursor: pointer;
		padding: 4px 8px;
		flex-shrink: 0;
		align-self: flex-start;
	}

	.om-route-panel-close:hover {
		color: #333;
	}

	.om-route-panel-actions {
		display: flex;
		gap: 10px;
		padding: 10px 15px;
		border-top: 1px solid #e0e0e0;
		background: rgba(248, 249, 250, 0.8);
		border-radius: 0 0 1.2rem 1.2rem;
		overflow-x: auto;
		user-select: none;
		justify-content: space-between;
	}

	.om-route-panel-actions .btn {
		flex-shrink: 0;
		font-size: 0.9rem;
		padding: 8px 16px;
		display: flex;
		align-items: center;
		gap: 6px;
	}

	.om-route-panel-actions .btn-spacer {
		width: 100px;
	}

/* Animation */
@keyframes slideUpBounce {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    70% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.om-info-panel.animate-in {
    animation: slideUpBounce 0.5s ease-out 0.2s both;
}

/* Responsive - Mobile */
@media screen and (max-width: 575px) {
    .om-info-panel {
        width: calc(100% - 8px);
        margin: 0 4px;
    }

    .om-info-panel-content {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .om-info-panel-logo {
        width: 48px;
        height: 48px;
    }
    
    .om-info-panel-floor {
        font-size: 1.1rem;
    }
    
    .om-info-panel-map {
        font-size: 0.95rem;
    }
    
    .om-info-panel-map.single-floor {
        font-size: 1.1rem;
    }
    
    .om-info-panel-establishment {
        font-size: 0.8rem;
    }
    
    .om-info-panel-actions {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .om-info-panel-actions .btn {
        font-size: 0.85rem;
        padding: 6px 10px;
        min-width: 40px;
    }

    /* Location info panel styles */
    .om-location-panel-content {
        padding: 10px 12px;
        gap: 12px;
    }
    .om-location-panel-icon {
        width: 48px;
        height: 48px;
    }
    .om-location-panel-title {
        font-size: 1.1rem;
    }
    .om-location-accessibility-note {
        font-size: 0.85rem;
        margin: 0 15px;
    }
    .om-location-plan-name {
        font-size: 0.8rem;
    }
    .om-location-panel-actions {
        padding: 8px 12px;
        gap: 8px;
    }
    .om-location-panel-actions .btn {
        font-size: 0.85rem;
        padding: 6px 10px;
        min-width: 40px;
    }

    /* Route Panel */
    .om-route-panel-content {
        padding: 10px 12px;
        gap: 12px;
    }
    .om-route-panel-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    .om-route-panel-text {
        font-size: 1rem;
    }
    .om-route-panel-subtitle {
        font-size: 0.85rem;
    }
    .om-route-panel-actions {
        padding: 8px 12px;
        gap: 8px;
    }
    .om-route-panel-actions .btn {
        font-size: 0.85rem;
        padding: 6px 10px;
        min-width: 40px;
    }

}


