310 lines
6.6 KiB
CSS
310 lines
6.6 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
html, body {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#map {
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Floating panels on top of the map */
|
|
.floating-panel {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
|
|
z-index: 1000;
|
|
width: 280px;
|
|
}
|
|
|
|
.floating-panel h3 {
|
|
margin-bottom: 10px;
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.floating-panel input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
margin-bottom: 8px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.btn-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-group button, .floating-panel button {
|
|
flex: 1;
|
|
padding: 8px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-group button:hover, .floating-panel button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
/* Modal Styling */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 2000;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
max-width: 450px;
|
|
position: relative;
|
|
box-shadow: 0 5px 25px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.close-btn {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 20px;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
color: #666;
|
|
}
|
|
|
|
.close-btn:hover {
|
|
color: #000;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.form-group input, .form-group select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.submit-btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background-color: #28a745;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.submit-btn:hover {
|
|
background-color: #218838;
|
|
}
|
|
|
|
/* 3D Viewer Overlays (Full Screen) */
|
|
#viewer-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 3000;
|
|
background: black;
|
|
}
|
|
|
|
#panorama-viewer {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#close-viewer-btn {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
padding: 12px 24px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
border: none;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
z-index: 3001;
|
|
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
#close-viewer-btn:hover {
|
|
background: white;
|
|
}
|
|
/* Modal Overlay */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0; left: 0; width: 100%; height: 100%;
|
|
background: rgba(0,0,0,0.7);
|
|
display: flex; align-items: center; justify-content: center;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.modal-content {
|
|
background: #fff;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
width: 90%; max-width: 500px;
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group { margin-bottom: 15px; }
|
|
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
|
|
.form-group input, .form-group textarea, .form-group select {
|
|
width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tab-container { display: flex; gap: 10px; margin-bottom: 10px; }
|
|
.tab-btn {
|
|
flex: 1; padding: 8px; cursor: pointer; border: 1px solid #007bff;
|
|
background: #fff; color: #007bff; border-radius: 4px;
|
|
}
|
|
.tab-btn.active { background: #007bff; color: #fff; }
|
|
|
|
.divider { border-top: 1px dashed #ccc; padding-top: 15px; }
|
|
|
|
.modal-footer {
|
|
display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px;
|
|
}
|
|
|
|
.save-btn { background: #28a745; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; }
|
|
.cancel-btn { background: #6c757d; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; }
|
|
|
|
/* Action Modal Specifics */
|
|
.action-modal-content {
|
|
text-align: center;
|
|
max-width: 400px;
|
|
}
|
|
.action-buttons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin-top: 20px;
|
|
}
|
|
.edit-btn-large, .delete-btn-large {
|
|
padding: 15px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
transition: opacity 0.2s;
|
|
}
|
|
.edit-btn-large { background: #007bff; color: white; }
|
|
.delete-btn-large { background: #dc3545; color: white; }
|
|
.edit-btn-large:hover, .delete-btn-large:hover { opacity: 0.9; }
|
|
.action-modal-content p { color: #666; margin-top: 5px; }
|
|
|
|
/* Scene Callout Bubble Marker */
|
|
.scene-callout {
|
|
background: white;
|
|
border: 3px solid #007bff;
|
|
border-radius: 10px;
|
|
width: 64px;
|
|
height: 64px;
|
|
position: relative;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
|
transition: transform 0.2s ease-in-out;
|
|
display: flex; /* Căn giữa nội dung bên trong */
|
|
cursor: pointer;
|
|
}
|
|
|
|
.scene-img-wrapper {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden; /* Cắt ảnh nếu tràn ra ngoài border-radius */
|
|
border-radius: 7px; /* Bo góc (10px - 3px border) */
|
|
padding: 2px; /* Tạo khoảng hở giữa ảnh và viền xanh */
|
|
}
|
|
|
|
.scene-callout:hover {
|
|
transform: scale(1.1);
|
|
border-color: #0056b3;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.scene-callout img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 5px; /* Bo góc ảnh nhẹ hơn wrapper một chút */
|
|
display: block;
|
|
}
|
|
|
|
.scene-callout::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -12px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border-width: 12px 8px 0;
|
|
border-style: solid;
|
|
border-color: #007bff transparent transparent;
|
|
}
|
|
|
|
/* Custom Tooltip Styling */
|
|
.custom-scene-tooltip {
|
|
background: rgba(0, 0, 0, 0.8) !important;
|
|
color: white !important;
|
|
border: none !important;
|
|
border-radius: 4px !important;
|
|
padding: 8px 12px !important;
|
|
font-size: 13px !important;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
|
|
}
|
|
|
|
.custom-scene-tooltip .scene-hover-info strong {
|
|
font-size: 15px;
|
|
color: #ffd700; /* Màu vàng cho tiêu đề */
|
|
display: block;
|
|
margin-bottom: 3px;
|
|
}
|