/* Styles pour le panneau de région */

/* Container flex pour layout côte-à-côte */
.fim-map-panel-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Section carte */
.fim-map-section {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Layout côte-à-côte pour écrans > 1200px */
@media (min-width: 1201px) {
    .fim-map-panel-container {
        flex-direction: row;
        align-items: stretch;
        min-height: 600px;
    }
    
    .fim-map-section {
        flex: 0 0 50%;
        position: sticky;
        top: 0;
        height: 100vh;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .fim-panel-section {
        flex: 0 0 50%;
        position: relative;
        min-height: 100vh;
    }
    
    .fim-region-panel {
        position: relative !important;
        display: block !important;
        max-height: none !important;
        overflow-y: visible !important;
        border-left: 1px solid #ddd;
        border-radius: 0 !important;
        margin-top: 0 !important;
        animation: none !important;
        min-height: 100%;
    }
}

/* Override pour la carte embarquée dans fim-location-details - toujours en une colonne */
.fim-embedded-map .fim-map-panel-container {
    flex-direction: column !important;
    gap: 30px !important;
}

.fim-embedded-map .fim-map-section {
    width: 100% !important;
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    flex: none !important;
}

.fim-embedded-map .fim-panel-section {
    width: 100% !important;
    position: relative !important;
    min-height: auto !important;
    flex: none !important;
}

.fim-embedded-map .fim-region-panel {
    border-left: none !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    margin-top: 30px !important;
}

.fim-region-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
    transition: all 0.3s ease;
}

.fim-region-panel.highlighted {
    border-color: #2AB3A6;
    box-shadow: 0 4px 16px rgba(42, 179, 166, 0.2);
}

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

/* Header du panneau */
.fim-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #2AB3A6 0%, #23988D 100%);
    border-radius: 8px 8px 0 0;
}

.fim-panel-header h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.fim-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

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

/* Sections de la région */
.fim-region-section {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.fim-region-section:empty {
    display: none;
    padding: 0;
    border-bottom: none;
}

.fim-territories-cities-section {
    padding: 20px 0;
}

.fim-location-section {
    margin-bottom: 30px;
}

.fim-location-section:last-child {
    margin-bottom: 0;
}

.fim-location-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #2AB3A6;
    padding-bottom: 10px;
}

.fim-location-section h3 .fim-count {
    display: none !important;
}

.fim-location-section-intro {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

/* Détails du territoire/ville */
.fim-location-details {
    padding-top: 20px;
}

.fim-location-details-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 20px;
}

.fim-back-btn {
    flex: 0 0 auto;
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    transition: background 0.2s;
}

.fim-back-btn:hover {
    background: #e0e0e0;
}

#fim-location-name {
    flex: 1 1 240px;
    min-width: 240px;
    margin: 0;
    font-size: 22px;
    color: #2AB3A6;
    text-align: center;
    order: 2;
}

.fim-location-details-header .fim-btn-primary {
    flex: 0 0 auto;
    white-space: nowrap;
    order: 3;
}

.fim-location-details-header .fim-location-booking {
    margin-top: 0;
    order: 3;
}

/* Onglets (uniquement dans les détails) */
.fim-panel-tabs {
    display: flex;
    gap: 0;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.fim-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: "Quicksand", sans-serif;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fim-tab-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.fim-tab-btn.active {
    background: #fff;
    color: #2AB3A6;
    border-bottom-color: #2AB3A6;
}

.fim-tab-btn .fim-count {
    font-size: 14px;
    color: #999;
}

.fim-tab-btn[data-tab="offre"] {
    white-space: nowrap;
}

.fim-tab-btn.active .fim-count {
    color: #2AB3A6;
}

.fim-location-tabs-content {
    padding: 0;
}

/* Contenu du panneau */
.fim-panel-content {
    padding: 25px;
    min-height: 200px;
}

/* Message d'accueil */
.fim-panel-welcome {
    text-align: center;
    padding: 40px 20px;
    max-width: 760px;
    margin: 0 auto;
}

.fim-panel-welcome-intro {
    font-size: 16px;
    color: #666;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.fim-welcome-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
}

.fim-step {
    text-align: center;
    max-width: 560px;
}

.fim-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #2AB3A6;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.fim-step p {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.fim-tab-content {
    display: none;
}

.fim-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Loading */
.fim-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.fim-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Onglet Région */
.fim-region-info {
    max-width: 100%;
}

.fim-region-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

/* Grille (Territoires et Villes) */
.fim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.fim-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fim-location-card {
    cursor: pointer;
}

.fim-location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fim-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.fim-card-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #333;
}

.fim-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.fim-card-map-link {
    color: #2271b1;
    text-decoration: underline;
    font-weight: 600;
}

.fim-card-meta span {
    display: flex;
    align-items: center;
}

/* Liste (Balades et Greeters) */
.fim-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fim-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.fim-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

.fim-list-image {
    flex-shrink: 0;
    width: 150px;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.fim-list-content {
    flex: 1;
}

.fim-list-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2AB3A6;
}

.fim-list-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 10px 0;
}

.fim-list-source {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

.fim-list-source a {
    color: #2271b1;
    text-decoration: none;
}

.fim-list-source a:hover {
    text-decoration: underline;
}

.fim-centres-interet {
    font-size: 14px;
    color: #555;
    margin: 8px 0;
}

.fim-list-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.fim-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fim-compact-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fim-compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.fim-compact-card.fim-compact-card-active {
    border-color: #2AB3A6;
    box-shadow: 0 0 0 2px rgba(42, 179, 166, 0.12);
}

.fim-compact-card .fim-list-image {
    flex: 0 0 34%;
    width: 34%;
    height: auto;
    min-height: 145px;
    max-height: 165px;
    border-radius: 0;
}

.fim-compact-card .fim-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fim-compact-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
    min-width: 0;
}

.fim-compact-card-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2AB3A6;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.fim-compact-card-footer {
    margin-top: auto;
}

.fim-show-details-btn {
    margin-top: 8px;
    padding: 8px 14px;
    font-size: 14px;
    white-space: normal;
    min-width: 0;
    line-height: 1.25;
    text-align: center;
}

.fim-detail-panel {
    display: none;
    margin-top: 22px;
}

.fim-detail-panel.fim-detail-panel-active {
    display: block;
}

.fim-detail-item {
    border: 1px solid #dfe9e8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

@media screen and (max-width: 1024px) {
    .fim-compact-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 640px) {
    .fim-compact-card .fim-list-image {
        flex: 0 0 30%;
        width: 30%;
        min-height: 145px;
        max-height: 170px;
    }

    .fim-compact-card-content {
        padding: 13px;
    }

    .fim-compact-card-content h4 {
        font-size: 16px;
    }

    .fim-show-details-btn {
        display: flex;
        width: 100%;
        white-space: normal;
        text-align: center;
        min-width: 0;
        line-height: 1.25;
    }
}

@media screen and (max-width: 480px) {
    .fim-compact-card {
        flex-direction: column;
    }

    .fim-compact-card .fim-list-image {
        flex: 0 0 auto;
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .fim-compact-card-content {
        padding: 12px;
    }

    .fim-compact-card-footer {
        margin-top: 12px;
    }
}

/* Offre locale */
.fim-offre-locale {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

.fim-offre-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fim-offre-title {
    font-size: 20px;
    color: #2AB3A6;
    margin: 0;
}

.fim-offre-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}

.fim-offre-paragraph {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.fim-offre-paragraph p {
    margin: 0 0 10px 0;
}

.fim-offre-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

@media screen and (max-width: 640px) {
    .fim-offre-locale {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Greeters imbriqués (nested in balades) */
.fim-nested-greeters {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.fim-nested-greeters-title {
    font-size: 15px;
    font-weight: 700;
    color: #2AB3A6;
    margin: 0 0 12px 0;
}

.fim-compact-grid-nested {
    gap: 10px;
}

.fim-nested-card {
    border: 1px solid #e0e0e0;
}

.fim-nested-detail-panel {
    margin-top: 10px;
}

.fim-nested-detail-panel:empty {
    display: none;
}

.fim-nested-detail-panel.fim-detail-panel-active {
    display: block;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid #2AB3A6;
}

.fim-nested-detail-item {
    border: none;
    box-shadow: none;
}

/* Greeter spécifique */
.fim-greeter-name {
    font-size: 16px;
    color: #2AB3A6;
    margin: 5px 0;
    font-weight: 600;
}

.fim-greeter-langues {
    font-size: 22px;
    letter-spacing: 4px;
    margin: 8px 0;
}

.fim-greeter-dispo {
    font-size: 14px;
    color: #666;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Bloc texte conditionnel réservation */
.fim-booking-text {
    font-size: 14px;
    color: #2AB3A6;
    background: #eaf7f6;
    padding: 12px 16px 12px 16px;
    border-left: 3px solid #2AB3A6;
    border-radius: 4px;
    margin-bottom: 20px;
    font-style: italic;
    padding-bottom: 12px !important;
}

/* Boutons */
.fim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    box-sizing: border-box;
}

.fim-btn-primary {
    background: #2AB3A6;
    color: #fff !important;
}

.fim-btn-primary:hover {
    background: #23988D; /* #2AB3A6 assombri */
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 179, 166, 0.3);
}

.fim-btn-secondary {
    background: #3EBEED;
    color: #fff !important;
}

.fim-btn-secondary:hover {
    background: #32A2CA; /* #3EBEED assombri */
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(62, 190, 237, 0.3);
}

.fim-btn-outline {
    background: #E7E23D;
    color: #333 !important; /* Mieux lisible sur le jaune */
    border: none;
}

.fim-btn-outline:hover {
    background: #D1CD35; /* #E7E23D assombri */
    color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 226, 61, 0.3);
}

/* Actions des cartes */
.fim-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.fim-card-actions .fim-btn {
    width: 100%;
}

/* Informations du territoire/ville */
.fim-location-info {
    display: block;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.fim-location-description {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.fim-location-description p {
    margin: 0;
}

.fim-location-booking {
    margin-top: 15px;
}

.fim-location-booking .fim-btn {
    display: inline-block;
}

/* Message vide */
.fim-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    font-size: 16px;
}

/* Toggle description */
.fim-description-toggle {
    margin: 10px 0 15px 0;
    padding: 15px;
    background: #f5f5f5;
    border-left: 3px solid #2AB3A6;
    border-radius: 4px;
    color: #444;
    line-height: 1.6;
    font-size: 14px;
}

.fim-description-toggle p {
    margin: 0 0 10px 0;
}

.fim-description-toggle p:last-child {
    margin-bottom: 0;
}

.fim-detail-breadcrumb {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px 0;
}

.fim-detail-breadcrumb-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    font-size: 13px;
    color: #5f6b7a;
}

.fim-detail-crumb,
.fim-detail-current {
    font-size: 13px;
    line-height: 1.4;
}

.fim-detail-crumb {
    background: none;
    border: 0;
    padding: 0;
    color: #2AB3A6;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fim-detail-crumb:hover {
    color: #219488;
}

.fim-detail-current {
    color: #182230;
    font-weight: 600;
}

.fim-detail-sep {
    color: #98a2b3;
}

.fim-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.fim-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fim-detail-back:hover {
    border-color: #bfc6d1;
    background: #f8fafc;
}

.fim-detail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fim-detail-close:hover {
    border-color: #bfc6d1;
    background: #f8fafc;
}

/* Gallery */
.fim-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 0 12px 0;
}

.fim-gallery-thumb {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.fim-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.fim-gallery-thumb:hover img {
    transform: scale(1.08);
}

.fim-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    padding: 3px 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox overlay */
.fim-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.fim-lightbox-overlay.fim-lightbox-active {
    display: flex;
}

.fim-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    text-align: center;
}

.fim-lightbox-img {
    display: block;
    float: none;
    clear: both;
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.fim-lightbox-caption {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    color: #fff;
    font-size: 14px;
    margin: 12px 0 0 0;
    text-align: center;
}

.fim-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: opacity 0.2s;
}

.fim-lightbox-close:hover {
    opacity: 0.7;
}

.fim-lightbox-prev,
.fim-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 30px;
    padding: 15px 18px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    transition: background 0.2s;
}

.fim-lightbox-prev:hover,
.fim-lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.fim-lightbox-prev {
    left: 20px;
}

.fim-lightbox-next {
    right: 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .fim-panel-header {
        padding: 15px 20px;
    }
    
    .fim-panel-header h2 {
        font-size: 20px;
    }
    
    .fim-panel-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        align-items: stretch;
    }
    
    .fim-tab-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        padding: 12px 15px;
        font-size: 14px;
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
    
    .fim-panel-content {
        padding: 20px 15px;
    }
    
    .fim-grid {
        grid-template-columns: 1fr;
    }
    
    .fim-list-item {
        flex-direction: column;
        align-items: center;
    }
    
    .fim-list-image {
        width: 200px;
        height: 280px;
        max-width: 100%;
    }
    
    .fim-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fim-lightbox-prev,
    .fim-lightbox-next {
        padding: 10px 12px;
        font-size: 22px;
    }
    
    .fim-lightbox-prev {
        left: 8px;
    }
    
    .fim-lightbox-next {
        right: 8px;
    }
}

@media screen and (max-width: 480px) {
    .fim-panel-header {
        padding: 12px 15px;
    }
    
    .fim-panel-header h2 {
        font-size: 18px;
    }
    
    .fim-close-btn {
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
    
    .fim-tab-btn {
        flex: 1 1 100%;
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
        white-space: normal;
    }
    
    .fim-count {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
}
