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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.hidden {
    display: none !important;
}

/* Password Screen */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.password-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.password-container p {
    color: #666;
    margin-bottom: 1.5rem;
}

.password-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.password-container input:focus {
    outline: none;
    border-color: #667eea;
}

.password-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.password-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.password-container button:active {
    transform: translateY(0);
}

.password-lang-btn {
    position: absolute !important;
    top: 1rem;
    right: 1rem;
    width: auto !important;
    padding: 0.5rem 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 56px;
}

.password-lang-btn:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Main App */
#app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
}

.logo {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.header-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-button:active {
    transform: translateY(0);
}

.layer-button {
    height: 36px;
    padding: 0 1rem;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.layer-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.layer-button:active {
    transform: translateY(0);
}

.layer-button .mobile-text {
    display: inline;
}

.layer-button .desktop-text {
    display: none;
}

.lang-button {
    min-width: 48px;
    font-weight: 700;
    font-size: 0.9rem;
    justify-content: center;
}

/* Map */
.map {
    width: 100%;
    height: 100%;
    flex: 1;
}

/* Map Logo */
.map-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.map-logo a {
    display: block;
    transition: opacity 0.3s ease;
}

.map-logo a:hover {
    opacity: 0.8;
}

.map-logo img {
    display: block;
    height: 25px;
    width: auto;
    object-fit: contain;
}

/* Custom Map Controls */
.map-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.map-control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.map-control-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.map-control-btn:active {
    transform: translateY(0);
}

.map-control-btn svg {
    pointer-events: none;
}

.map-control-play {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.map-control-play:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.1);
}

.map-control-play.playing {
    background: #ff6b6b;
}

.map-control-play.playing svg {
    display: none;
}

.map-control-play.playing::before {
    content: '⏸';
    font-size: 18px;
}

/* Pitch Control */
.pitch-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: white;
    border-radius: 8px;
}

.pitch-icon {
    font-size: 16px;
    user-select: none;
}

#pitch-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#pitch-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: all 0.2s ease;
}

#pitch-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

#pitch-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#pitch-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .map-logo img {
        height: 20px;
    }

    .map-controls {
        bottom: 15px;
        padding: 6px;
        gap: 6px;
    }

    .map-control-btn {
        width: 36px;
        height: 36px;
    }

    .pitch-control {
        padding: 0 8px;
        gap: 6px;
    }

    #pitch-slider {
        width: 70px;
    }

    .pitch-icon {
        font-size: 14px;
    }
}

/* Hide Mapbox logo and attribution */
.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib {
    display: none !important;
}

/* Info Panel */
.info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 50vh;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 500;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.info-panel.hidden {
    transform: translateY(100%);
}

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

.info-panel-header h2 {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.close-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-button:hover {
    background: #e0e0e0;
}

.info-content {
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(50vh - 60px);
}

.info-content p {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.5;
    font-size: 0.85rem;
}

.info-content strong {
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
}

/* List Panel */
.list-panel {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 2000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.list-panel-header h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.list-summary {
    font-size: 0.85rem;
    color: #667eea;
    margin: 0.25rem 0 0 0;
    font-weight: 600;
}

.copy-button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.copy-button:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button.copied {
    background: #4caf50;
    color: white;
}

.list-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.parcel-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.parcel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.parcel-item:active {
    transform: translateY(0);
}

.parcel-item h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.parcel-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0;
}

/* Mapbox Popup Customization */
.mapboxgl-popup-content {
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mapboxgl-popup-close-button {
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.settings-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.settings-header h2 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.settings-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

/* Setting Sections */
.setting-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.25rem;
}

.setting-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.section-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.section-header label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.section-controls {
    margin-top: 1rem;
    padding-left: 2rem;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.control-row:last-child {
    margin-bottom: 0;
}

.control-row > label {
    font-size: 0.8rem;
    color: #888;
    min-width: 50px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.control-group input[type="range"] {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #e8e8e8;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: transform 0.15s;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: transform 0.15s;
}

.control-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.control-group input[type="color"] {
    width: 36px;
    height: 28px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.control-group input[type="color"]:hover {
    border-color: #667eea;
}

.control-group .value {
    min-width: 38px;
    text-align: right;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
}

/* Reset Button */
.reset-btn {
    margin: 1rem 1.25rem;
    padding: 0.65rem;
    width: calc(100% - 2.5rem);
    background: #f5f5f5;
    color: #888;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #ebebeb;
    color: #666;
}

.reset-btn:active {
    transform: scale(0.98);
}

/* Info Page Styles */
.info-page-body {
    background: #f5f7fa;
    min-height: 100vh;
    overflow-y: auto;
}

.info-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.info-page-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.language-toggle svg {
    flex-shrink: 0;
}

#current-lang {
    font-weight: 700;
    min-width: 20px;
}

.info-page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.info-page-footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.info-page-footer a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.info-page-footer a:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* ETAP Section Divider */
.etap-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #667eea, #764ba2, #667eea, transparent);
    margin: 3rem 0;
    border-radius: 2px;
    opacity: 0.3;
}

/* Chart Image Container */
.chart-image-container {
    margin: 2rem 0;
    text-align: center;
}

.chart-image {
    max-width: 90%;
    height: auto;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.chart-image:hover {
    opacity: 0.85;
}

/* Chart Lightbox */
.chart-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: auto;
}

.chart-lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

.chart-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 4001;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.chart-lightbox-close:hover {
    transform: scale(1.2);
}

#chart-lightbox-image {
    max-width: 95vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.3s ease;
    object-fit: contain;
}

#chart-lightbox-image.zoomed {
    max-width: 150vw;
    max-height: 150vh;
    cursor: zoom-out;
    transform: scale(1.5);
    object-fit: contain;
}

#chart-lightbox-caption {
    color: white;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

/* Mobile adjustments for chart lightbox */
@media (max-width: 768px) {
    .chart-lightbox {
        padding: 1rem;
    }

    .chart-lightbox-close {
        top: -40px;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }

    #chart-lightbox-image {
        max-width: 98vw;
        max-height: 75vh;
    }

    #chart-lightbox-image.zoomed {
        max-width: 200vw;
        max-height: 200vh;
        transform: scale(2);
    }

    #chart-lightbox-caption {
        font-size: 1rem;
        margin-top: 1rem;
    }
}

/* Gallery Preview Section */
.gallery-preview-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.gallery-preview-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-preview-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-preview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-preview-item img:not(.loaded) {
    opacity: 0.5;
}

.gallery-preview-item img.loaded {
    opacity: 1;
}

.gallery-preview-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-preview-item:hover::after {
    opacity: 1;
}

.show-all-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.show-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.show-all-btn:active {
    transform: translateY(0);
}

/* Mobile adjustments for gallery preview */
@media (max-width: 768px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .show-all-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile adjustments for info page */
@media (max-width: 768px) {
    .info-page-header {
        padding: 1rem;
    }

    .info-page-header h2 {
        font-size: 1.2rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .language-toggle {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }

    .back-button span {
        display: none;
    }

    .info-page-content {
        padding: 1rem;
    }

    .footer-logo {
        height: 35px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .gallery-grid-section {
        padding: 1.5rem;
    }
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    display: flex;
    flex-direction: column;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.gallery-header h2 {
    font-size: 1rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.gallery-counter {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.gallery-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

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

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav-prev {
    left: 1rem;
}

.gallery-nav-next {
    right: 1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #667eea;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Modal */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.info-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-modal-header h2 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.info-modal-header .close-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.info-modal-header .close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.info-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.project-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
}

.project-title h1 {
    font-size: 1.4rem;
    color: #333;
    line-height: 1.5;
    margin: 0;
    font-weight: 700;
}

.project-intro {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.project-intro p {
    margin: 0 0 1rem 0;
    color: #333;
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-intro p:last-child {
    margin-bottom: 0;
}

.embedded-gallery {
    margin-bottom: 2rem;
    text-align: center;
}

.embedded-gallery h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 1rem 0;
}

.gallery-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gallery-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.gallery-open-btn:active {
    transform: translateY(0);
}

.data-table-section {
    margin-bottom: 2.5rem;
}

.data-table-section h3 {
    font-size: 1.2rem;
    color: #667eea;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.data-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.data-table td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    color: #333;
}

.data-table .number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table .total-row {
    background: #f0f4ff;
    font-weight: 600;
}

.data-table .subtotal-row {
    background: #fafbff;
    font-weight: 600;
}

.data-table .group-header {
    background: #e8ecff;
    font-weight: 700;
    color: #667eea;
}

.data-table .highlight {
    background: #fff8e1;
}

.info-box {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-box h4 {
    margin: 0 0 1rem 0;
    color: #667eea;
    font-size: 1rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    font-size: 0.9rem;
}

.info-box li:last-child {
    border-bottom: none;
}

.info-box strong {
    color: #333;
    font-weight: 600;
}

.calculation-table {
    width: 100%;
    border-collapse: collapse;
}

.calculation-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.calculation-table .number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.summary-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.summary-box h4 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.1rem;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-item.highlight {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffd54f;
}

.summary-item .label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.summary-item .value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.parcel-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.info-parcel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-parcel-list .parcel-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.info-parcel-list .parcel-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

/* Responsive */
@media (min-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }

    .layer-button .mobile-text {
        display: none;
    }

    .layer-button .desktop-text {
        display: inline;
    }

    .info-panel {
        right: auto;
        bottom: 20px;
        left: 20px;
        width: 400px;
        max-height: 60vh;
        border-radius: 16px;
    }

    .info-panel.hidden {
        transform: translateX(-450px);
    }

    .list-panel {
        left: auto;
        right: 0;
        width: 450px;
        top: 60px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .list-panel.hidden {
        transform: translateX(100%);
    }
}

@media (min-width: 1024px) {
    .header {
        padding: 0 2rem;
    }
}
