* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #e0e0e0;
}

header h1 {
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

header h1 i {
    color: #000;
}

.header-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.main-menu {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.btn-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #fff;
    color: #000;
    border-color: #000;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-toggle {
    background: #fff;
    color: #1a1a1a;
    border-color: #e0e0e0;
}

.btn-toggle:hover {
    border-color: #000;
    background: #fafafa;
}

.btn-toggle.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.temp-marker {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.map-container {
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #e0e0e0;
}

.map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid #e0e0e0;
}

.drop-pin-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    max-width: 90%;
    text-align: center;
    white-space: nowrap;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #1a1a1a;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-item i {
    font-size: 12px;
    color: #666;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.legend-marker.visited {
    background: #000;
}

.legend-marker.planned {
    background: #666;
}

.sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.sidebar h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
}

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

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #666;
}

.filter-btn:hover {
    border-color: #000;
    color: #000;
    background: #fafafa;
}

.filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.places-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.place-item {
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.place-item-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f0f0f0;
}

.place-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-item-content {
    padding: 16px;
}

.place-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.place-item.visited {
    border-left-color: #000;
}

.place-item.planned {
    border-left-color: #666;
}

.place-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.place-item-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.place-item-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.place-item-status.visited {
    background: #000;
    color: #fff;
}

.place-item-status.planned {
    background: #666;
    color: #fff;
}

.place-item-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.place-item-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.place-item-price {
    margin: 8px 0;
}

.price-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-badge.free {
    background: #000;
    color: #fff;
}

.price-badge.paid {
    background: #666;
    color: #fff;
}

.place-item-date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.place-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.place-item-actions button {
    padding: 6px 12px;
    font-size: 11px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-edit {
    border-color: #000;
}

.btn-edit:hover {
    background: #000;
    color: #fff;
}

.btn-delete {
    border-color: #666;
}

.btn-delete:hover {
    background: #666;
    color: #fff;
}

/* Timeline View */
.timeline-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 600px;
    border: 1px solid #e0e0e0;
}

.timeline-content {
    position: relative;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #000;
    background: #000;
}

.timeline-item.planned::before {
    background: #666;
    box-shadow: 0 0 0 2px #666;
}

.timeline-card {
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #000;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #000;
    overflow: hidden;
}

.timeline-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 16px;
}

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

.timeline-card-content {
    padding: 20px;
}

.timeline-card-content > *:first-child {
    margin-top: 0;
}

.timeline-card.planned {
    border-left-color: #666;
}

.timeline-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.timeline-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.timeline-category {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.timeline-price {
    margin: 8px 0;
}

.timeline-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-status.visited {
    background: #000;
    color: #fff;
}

.timeline-status.planned {
    background: #666;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 3000; /* Above navigation overlay (2000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

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

.modal-content {
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid #e0e0e0;
    margin: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close:hover {
    color: #000;
    background: #f5f5f5;
}

.modal-content h2 {
    margin-bottom: 24px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview img {
    border: 1px solid #e0e0e0;
}

.btn-remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

.upload-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.upload-progress-fill {
    height: 100%;
    background: #000;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.search-section {
    position: relative;
}

.search-container {
    position: relative;
}

#locationSearch {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
}

#locationSearch:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2px;
}

.search-result-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #fafafa;
}

.search-result-item.no-results {
    color: #999;
    cursor: default;
    font-style: italic;
}

.search-result-item.no-results:hover {
    background: #fff;
}

.result-name {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 4px;
}

.result-type {
    font-size: 12px;
    color: #666;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

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

.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.empty-state p {
    font-size: 14px;
    color: #666;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.sidebar::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        max-height: none;
    }
}

/* Checklist View */
.checklist-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 600px;
    border: 1px solid #e0e0e0;
}

.checklist-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.checklist-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.sort-controls label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.sort-controls select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
}

.sort-controls select:focus {
    outline: none;
    border-color: #000;
}

/* Public Checklists Grid */
.public-checklists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.public-checklist-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.public-checklist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.checklist-card-header {
    margin-bottom: 16px;
}

.checklist-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.checklist-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.checklist-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.checklist-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.checklist-card-stats .stat-item.likes {
    color: #e74c3c;
}

.checklist-card-stats .stat-item.upvotes {
    color: #27ae60;
}

.checklist-card-stats .stat-item.downvotes {
    color: #95a5a6;
}

.checklist-card-stats .stat-item i {
    font-size: 14px;
}

.checklist-card-meta {
    margin-bottom: 16px;
}

.meta-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
}

.checklist-card-actions {
    margin-top: 16px;
}

.province-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.province-selector label {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

.province-selector select {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    background: #fff;
    color: #1a1a1a;
}

.province-filter {
    margin-bottom: 16px;
}

.province-filter label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.province-filter select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #1a1a1a;
}

.checklist-summary {
    margin-bottom: 24px;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #000;
}

.checklist-summary h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.checklist-category {
    margin-bottom: 32px;
}

.checklist-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 16px;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-item.closed {
    opacity: 0.6;
    border-left: 3px solid #666;
}

.checklist-item.temporarily_closed {
    border-left: 3px solid #ffc107;
}

.checklist-checkbox {
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
}

.checklist-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
}

.checklist-item-content {
    flex: 1;
}

.checklist-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.checklist-item-header strong {
    font-size: 16px;
    color: #1a1a1a;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.closed {
    background: #666;
    color: #fff;
}

.status-badge.temp-closed {
    background: #ffc107;
    color: #000;
}

.checklist-item-desc {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.checklist-item-price {
    margin: 8px 0;
}

.checklist-item-actions {
    margin-top: 12px;
}

.btn-report {
    padding: 6px 12px;
    font-size: 11px;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-report:hover {
    background: #666;
    color: #fff;
}

.place-status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.place-status-badge.closed {
    background: #666;
    color: #fff;
}

.place-status-badge.temp-closed {
    background: #ffc107;
    color: #000;
}

/* Place Detail Modal */
.place-detail-modal {
    max-width: 600px;
    width: 100%;
}

.place-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.place-detail-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.place-detail-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.place-detail-status.visited {
    background: #000;
    color: #fff;
}

.place-detail-status.planned {
    background: #666;
    color: #fff;
}

.place-detail-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f0f0f0;
}

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

.place-detail-info {
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    align-items: start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-label i {
    color: #666;
    font-size: 14px;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.detail-value.description-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.place-detail-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Reviews Section */
.place-reviews-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.reviews-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-section-title i {
    color: #f39c12;
}

.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.reviewer-info {
    flex: 1;
    min-width: 200px;
}

.reviewer-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.reviewer-phone {
    display: block;
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    font-size: 18px;
    color: #f39c12;
    letter-spacing: 2px;
}

.rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.review-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.review-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.add-review-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.add-review-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

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

.review-form label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    font-size: 14px;
}

.review-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.review-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    align-items: center;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-star {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.rating-star:hover,
.rating-star:hover ~ .rating-star {
    color: #f39c12;
}

.rating-input input[type="radio"]:checked ~ label {
    color: #f39c12;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    border: 1px solid #fcc;
}

/* Toast notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
        padding: 16px;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    header h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .header-controls {
        width: 100%;
    }
    
    .main-menu {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .view-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    
    .view-toggle .btn-toggle {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
    
    .public-checklists-grid {
        grid-template-columns: 1fr;
    }
    
    .checklist-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-controls {
        width: 100%;
    }
    
    .sort-controls select {
        width: 100%;
    }
    
    .map-container {
        height: calc(100vh - 200px);
    }
    
    .container {
        padding: 0;
        padding-bottom: 80px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .place-detail-actions {
        flex-direction: column;
    }
    
    .place-detail-actions .btn {
        width: 100%;
    }
    
    /* Bottom menu for mobile */
    .bottom-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 2001; /* Above navigation overlay */
        padding: 8px 6px;
        display: flex;
        gap: 4px;
        justify-content: space-around;
        height: auto;
    }
    
    .bottom-menu .btn {
        flex: 1;
        padding: 8px 4px;
        font-size: 10px;
        flex-direction: column;
        gap: 2px;
        border-radius: 6px;
        min-height: auto;
    }
    
    .bottom-menu .btn i {
        font-size: 16px;
    }
    
    .bottom-menu .btn span {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .bottom-menu .btn-toggle {
        background: #fff;
        border: 1px solid #e0e0e0;
    }
    
    .bottom-menu .btn-toggle.active {
        background: #000;
        color: #fff;
        border-color: #000;
    }
    
    .bottom-menu .btn-secondary {
        background: #fff;
        border: 1px solid #000;
    }
    
    /* Hide header controls on mobile, show bottom menu */
    header .header-controls {
        display: none;
    }
    
    .main-content {
        margin-bottom: 70px;
    }
    
    /* Show bottom menu only on mobile */
    .bottom-menu {
        display: flex;
    }
}

/* Hide bottom menu on desktop */
@media (min-width: 769px) {
    .bottom-menu {
        display: none;
    }
}

/* Navigation Panel Styles */
/* Desktop navigation panel removed - using mobile overlay for all devices */
.navigation-panel {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.navigation-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #667eea;
    color: #fff;
}

.navigation-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-close-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.navigation-info {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.navigation-speed {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #667eea;
}

.speed-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.speed-display i {
    font-size: 32px;
    color: #667eea;
}

.speed-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.speed-unit {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.navigation-minimap {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
}

#miniMap {
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .navigation-minimap {
        display: none !important;
    }
}

.navigation-summary {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 100px;
}

.nav-summary-item i {
    font-size: 20px;
    color: #667eea;
}

.nav-summary-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.nav-summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.navigation-steps {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.nav-step {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-step:hover {
    background: #f5f5f5;
}

.nav-step.active {
    background: #e8f0fe;
    border-left-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.nav-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-step.active .nav-step-icon {
    background: #667eea;
    color: #fff;
}

.nav-step-icon i {
    font-size: 18px;
    color: #666;
}

.nav-step.active .nav-step-icon i {
    color: #fff;
}

.nav-step-content {
    flex: 1;
}

.nav-step-instruction {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.nav-step.active .nav-step-instruction {
    font-weight: 600;
    color: #667eea;
}

.nav-step-distance {
    font-size: 12px;
    color: #666;
}

.navigation-actions {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

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

/* Mobile Navigation Overlay */
.mobile-navigation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none; /* Mặc định ẩn, chỉ hiển thị khi có class active */
    z-index: 2000;
    pointer-events: none;
}

.nav-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #1a5f2e;
    color: #fff;
    padding: 15px 20px;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-top-content {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    width: 100%;
}

.nav-speed-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    margin-left: auto;
}

.nav-speed-display i {
    font-size: 18px;
}

.nav-speed-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.nav-speed-unit {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1;
}

.nav-top-content i {
    font-size: 24px;
    color: #fff;
}

.nav-top-info {
    flex: 1;
}

.nav-next-distance {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.nav-next-instruction {
    font-size: 14px;
    opacity: 0.9;
}

.nav-bottom-overlay {
    position: absolute;
    bottom: 60px; /* Leave space for bottom menu (reduced height) */
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1999; /* Below bottom menu */
}

.nav-bottom-left {
    flex: 1;
}

.nav-eta-time {
    font-size: 18px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 4px;
}

.nav-arrival-time {
    font-size: 14px;
    color: #666;
}

.nav-exit-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.nav-exit-btn:hover {
    background: #c0392b;
}

.nav-exit-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .navigation-panel {
        display: none !important;
    }
    
    /* Mobile navigation overlay chỉ hiển thị khi đang navigation */
    .mobile-navigation-overlay {
        display: none !important;
    }
    
    .mobile-navigation-overlay.active {
        display: block !important;
    }
    
    /* Map chỉ fullscreen khi đang navigation - FORCE hiển thị */
    body.navigating #map {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ẩn TẤT CẢ views khi navigation */
    body.navigating .view {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ẩn places list khi navigation */
    body.navigating #placesList {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ẩn header khi navigation */
    body.navigating .header {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ẩn search container khi navigation */
    body.navigating .search-container {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ẩn timeline, checklist containers khi navigation */
    body.navigating .timeline-container,
    body.navigating .checklist-container {
        display: none !important;
        visibility: hidden !important;
    }
}

@media (min-width: 769px) {
    .mobile-navigation-overlay {
        display: none !important;
    }
}