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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.nav-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

.nav-location:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.nav-location i {
    color: #667eea;
}

/* Location Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.location-map-container {
    position: relative;
    height: 400px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #eee;
}

.location-map {
    width: 100%;
    height: 100%;
}

.location-map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 1000;
}

.location-marker {
    color: #e74c3c;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.location-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.location-coordinates-display {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid #eee;
}

.location-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.location-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.location-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.location-suggestions {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.location-suggestion {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.location-suggestion:hover {
    background-color: #f8f9fa;
}

.location-suggestion:last-child {
    border-bottom: none;
}

.location-coordinates {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.location-coordinates label {
    font-weight: 500;
    color: #333;
}

.location-coordinates input {
    padding: 0.5rem;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.location-coordinates input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-primary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.nav-brand i {
    color: #667eea;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
}

.nav-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #666;
}

.nav-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-tab.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Pages */
.page {
    display: none;
    flex: 1;
    padding: 2rem;
}

.page.active {
    display: block;
}

/* Swipe Page */
.swipe-container {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.destination-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    cursor: grab;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.destination-card:active {
    cursor: grabbing;
}

.destination-card.swiping {
    transition: none;
}

.destination-card.swiped-left {
    transform: translateX(-150%);
    opacity: 0;
}

.destination-card.swiped-right {
    transform: translateX(150%);
    opacity: 0;
}

/* Media Container Layout */
.media-container {
    position: relative;
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-media {
    flex: 1;
    width: 100%;
    height: 60%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.side-media {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    height: 40%;
}

.side-media > * {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.main-media video,
.main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f0f0f0;
    transition: transform 0.3s ease;
}

.main-media video:hover,
.main-media img:hover {
    transform: scale(1.02);
}

.side-media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f0f0f0;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.side-media-item:hover {
    transform: scale(1.05);
}

/* More images indicator */
.more-images-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 10;
    pointer-events: none;
}

/* Media count in modal title */
.media-count {
    font-size: 0.8rem;
    font-weight: 400;
    color: #667eea;
    margin-left: 8px;
}

/* Swipe Effects */
.swipe-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    z-index: 1000;
    animation: swipeEffect 0.8s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.swipe-effect.left {
    color: #ff4757;
}

.swipe-effect.right {
    color: #2ed573;
}

@keyframes swipeEffect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

.card-content {
    padding: 1.5rem;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    max-height: 60%;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-location {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-distance {
    color: #4CAF50;
    font-size: 0.85rem;
    margin: 0.2rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.popularity-stats {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    align-items: center;
}

.likes-count {
    color: #E91E63;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comments-count {
    color: #2196F3;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin-bottom: 1rem;
}

/* Custom scrollbar for card content */
.card-content::-webkit-scrollbar {
    width: 6px;
}

.card-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Image loading states */
.image-error {
    opacity: 0.7;
    filter: grayscale(100%);
}

.image-loaded {
    opacity: 1;
    filter: none;
}

.fallback-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

.fallback-media i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #dee2e6;
}

/* Add fade effect to indicate scrollable content */
.card-content {
    position: relative;
}

/* Version Footer */
.version-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 0;
    margin-top: 40px;
    text-align: center;
}

.version-footer .version-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.version-footer .version-text {
    font-weight: 600;
    color: #495057;
}

.version-footer .build-text {
    font-family: 'Courier New', monospace;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.card-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-content.scrollable::after {
    opacity: 1;
}

.swipe-actions {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reject-btn {
    background: #ff4757;
    color: white;
}

.reject-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.accept-btn {
    background: #2ed573;
    color: white;
}

.accept-btn:hover {
    background: #26d0ce;
    transform: scale(1.1);
}

/* Saved Page */
.saved-container {
    max-width: 800px;
    margin: 0 auto;
}

.saved-container h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.saved-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.saved-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.saved-card:hover {
    transform: translateY(-5px);
}

.saved-video-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.saved-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f0f0f0;
}

.saved-card-content {
    padding: 1.5rem;
}

.saved-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.saved-card-location {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.saved-card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile-specific navbar fix */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .app-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Force navbar to column layout */
    .navbar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.8rem !important;
        gap: 0.5rem !important;
    }
    
    .navbar-top {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
    }
    
    .navbar-bottom {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        margin-top: 0.3rem !important;
    }
    
    .nav-brand {
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .nav-location {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        max-width: 50% !important;
    }
    
    .nav-location span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: block !important;
    }
    
    .nav-tab {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }
}

/* Additional mobile responsive adjustments */
@media (max-width: 768px) {
    .page {
        padding: 1rem !important;
    }
    
    .swipe-container {
        max-width: 100% !important;
    }
    
    .card-stack {
        height: 400px !important;
    }
}

/* Additional mobile breakpoint for very small screens */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem !important;
        gap: 0.3rem !important;
    }
    
    .nav-brand {
        font-size: 1rem !important;
    }
    
    .nav-location {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.7rem !important;
        max-width: 45% !important;
    }
    
    .nav-tab {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    
    .page {
        padding: 0.8rem !important;
    }
    
    .swipe-container {
        max-width: 100% !important;
    }
    
    .card-stack {
        height: 350px !important;
    }
    
    .swipe-actions {
        gap: 1rem !important;
    }
    
    .action-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .saved-list {
        grid-template-columns: 1fr !important;
    }
    
    .swipe-effect {
        font-size: 2rem !important;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: white;
    font-size: 1.2rem;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    color: white;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    opacity: 0.8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal-header {
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.modal-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-videos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-videos video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-description {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.modal-description p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* Map styles */
.map-container {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.map-container > div {
    width: 100% !important;
    height: 300px !important;
    border-radius: 10px;
}

/* Leaflet map customizations */
.leaflet-container {
    border-radius: 10px !important;
    font-family: inherit !important;
}

.leaflet-control-zoom {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom:hover {
    background: #f8f9fa !important;
    transform: scale(1.05) !important;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #333 !important;
    border: none !important;
    border-radius: 6px !important;
    margin: 2px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom a:hover {
    background: #667eea !important;
    color: white !important;
    transform: scale(1.05) !important;
}

/* Custom Leaflet marker styling */
.custom-leaflet-marker {
    transition: all 0.3s ease;
}

.custom-leaflet-marker div:hover {
    transform: scale(1.1);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-tip {
    background: white !important;
    border: 1px solid #ccc !important;
}

/* Map container styling */
.map-container {
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* Mobile-specific map adjustments */
@media (max-width: 768px) {
    .map-container > div {
        height: 250px !important;
    }
    
    .map-container {
        margin-bottom: 15px;
    }
    
    /* Ensure maps are properly sized on mobile */
    .map-container div[style*="width"] {
        width: 100% !important;
        height: 250px !important;
    }
    
    /* Mobile-optimized saved cards */
    .saved-card {
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .saved-card-header {
        padding: 15px 15px 10px 15px;
    }
    
    .saved-card-title {
        font-size: 20px;
    }
    
    .saved-card-location {
        font-size: 14px;
    }
    
    .saved-card-media {
        padding: 0 15px 10px 15px;
    }
    
    .media-grid {
        height: 180px;
        gap: 8px;
    }
    
    .saved-card-details {
        padding: 12px 15px 15px 15px;
    }
    
    .saved-card-description {
        font-size: 14px;
    }
    
    /* Mobile-optimized tags */
    .tag {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* Mobile-optimized action buttons */
    .action-btn-small {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Custom map pin styles */
.custom-map-pin {
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-map-pin:hover {
    transform: translate(-50%, -50%) scale(1.2) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6) !important;
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* Distance group styles */
.distance-group {
    margin-bottom: 30px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.distance-group h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.distance-group h3::before {
    content: "📍";
    font-size: 20px;
}

.group-scenes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

/* Ensure saved container uses vertical layout */
#saved-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Enhanced saved cards with rich content */
.saved-card {
    width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.saved-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.saved-card-content {
    padding: 0;
}

/* Card Header */
.saved-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.saved-card-info {
    flex: 1;
}

.scene-index {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-right: 10px;
    min-width: 24px;
    text-align: center;
}

.saved-card-title {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.saved-card-location {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-card-location i {
    color: #667eea;
}

/* Tags */
.saved-card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-distance {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-type {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Action Buttons */
.saved-card-actions {
    display: flex;
    gap: 8px;
}

.action-btn-small {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.action-btn-small:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.view-details-btn:hover {
    background: #667eea;
}

.remove-btn:hover {
    background: #ff4757;
}

/* Media Section */
.saved-card-media {
    padding: 0 20px 15px 20px;
}

.media-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    height: 200px;
}

.media-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-video {
    grid-row: span 2;
}

.side-video {
    height: 95px;
}

.destination-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.media-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

/* Details Section */
.saved-card-details {
    padding: 15px 20px 20px 20px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
}

.saved-card-description {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Highlights */
.saved-card-highlights h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-item {
    background: #fff3cd;
    color: #856404;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.highlight-item i {
    color: #ffc107;
    font-size: 10px;
}

/* Meta Information */
.saved-card-meta {
    margin: 15px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    color: #667eea;
    width: 16px;
}

/* Rating */
.saved-card-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star-filled {
    color: #ffc107;
}

.star-empty {
    color: #e0e0e0;
}

.rating-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.loading-state i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.loading-state h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.loading-state p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

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

/* Delete Group Button */
.delete-group-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2) !important;
}

.delete-group-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

.delete-group-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4) !important;
}

.delete-group-btn i {
    font-size: 12px !important;
}

/* Group Header */
.group-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    padding: 0 5px !important;
}

.group-header h3 {
    margin: 0 !important;
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Destination Images in Saved Cards */
.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.destination-image:hover {
    transform: scale(1.02);
}

/* Update media item classes for saved cards */
.media-item.main-media {
    flex: 2;
}

.media-item.side-media {
    flex: 1;
}

/* Saved Destinations Media Layout - Same as discovery page */
.saved-card-media .media-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 360px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.saved-card-media .media-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.saved-card-media .media-item.main-media {
    flex: 1;
    width: 100%;
    height: 60%;
}

.saved-card-media .media-item.side-media {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    height: 40%;
}

.saved-card-media .media-item.side-media > * {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

/* More Images Overlay */
.more-images-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.more-images-overlay .more-count {
    font-size: 14px;
    font-weight: 700;
}

.more-images-overlay i {
    font-size: 14px;
}

/* Enhanced Modal Media Display */
.modal-videos img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.modal-videos img:hover {
    transform: scale(1.02);
}

.modal-videos video {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Media Count in Modal Title */
.media-count {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-left: 8px;
}
