/* Vragguiden Modern Theme - 2025 Edition */
/* Color palette - Dark Ocean Theme with Modern Accents */
:root {
    --vrag-primary: #0c2d48;
    --vrag-primary-dark: #061928;
    --vrag-secondary: #145da0;
    --vrag-accent: #2ee5ff;
    --vrag-accent-glow: rgba(46, 229, 255, 0.4);
    --vrag-gradient-start: #0c2d48;
    --vrag-gradient-end: #1a4a6e;
    --vrag-light: #f0f7fa;
    --vrag-light-alt: #e4f1f6;
    --vrag-text: #1a3a52;
    --vrag-text-light: #5c7d94;
    --vrag-white: #ffffff;
    --vrag-glass: rgba(255, 255, 255, 0.85);
    --vrag-glass-border: rgba(255, 255, 255, 0.18);
    --vrag-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --vrag-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --vrag-shadow-glow: 0 0 15px rgba(46, 229, 255, 0.1);
    --vrag-radius: 8px;
    --vrag-radius-sm: 6px;
    --vrag-radius-xs: 4px;
    --vrag-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
html, body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--vrag-light) 0%, var(--vrag-light-alt) 100%);
    color: var(--vrag-text);
    line-height: 1.7;
    scroll-behavior: smooth;
}

/* Max width container for Full HD screens */
.vrag-max-width-container {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--vrag-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--vrag-secondary), var(--vrag-primary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--vrag-accent), var(--vrag-secondary));
}

/* Modern Glass Card Component */
.vrag-card {
    background: var(--vrag-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--vrag-radius);
    box-shadow: var(--vrag-shadow);
    padding: 1.75rem;
    transition: box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.vrag-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vrag-card-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vrag-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--vrag-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.vrag-card-header .oi {
    background: linear-gradient(135deg, var(--vrag-accent), var(--vrag-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
}

/* Hero Section - Modern Immersive Design */
.hero-section {
    background: linear-gradient(135deg, var(--vrag-gradient-start) 0%, var(--vrag-gradient-end) 50%, var(--vrag-primary) 100%);
    color: var(--vrag-white);
    padding: 2rem 2rem 2.5rem;
    border-radius: var(--vrag-radius);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 10; /* Establish stacking context above content below */
    /* overflow: hidden removed to allow search dropdown to extend beyond hero section */
    box-shadow: var(--vrag-shadow-lg);
}

/* Clip decorative elements to hero section bounds */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--vrag-radius);
    pointer-events: none;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--vrag-radius);
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(46, 229, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 93, 160, 0.15) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(46,229,255,0.06)' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,133.3C672,117,768,139,864,165.3C960,192,1056,224,1152,218.7C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    clip-path: inset(0 round var(--vrag-radius));
}

.hero-section h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-stats {
    display: none; /* Hidden on mobile by default */
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-stats {
        display: flex; /* Show on tablet and up */
    }
}

.hero-stat {
    text-align: center;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--vrag-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #2ee5ff, #5ff5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Search Box - Modern Floating Design */
.search-container {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3.5rem;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    outline: none;
    transition: var(--vrag-transition);
    background: var(--vrag-white);
}

.search-input::placeholder {
    color: var(--vrag-text-light);
}

.search-input:focus {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--vrag-accent-glow);
    border-color: var(--vrag-accent);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    background: linear-gradient(135deg, var(--vrag-primary), var(--vrag-secondary));
    color: var(--vrag-white);
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--vrag-transition);
    box-shadow: none;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--vrag-secondary), var(--vrag-accent));
    transform: none;
    box-shadow: none;
}

.search-btn:active {
    transform: scale(0.98);
}

/* Search Dropdown - Live Results */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--vrag-white);
    border-radius: var(--vrag-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: dropdownSlide 0.2s ease-out;
    z-index: 1000;
    max-height: 480px;
    overflow-y: auto;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-dropdown-item {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--vrag-text);
    border-bottom: 1px solid var(--vrag-light);
    transition: background 0.15s ease;
    cursor: pointer;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.selected {
    background: linear-gradient(135deg, var(--vrag-light), var(--vrag-light-alt));
}

.search-dropdown-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--vrag-primary);
    margin-bottom: 0.25rem;
}

.search-dropdown-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--vrag-text-light);
}

.search-dropdown-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.search-dropdown-meta .oi {
    font-size: 0.7rem;
    color: var(--vrag-accent);
}

.search-dropdown-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--vrag-primary), var(--vrag-secondary));
    color: var(--vrag-white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-dropdown-more:hover,
.search-dropdown-more.selected {
    background: linear-gradient(135deg, var(--vrag-secondary), var(--vrag-accent));
}

.search-dropdown-loading,
.search-dropdown-empty {
    padding: 2rem;
    text-align: center;
    color: var(--vrag-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.search-dropdown-loading .oi,
.search-dropdown-empty .oi {
    font-size: 1.5rem;
    color: var(--vrag-accent);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Quick Links - Pill Buttons */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.quick-link {
    background: rgba(46, 229, 255, 0.12);
    color: #2ee5ff;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid rgba(46, 229, 255, 0.25);
    transition: background 0.2s ease;
}

.quick-link:hover {
    background: rgba(46, 229, 255, 0.22);
    color: #2ee5ff;
}

.quick-link .oi {
    font-size: 0.8rem;
}

/* Grid Layout - Aligned */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
}

/* Sekundært grid til 3-kolonne layout (understøtter også 4 kolonner) */
.content-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.content-grid-3 > .vrag-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-grid-3 > .vrag-card > .wreck-list {
    flex: 1;
}

@media (min-width: 768px) {
    .content-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .content-grid-3 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sidebar-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sidebar-grid > .vrag-card {
    width: 100%;
}

/* Facts List - Clean modern design */
.facts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--vrag-light);
}

.fact-item:last-child {
    border-bottom: none;
}

.fact-label {
    font-size: 0.85rem;
    color: var(--vrag-text-light);
    font-weight: 500;
}

.fact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vrag-primary);
    text-align: right;
}

/* Actions List - Vertical full width buttons */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Actions List Horizontal - Wrap to rows */
.actions-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
}

.actions-list-horizontal .action-btn {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 200px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--vrag-light);
    color: var(--vrag-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--vrag-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--vrag-transition);
    width: 100%;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--vrag-light), var(--vrag-light-alt));
    border-color: var(--vrag-accent);
    color: var(--vrag-primary);
    transform: translateY(-2px);
    box-shadow: var(--vrag-shadow);
}

.action-btn .oi {
    font-size: 0.9rem;
    color: var(--vrag-accent);
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--vrag-primary), var(--vrag-secondary));
    color: var(--vrag-white);
    border: none;
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, var(--vrag-secondary), var(--vrag-accent));
    color: var(--vrag-white);
}

.action-btn-primary .oi {
    color: var(--vrag-white);
}

/* Wreck List - Clean Design */
.wreck-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wreck-list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--vrag-text);
    border-bottom: 1px solid var(--vrag-light);
}

.wreck-list-item:last-child {
    border-bottom: none;
}

.wreck-list-item:hover {
    color: var(--vrag-primary);
}

.wreck-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: var(--vrag-radius-xs);
    object-fit: cover;
    background: var(--vrag-light);
    flex-shrink: 0;
}

.wreck-thumbnail-icon {
    object-fit: contain;
    padding: 6px;
    background: linear-gradient(135deg, var(--vrag-light), var(--vrag-light-alt));
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.wreck-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vrag-primary);
    letter-spacing: -0.01em;
}

.wreck-info p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--vrag-text-light);
}

/* Wreck Detail Page - Modern Header */
.wreck-detail-header {
    background: linear-gradient(135deg, var(--vrag-gradient-start) 0%, var(--vrag-gradient-end) 100%);
    color: var(--vrag-white);
    padding: 2.5rem;
    border-radius: var(--vrag-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--vrag-shadow-lg);
}

.wreck-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 100% 50%, rgba(46, 229, 255, 0.15) 0%, transparent 70%);
}

.wreck-detail-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    position: relative;
}

.wreck-detail-id {
    opacity: 0.75;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.wreck-detail-actions {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    position: relative;
}

.wreck-action-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--vrag-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    transition: var(--vrag-transition);
}

.wreck-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--vrag-white);
    transform: none;
}

/* Info Grid - Stats */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.info-item {
    background: var(--vrag-light);
    padding: 1rem;
    border-radius: var(--vrag-radius-xs);
    text-align: center;
}

.info-label {
    font-size: 0.7rem;
    color: var(--vrag-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.375rem;
    font-weight: 600;
}

.info-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vrag-primary);
    letter-spacing: -0.02em;
}

.info-value-gps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Image Gallery - Modern Masonry-style */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--vrag-radius-sm);
    cursor: pointer;
    transition: var(--vrag-transition);
    box-shadow: var(--vrag-shadow);
}

.gallery-image:hover {
    transform: scale(1.03);
    box-shadow: var(--vrag-shadow-lg);
}

/* Featured Image Gallery - Top of page */
.image-gallery-featured {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: var(--vrag-radius-sm);
    overflow: hidden;
    box-shadow: var(--vrag-shadow);
    transition: var(--vrag-transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--vrag-shadow-lg);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-image-featured {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: var(--vrag-transition);
}

.gallery-item:hover .gallery-image-featured {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    opacity: 0.7;
    transition: var(--vrag-transition);
}

.gallery-overlay .oi {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: var(--vrag-transition);
}

.gallery-item:hover .gallery-overlay .oi {
    opacity: 1;
}

.gallery-date {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modal - Generic */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--vrag-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--vrag-radius);
    padding: 0;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.2s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--vrag-light);
    background: linear-gradient(135deg, var(--vrag-light) 0%, var(--vrag-white) 100%);
    border-radius: var(--vrag-radius) var(--vrag-radius) 0 0;
}

.modal-header h3 {
    color: var(--vrag-primary);
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 .oi {
    color: var(--vrag-accent);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--vrag-text-light);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--vrag-primary);
}

.modal-body {
    padding: 1.5rem;
    color: var(--vrag-text);
    line-height: 1.7;
}

.modal-body p {
    margin: 0 0 0.75rem 0;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--vrag-light);
    background: var(--vrag-light);
    border-radius: 0 0 var(--vrag-radius) var(--vrag-radius);
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--vrag-radius-sm);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.7;
    transition: var(--vrag-transition);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    max-width: 600px;
}

.lightbox-meta {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.3s ease, border-color 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 0.75rem;
    }
    
    .lightbox-next {
        right: 0.75rem;
    }
    
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .image-gallery-featured {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .gallery-image-featured {
        height: 150px;
    }
}

/* Comments Section - Modern Design */
.comment {
    background: linear-gradient(135deg, var(--vrag-light) 0%, var(--vrag-white) 100%);
    padding: 1.25rem;
    border-radius: var(--vrag-radius-sm);
    margin-bottom: 1rem;
    border-left: 3px solid var(--vrag-accent);
    transition: var(--vrag-transition);
}

.comment:hover {
    box-shadow: var(--vrag-shadow);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 700;
    color: var(--vrag-primary);
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--vrag-text-light);
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Description text styling */
.description-text {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Map Placeholder - Modern */
.map-container {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--vrag-light) 0%, var(--vrag-light-alt) 100%);
    border-radius: var(--vrag-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vrag-text-light);
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

/* Buttons - Modern Gradient Style */
.btn-primary {
    background: linear-gradient(135deg, var(--vrag-primary), var(--vrag-secondary));
    color: var(--vrag-white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vrag-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--vrag-secondary), var(--vrag-accent));
    color: var(--vrag-white);
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--vrag-white);
    color: var(--vrag-primary);
    border: 1px solid var(--vrag-primary);
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vrag-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--vrag-primary);
    color: var(--vrag-white);
    transform: none;
    box-shadow: none;
}

/* Tags - Modern Pill Style */
/* Default tag style for dark backgrounds - Unified harmonious palette */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    transition: var(--vrag-transition);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Tag variants for dark backgrounds (header) - Soft, harmonious colors */
.tag.tag-success {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(144, 238, 144, 0.5);
    box-shadow: inset 0 0 0 1px rgba(144, 238, 144, 0.2);
}

.tag.tag-warning {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 200, 100, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 200, 100, 0.2);
}

.tag.tag-info {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(135, 206, 250, 0.5);
    box-shadow: inset 0 0 0 1px rgba(135, 206, 250, 0.2);
}

/* Tags on light backgrounds (inside cards) - override for light context */
.vrag-card .tag {
    background: var(--vrag-light);
    color: var(--vrag-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
}

.vrag-card .tag:hover {
    background: var(--vrag-light-alt);
}

.vrag-card .tag.tag-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: rgba(21, 87, 36, 0.15);
}

.vrag-card .tag.tag-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
    border-color: rgba(133, 100, 4, 0.15);
}

.vrag-card .tag.tag-info {
    background: linear-gradient(135deg, rgba(46, 229, 255, 0.15), rgba(46, 229, 255, 0.25));
    color: var(--vrag-secondary);
    border-color: rgba(46, 229, 255, 0.25);
}

/* Featured Wreck Card - Modern Showcase */
.featured-wreck {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .featured-wreck {
        grid-template-columns: 1fr 1.5fr;
    }
}

.featured-wreck-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--vrag-radius-sm);
    box-shadow: var(--vrag-shadow);
    transition: var(--vrag-transition);
}

.featured-wreck-image:hover {
    transform: scale(1.02);
    box-shadow: var(--vrag-shadow-lg);
}

.featured-wreck-content h3 {
    color: var(--vrag-primary);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.featured-wreck-content p {
    line-height: 1.7;
    color: var(--vrag-text);
    margin-bottom: 1.25rem;
}

.featured-wreck-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

/* Featured Wrecks Grid - 5 random wrecks with images */
.featured-wrecks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .featured-wrecks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .featured-wrecks-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.featured-wreck-card {
    position: relative;
    border-radius: var(--vrag-radius-sm);
    overflow: hidden;
    text-decoration: none;
    display: block;
    aspect-ratio: 4 / 3;
    box-shadow: var(--vrag-shadow);
    transition: var(--vrag-transition);
}

.featured-wreck-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vrag-shadow-lg);
}

.featured-wreck-card:hover .featured-wreck-thumb {
    transform: scale(1.08);
}

.featured-wreck-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--vrag-transition);
}

.featured-wreck-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 1rem 0.75rem 0.75rem;
    color: white;
}

.featured-wreck-overlay h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.featured-wreck-details {
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem;
    opacity: 0.85;
    flex-wrap: wrap;
}

.featured-wreck-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.featured-wreck-details .oi {
    font-size: 0.6rem;
    color: var(--vrag-accent);
}

.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--vrag-text-light);
    font-size: 1rem;
}

/* Footer - Modern Design */
.footer {
    background: linear-gradient(135deg, var(--vrag-primary-dark) 0%, var(--vrag-primary) 100%);
    color: var(--vrag-white);
    padding: 3rem 2rem;
    margin-top: 3rem;
    border-radius: var(--vrag-radius) var(--vrag-radius) 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vrag-accent), var(--vrag-secondary), var(--vrag-accent));
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer a {
    color: var(--vrag-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--vrag-transition);
}

.footer a:hover {
    color: #5ff5ff;
    text-decoration: underline;
}

/* Responsive Navigation */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 1.5rem 1rem 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Stats are hidden on mobile via display:none in base styles */
    
    .quick-links {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .quick-link {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .search-input {
        padding: 0.75rem 1rem;
        padding-right: 3rem;
        font-size: 0.95rem;
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
        right: 4px;
        top: 4px;
    }
}

/* Depth indicator - Modern Style */
.depth-indicator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(135, 206, 250, 0.5);
    box-shadow: inset 0 0 0 1px rgba(135, 206, 250, 0.2);
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

/* News item - Timeline Style */
.news-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--vrag-light);
    position: relative;
    padding-left: 1rem;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    background: var(--vrag-accent);
    border-radius: 50%;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.75rem;
    color: var(--vrag-text-light);
    margin-bottom: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--vrag-light) 25%, var(--vrag-light-alt) 50%, var(--vrag-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--vrag-radius-xs);
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--vrag-accent);
    outline-offset: 2px;
}

/* Smooth page transitions */
.page-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Additional utility classes */
.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Calculated coordinate icon */
.calculated-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.calculated-icon:hover {
    opacity: 1;
}

.calculated-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* Overview Map Styles */
.overview-map-container {
    position: relative;
    width: 100%;
    border-radius: var(--vrag-radius-sm);
    overflow: hidden;
}

/* Overview mode - larger map for front page */
.overview-map-container.overview-mode {
    border: 2px solid var(--vrag-light-alt);
}

/* Detail mode - compact map for wreck detail page */
.overview-map-container.detail-mode {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.overview-map-container.detail-mode .overview-map {
    min-height: 250px !important;
}

.overview-map {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--vrag-light) 0%, var(--vrag-light-alt) 100%);
}

/* Header hint text for map */
.header-hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--vrag-text-light);
    margin-left: auto;
    opacity: 0.8;
}

.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
}

.map-loading-overlay p {
    color: var(--vrag-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--vrag-light);
    border-radius: var(--vrag-radius-xs);
    font-size: 0.85rem;
    align-items: center;
}

.map-legend.legend-compact {
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vrag-text);
}

.legend-item.legend-count {
    margin-left: auto;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
}

.legend-marker.verified {
    background: #22c55e;
    border-color: #16a34a;
}

.legend-marker.unverified {
    background: #f59e0b;
    border-color: #d97706;
}

/* Google Maps InfoWindow Styling Override */
.gm-style .gm-style-iw-c {
    border-radius: var(--vrag-radius-sm) !important;
    box-shadow: var(--vrag-shadow-lg) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-tc::after {
    display: none;
}

/* Facebook Like Button Container */
.fb-like-container {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    min-height: 28px;
}

/* Facebook Like in Header - seamless integration */
.fb-like-header {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.fb-like-header .fb-like {
    display: flex;
    align-items: center;
}

/* Wreck Detail Map Container - Full width with rounded corners */
.wreck-map-container {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--vrag-radius-sm);
    overflow: hidden;
    box-shadow: var(--vrag-shadow);
}

.wreck-map-container .overview-map-container {
    border-radius: var(--vrag-radius-sm);
}

.wreck-map-container .overview-map {
    height: 300px !important;
    border-radius: var(--vrag-radius-sm);
}

/* Responsive map */
@media (max-width: 767.98px) {
    .overview-map {
        height: 350px;
    }
    
    .map-legend {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Larger map on big screens */
@media (min-width: 1200px) {
    .overview-map {
        height: 600px;
    }
}

@media (min-width: 1600px) {
    .overview-map {
        height: 700px;
    }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--vrag-primary-dark) 0%, var(--vrag-primary) 100%);
    color: var(--vrag-white);
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cookie-consent-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--vrag-accent), #5ff5ff);
    color: var(--vrag-primary-dark);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--vrag-transition);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 229, 255, 0.4);
}

.btn-cookie-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--vrag-transition);
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--vrag-white);
}

@media (max-width: 767.98px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-text {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-icon {
        font-size: 1.5rem;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}

/* QR Code Section */
.qr-code-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.qr-code-container {
    flex-shrink: 0;
    padding: 1rem;
    background: var(--vrag-white);
    border: 2px solid var(--vrag-light);
    border-radius: var(--vrag-radius-sm);
    box-shadow: var(--vrag-shadow);
}

.qr-code-image {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 4px;
}

.qr-code-info {
    flex: 1;
    min-width: 250px;
}

.qr-code-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vrag-primary);
}

.qr-code-info p {
    margin: 0;
    color: var(--vrag-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.qr-code-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.qr-code-actions .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.qr-code-tip {
    background: linear-gradient(135deg, rgba(46, 229, 255, 0.1), rgba(46, 229, 255, 0.05));
    border: 1px solid rgba(46, 229, 255, 0.25);
    border-radius: var(--vrag-radius-xs);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--vrag-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.qr-code-tip .oi {
    color: var(--vrag-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 767.98px) {
    .qr-code-section {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-code-container {
        margin: 0 auto;
    }
    
    .qr-code-info {
        text-align: center;
    }
    
    .qr-code-actions {
        justify-content: center;
    }
    
    .qr-code-tip {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    /* Reset backgrounds and shadows for print */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
    }
    
    /* Hide navigation, footer, and interactive elements */
    .sidebar,
    .navbar,
    .nav-menu,
    footer,
    .footer,
    .cookie-consent-banner,
    .wreck-detail-actions,
    .wreck-action-btn,
    .action-btn,
    .actions-list-horizontal,
    .btn-primary,
    .btn-secondary,
    .btn-cookie-accept,
    .btn-cookie-decline,
    .fb-like,
    .fb-like-header,
    .qr-code-actions,
    .qr-code-tip,
    .lightbox-overlay,
    .lightbox-nav,
    .lightbox-close,
    .gallery-overlay,
    .search-container,
    .search-dropdown,
    .quick-links,
    .hero-section,
    .no-print,
    #blazor-error-ui,
    [href*="/upload"],
    [href*="/comment"],
    [href*="/edit"],
    [href*="/report"] {
        display: none !important;
    }
    
    /* Hide entire Handlinger section */
    .vrag-card:has(.actions-list-horizontal) {
        display: none !important;
    }
    
    /* Fallback for browsers without :has() - hide by header text */
    .vrag-card-header:has(.oi-wrench) {
        display: none !important;
    }
    
    /* Hide QR code action buttons but keep QR code visible */
    .qr-code-section .btn-secondary {
        display: none !important;
    }
    
    /* Page layout for print */
    .vrag-max-width-container,
    .content-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .content-grid > div {
        grid-column: auto !important;
    }
    
    /* Wreck header styling for print */
    .wreck-detail-header {
        background: none !important;
        color: black !important;
        padding: 0 0 1rem 0 !important;
        border-bottom: 2px solid #333 !important;
        border-radius: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .wreck-detail-header::before,
    .wreck-detail-header::after {
        display: none !important;
    }
    
    .wreck-detail-title {
        color: black !important;
        font-size: 18pt !important;
    }
    
    .wreck-detail-id {
        color: #666 !important;
    }
    
    /* Tags for print */
    .tag,
    .depth-indicator {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ccc !important;
        backdrop-filter: none !important;
    }
    
    /* Cards for print */
    .vrag-card {
        background: white !important;
        border: 1px solid #ddd !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 0 !important;
    }
    
    /* Allow cards to break inside if needed - prevents unnecessary page breaks */
    .vrag-card {
        page-break-inside: auto !important;
    }
    
    /* Keep headers with their content */
    .vrag-card-header {
        page-break-after: avoid !important;
    }
    
    .vrag-card-header {
        border-bottom: 1px solid #ccc !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    .vrag-card-header .oi {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: black !important;
        background-clip: unset !important;
    }
    
    /* Info grid for print */
    .info-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .info-item {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
    }
    
    .info-label {
        color: #666 !important;
    }
    
    .info-value {
        color: black !important;
    }
    
    /* Images for print - show smaller thumbnails */
    .image-gallery-featured {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .gallery-image-featured {
        height: 80px !important;
    }
    
    .gallery-item {
        page-break-inside: avoid !important;
    }
    
    /* Hide map in print - show static map instead */
    .wreck-map-container {
        display: block !important;
        margin-bottom: 1rem !important;
        position: relative !important;
    }
    
    .wreck-map-container .overview-map-container,
    .wreck-map-container .overview-map,
    .wreck-map-container .map-loading-overlay {
        display: none !important;
    }
    
    /* Show static map image for print - reset the visually-hidden styles */
    .wreck-map-container .print-static-map {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-height: 280px !important;
        padding: 0 !important;
        margin: 0 0 0.5rem 0 !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: normal !important;
        display: block !important;
        object-fit: contain !important;
        border: 1px solid #ccc !important;
    }
    
    .wreck-map-container .print-map-caption {
        display: block !important;
        font-size: 8pt !important;
        color: #666 !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    /* Comments for print */
    .comment {
        background: #f9f9f9 !important;
        border-left: 3px solid #333 !important;
        page-break-inside: avoid !important;
    }
    
    .comment-author {
        color: black !important;
    }
    
    /* QR code for print - compact layout */
    .qr-code-section {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .qr-code-container {
        padding: 0.5rem !important;
        border: 1px solid #ccc !important;
    }
    
    .qr-code-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    .qr-code-info h4 {
        color: black !important;
        font-size: 11pt !important;
        margin-bottom: 0.25rem !important;
    }
    
    .qr-code-info p {
        font-size: 9pt !important;
    }
    
    /* Description text */
    .description-text {
        font-size: 10pt !important;
        line-height: 1.5 !important;
    }
    
    /* Links for print - show URL */
    a[href]:after {
        content: none !important; /* Don't show URLs after links */
    }
    
    /* Page breaks - only avoid breaking headers from content */
    .vrag-card-header {
        page-break-after: avoid !important;
    }
    
    /* Orphan/widow control for better text flow */
    p, .description-text, .comment-text {
        orphans: 3;
        widows: 3;
    }
    
    /* Ensure text is readable */
    .text-muted {
        color: #666 !important;
    }
    
    /* Print footer with copyright */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        border-top: 1px solid #ccc;
        background: white;
        font-size: 8pt;
        color: #666;
        text-align: center;
    }
    
    /* Add padding at bottom to make room for fixed footer */
    body {
        padding-bottom: 3rem !important;
    }
}

/* Print footer - hidden on screen, shown in print */
.print-footer {
    display: none;
}

/* Static map for print - hidden on screen, shown only in print */
.print-static-map {
    display: none;
}

/* Hide failed images (shows alt text otherwise) */
.print-static-map[src=""],
.print-static-map:not([src]) {
    display: none !important;
}

.print-map-caption {
    display: none;
}

/* Print styles - show static map only in print */
@media print {
    .print-static-map {
        display: block;
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: contain;
        border: 1px solid #ccc;
        margin-bottom: 0.5rem;
    }
    
    /* Hide broken images in print */
    .print-static-map:-moz-broken,
    .print-static-map:not([src]),
    .print-static-map[src=""] {
        display: none !important;
    }
    
    .print-map-caption {
        display: block;
        font-size: 8pt;
        color: #666;
        text-align: center;
        margin: 0;
    }
}

/* Dive Log Section on Wreck Detail */
.dive-log-list {
    display: flex;
    flex-direction: column;
}

.dive-log-item {
    padding: 1rem;
    border-bottom: 1px solid var(--vrag-light);
    transition: background 0.2s ease;
}

.dive-log-item:last-child {
    border-bottom: none;
}

.dive-log-item:hover {
    background: linear-gradient(135deg, var(--vrag-light) 0%, var(--vrag-white) 100%);
}

.dive-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dive-log-user {
    font-weight: 700;
    color: var(--vrag-primary);
    font-size: 0.95rem;
}

.dive-log-date {
    font-size: 0.8rem;
    color: var(--vrag-text-light);
}

.dive-log-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--vrag-text);
    margin-bottom: 0.5rem;
}

.dive-log-stats span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dive-log-stats .oi {
    font-size: 0.75rem;
    color: var(--vrag-accent);
}

.dive-log-comment {
    font-size: 0.9rem;
    color: var(--vrag-text-light);
    font-style: italic;
    line-height: 1.5;
}

.dive-log-more {
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.85rem;
}

/* Action button for diving - special styling */
.action-btn-dive {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: var(--vrag-white);
    border: none;
}

.action-btn-dive:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: var(--vrag-white);
}

.action-btn-dive .oi {
    color: var(--vrag-white);
}

/* Lightbox Delete Image Styles */
.lightbox-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10001;
}

.btn-danger-small {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--vrag-transition);
}

.btn-danger-small:hover:not(:disabled) {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-1px);
}

.btn-danger-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary-small {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--vrag-transition);
}

.btn-secondary-small:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.delete-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--vrag-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-confirmation span {
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.delete-confirmation-buttons {
    display: flex;
    gap: 0.75rem;
}

.delete-error {
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .delete-confirmation {
        padding: 0.75rem;
    }
    
    .delete-confirmation-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

