/* Place Detail Styles */
.back-button-container {
    position: fixed;
    top: 80px;
    left: 2rem;
    z-index: var(--z-controls);
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.place-detail {
    padding-top: 64px;
}

.hero-section {
    position: relative;
    height: 30vh;
    min-height: 180px;
    max-height: 320px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) center/cover;
    position: relative;
}

/* Hero Map Container */
#heroMap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0;
}

/* Ensure leaflet controls are hidden in hero map */
#heroMap .leaflet-control-container {
    display: none;
}

/* Ensure hero overlay is above the map */
.hero-overlay {
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2rem;
}

.hero-content {
    color: white;
}

.place-id {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
    color: white;
    position: relative;
    z-index: 10;
}

.place-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: left;
}

.place-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
}

.favorite-btn-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #64748b;
    color: #64748b;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
    position: relative;
    z-index: 10;
}

.favorite-btn-header:hover {
    background: #64748b;
    color: #fff;
    border-color: #64748b;
}

.favorite-btn-header.active {
    background: #fff;
    color: #64748b;
    border-color: #64748b;
}

.favorite-btn-header.active:hover {
    background: #64748b;
    color: #fff;
    border-color: #64748b;
}

.place-meta {
    display: flex;
    gap: 2rem;
    font-size: 1.125rem;
}

.place-distance {
    width: 300px;
}

.place-location,
.place-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    width: 100%;
}
.action-btns {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: flex-end;
}
.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.favorite-btn,
.share-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.favorite-btn:hover,
.share-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.content-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 5rem 2rem;
    min-height: 500px;
}

/* Scrollbarer Wrapper - beginnt unter dem blauen Balken */
.content-container .content-scroll-wrapper {
    padding-top: 1rem;
    padding-bottom: 3rem;
    max-height: 70vh;
    min-height: 280px;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Scrollbar Styling für WebKit Browser */
.content-container .content-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
}

.content-container .content-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.content-container .content-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.content-container .content-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Blauer Balken fest am oberen Rand - Grid beginnt darunter */
.content-container::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    display: block;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    align-items: stretch; /* Cards gleich hoch */
}

.info-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Card füllt Grid-Zelle komplett */
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.warning-card {
    border-left: 4px solid var(--warning-color);
}

.rating-card {
    border-left: 4px solid #fbbf24;
}

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

.rating-count {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.rating-card #avgRatingStars {
    font-size: 1.75rem;
    gap: 0.3rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.card-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Card-Content dehnt sich, damit Footer/Buttons immer unten sind */
.card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem; /* Padding wieder explizit setzen */
}

.coordinates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.copy-btn {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.navigation-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.safety-list {
    list-style: none;
}

.safety-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.safety-list i {
    color: var(--success-color);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 8rem;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.add-comment-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-comment-btn:hover {
    background: var(--primary-hover);
}

.comment-form {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-textarea:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    justify-content: center;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-color);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

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

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-avatar {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.comment-content {
    flex: 1;
}

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

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comment-text {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.comment-action:hover {
    color: var(--primary-color);
}

.no-comments-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.85;
}

.no-comments-hint i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.content-container .comments-section {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Sterne-Bewertungssystem */
#avgRatingStars {
    display: flex;
    align-items: center;
    gap: 0.15em;
    font-size: 1.7rem;
    cursor: pointer;
}
#avgRatingStars .bi-star,
#avgRatingStars .bi-star-half,
#avgRatingStars .bi-star-fill {
    color: #bbb;
    transition: color 0.2s;
    cursor: pointer;
}
#avgRatingStars .star-avg.hovered,
#avgRatingStars .star-avg:hover {
    color: #ffd700;
}
#avgRatingStars .star-avg.user-rated {
    color: #ffd700;
}
#avgRatingStars .bi-star-fill,
#avgRatingStars .bi-star-half {
    color: #ffd700;
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 1.2rem;
        width: 100%;
    }
    .action-btns {
        gap: 1.2rem;
        justify-content: flex-end;
    }
    
    .rating-card #avgRatingStars {
        font-size: 2rem;
    }
    
    .rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .place-id {
        text-align: center;
        display: block;
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .back-button-container {
        left: 1rem;
    }
    
    .hero-overlay {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .place-title {
        font-size: 2rem;
    }
    
    .place-title-row {
        gap: 0.75rem;
    }
    
    .favorite-btn-header {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    
    .place-id {
        text-align: center;
        display: block;
        margin-bottom: 1rem;
    }
    
    .place-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .content-container::before {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .content-container .content-scroll-wrapper {
        padding-top: 1rem;
        max-height: 60vh;
        min-height: 230px;
    }
    
    /* Place-specific mobile styles */
    .hero-section {
        height: 25vh;
        min-height: 120px;
        max-height: 200px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        border-radius: var(--radius-md);
    }
    
    .card-header,
    .card-content {
        padding: 1rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .comments-section {
        margin-top: 2rem;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .add-comment-btn {
        justify-content: center;
    }
    
    .comment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-avatar {
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .comment-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-header-actions {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem;
    }
}

/* Mobile 480px breakpoint */
@media (max-width: 480px) {
    .rating-card #avgRatingStars {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        gap: 1.5rem;
    }
    .back-button-container {
        left: 0.5rem;
        top: 70px;
    }
    
    .back-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .hero-section {
        height: 32vh;
        min-height: 200px;
        max-height: 280px;
    }
    
    .hero-overlay {
        padding: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .place-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        margin-right: 48px;
    }
    
    .place-meta {
        font-size: 0.875rem;
        gap: 0.5rem;
    }
    
    .place-title-row {
        gap: 0.5rem;
    }
    
    .favorite-btn-header {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-actions {
        gap: 0.5rem;
        position: relative;
        z-index: 3;
    }
    
    .favorite-btn,
    .share-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
    
    .content-container {
        padding: 0.5rem;
    }
    
    .content-container::before {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .content-container .content-scroll-wrapper {
        padding-top: 1rem;
        max-height: calc(60vh - 30px);
        min-height: 180px;
    }
    
    .info-grid {
        gap: 0.75rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-header h2 {
        font-size: 1.125rem;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .coordinates {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .copy-btn {
        padding: 0.375rem;
        font-size: 0.875rem;
    }
    
    .navigation-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .safety-list li {
        padding: 0.375rem 0;
        font-size: 0.875rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.375rem;
    }
    
    .upload-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .comments-header h2 {
        font-size: 1.25rem;
    }
    
    .add-comment-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .comment-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .comment-header {
        font-size: 0.875rem;
    }
    
    .comment-text {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .comment-actions {
        margin-top: 0.5rem;
    }
    
    .comment-action {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .form-textarea {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
    
    .form-actions .btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .place-id {
        font-size: 0.875rem;
        padding: 0.25rem 0.75rem;
        position: relative;
        z-index: 10;
        color: white;
        background: rgba(255,255,255,0.25);
        display: block;
        text-align: center;
        margin-bottom: 1rem;
        border-radius: var(--radius-md);
        backdrop-filter: blur(8px);
    }
} 

/* Gallery Styles */
.gallery-card {
    margin-bottom: 2rem;
}

.upload-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-gray-300);
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: var(--color-blue-500);
    background: var(--color-blue-50);
}

.upload-area {
    text-align: center;
    padding: 1rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-blue-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: var(--color-blue-700);
    transform: translateY(-1px);
}

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

.upload-hint {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--color-blue-500);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    font-weight: 500;
}

/* Gallery Container */
.gallery-container {
    width: 100%;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-gray-100);
    margin-bottom: 1rem;
}

/* Gallery Placeholder (Fotos & Videos) */
.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f9fb;
    border-radius: 18px;
    padding: 2rem 1rem 1.5rem 1rem;
    margin: 1.2rem 0;
    min-height: 140px;
    box-shadow: none;
    border: none;
}
.gallery-placeholder-icon {
    margin-bottom: 0.8rem;
}
.gallery-placeholder-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #232a36;
    margin-bottom: 0.3rem;
    text-align: center;
}
.gallery-placeholder-sub {
    font-size: 0.98rem;
    color: #7b8499;
    text-align: center;
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--text-secondary);
}

.gallery-placeholder p {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.gallery-placeholder small {
    font-size: 0.875rem;
    opacity: 0.7;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

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

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

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-300) transparent;
}

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

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--color-blue-500);
}

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

.gallery-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 4px 0 rgba(37,99,235,0.07);
    outline: none;
    margin-left: 0.5rem;
}
.gallery-upload-btn:hover, .gallery-upload-btn:focus {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(37,99,235,0.13);
    border-color: var(--primary-hover);
}
.gallery-upload-btn:hover i, .gallery-upload-btn:focus i {
    color: #fff;
}

/* Upload Modal Styles - Updated to use modal-overlay structure */
#uploadModal .modal-body,
#uploadVideoModal .modal-body {
    text-align: center;
}

#uploadModal .modal-content,
#uploadVideoModal .modal-content {
    max-width: 400px;
}
.upload-area-modal {
    border: 2px dashed #cbd5e1;
    border-radius: 0.8rem;
    padding: 1.5rem 1rem;
    margin-bottom: 1.2rem;
    background: #f8fafc;
    transition: border-color 0.2s, background 0.2s;
}
.upload-area-modal.drag-over {
    border-color: #2563eb;
    background: #e0e7ef;
}
.upload-btn-modal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.7rem;
    transition: background 0.2s;
}
.upload-btn-modal:hover {
    background: #1e40af;
}
.upload-hint {
    font-size: 0.92rem;
    color: #64748b;
    margin-top: 0.2rem;
}
.upload-progress {
    display: none;
    text-align: center;
    margin-top: 1rem;
}

.upload-progress .spinner {
    margin: 0 auto 1rem;
}

.upload-progress p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.progress-fill {
    height: 100%;
    background: #2563eb;
    width: 0%;
    transition: width 0.3s ease;
}
.progress-text {
    font-size: 0.92rem;
    color: #64748b;
    font-weight: 500;
}

/* Upload Success/Error States */
.upload-success,
.upload-error {
    text-align: center;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    margin: 1rem 0;
}

.upload-success .success-icon,
.upload-error .error-icon {
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.upload-success h4,
.upload-error h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0;
}

.upload-success p,
.upload-error p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.upload-success .btn,
.upload-error .btn {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

@keyframes scaleIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@media (max-width: 600px) {
    #uploadModal .modal-content,
    #uploadVideoModal .modal-content {
        max-width: 95vw;
    }
    
    .upload-section {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .upload-area {
        padding: 1.5rem;
        border-radius: 0;
    }
    
    .upload-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .upload-hint {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .gallery-main {
        height: 250px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-nav.prev {
        left: 0.5rem;
    }
    
    .gallery-nav.next {
        right: 0.5rem;
    }
    
    .gallery-counter {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .upload-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .upload-hint {
        font-size: 0.75rem;
    }
}

/* PWA Optimizations */
@media (display-mode: standalone) {
    .gallery-main {
        height: 350px;
    }
    
    .gallery-nav {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-nav {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .thumbnail {
        width: 70px;
        height: 52px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .upload-section {
        background: var(--color-gray-800);
        border-color: var(--color-gray-600);
    }
    
    .upload-section:hover {
        background: var(--color-blue-900);
        border-color: var(--color-blue-600);
    }
    
    .gallery-main {
        background: var(--color-gray-800);
    }
    
    .gallery-placeholder {
        color: var(--color-gray-400);
    }
} 

.desc-lead {
    display: block;
    font-size: 1.13rem;
    line-height: 1.6;
    color: #374151;
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.04);
} 

/* Fullscreen Gallery - Simple and Stable */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.fullscreen-gallery.show {
    display: flex;
}

.fullscreen-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10001;
}

.fullscreen-close {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.fullscreen-counter {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fullscreen-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px 20px;
}

#fullscreenImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.fullscreen-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 10001;
}

.fullscreen-caption {
    color: white;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

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

.fullscreen-prev {
    left: 20px;
}

.fullscreen-next {
    right: 20px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .fullscreen-header {
        height: 50px;
        padding: 0 15px;
    }
    
    .fullscreen-close {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .fullscreen-counter {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .fullscreen-content {
        padding: 50px 15px 70px 15px;
    }
    
    .fullscreen-footer {
        height: 70px;
        padding: 0 15px;
    }
    
    .fullscreen-caption {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .fullscreen-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .fullscreen-prev {
        left: 15px;
    }
    
    .fullscreen-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .fullscreen-header {
        height: 45px;
        padding: 0 10px;
    }
    
    .fullscreen-close {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .fullscreen-counter {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .fullscreen-content {
        padding: 45px 10px 65px 10px;
    }
    
    .fullscreen-footer {
        height: 65px;
        padding: 0 10px;
    }
    
    .fullscreen-caption {
        font-size: 0.8rem;
        padding: 8px 12px;
        max-width: 90%;
    }
    
    .fullscreen-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .fullscreen-prev {
        left: 10px;
    }
    
    .fullscreen-next {
        right: 10px;
    }
}

/* Toast Container - Improved positioning */
/* Toast-Styles entfernt - nutzt jetzt das globale Toast aus styles.css */

/* iOS Safari specific fixes for fullscreen gallery */
@supports (-webkit-touch-callout: none) {
    .fullscreen-gallery {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height for iOS */
        background-color: rgba(0, 0, 0, 0.95) !important;
        z-index: 999999 !important;
        -webkit-overflow-scrolling: touch;
    }
    
    #fullscreenImage {
        max-width: 95vw !important;
        max-height: 95vh !important;
        max-height: 95dvh !important; /* Dynamic viewport height for iOS */
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    .fullscreen-close {
        position: fixed !important;
        top: env(safe-area-inset-top, 10px) !important;
        right: env(safe-area-inset-right, 10px) !important;
        z-index: 999999 !important;
        width: 50px !important;
        height: 50px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        font-size: 24px !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .fullscreen-nav {
        position: fixed !important;
        z-index: 999999 !important;
        width: 50px !important;
        height: 50px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        font-size: 20px !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .fullscreen-prev { 
        left: env(safe-area-inset-left, 10px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .fullscreen-next { 
        right: env(safe-area-inset-right, 10px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    
    /* Fullscreen Gallery Mobile - Vollbild */
    .fullscreen-gallery {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.98) !important;
        z-index: 9999 !important;
    }
    
    #fullscreenImage {
        max-width: 95vw !important;
        max-height: 95vh !important;
        width: auto !important;
        height: auto !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }
    
    .fullscreen-nav {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .fullscreen-prev { left: 15px; }
    .fullscreen-next { right: 15px; }
    
    .fullscreen-close {
        top: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .fullscreen-caption {
        bottom: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
        max-width: 90vw;
    }
}

@media (max-width: 600px) {
}

@media (max-width: 480px) {
    
    /* Fullscreen Gallery Mobile - Vollbild */
    .fullscreen-gallery {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height */
        z-index: 10000;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #fullscreenImage {
        max-width: 95vw;
        max-height: 85vh;
        max-height: 85dvh; /* Dynamic viewport height */
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        display: block;
        margin: 0;
    }
    
    .fullscreen-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .fullscreen-prev { left: 10px; }
    .fullscreen-next { right: 10px; }
    
    .fullscreen-close {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .fullscreen-caption {
        bottom: 15px;
        padding: 8px 12px;
        font-size: 0.85rem;
        max-width: 90vw;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        border-radius: 20px;
    }
} 

/* Gallery Improvements */
.gallery-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    /* padding: 10px; */
}

.gallery-item {
    aspect-ratio: 16/9;
    width: 98%;
    min-height: 240px;
    max-height: 350px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
@media (max-width: 600px) {
    .gallery-item {
        min-height: 140px;
        max-height: 220px;
        width: 99%;
    }
}

.gallery-item:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .gallery-container {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .gallery-main {
        aspect-ratio: 4/3;
        min-height: 200px;
    }
    
    .gallery-placeholder {
        padding: 2rem 1rem;
    }
    
    .gallery-placeholder i {
        font-size: 3rem;
    }
    
    .gallery-placeholder p {
        font-size: 1rem;
    }
    
    .gallery-count-overlay {
        top: 12px !important;
        right: 12px !important;
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    
    .fullscreen-nav {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .fullscreen-prev { left: 15px; }
    .fullscreen-next { right: 15px; }
    
    .fullscreen-close {
        right: 15px;
        top: 15px;
        font-size: 35px;
        width: 60px;
        height: 60px;
    }
    
    #fullscreenImage {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
    }
    
    .fullscreen-caption {
        width: 95%;
        padding: 12px 16px;
        font-size: 0.9rem;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        margin: 0 -0.5rem;
    }
    
    .gallery-main {
        aspect-ratio: 3/2;
        min-height: 180px;
    }
    
    .gallery-placeholder {
        padding: 1.5rem 0.5rem;
    }
    
    .gallery-placeholder i {
        font-size: 2.5rem;
    }
    
    .gallery-placeholder p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-placeholder small {
        font-size: 0.8rem;
    }
    
    .gallery-count-overlay {
        top: 8px !important;
        right: 8px !important;
        padding: 4px 8px !important;
        font-size: 12px !important;
    }
    
    .fullscreen-nav {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .fullscreen-prev { left: 10px; }
    .fullscreen-next { right: 10px; }
    
    .fullscreen-close {
        right: 10px;
        top: 10px;
        font-size: 32px;
        width: 55px;
        height: 55px;
    }
    
    #fullscreenImage {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
    }
    
    .fullscreen-caption {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.85rem;
        bottom: 10px;
        border-radius: 0;
    }
} 

.gallery-card .card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-bottom: 0.5rem;
}
.gallery-card .gallery-upload-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    margin: 0;
}
#galleryUploadInfo {
    margin-top: 0.1rem;
    margin-bottom: 0.2rem;
    margin-left: 0;
    width: auto;
    max-width: 100%;
    padding: 0;
    font-size: 0.98em;
    text-align: left;
    display: block;
} 

/* Video Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.video-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.close-video-lightbox {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-video-lightbox:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-lightbox video {
    display: block;
    max-width: 100%;
    max-height: 80vh;
}

.video-caption {
    padding: 15px;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: 14px;
}

/* New Video Lightbox Styles */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.lightbox-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.lightbox-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: var(--bg-color);
    color: var(--text-primary);
}

.lightbox-video-container {
    position: relative;
    background: #000;
}

.lightbox-video-container video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.lightbox-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.video-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.video-info i {
    margin-right: 0.25rem;
}

.video-navigation {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Video Gallery Thumbnails */
.video-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.video-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.video-caption-thumb {
    padding: 8px 12px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.video-title {
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.video-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.video-duration-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(2px);
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Gallery Grid */
#videoGalleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px 0;
}

/* Admin Video Rows */
.admin-video-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.admin-video-row video {
    border-radius: 4px;
}

/* Media Sub Tabs */
#mediaSubTabs {
    margin-bottom: 20px;
}

#mediaSubTabs .nav-link {
    cursor: pointer;
}

#mediaSubTabs .nav-link.active {
    background-color: #007bff;
    color: white;
} 

/* Gallery Upload Button (Fotos & Videos) */
.gallery-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
}
.gallery-upload-btn:hover, .gallery-upload-btn:focus {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
} 

/* Place Page Specific Styles */

/* Place Header */
.place-id {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
    background-color: #4c6eb0;
}

/* Place Grid Layout */
.place-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Map Container */
.place-map-container {
    position: relative;
    background: var(--card-background);
}

.place-map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.place-coordinates {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-top: 1px solid var(--border-color);
}

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

.coordinates-display span {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

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

.place-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.place-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Profile Card Content */
.profile-card-content {
    padding: 2rem;
}

/* Card Header Actions */
.card-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-info {
    font-size: 0.98rem;
    color: var(--text-muted);
}

/* Safety List */
.safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.safety-list li:last-child {
    border-bottom: none;
}

.safety-list i {
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Warning Card */
.warning-card {
    border-left: 4px solid var(--warning-color);
}

.warning-card .profile-card-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(239, 68, 68, 0.05));
}

/* Rating Display */
.rating-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Gallery Container */
.gallery-container {
    position: relative;
    min-height: 200px;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.gallery-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gallery-placeholder p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.gallery-placeholder small {
    opacity: 0.7;
}

/* Comment Form */
.comment-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    background: var(--input-background);
    color: var(--text-color);
    transition: border-color 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Comments List */
.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Back Button */
.back-button-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Favorite Button */
.favorite-btn.active {
    background: transparent !important;
    color: var(--danger-color) !important;
    border-color: transparent !important;
}

.favorite-btn.active i {
    color: var(--danger-color) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .place-actions {
        flex-direction: column;
    }
    
    .place-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 1rem;
    }
    
    .profile-header {
        margin-bottom: 1.5rem;
    }
    
    .profile-title {
        font-size: 2rem;
    }
    
    .place-map {
        height: 250px;
    }
    
    .place-coordinates {
        padding: 1rem;
    }
    
    .coordinates-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-card-content {
        padding: 1.5rem;
    }
    
    .card-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .back-button-container {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .profile-title {
        font-size: 1.75rem;
    }
    
    .place-map {
        height: 200px;
    }
    
    .profile-card-content {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .back-button-container {
        padding: 0.5rem;
    }
    
    .place-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .place-actions .btn {
        width: 100%;
    }
} 

/* Place specific styles */
.place-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.place-map-container {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.place-map {
    height: 300px;
    width: 100%;
    border-radius: 12px;
}

.place-coordinates {
    padding: 1.5rem;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.coordinates-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.coordinates-display span {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    flex: 1;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.place-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.place-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.place-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.place-actions .btn i {
    font-size: 1rem;
}

.gallery-container {
    min-height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--background-color);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.gallery-placeholder:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.gallery-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gallery-placeholder p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.gallery-placeholder small {
    opacity: 0.7;
}

.safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.safety-list li:last-child {
    border-bottom: none;
}

.safety-list li i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.comment-form {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form .form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--surface-color);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    box-sizing: border-box;
}

.comment-form .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form .form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

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

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars i {
    font-size: 1.25rem;
    color: var(--star-color, #fbbf24);
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.warning-card {
    border-left: 4px solid var(--warning-color);
    background: rgba(251, 191, 36, 0.05);
}

.warning-card .profile-card-title i {
    color: var(--warning-color);
}

.report-card {
    border-left: 4px solid var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
    transition: all 0.3s ease;
}

.report-card:hover {
    background: rgba(239, 68, 68, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.report-card .profile-card-title i {
    color: var(--danger-color);
}

.report-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.report-examples {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--danger-color);
}

.report-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: none;
    border: none;
    cursor: pointer;
}

.report-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Card header actions */
.card-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upload-info {
    font-size: 0.98rem;
    color: var(--text-muted);
}

/* Coordinates display in header */
.coordinates-display-header {
    margin-bottom: 1.2rem;
    margin-top: 0.7rem;
    padding: 0.7rem 1.1rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    justify-content: space-between;
    box-sizing: border-box;
}

.copy-btn-header {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.copy-btn-header:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.navigation-btn-header {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.navigation-btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.action-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
    position: relative;
    z-index: 10;
}

.action-icon-btn:hover,
.action-icon-btn:focus {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.action-icon-btn:active {
    transform: scale(0.95);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .place-actions {
        flex-direction: column;
    }
    
    .place-actions .btn {
        flex: none;
        width: 100%;
    }
    
    .coordinates-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .coordinates-display span {
        font-size: 0.8rem;
    }
    
    .copy-btn {
        align-self: center;
        min-width: 100px;
    }
    
    .coordinates-display-header {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
        margin-top: 0.375rem;
    }
    
    .copy-btn-header {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .navigation-btn-header {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .comment-form .form-actions {
        flex-direction: column;
    }
    
    .comment-form .form-actions .btn {
        width: 100%;
    }
    
    .rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
} 

.header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 600px) {
    .header-row {
        gap: 0.5rem;
    }
}

.header-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
}
.header-titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

@media (max-width: 600px) {
    .header-flex {
        gap: 0.5rem;
    }
    .profile-card-title {
        font-size: 1.1rem;
    }
    .card-header-actions {
        margin-top: 0.1rem;
    }
}

@media (max-width: 600px) {
    .place-id {
        margin-top: 2.5rem;
    }
}

@media (max-width: 600px) {
    .card-header-actions {
        align-items: center !important;
        margin-top: 0 !important;
        transform: translateY(2px);
    }
    .favorite-btn-header {
        align-items: center !important;
        margin-top: 0 !important;
        transform: translateY(2px);
        position: relative;
        top: 0;
    }
}

.favorite-btn-header i {
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 100%;
    width: 100%;
    position: relative;
    top: 0;
    vertical-align: baseline;
}
@media (max-width: 600px) {
    .favorite-btn-header i {
        font-size: 1.5rem;
    }
}

/* Fullscreen Gallery - Simple and Stable */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.fullscreen-gallery.show {
    display: flex;
}

.fullscreen-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10001;
}

.fullscreen-close {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.fullscreen-counter {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fullscreen-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px 20px;
}

#fullscreenImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.fullscreen-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 10001;
}

.fullscreen-caption {
    color: white;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

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

.fullscreen-prev {
    left: 20px;
}

.fullscreen-next {
    right: 20px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .fullscreen-header {
        height: 50px;
        padding: 0 15px;
    }
    
    .fullscreen-close {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .fullscreen-counter {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .fullscreen-content {
        padding: 50px 15px 70px 15px;
    }
    
    .fullscreen-footer {
        height: 70px;
        padding: 0 15px;
    }
    
    .fullscreen-caption {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .fullscreen-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .fullscreen-prev {
        left: 15px;
    }
    
    .fullscreen-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .fullscreen-header {
        height: 45px;
        padding: 0 10px;
    }
    
    .fullscreen-close {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .fullscreen-counter {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .fullscreen-content {
        padding: 45px 10px 65px 10px;
    }
    
    .fullscreen-footer {
        height: 65px;
        padding: 0 10px;
    }
    
    .fullscreen-caption {
        font-size: 0.8rem;
        padding: 8px 12px;
        max-width: 90%;
    }
    
    .fullscreen-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .fullscreen-prev {
        left: 10px;
    }
    
    .fullscreen-next {
        right: 10px;
    }
}

/* Comments Section - Full Width */
.comments-section-full {
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.comments-section-full .profile-card {
    width: 100%;
    margin: 0;
}

/* Mobile Optimizations for Comments Section */
@media (max-width: 768px) {
    .comments-section-full {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .comments-section-full {
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
}

.navigation-icon-btn {
    margin-left: 0.2rem;
    background: #fff;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    outline: none;
}
.navigation-icon-btn:hover, .navigation-icon-btn:focus {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.coordinates-display-header {
    margin-bottom: 1.1rem;
    margin-top: 0.7rem;
    /* rest wie gehabt */
}

.gallery-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.gallery-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    min-height: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 1.08rem;
    color: var(--text-primary);
    gap: 0.7rem;
}
.gallery-info-panel i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}
.gallery-info-count {
    font-weight: 600;
    font-size: 1.1rem;
}
.gallery-info-last {
    color: var(--text-secondary);
    font-size: 0.98rem;
}
.gallery-info-uploader {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
#openAllImagesBtn {
    align-self: flex-start;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 1.2rem;
}
@media (max-width: 900px) {
    .gallery-2col {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .gallery-info-panel {
        min-height: 120px;
        padding: 1rem 0.7rem;
    }
}

.prominent-map {
    margin-top: 1.2rem;
}
.prominent-map .place-map {
    height: 380px;
    min-height: 260px;
    max-height: 420px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.coordinates-display-header {
    margin-bottom: 1.2rem;
    margin-top: 0.7rem;
    padding: 0.7rem 1.1rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
@media (max-width: 900px) {
    .prominent-map .place-map {
        height: 260px;
        min-height: 160px;
        max-height: 320px;
    }
    .coordinates-display-header {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }
}

/* Dark Mode adjustments for place page */
[data-theme="dark"] .content-container {
    background: var(--bg-color);
}

[data-theme="dark"] .profile-header {
    background: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .profile-title {
    color: var(--text-primary);
}

[data-theme="dark"] .profile-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .place-id {
    color: white;
}

[data-theme="dark"] .profile-card {
    background: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .profile-card-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .profile-card-title {
    color: var(--text-primary);
}

[data-theme="dark"] .profile-card-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .profile-card-content {
    color: var(--text-primary);
}

[data-theme="dark"] .coordinates-display-header {
    background: var(--input-background);
    border-color: var(--border-color);
}

[data-theme="dark"] .coordinates-display-header span {
    color: var(--text-primary);
}

[data-theme="dark"] .copy-btn-header {
    background: var(--surface-color);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .copy-btn-header:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .action-icon-btn {
    background: var(--surface-color);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .action-icon-btn:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .favorite-btn-header {
    background: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .favorite-btn-header:hover {
    background: var(--border-color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .favorite-btn-header.active {
    background: transparent;
    color: #dc2626;
    border-color: transparent;
}

[data-theme="dark"] .favorite-btn-header.active:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: transparent;
}

[data-theme="dark"] .back-button {
    background: var(--surface-color);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .back-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Place Header Actions */
.place-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Ensure title doesn't push buttons down */
.profile-title {
    flex: 1;
    margin: 0;
    min-width: 0;
}

/* Share Modal Styles */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.share-option-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 72px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.share-option-btn:hover::before {
    left: 100%;
}

.share-option-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.share-option-btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.share-option-btn i {
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.share-option-btn:hover i {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.share-option-btn span {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 600;
}

/* Dark theme support for share modal */
[data-theme="dark"] .share-option-btn {
    background: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .share-option-btn i {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
}

[data-theme="dark"] .share-option-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .share-option-btn:hover i {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

[data-theme="dark"] .share-option-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Mobile responsiveness for place header actions */
@media (max-width: 768px) {
    .place-header-actions {
        gap: 0.5rem;
    }
    
    .place-header-actions .action-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .share-options {
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .share-option-btn {
        padding: 1.75rem 1.5rem;
        font-size: 1.3rem;
        min-height: 80px;
        border-radius: 24px;
        gap: 1.5rem;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }
    
    .share-option-btn i {
        font-size: 1.8rem;
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    
    .share-option-btn span {
        font-size: 1.3rem;
        font-weight: 600;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .share-options {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .share-option-btn {
        padding: 2rem 1.75rem;
        font-size: 1.4rem;
        min-height: 88px;
        border-radius: 28px;
        gap: 1.75rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    
    .share-option-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 16px 32px rgba(37, 99, 235, 0.25);
    }
    
    .share-option-btn i {
        font-size: 2.2rem;
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }
    
    .share-option-btn span {
        font-size: 1.4rem;
        font-weight: 700;
        line-height: 1.3;
    }
}

/* Touch-optimized interactions */
@media (hover: none) and (pointer: coarse) {
    .share-option-btn:active {
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
    
    .share-option-btn:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .share-option-btn:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .share-option-btn {
        border-width: 1.5px;
    }
    
    .share-option-btn i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .share-option-btn {
        transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    }
    
    .share-option-btn::before {
        display: none;
    }
    
    .share-option-btn:hover {
        transform: none;
    }
    
    .share-option-btn i {
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    
    .share-option-btn:hover i {
        transform: none;
    }
}