/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #F5F5F5;
    --bg-surface: #FFFFFF;
    --color-primary: #8D6E63;
    --color-secondary: #795548;
    --color-accent: #FF7043;
    --color-highlight: #FF5722;
    --color-text: #232323;
    --color-subtext: #5D4037;
    --color-divider: #E0E0E0;
    --color-shadow: #ded3cb;
    --shadow-sm: 0 2px 4px rgba(222, 211, 203, 0.18);
    --shadow-md: 0 4px 8px rgba(222, 211, 203, 0.25);
    --shadow-lg: 0 8px 16px rgba(222, 211, 203, 0.3);
    --border-radius: 14px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-divider);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

.nav-brand .material-icons {
    font-size: 28px;
}

.nav-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-subtext);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}

.nav-tab:hover {
    background: var(--bg-primary);
    color: var(--color-primary);
}

.nav-tab.active {
    background: var(--color-primary);
    color: white;
}

.nav-tab .material-icons {
    font-size: 20px;
}

.nav-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 8px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
    padding: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--color-subtext);
    font-size: 16px;
}

/* ===== SEARCH & FILTERS ===== */
.search-filter-container {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box .material-icons {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-subtext);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid var(--color-divider);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--color-divider);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.filter-btn .material-icons {
    font-size: 18px;
}

/* ===== PLACES CONTAINER ===== */
.places-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.place-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.place-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.place-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--color-divider);
}

.place-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.place-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.place-card-location {
    font-size: 14px;
    color: var(--color-subtext);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.place-card-description {
    font-size: 14px;
    color: var(--color-subtext);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.place-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.place-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.place-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-divider);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: var(--color-subtext);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-primary);
    color: var(--color-primary);
}

.btn-icon.active {
    color: var(--color-highlight);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-secondary);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--color-text);
    border: 2px solid var(--color-divider);
}

.btn-secondary:hover {
    background: var(--color-divider);
}

.btn-link {
    background: none;
    color: var(--color-primary);
    text-decoration: underline;
    padding: 8px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-small {
    max-width: 400px;
}

.modal-large {
    max-width: 900px;
    width: 90%;
}

.modal-fullscreen {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.filter-item {
    padding: 12px;
    border-bottom: 1px solid var(--color-divider);
    cursor: pointer;
    transition: var(--transition);
}

.filter-item:hover {
    background: var(--color-primary);
    color: white;
}

.filter-item.active {
    background: var(--color-primary);
    color: white;
    font-weight: 500;
}

.filter-item-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-item-checkbox label {
    cursor: pointer;
    flex: 1;
}

.search-filter-container {
    background: var(--bg-surface);
    padding: 16px;
    margin: 0 16px 16px;
    border-radius: var(--border-radius);
}

/* List Page Sort Controls */
.list-sort-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-divider);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 14px;
    color: var(--color-subtext);
    font-weight: 500;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:hover {
    border-color: var(--color-primary);
}

.sort-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.sort-order-btn {
    padding: 6px;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sort-order-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.list-stats {
    font-size: 14px;
    color: var(--color-subtext);
    font-weight: 500;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f0f0f0;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.filter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Home Map Styles */
.home-map-container {
    margin: 16px;
    position: relative;
}

.map-callout {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
}

.map-callout-content {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

.map-callout-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-subtext);
}

.map-callout-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
    margin: 0 auto;
}

.map-callout-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-primary);
}

.map-callout-content p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--color-subtext);
}

.map-callout-content .btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Account Settings Styles */
.account-settings-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-section {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.form-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--color-text);
}

.form-group input:disabled {
    background: #f5f5f5;
    color: var(--color-subtext);
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-subtext);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--color-text);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-select:disabled {
    background: #f5f5f5;
    color: var(--color-subtext);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* User Management Styles */
.users-list {
    padding: 20px;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.user-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-primary);
}

.user-info p {
    margin: 0;
    font-size: 14px;
    color: var(--color-subtext);
}

.user-card-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* Place Card Selected State */
.place-card-content.selected {
    border: 2px solid #e2af36;
    background: #f5ecd6;
}

.selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Detail Page Styles */
.detail-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}

.detail-header {
    margin-bottom: 20px;
}

.detail-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-subtext);
    margin-bottom: 12px;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-image-gallery {
    margin-bottom: 24px;
}

.detail-image-main {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 12px;
}

.detail-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.detail-image-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-image:hover {
    border-color: var(--color-primary);
}

.thumbnail-image.active {
    border-color: var(--color-accent);
}

.thumbnail-more {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 8px;
    color: var(--color-subtext);
    font-weight: bold;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.detail-section p {
    line-height: 1.8;
    color: var(--color-text);
}

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.map-zoom-controls {
    position: absolute;
    right: 12px;
    top: 12px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.map-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--color-divider);
}

.map-zoom-btn:last-child {
    border-bottom: none;
}

.map-zoom-btn:hover {
    background: var(--bg-primary);
}

.map-zoom-btn .material-icons {
    color: var(--color-primary);
    font-size: 20px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-divider);
}

/* Image Gallery Modal */
.image-gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    position: relative;
}

.image-gallery-main {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: white;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Nearby Radius Buttons */
.radius-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radius-btn {
    padding: 8px 16px;
    border: 2px solid var(--color-divider);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--color-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.radius-btn:hover {
    border-color: var(--color-primary);
    background: var(--bg-primary);
}

.radius-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Refresh Button Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pagination Styles */
#home-pagination {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-sm .material-icons {
    font-size: 18px;
}
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-small {
    max-width: 500px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-divider);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--color-divider);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

/* ===== FORM ===== */
.auth-form {
    padding: 40px;
}

.auth-form h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-divider);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-divider);
}

.auth-divider span {
    background: var(--bg-surface);
    padding: 0 16px;
    color: var(--color-subtext);
    position: relative;
}

.error-message {
    color: var(--color-highlight);
    font-size: 14px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #4CAF50;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    display: none;
}

.success-message.show {
    display: block;
}

/* ===== MAP ===== */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

#nearby-map,
#detail-map {
    width: 100%;
    height: 100%;
}

/* ===== ROUTE ===== */
.route-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.route-stats span {
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.route-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* ===== ACCOUNT ===== */
.account-container {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.account-info {
    text-align: center;
    padding: 24px;
    border-bottom: 1px solid var(--color-divider);
    margin-bottom: 24px;
}

.account-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.account-info p {
    color: var(--color-subtext);
    font-size: 16px;
}

.account-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.account-menu-item {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.account-menu-item:hover {
    background: var(--color-primary);
    color: white;
}

.account-menu-item .material-icons {
    font-size: 32px;
}

/* ===== FILTER LIST ===== */
.filter-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.filter-item {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.filter-item:hover {
    background: var(--bg-primary);
}

.filter-item.active {
    background: var(--color-primary);
    color: white;
}

.filter-item-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-item-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ===== DETAIL PAGE ===== */
.detail-content {
    padding: 24px;
}

.detail-header {
    margin-bottom: 24px;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.detail-location {
    font-size: 18px;
    color: var(--color-subtext);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.detail-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-divider);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-subtext);
}

.empty-state .material-icons {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.empty-state p {
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-tabs {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        box-shadow: var(--shadow-md);
        padding: 12px;
    }

    .nav-tabs.active {
        display: flex;
    }

    .nav-tab {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-menu-toggle {
        display: block;
    }

    .main-content {
        padding: 12px;
    }

    .places-container {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .auth-form {
        padding: 24px;
    }

    .route-actions {
        flex-direction: column;
    }

    .route-actions .btn {
        width: 100%;
    }
}

/* ===== TABS ===== */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--color-divider);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ===== USER AVATAR ===== */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0e8d6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #a26426;
    font-size: 14px;
    border: 1px solid #e0d9c6;
}

/* ===== STATUS BADGE ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden {
    display: none !important;
}

/* ===== LANDING PAGE ===== */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.landing-content {
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-logo {
    margin-bottom: 40px;
}

.landing-logo h1 {
    font-size: 32px;
    color: var(--color-primary);
    margin: 16px 0 8px;
    font-weight: 700;
}

.landing-logo p {
    color: var(--color-subtext);
    font-size: 16px;
}

.landing-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.landing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
    text-decoration: none;
}

.landing-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.landing-btn img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.landing-continue {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-divider);
}

.landing-continue .btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .landing-logo h1 {
        font-size: 28px;
    }

    .landing-logo p {
        font-size: 14px;
    }

    .landing-btn img {
        max-width: 180px;
    }

    .landing-continue .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .landing-content {
        padding: 24px 16px;
        margin: 16px;
    }

    .landing-logo {
        margin-bottom: 32px;
    }

    .landing-logo h1 {
        font-size: 24px;
    }

    .landing-buttons {
        gap: 12px;
        margin-bottom: 24px;
    }

    .landing-btn img {
        max-width: 160px;
        height: 50px;
    }
}

/* Legal Links Hover Effect */
.legal-link:hover {
    background: var(--bg-primary) !important;
    transform: translateX(4px);
}

