2384 lines
42 KiB
CSS
2384 lines
42 KiB
CSS
/* Reset and Base Styles - Matching MkDocs Material Theme */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
/* Dark theme as default - matching MkDocs Material slate */
|
|
--md-primary-fg-color: #2196f3;
|
|
--md-primary-fg-color--light: #42a5f5;
|
|
--md-primary-fg-color--dark: #1976d2;
|
|
--md-primary-bg-color: #1e1e1e;
|
|
--md-accent-fg-color: #526cfe;
|
|
--md-accent-bg-color: #1e1e1e;
|
|
--md-typeset-color: rgba(255, 255, 255, 0.87);
|
|
--md-code-bg-color: #2d2d2d;
|
|
|
|
/* Secondary colors */
|
|
--secondary: #10b981;
|
|
--secondary-dark: #059669;
|
|
|
|
/* Custom colors */
|
|
--shadow-color: rgba(0, 0, 0, 0.25);
|
|
--shadow-color-heavy: rgba(0, 0, 0, 0.4);
|
|
|
|
/* Backwards compatibility aliases */
|
|
--primary: var(--md-primary-fg-color);
|
|
--primary-dark: var(--md-primary-fg-color--dark);
|
|
--primary-light: var(--md-primary-fg-color--light);
|
|
--background: var(--md-code-bg-color);
|
|
--surface: var(--md-primary-bg-color);
|
|
--text: var(--md-typeset-color);
|
|
--text-light: rgba(255, 255, 255, 0.6);
|
|
--border: #3d3d3d;
|
|
--shadow: 0 1px 3px var(--shadow-color);
|
|
--shadow-lg: 0 10px 15px -3px var(--shadow-color);
|
|
--radius: 8px;
|
|
--radius-lg: 12px;
|
|
}
|
|
|
|
[data-theme="light"] {
|
|
--md-primary-fg-color: #2196f3;
|
|
--md-primary-fg-color--light: #42a5f5;
|
|
--md-primary-fg-color--dark: #1976d2;
|
|
--md-primary-bg-color: #ffffff;
|
|
--md-accent-fg-color: #526cfe;
|
|
--md-accent-bg-color: #ffffff;
|
|
--md-typeset-color: rgba(0, 0, 0, 0.87);
|
|
--md-code-bg-color: #f5f5f5;
|
|
|
|
--shadow-color: rgba(0, 0, 0, 0.15);
|
|
--shadow-color-heavy: rgba(0, 0, 0, 0.25);
|
|
|
|
/* Update aliases for light mode */
|
|
--background: var(--md-code-bg-color);
|
|
--surface: var(--md-primary-bg-color);
|
|
--text: var(--md-typeset-color);
|
|
--text-light: rgba(0, 0, 0, 0.6);
|
|
--border: #e2e8f0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background-color: var(--md-primary-bg-color);
|
|
color: var(--md-typeset-color);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
transition: background-color 0.3s ease, border-color 0.3s ease;
|
|
}
|
|
|
|
.header-content {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 1rem 1.5rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
text-decoration: none;
|
|
color: var(--text);
|
|
font-weight: 700;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.logo-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.nav-link {
|
|
color: var(--text-light);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* Hero Section - Matching MkDocs welcome-message */
|
|
.hero {
|
|
background: var(--md-primary-fg-color--light);
|
|
color: var(--md-primary-bg-color);
|
|
padding: 3rem 1.5rem;
|
|
text-align: center;
|
|
perspective: 1000px;
|
|
box-shadow:
|
|
0 8px 15px var(--shadow-color-heavy),
|
|
0 12px 25px rgba(0,0,0,0.2),
|
|
inset 0 -4px 0px #0D47A1,
|
|
inset 0 -8px 0px #052555;
|
|
}
|
|
|
|
[data-theme="light"] .hero {
|
|
box-shadow:
|
|
0 8px 15px var(--shadow-color),
|
|
0 12px 25px rgba(0,0,0,0.1),
|
|
inset 0 -4px 0px #1565C0,
|
|
inset 0 -8px 0px #0D47A1;
|
|
}
|
|
|
|
.hero-content {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: clamp(1.8rem, 5vw, 2.5rem);
|
|
background: linear-gradient(
|
|
45deg,
|
|
#ffffff 10%,
|
|
#e3f2fd 20%,
|
|
#bbdefb 30%,
|
|
#ffffff 40%,
|
|
#bbdefb 50%,
|
|
#e3f2fd 60%,
|
|
#ffffff 70%
|
|
);
|
|
background-size: 200% auto;
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
text-transform: uppercase;
|
|
font-weight: 900;
|
|
letter-spacing: 2px;
|
|
margin-bottom: 0.75rem;
|
|
animation: shine 8s linear infinite;
|
|
text-shadow:
|
|
1px 1px 0px rgba(0,0,0,0.1),
|
|
2px 2px 0px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
/* Fallback for browsers that don't support background-clip */
|
|
@supports not (-webkit-background-clip: text) {
|
|
.hero h1 {
|
|
color: white;
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
@keyframes shine {
|
|
0% { background-position: 200% 50%; }
|
|
100% { background-position: -200% 50%; }
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1.125rem;
|
|
color: var(--md-primary-bg-color);
|
|
opacity: 0.95;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/* Search Container */
|
|
.search-container {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
padding: 0.875rem 1rem;
|
|
font-size: 1rem;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
outline: none;
|
|
background: var(--md-primary-bg-color);
|
|
color: var(--text);
|
|
}
|
|
|
|
.search-input:focus {
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.search-btn {
|
|
padding: 0.875rem 1.5rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
background: var(--secondary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.search-btn:hover {
|
|
background: #059669;
|
|
}
|
|
|
|
.location-btn {
|
|
padding: 0.875rem 1rem;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.location-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.location-btn.loading {
|
|
cursor: wait;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.location-btn.loading:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
/* Button spinner */
|
|
.btn-spinner {
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-top-color: white;
|
|
border-radius: 50%;
|
|
animation: btn-spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes btn-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
flex: 1;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 1.5rem;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Filters Bar */
|
|
.filters-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.filters-left {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.filters-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.filter-select {
|
|
padding: 0.5rem 2rem 0.5rem 0.75rem;
|
|
font-size: 0.875rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.7' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 0.5rem center;
|
|
}
|
|
|
|
[data-theme="light"] .filter-select {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
|
}
|
|
|
|
.filter-select:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
/* Multi-Select Dropdown */
|
|
.multi-select {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.multi-select-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.875rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
min-width: 140px;
|
|
justify-content: space-between;
|
|
transition: border-color 0.2s, background-color 0.3s ease;
|
|
}
|
|
|
|
.multi-select-btn:hover,
|
|
.multi-select.open .multi-select-btn {
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.multi-select-label {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 150px;
|
|
}
|
|
|
|
.multi-select-arrow {
|
|
flex-shrink: 0;
|
|
color: var(--text-light);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.multi-select.open .multi-select-arrow {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.multi-select-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
min-width: 220px;
|
|
max-width: 300px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow-lg);
|
|
z-index: 100;
|
|
}
|
|
|
|
.multi-select-search {
|
|
padding: 0.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.multi-select-search-input {
|
|
width: 100%;
|
|
padding: 0.5rem;
|
|
font-size: 0.875rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--background);
|
|
color: var(--text);
|
|
}
|
|
|
|
.multi-select-search-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.multi-select-options {
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
padding: 0.5rem 0;
|
|
}
|
|
|
|
.multi-select-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 0.75rem;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
color: var(--text);
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.multi-select-option:hover {
|
|
background: var(--background);
|
|
}
|
|
|
|
.multi-select-option input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
.multi-select-option span {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.multi-select-option .count {
|
|
color: var(--text-light);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.multi-select-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem;
|
|
border-top: 1px solid var(--border);
|
|
background: var(--background);
|
|
}
|
|
|
|
.multi-select-clear,
|
|
.multi-select-apply {
|
|
flex: 1;
|
|
padding: 0.5rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.multi-select-clear {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
}
|
|
|
|
.multi-select-clear:hover {
|
|
background: var(--background);
|
|
}
|
|
|
|
.multi-select-apply {
|
|
background: var(--primary);
|
|
border: 1px solid var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.multi-select-apply:hover {
|
|
background: var(--primary-dark);
|
|
}
|
|
|
|
.multi-select-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
padding: 0 5px;
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
background: var(--primary);
|
|
color: white;
|
|
border-radius: 9px;
|
|
margin-left: 0.25rem;
|
|
}
|
|
|
|
.view-btn {
|
|
padding: 0.5rem;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
color: var(--text-light);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.view-btn:hover,
|
|
.view-btn.active {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.result-count {
|
|
color: var(--text-light);
|
|
font-size: 0.875rem;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
/* Content Area */
|
|
.content-area {
|
|
min-height: 400px;
|
|
}
|
|
|
|
/* Split Layout - Map and List side by side */
|
|
.content-area.split-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.5rem;
|
|
min-height: 600px;
|
|
}
|
|
|
|
.split-layout .map-container {
|
|
position: sticky;
|
|
top: 80px;
|
|
height: calc(100vh - 100px);
|
|
max-height: 700px;
|
|
}
|
|
|
|
.split-layout .list-container {
|
|
max-height: calc(100vh - 100px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Map Container */
|
|
.map-container {
|
|
height: 500px;
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
#map {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
/* List Container */
|
|
.resource-list {
|
|
display: grid;
|
|
gap: 1rem;
|
|
grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
|
|
}
|
|
|
|
/* Resource Card - Matching MkDocs grid-item styling */
|
|
.resource-card {
|
|
background: var(--md-primary-fg-color--light);
|
|
color: var(--md-primary-bg-color);
|
|
border-radius: 10px;
|
|
padding: 1.25rem;
|
|
box-shadow:
|
|
0 8px 15px var(--shadow-color-heavy),
|
|
0 12px 25px rgba(0,0,0,0.2),
|
|
inset 0 -4px 0px #0D47A1,
|
|
inset 0 -8px 0px #052555;
|
|
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease, background-color 0.3s ease;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.resource-card:hover {
|
|
transform: translateY(-5px);
|
|
background-color: var(--md-primary-fg-color);
|
|
box-shadow:
|
|
0 16px 30px rgba(0,0,0,0.3),
|
|
0 20px 40px rgba(0,0,0,0.25),
|
|
inset 0 -4px 0px #0D47A1,
|
|
inset 0 -8px 0px #052555;
|
|
}
|
|
|
|
/* Light mode card styling */
|
|
[data-theme="light"] .resource-card {
|
|
box-shadow:
|
|
0 8px 15px var(--shadow-color),
|
|
0 12px 25px rgba(0,0,0,0.1),
|
|
inset 0 -4px 0px #1565C0,
|
|
inset 0 -8px 0px #0D47A1;
|
|
}
|
|
|
|
[data-theme="light"] .resource-card:hover {
|
|
box-shadow:
|
|
0 16px 30px rgba(0,0,0,0.2),
|
|
0 20px 40px rgba(0,0,0,0.15),
|
|
inset 0 -4px 0px #1565C0,
|
|
inset 0 -8px 0px #0D47A1;
|
|
}
|
|
|
|
.resource-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.resource-click-hint {
|
|
font-size: 0.7rem;
|
|
color: var(--md-primary-bg-color);
|
|
margin-bottom: 0.5rem;
|
|
opacity: 0.8;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.resource-card:hover .resource-click-hint {
|
|
opacity: 1;
|
|
}
|
|
|
|
.resource-name {
|
|
font-size: 1.125rem;
|
|
font-weight: 700;
|
|
color: var(--md-primary-bg-color);
|
|
margin: 0;
|
|
}
|
|
|
|
.resource-type {
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 9999px;
|
|
background: var(--primary);
|
|
color: white;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.resource-type.food_bank { background: #dc2626; }
|
|
.resource-type.community_meal { background: #ea580c; }
|
|
.resource-type.hamper { background: #ca8a04; }
|
|
.resource-type.pantry { background: #16a34a; }
|
|
.resource-type.soup_kitchen { background: #9333ea; }
|
|
.resource-type.mobile_food { background: #0891b2; }
|
|
.resource-type.grocery_program { background: #4f46e5; }
|
|
|
|
.resource-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
font-size: 0.875rem;
|
|
color: var(--md-primary-bg-color);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.resource-info-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.resource-info-row svg {
|
|
flex-shrink: 0;
|
|
margin-top: 0.125rem;
|
|
}
|
|
|
|
.resource-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.resource-action-btn {
|
|
flex: 1;
|
|
padding: 0.5rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
border: 2px solid #ffffff;
|
|
border-radius: var(--radius);
|
|
background: #ffffff;
|
|
color: var(--md-primary-fg-color);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
text-align: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.resource-action-btn:hover {
|
|
background: var(--md-accent-fg-color);
|
|
border-color: var(--md-accent-fg-color);
|
|
color: white;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Buttons are white on blue cards in both themes */
|
|
|
|
.resource-action-btn.primary {
|
|
background: #ffffff;
|
|
border-color: #ffffff;
|
|
color: var(--md-primary-fg-color);
|
|
}
|
|
|
|
.resource-action-btn.primary:hover {
|
|
background: var(--md-accent-fg-color);
|
|
border-color: var(--md-accent-fg-color);
|
|
color: white;
|
|
}
|
|
|
|
.resource-action-btn.maps-btn {
|
|
background: #10b981;
|
|
border-color: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.resource-action-btn.maps-btn:hover {
|
|
background: #059669;
|
|
border-color: #059669;
|
|
}
|
|
|
|
.resource-action-btn.update-btn {
|
|
flex: 0;
|
|
padding: 0.375rem 0.625rem;
|
|
font-size: 0.75rem;
|
|
background: transparent;
|
|
border-color: rgba(255, 255, 255, 0.6);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.resource-action-btn.update-btn:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-color: #ffffff;
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* Loading & No Results */
|
|
.loading-indicator {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 3rem;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--border);
|
|
border-top-color: var(--primary);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.loading-more-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
padding: 1.5rem;
|
|
color: var(--text-light);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.loading-more-indicator .spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-width: 2px;
|
|
}
|
|
|
|
.no-results {
|
|
text-align: center;
|
|
padding: 3rem;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Pagination */
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.page-btn {
|
|
padding: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.page-btn:hover:not(:disabled) {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.page-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.page-info {
|
|
color: var(--text-light);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.modal-content {
|
|
position: relative;
|
|
background: var(--surface);
|
|
border-radius: var(--radius-lg);
|
|
max-width: 600px;
|
|
max-height: 90vh;
|
|
width: 90%;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
box-shadow: var(--shadow-lg);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
[data-theme="light"] .modal-overlay {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.modal-close {
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 1.5rem;
|
|
border: none;
|
|
background: var(--surface);
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: background 0.2s;
|
|
z-index: 10;
|
|
box-shadow: 0 2px 8px var(--shadow-color);
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: var(--border);
|
|
}
|
|
|
|
#modalBody {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.modal-header {
|
|
margin-bottom: 1.5rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
padding-right: 2.5rem;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0;
|
|
flex: 1 1 100%;
|
|
}
|
|
|
|
.modal-header .resource-type {
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.modal-section {
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.modal-section-title {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: var(--text-light);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.modal-section-content {
|
|
color: var(--text);
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.modal-section-content a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.modal-section-content a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
margin-top: 1.5rem;
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
/* Add Listing Call-to-Action */
|
|
.add-listing-cta {
|
|
background: linear-gradient(135deg, #052e16 0%, #14532d 100%);
|
|
border-top: 1px solid #166534;
|
|
padding: 3rem 1.5rem;
|
|
}
|
|
|
|
[data-theme="light"] .add-listing-cta {
|
|
background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
|
|
border-top: 1px solid #bbf7d0;
|
|
}
|
|
|
|
.add-listing-cta-content {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.add-listing-cta h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: #dcfce7;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
[data-theme="light"] .add-listing-cta h2 {
|
|
color: var(--text);
|
|
}
|
|
|
|
.add-listing-cta p {
|
|
color: #86efac;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
[data-theme="light"] .add-listing-cta p {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.add-listing-cta .resource-action-btn.large {
|
|
padding: 0.875rem 2rem;
|
|
font-size: 1rem;
|
|
background: var(--md-primary-fg-color);
|
|
border-color: var(--md-primary-fg-color);
|
|
color: white;
|
|
}
|
|
|
|
.add-listing-cta .resource-action-btn.large:hover {
|
|
background: var(--md-accent-fg-color);
|
|
border-color: var(--md-accent-fg-color);
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background: var(--surface);
|
|
border-top: 1px solid var(--border);
|
|
padding: 2rem 1.5rem;
|
|
margin-top: auto;
|
|
transition: background-color 0.3s ease, border-color 0.3s ease;
|
|
}
|
|
|
|
.footer-content {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
color: var(--text-light);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.footer a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.footer-note {
|
|
margin-top: 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.footer-admin {
|
|
margin-top: 1rem;
|
|
font-size: 0.7rem;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.footer-admin:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Theme Toggle - Matching lander style */
|
|
.theme-toggle {
|
|
position: fixed;
|
|
bottom: 1.5rem;
|
|
right: 1.5rem;
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: var(--md-code-bg-color);
|
|
color: var(--md-typeset-color);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 12px var(--shadow-color);
|
|
transition: transform 0.2s ease, background-color 0.3s ease;
|
|
z-index: 150;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.sun-icon {
|
|
display: block;
|
|
}
|
|
|
|
.moon-icon {
|
|
display: none;
|
|
}
|
|
|
|
[data-theme="light"] .sun-icon {
|
|
display: none;
|
|
}
|
|
|
|
[data-theme="light"] .moon-icon {
|
|
display: block;
|
|
}
|
|
|
|
/* Utility Classes */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1024px) {
|
|
.content-area.split-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.split-layout .map-container {
|
|
position: relative;
|
|
top: 0;
|
|
height: 400px;
|
|
max-height: none;
|
|
}
|
|
|
|
.split-layout .list-container {
|
|
max-height: calc(100vh - 250px);
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body {
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 1rem;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.hero {
|
|
padding: 2rem 0.5rem;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 1.4rem;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 1rem;
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
/* Search container - stack vertically on mobile */
|
|
.search-container {
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
order: 1;
|
|
}
|
|
|
|
.search-btn {
|
|
flex: 1;
|
|
order: 2;
|
|
min-width: 100px;
|
|
}
|
|
|
|
/* Location buttons side by side below search */
|
|
.location-btn {
|
|
flex: 1;
|
|
order: 3;
|
|
padding: 0.75rem 0.5rem;
|
|
font-size: 0.875rem;
|
|
gap: 0.25rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.location-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Filters bar - wrap and scroll on mobile */
|
|
.filters-bar {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.filters-left {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.filters-left .multi-select {
|
|
flex: 1 1 calc(50% - 0.25rem);
|
|
min-width: 120px;
|
|
max-width: none;
|
|
}
|
|
|
|
.filters-left .multi-select:nth-child(3) {
|
|
flex: 1 1 100%;
|
|
}
|
|
|
|
.multi-select-btn {
|
|
width: 100%;
|
|
min-width: unset;
|
|
}
|
|
|
|
.multi-select-label {
|
|
max-width: 100px;
|
|
}
|
|
|
|
.filters-right {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.resource-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.resource-card {
|
|
min-height: auto;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.resource-header {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.resource-name {
|
|
font-size: 1rem;
|
|
flex: 1 1 100%;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.resource-actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.resource-action-btn {
|
|
flex: 1 1 calc(50% - 0.25rem);
|
|
min-width: 0;
|
|
font-size: 0.8rem;
|
|
padding: 0.5rem 0.25rem;
|
|
}
|
|
|
|
.resource-action-btn.update-btn {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.split-layout .list-container {
|
|
max-height: calc(100vh - 350px);
|
|
min-height: 300px;
|
|
}
|
|
|
|
.map-container {
|
|
height: 350px;
|
|
}
|
|
|
|
.split-layout .map-container {
|
|
height: 300px;
|
|
}
|
|
|
|
.theme-toggle {
|
|
bottom: 1rem;
|
|
right: 1rem;
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
/* Modal improvements for mobile */
|
|
.modal {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 100%;
|
|
max-height: calc(100vh - 1rem);
|
|
max-height: calc(100dvh - 1rem);
|
|
border-radius: var(--radius);
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.modal-content.modal-large {
|
|
max-height: calc(100vh - 1rem);
|
|
max-height: calc(100dvh - 1rem);
|
|
}
|
|
|
|
#modalBody {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.25rem;
|
|
padding-right: 2rem;
|
|
}
|
|
|
|
.modal-section {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.modal-actions {
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.modal-actions .resource-action-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Modal map on mobile */
|
|
.modal-section .map-container {
|
|
height: 200px;
|
|
}
|
|
}
|
|
|
|
/* Extra small screens (under 480px) */
|
|
@media (max-width: 480px) {
|
|
.hero h1 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.hero p {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Stack all buttons vertically */
|
|
.search-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.search-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.location-btn {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* All filters full width */
|
|
.filters-left .multi-select {
|
|
flex: 1 1 100%;
|
|
}
|
|
|
|
.multi-select-label {
|
|
max-width: none;
|
|
}
|
|
|
|
/* Smaller modal padding */
|
|
.modal {
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 100%;
|
|
max-height: calc(100vh - 0.5rem);
|
|
max-height: calc(100dvh - 0.5rem);
|
|
}
|
|
|
|
#modalBody {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.modal-close {
|
|
top: 0.5rem;
|
|
right: 0.5rem;
|
|
}
|
|
}
|
|
|
|
/* Leaflet Popup Customization */
|
|
.leaflet-popup-content-wrapper {
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.leaflet-popup-content {
|
|
margin: 0.75rem;
|
|
}
|
|
|
|
.popup-title {
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.popup-address {
|
|
font-size: 0.875rem;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Directions Modal */
|
|
.modal-large {
|
|
max-width: 1000px;
|
|
max-height: 95vh;
|
|
}
|
|
|
|
.directions-container {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.directions-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.directions-header h2 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.directions-controls {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.directions-summary {
|
|
display: flex;
|
|
gap: 2rem;
|
|
padding: 1rem;
|
|
background: var(--background);
|
|
border-radius: var(--radius);
|
|
margin-bottom: 1rem;
|
|
flex-wrap: wrap;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.directions-summary-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.directions-summary-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-light);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.directions-summary-value {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.directions-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 350px;
|
|
gap: 1rem;
|
|
height: 450px;
|
|
}
|
|
|
|
.directions-map-container {
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
background: var(--border);
|
|
}
|
|
|
|
#directionsMap {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.directions-steps-container {
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.directions-steps {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.direction-step {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
border-bottom: 1px solid var(--border);
|
|
transition: background 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.direction-step:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.direction-step:hover {
|
|
background: var(--background);
|
|
}
|
|
|
|
.direction-step-number {
|
|
width: 28px;
|
|
height: 28px;
|
|
background: var(--primary);
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.direction-step-number.start {
|
|
background: var(--secondary);
|
|
}
|
|
|
|
.direction-step-number.end {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.direction-step-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.direction-step-instruction {
|
|
font-size: 0.875rem;
|
|
margin-bottom: 0.25rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.direction-step-meta {
|
|
font-size: 0.75rem;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Maneuver icons */
|
|
.direction-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Route line styling */
|
|
.route-line {
|
|
stroke: var(--primary);
|
|
stroke-width: 5;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
fill: none;
|
|
}
|
|
|
|
/* Print Styles */
|
|
.print-only {
|
|
display: none;
|
|
}
|
|
|
|
@media print {
|
|
/* Hide everything except print content */
|
|
body * {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.print-only,
|
|
.print-only * {
|
|
visibility: visible;
|
|
}
|
|
|
|
.print-only {
|
|
display: block !important;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
padding: 1.5rem 2rem;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
color: #1e293b;
|
|
}
|
|
|
|
/* Header with branding */
|
|
.print-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 3px solid #2563eb;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.print-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.print-logo-icon {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.print-logo-text {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: #2563eb;
|
|
}
|
|
|
|
.print-tagline {
|
|
font-size: 0.875rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
/* Title section */
|
|
.print-title {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.print-title h1 {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
margin: 0 0 0.25rem 0;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.print-date {
|
|
font-size: 0.875rem;
|
|
color: #64748b;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Summary box */
|
|
.print-summary {
|
|
display: flex;
|
|
gap: 2rem;
|
|
margin-bottom: 1.5rem;
|
|
padding: 1rem 1.25rem;
|
|
background: #f1f5f9;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #2563eb;
|
|
}
|
|
|
|
.print-summary-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.print-summary-label {
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: #64748b;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.print-summary-value {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
/* Destination card */
|
|
.print-destination {
|
|
margin-bottom: 1.5rem;
|
|
padding: 1rem;
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.print-destination-label {
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: #64748b;
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.print-destination h2 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.5rem 0;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.print-destination p {
|
|
margin: 0.25rem 0;
|
|
font-size: 0.875rem;
|
|
color: #475569;
|
|
}
|
|
|
|
.print-destination-contact {
|
|
margin-top: 0.75rem;
|
|
padding-top: 0.75rem;
|
|
border-top: 1px solid #e2e8f0;
|
|
}
|
|
|
|
/* Map container for print */
|
|
.print-map-container {
|
|
margin-bottom: 1.5rem;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.print-map-container img {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
/* Steps section */
|
|
.print-steps-header {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.75rem;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.print-steps {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.print-step {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
padding: 0.625rem 0;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.print-step:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.print-step-number {
|
|
width: 24px;
|
|
height: 24px;
|
|
min-width: 24px;
|
|
background: #2563eb;
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.print-step-number.start {
|
|
background: #10b981;
|
|
}
|
|
|
|
.print-step-number.end {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.print-step-content {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.print-step-instruction {
|
|
flex: 1;
|
|
font-size: 0.875rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.print-step-distance {
|
|
font-size: 0.75rem;
|
|
color: #64748b;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Footer */
|
|
.print-footer {
|
|
margin-top: 2rem;
|
|
padding-top: 1rem;
|
|
border-top: 2px solid #e2e8f0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.print-footer-brand {
|
|
font-weight: 600;
|
|
color: #2563eb;
|
|
}
|
|
|
|
.print-footer-url {
|
|
font-size: 0.875rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.print-footer-note {
|
|
font-size: 0.7rem;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
/* Hide interactive elements */
|
|
.modal,
|
|
.header,
|
|
.footer,
|
|
button,
|
|
select,
|
|
input {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
/* Responsive directions */
|
|
@media (max-width: 768px) {
|
|
.directions-layout {
|
|
grid-template-columns: 1fr;
|
|
height: auto;
|
|
}
|
|
|
|
.directions-map-container {
|
|
height: 250px;
|
|
}
|
|
|
|
.directions-steps-container {
|
|
max-height: 300px;
|
|
}
|
|
|
|
.directions-summary {
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
/* Update Modal Styles */
|
|
.update-modal-container {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.update-modal-container h2 {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.update-modal-subtitle {
|
|
color: var(--text-light);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.update-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.form-section {
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-section:last-of-type {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.form-section h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.form-hint {
|
|
font-size: 0.875rem;
|
|
color: var(--text-light);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
}
|
|
|
|
.form-group .required {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group select,
|
|
.form-group textarea {
|
|
padding: 0.625rem 0.75rem;
|
|
font-size: 0.875rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--background);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group select:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
|
|
}
|
|
|
|
.form-group input::placeholder,
|
|
.form-group textarea::placeholder {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.form-group textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: flex-end;
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.modal-update-section {
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.modal-update-btn {
|
|
width: 100%;
|
|
background: transparent;
|
|
border: 1px dashed var(--border);
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.modal-update-btn:hover {
|
|
background: var(--background);
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* Admin Panel Styles */
|
|
.admin-badge {
|
|
background: var(--primary);
|
|
color: white;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.logout-btn {
|
|
cursor: pointer;
|
|
background: none;
|
|
border: none;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.admin-login-section {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.login-card {
|
|
background: var(--surface);
|
|
padding: 2rem;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
max-width: 400px;
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.login-card input {
|
|
background: var(--background);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.login-card input:focus {
|
|
border-color: var(--primary);
|
|
outline: none;
|
|
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
|
|
}
|
|
|
|
.login-card input::placeholder {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.login-card h1 {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.login-card p {
|
|
color: var(--text-light);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.full-width {
|
|
width: 100%;
|
|
}
|
|
|
|
.error-message {
|
|
background: rgba(220, 38, 38, 0.15);
|
|
color: #f87171;
|
|
padding: 0.75rem;
|
|
border-radius: var(--radius);
|
|
font-size: 0.875rem;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid rgba(220, 38, 38, 0.3);
|
|
}
|
|
|
|
[data-theme="light"] .error-message {
|
|
background: #fef2f2;
|
|
color: #dc2626;
|
|
border-color: #fecaca;
|
|
}
|
|
|
|
.admin-stats-bar {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--surface);
|
|
padding: 1.25rem;
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
text-align: center;
|
|
border: 1px solid var(--border);
|
|
border-left: 3px solid var(--primary);
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.875rem;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Admin Section Tabs */
|
|
.admin-section-tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1.5rem;
|
|
background: var(--surface);
|
|
padding: 0.5rem;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.admin-section-tab {
|
|
flex: 1;
|
|
padding: 0.75rem 1rem;
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: var(--text-light);
|
|
cursor: pointer;
|
|
border-radius: var(--radius);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.admin-section-tab:hover {
|
|
background: var(--background);
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-section-tab.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.admin-section {
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.admin-tab {
|
|
padding: 0.5rem 1rem;
|
|
background: none;
|
|
border: none;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-light);
|
|
cursor: pointer;
|
|
border-radius: var(--radius);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.admin-tab:hover {
|
|
background: var(--background);
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-tab.active {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.requests-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.request-card {
|
|
background: var(--surface);
|
|
padding: 1.25rem;
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.request-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.request-resource-name {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.25rem 0;
|
|
}
|
|
|
|
.request-date {
|
|
font-size: 0.75rem;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.status-badge {
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 9999px;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.status-badge.pending {
|
|
background: rgba(251, 191, 36, 0.2);
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.status-badge.approved {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
color: #34d399;
|
|
}
|
|
|
|
.status-badge.rejected {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
color: #f87171;
|
|
}
|
|
|
|
[data-theme="light"] .status-badge.pending {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
|
|
[data-theme="light"] .status-badge.approved {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
[data-theme="light"] .status-badge.rejected {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.request-card-info {
|
|
font-size: 0.875rem;
|
|
color: var(--text-light);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.request-submitter {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.request-card-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Request Detail Modal */
|
|
.request-detail {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.request-detail-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.request-detail-header h2 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.diff-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.diff-row {
|
|
background: var(--background);
|
|
padding: 1rem;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.diff-label {
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.diff-values {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.diff-current,
|
|
.diff-proposed {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.diff-tag {
|
|
font-size: 0.625rem;
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.diff-value {
|
|
font-size: 0.875rem;
|
|
color: var(--text);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.diff-current .diff-value {
|
|
color: var(--text-light);
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.diff-proposed .diff-value {
|
|
color: #34d399;
|
|
font-weight: 500;
|
|
}
|
|
|
|
[data-theme="light"] .diff-proposed .diff-value {
|
|
color: #059669;
|
|
}
|
|
|
|
.diff-arrow {
|
|
color: var(--text-light);
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.admin-notes-input {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
font-size: 0.875rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--background);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
.admin-notes-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.admin-notes-input::placeholder {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.reject-btn {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
border-color: rgba(239, 68, 68, 0.4);
|
|
color: #f87171;
|
|
}
|
|
|
|
.reject-btn:hover {
|
|
background: #dc2626;
|
|
border-color: #dc2626;
|
|
color: white;
|
|
}
|
|
|
|
[data-theme="light"] .reject-btn {
|
|
background: #fee2e2;
|
|
border-color: #fecaca;
|
|
color: #991b1b;
|
|
}
|
|
|
|
/* Listing Fields Display */
|
|
.listing-fields {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.listing-field {
|
|
background: var(--background);
|
|
padding: 0.75rem 1rem;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.listing-field-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-light);
|
|
text-transform: uppercase;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.listing-field-value {
|
|
font-size: 0.875rem;
|
|
color: var(--text);
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Responsive Admin */
|
|
@media (max-width: 768px) {
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.admin-stats-bar {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.diff-values {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.diff-arrow {
|
|
transform: rotate(90deg);
|
|
text-align: center;
|
|
}
|
|
}
|