hotel-ai-widget
Version:
A customizable hotel chat widget for React and vanilla HTML
124 lines (107 loc) • 2.17 kB
CSS
/* Map Section Styles */
.map-section-container {
flex: 1;
padding: 0.5rem;
height: 92vh;
}
.map-marker {
display: flex;
align-items: center;
transition: transform 0.2s ease-in-out;
position: relative;
}
.map-marker.hovered {
transform: scale(1.25);
z-index: 999;
top: -6px;
}
.map-marker:not(.hovered) {
transform: scale(1);
z-index: 10;
top: 0;
}
.map-marker-pin {
width: 2.5rem;
height: 2.5rem;
color: #ef4444;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.map-marker-label {
background-color: white;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
font-size: 0.75rem;
border: 1px solid #e5e7eb;
margin-left: 0.25rem;
white-space: nowrap;
font-weight: 500;
color: #374151;
}
.map-marker.hovered .map-marker-label {
background-color: #2563eb;
color: white;
border-color: #2563eb;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Map Container Styling */
.map-section-container > div {
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Loading State */
.map-loading {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
background-color: #f9fafb;
border-radius: 1rem;
}
.map-loading-spinner {
animation: spin 1s linear infinite;
border-radius: 50%;
height: 2rem;
width: 2rem;
border-top: 2px solid #3b82f6;
border-right: 2px solid transparent;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Responsive Design */
@media (max-width: 768px) {
.map-section-container {
padding: 0.25rem;
height: 50vh;
}
.map-marker-pin {
width: 2rem;
height: 2rem;
}
.map-marker-label {
font-size: 0.625rem;
padding: 0.125rem 0.375rem;
}
.map-marker.hovered {
transform: scale(1.15);
}
}
/* Dark theme support */
@media (prefers-color-scheme: dark) {
.map-marker-label {
background-color: #374151;
color: white;
border-color: #4b5563;
}
.map-marker.hovered .map-marker-label {
background-color: #3b82f6;
border-color: #3b82f6;
}
}