/* =========================================
   SEARCH UI - PUBLIC STYLES
   ========================================= */

/* --- HOME SEARCH SECTION --- */
.search-v2-section {
    display: block;
    margin-top: 0px;
    padding-top: 0px;
}

.search-hero-wrapper {
    padding: 2.5rem 0;
    background: url(../../../../theme/LumiereChild/header.jpg) no-repeat center;
    background-size: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 10px 10px;
    color: white;
}

.search-hero-title-text {
    color: #fff !important;
    text-shadow: var(--hero-text-shadow);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}

.search-container-inner {
    max-width: 900px;
    margin: 0 auto;
}

.search-main-form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    align-items: center;
}

.search-input-group-query {
    flex: 2;
    position: relative;
    border-right: 1px solid #eee;
}

.search-icon-query {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff8c42;
    font-size: 1.2rem;
}

.search-input-field {
    width: 100%;
    padding: 15px 15px 15px 75px;
    /* Increased from 55px to prevent overlap */
    border: none;
    background: transparent;
    font-size: 1.1rem;
    outline: none;
}

.search-input-group-location {
    flex: 1;
    position: relative;
}

.search-icon-location {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff8c42;
    font-size: 1.2rem;
}

.search-select-city {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.search-locate-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff8c42;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.2s;
}

.search-submit-btn {
    padding: 15px 35px;
    background: var(--primary-color, #ff8c42);
    color: white;
    border: none;
    border-radius: 50px !important;
    /* Force pill shape */
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-submit-btn:hover {
    padding: 15px 35px;
    background: var(--primary-hover, #e67e3a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.search-hero-subtitle {
    color: #fff !important;
    text-shadow: var(--hero-subtitle-shadow);
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    opacity: 1;
}

/* --- SEARCH STATUS BAR --- */
.search-status-bar {
    background: white;
    padding: 10px 20px;
    border-radius: 12px 12px 0 0;
    margin-top: 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border: 1px solid #eee;
    border-bottom: none;
}

.search-filter-toggle-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #333;
    /* Default */
    color: white;
}

.search-filter-toggle-btn.active {
    background: #ff8c42;
}

.search-map-toggle-btn {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-map-toggle-btn.active {
    background: #ff8c42;
}

.search-reset-link {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-weight: 600;
}

.search-separator {
    height: 20px;
    width: 1px;
    background: #eee;
}

.search-results-label {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.search-active-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-badge-query {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.search-badge-active,
.detail-active-badge {
    background: #ff5722;
    color: white;
    border: 1px solid #e64a19;
}

.search-badge-city {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.search-badge-family {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.search-badge-subcat {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.search-badge-radius {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.search-badge-open {
    background: #fdf2f2;
    color: #9b1c1c;
    border: 1px solid #fbd5d5;
}

.search-badge-verified {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

.search-badge-remove {
    cursor: pointer;
    opacity: 0.7;
}

.search-results-count {
    margin-left: auto;
    font-size: 1rem;
    font-weight: 800;
    color: #ff8c42;
}

/* --- FILTERS BAR --- */
.search-filters-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 0 0 12px 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    /* overridden by inline style if hidden */
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 9;
}

.search-filter-select-wrapper {
    flex: 1;
    min-width: 200px;
}

.search-filter-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 0.9rem;
    cursor: pointer;
}

.search-filter-radius-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9f9f9;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.search-filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.search-filter-checkbox {
    width: 16px;
    height: 16px;
}

.search-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 0;
}

/* --- RESULTS LIST --- */
.search-map-container {
    display: none;
    height: 350px;
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* Container for the list */
.pois-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Style */
.search-result-item {
    position: relative;
    background: white;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Mobile first */
}

@media (min-width: 768px) {
    .search-result-item {
        flex-direction: row;
        align-items: stretch;
        padding: 0;
    }
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.search-result-item.verified {
    border-left: 4px solid #667eea;
}

/* De-emphasized Index */
.search-result-global-index {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.05);
    color: #999;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 0 0 8px 0;
    z-index: 5;
    pointer-events: none;
}

/* Image / Logo Area */
.result-image {
    width: 100%;
    height: 150px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

@media (min-width: 768px) {
    .result-image {
        width: 180px;
        height: auto;
        min-height: 160px;
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }
}

.search-result-logo-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-image i {
    font-size: 3rem;
    color: #e0e0e0;
}

/* Content Area */
.result-content {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.poi-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.poi-name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.poi-name a:hover {
    color: #ff8c42;
}

.poi-stars-list {
    margin-left: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Badges */
.poi-verified-icon {
    color: #667eea;
    font-size: 1.1rem;
    margin-left: 5px;
}

.poi-badge-owned {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef2ff;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #e0e7ff;
}

.poi-badge-claim {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff7ed;
    color: #c2410c;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #ffedd5;
    cursor: pointer;
    transition: background 0.2s;
}

.poi-badge-claim:hover {
    background: #ffedd5;
}

/* Meta Info */
.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    align-items: center;
}

.search-result-category-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.result-distance {
    color: #64748b;
    font-weight: 600;
}

.result-hours.is-open {
    color: #16a34a;
}

.result-hours.is-closed {
    color: #ef4444;
}

.result-hours.is-unknown {
    color: #64748b;
}

/* Description */
.search-result-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poi-datascore-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.datascore-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.datascore-bar-bg {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.datascore-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.datascore-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.datascore-cta {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.datascore-cta a {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 700;
}

.search-description-empty .cta-link {
    color: #ff8c42;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 5px;
}

.poi-desc-text {
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-result-social-links .icon-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s;
    text-decoration: none;
}

.search-result-social-links .icon-link:hover {
    transform: scale(1.1);
    background: #e2e8f0;
    color: #334155;
}

.search-result-social-links .icon-link.facebook:hover {
    color: #1877f2;
    background: #e7f3ff;
}

.search-result-social-links .icon-link.instagram:hover {
    color: #e4405f;
    background: #fdf2f2;
}

.search-result-social-links .icon-link.website:hover {
    color: #3b82f6;
    background: #eff6ff;
}

.result-address {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    display: flex;
    align-items: start;
    gap: 6px;
}

.result-phone a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.result-phone a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

/* Footer / Actions */
.search-result-actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f9f9f9;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.search-result-social-links {
    display: flex;
    gap: 15px;
}

.icon-link {
    font-size: 1.1rem;
    transition: transform 0.2s;
    opacity: 0.8;
}

.icon-link:hover {
    transform: scale(1.1);
    opacity: 1;
}

.icon-link.facebook {
    color: #1877F2;
}

.icon-link.instagram {
    color: #E4405F;
}

.icon-link.linkedin {
    color: #0A66C2;
}

.icon-link.twitter,
.icon-link.x {
    color: #000000;
}

.icon-link.youtube {
    color: #FF0000;
}

.icon-link.tiktok {
    color: #000000;
}

.icon-link.website {
    color: #3b82f6;
}

/* Un bleu élégant pour le site web */

/* Empty State */
.search-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #666;
    background: white;
    border-radius: 12px;
    border: 1px dashed #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.search-empty-icon {
    font-size: 3.5rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.search-empty-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.search-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: #ff8c42;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.search-empty-btn:hover {
    background: #e67e3a;
}


/* --- DETAIL PAGE --- */
.detail-section-styled {
    padding: 20px;
    border-radius: 8px;
}

.detail-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    color: #667eea;
    text-decoration: none;
}

.detail-owner-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-left: 5px solid #667eea;
}

.detail-owner-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.detail-owner-badge {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.detail-owner-actions {
    display: flex;
    gap: 0.5rem;
}

.detail-qrcode-section {
    background: var(--panel-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius, 12px);
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--panel-border, rgba(0, 0, 0, 0.08));
    box-shadow: var(--panel-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    text-align: center;
}

.detail-qrcode-header {
    margin: 0 0 1rem 0;
    color: var(--primary-color, #ff8c42);
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-qrcode-box {
    display: inline-block;
    padding: 1rem;
    background: white;
    border: 2px solid var(--primary-color, #ff8c42);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-qrcode-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
}

/* Review Form Embed */
.poi-reviews-form-embed {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.poi-reviews-success {
    padding: 1.2rem;
    background: #e7f3ff;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #007bff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.poi-reviews-login-promo {
    padding: 1.5rem;
    background: #fff3cd;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #ffc107;
    text-align: center;
}

.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

/* HTMX & Map Overrides */
.htmx-indicator {
    display: none;
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator {
    display: inline-block;
    opacity: 1;
}

.htmx-request.htmx-indicator {
    display: inline-block;
    opacity: 1;
}

#loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 50;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.htmx-request #loading-overlay {
    display: flex;
}

/* Custom Map Markers */
.custom-poi-marker {
    background: none !important;
    border: none !important;
}

.leaflet-container .marker-pin {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% 50% 50% 0 !important;
    position: absolute !important;
    transform: rotate(-45deg) !important;
    left: 50% !important;
    top: 50% !important;
    margin: -15px 0 0 -15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    background-color: var(--primary-color, #ff8c42) !important;
    /* Base fallback */
    transition: transform 0.2s ease !important;
    z-index: 500;
}

/* Base Explicit Colors for Map Markers */
.leaflet-container .marker-shops {
    background-color: #ff8c42 !important;
}

.leaflet-container .marker-food {
    background-color: #e53935 !important;
}

.leaflet-container .marker-health {
    background-color: #43a047 !important;
}

.leaflet-container .marker-services {
    background-color: #1e88e5 !important;
}

.leaflet-container .marker-leisure {
    background-color: #8e24aa !important;
}

.leaflet-container .marker-heritage {
    background-color: #6d4c41 !important;
}

.leaflet-container .marker-nature {
    background-color: #2e7d32 !important;
}

.leaflet-container .marker-emergency {
    background-color: #d32f2f !important;
}

.leaflet-container .marker-other {
    background-color: #757575 !important;
}

.leaflet-container .marker-pin:hover {
    transform: rotate(-45deg) scale(1.1);
    z-index: 1000;
}

.leaflet-container .marker-pin i {
    transform: rotate(45deg);
    font-size: 12px;
    color: white;
}

/* =========================================
   Detail Page Styles
   ========================================= */

/* Header & Navigation */
.detail-back-button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: inherit;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-left: 1rem;
    color: #667eea;
    text-decoration: none;
}

.detail-rating-link:hover {
    text-decoration: underline;
}

.detail-stars-wrapper {
    color: #ffc107;
}

.detail-star-icon {
    font-size: 0.8em;
}

.detail-rating-text {
    font-weight: bold;
}

.detail-rating-count {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Owner Section */
.owner-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-left: 5px solid #667eea;
}

.owner-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.owner-badge {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.owner-title {
    margin: 0;
    color: #333;
}

.owner-actions-wrapper {
    display: flex;
    gap: 0.5rem;
}

.owner-admin-btn {
    background-color: #343a40;
    border-color: #343a40;
}

/* Report Modal */
.report-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.report-modal-content {
    background: var(--panel-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius, 12px);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--panel-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    border: 1px solid var(--panel-border, rgba(0, 0, 0, 0.08));
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.report-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--font-color, rgb(65, 84, 98));
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.report-close-btn:hover {
    background: var(--panel-border, rgba(0, 0, 0, 0.08)) !important;
}

.report-title {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color, #ff8c42);
    font-size: 1.5rem;
    font-weight: 700;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--font-color, rgb(65, 84, 98));
    font-size: 0.9rem;
}

.report-select,
.report-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--form-border, #e5e7eb);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--form-bg, #ffffff);
    color: var(--font-color, rgb(65, 84, 98));
    font-family: inherit;
}

.report-textarea {
    resize: vertical;
}

.report-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.report-cancel-btn {
    background: transparent;
    color: var(--font-color, rgb(65, 84, 98));
    border: 1px solid var(--panel-border, rgba(0, 0, 0, 0.08));
}

.report-submit-btn {
    background: var(--primary-color, #ff8c42);
    color: #ffffff;
    border: none;
}

.report-message {
    margin-top: 1rem;
    display: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.report-message.success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color, #10b981);
    color: #065f46;
}

.report-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--alert-color, #ef4444);
    color: #991b1b;
}

.report-poi-button:hover {
    background: var(--panel-bg, rgba(255, 255, 255, 0.95)) !important;
    border-color: var(--primary-color, #ff8c42) !important;
    color: var(--primary-color, #ff8c42) !important;
}

/* QR Code Section */
.poi-qr-code-section {
    background: var(--panel-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: var(--panel-radius, 12px);
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--panel-border, rgba(0, 0, 0, 0.08));
    box-shadow: var(--panel-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    text-align: center;
}

.qr-header-title {
    margin: 0 0 1rem 0;
    color: var(--primary-color, #ff8c42);
    font-size: 1.5rem;
    font-weight: 700;
}

.qr-text {
    color: var(--font-color, rgb(65, 84, 98));
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.qr-container {
    display: inline-block;
    padding: 1rem;
    background: white;
    border: 2px solid var(--primary-color, #ff8c42);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
}

.qr-footer {
    margin: 1rem 0 0 0;
    font-size: 0.85rem;
    color: var(--font-color, rgb(65, 84, 98));
    opacity: 0.7;
}

/* Offers List */
.offers-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.offer-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.offer-title {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.offer-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.offer-desc {
    color: #6c757d;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.offer-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.offer-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Info List Items */
.poi-distance-display {
    display: none;
    margin-left: 10px;
    color: #666;
    font-size: 0.9em;
}

.info-placeholder {
    color: #999;
    font-style: italic;
}

/* Tags */
.tag-emoji {
    font-size: 1.2em;
    margin-right: 5px;
}

.tag-desc {
    display: block;
    color: #666;
    font-size: 0.9em;
}

/* Reviews Accordion & Maps */
.reviews-accordion {
    cursor: pointer;
}

.reviews-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.reviews-title-h2 {
    margin: 0;
    display: inline-block;
}

.reviews-count-text {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.reviews-header-rating {
    margin-left: 15px;
    font-size: 0.9rem;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    padding: 3px 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    vertical-align: middle;
}

.reviews-header-rating i {
    font-size: 0.85rem;
}

.reviews-chevron {
    transition: transform 0.3s;
    color: #666;
}

/* Accordion Open State */
details.reviews-accordion[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
}

details.reviews-accordion summary::-webkit-details-marker {
    display: none;
}

details.reviews-accordion summary:focus {
    outline: none;
}

/* Reviews Content */
.poi-reviews-form-embed {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.review-form-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-form-group {
    margin-bottom: 1rem;
}

.review-rating-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.poi-reviews-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.poi-reviews-rating-input input {
    display: none;
}

.poi-reviews-rating-input label {
    cursor: pointer;
    color: #ddd;
    font-size: 1.8rem;
}

.poi-reviews-rating-input input:checked~label,
.poi-reviews-rating-input label:hover,
.poi-reviews-rating-input label:hover~label {
    color: #ffc107 !important;
}

.review-textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px;
    min-height: 100px;
}

.review-success-box {
    padding: 1.2rem;
    background: #e7f3ff;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #007bff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-success-icon {
    color: #007bff;
    font-size: 1.5rem;
}

.review-success-text {
    margin: 0;
    color: #0056b3;
    font-weight: 500;
}

.review-login-box {
    padding: 1.5rem;
    background: #fff3cd;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #ffc107;
    text-align: center;
}

.review-login-text {
    margin: 0;
    color: #856404;
}

.review-login-link {
    font-weight: bold;
    text-decoration: underline;
}

/* Reviews List */
.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.review-avatar-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.review-author-name {
    font-weight: 600;
    color: #2d3436;
}

.review-date {
    font-size: 0.8rem;
    color: #636e72;
}

.review-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-comment {
    color: #2d3436;
    line-height: 1.6;
    font-size: 0.95rem;
}

.reviews-empty {
    text-align: center;
    color: #999;
    padding: 3rem;
    font-style: italic;
}

/* Styles pour detail-map */
.detail-map {
    height: 350px;
    width: 100%;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* --- UTILITIES & HELPERS (Added for refactoring) --- */
.search-hidden {
    display: none !important;
}

.search-filters-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-radius-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    cursor: pointer;
}

.search-step-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.search-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-range-input {
    width: 80px;
    accent-color: #ff8c42;
}

.search-radius-value-wrapper {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff8c42;
    min-width: 35px;
}

.search-checkbox-group {
    display: flex;
    gap: 15px;
}

.search-map-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-map-layer-btn {
    width: 38px;
    height: 38px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.search-map-layer-btn:hover {
    background: #f5f5f5;
}

.search-map-layer-btn.dark {
    background: #222;
    border-color: #444;
    color: white;
}

.search-map-layer-btn.satellite {
    color: #007bff;
}

.poi-stars-wrapper {
    font-size: 0.8em;
    margin-left: 5px;
}

.poi-verified-icon {
    color: #667eea;
    margin-left: 4px;
}

.poi-brand-label {
    font-weight: 600;
    color: #333;
    margin-left: 4px;
}

/* Floating Back to Top Button */
.floating-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #c81e1e;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}

.floating-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-back-to-top:hover {
    background: #a31818;
    transform: scale(1.1);
}

/* Enhanced Search Result Item */
.search-result-item {
    padding: 1.2rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.poi-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.poi-rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #eee;
}

.poi-stars-score {
    color: #ff9800;
    font-weight: 700;
}

.poi-comment-count {
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s;
}

.poi-comment-count:hover {
    color: #c81e1e;
}

.icon-link.highlight {
    background: #f0f2f5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #4a5568;
    transition: all 0.2s ease;
}

.icon-link.website.highlight:hover {
    background: #e3f2fd;
    color: #1e88e5;
}

.icon-link.facebook.highlight:hover {
    background: #e7f0ff;
    color: #1877f2;
}

.icon-link.instagram.highlight:hover {
    background: #fff0f0;
    color: #e1306c;
}

.icon-link.phone.highlight:hover {
    background: #e8f5e9;
    color: #2e7d32;
}

.search-result-quick-tabs {
    display: flex;
    gap: 10px;
}

.quick-tab-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.quick-tab-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.poi-community-cta {
    font-size: 0.75rem;
    padding: 5px 12px;
    background: #fff5f5;
    color: #c81e1e;
    border: 1px solid #feb2b2;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.poi-community-cta:hover {
    background: #fff0f0;
    border-color: #fc8181;
}

.search-no-description-box {
    background: #fcfcfc;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px dashed #e2e2e2;
    margin: 10px 0;
}

.search-no-description {
    font-style: italic;
    color: #4a5568;
    font-size: 0.85rem;
    line-height: 1.4;
}

.search-no-description a {
    color: #ff8c42;
    text-decoration: underline;
    font-weight: 700;
}

/* Marker Colors for Map Symbols */
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #757575;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.marker-pin i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 14px;
}

.marker-shops {
    background: #ff8c42;
}

.marker-food {
    background: #e53935;
}

.marker-health {
    background: #43a047;
}

.marker-services {
    background: #1e88e5;
}

.marker-leisure {
    background: #8e24aa;
}

.marker-heritage {
    background: #6d4c41;
}

.marker-nature {
    background: #2e7d32;
}

.marker-emergency {
    background: #d32f2f;
}

.marker-education {
    background: #fbc02d;
}

.marker-craft {
    background: #8d6e63;
}

.marker-offices {
    background: #546e7a;
}

.marker-infrastructure {
    background: #b0bec5;
}

.marker-other {
    background: #757575;
}

/* Quick Action Buttons Refinement */
.search-result-quick-tabs {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.quick-tab-btn {
    font-size: 0.75rem;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-tab-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #1a202c;
    transform: translateY(-1px);
}

.quick-tab-btn i {
    color: #ff8c42;
    font-size: 0.85rem;
}

.result-amenities-container {
    display: flex;
    gap: 8px;
    color: #999;
}

/* --- ADMIN TEST MODE BAR --- */
#admin-test-mode-bar {
    background: #2c3e50;
    color: white;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    border-bottom: 3px solid #00bcd4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 5px;
    overflow: hidden;
    transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

#admin-test-mode-bar:hover {
    height: 60px;
    padding: 10px 20px;
}

.admin-mode-label {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.admin-mode-badge {
    background: #00bcd4;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-mode-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-mode-status.active {
    color: #4ade80;
}

.admin-mode-status.inactive {
    color: #94a3b8;
}

.admin-mode-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.admin-mode-toggle-btn {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-activate {
    background: #00bcd4;
    color: white;
}

.btn-activate:hover {
    background: #00acc1;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
}

.btn-deactivate {
    background: transparent;
    color: #fca5a5;
    border: 1px solid #fca5a5;
}

.btn-deactivate:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.admin-mode-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.admin-mode-label-text {
    margin: 0;
    font-size: 0.8rem;
    color: #bdc3c7;
}

.admin-mode-select {
    padding: 2px 8px;
    font-size: 0.8rem;
    background: #34495e;
    color: white;
    border: 1px solid #5d6d7e;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

.admin-mode-indicator {
    font-size: 0.75rem;
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    padding: 4px 10px;
    border-radius: 30px;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.admin-mode-tooltip {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #00bcd4;
    color: white;
    padding: 2px 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 0.6rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10001;
    opacity: 0.8;
    text-transform: uppercase;
}

/* --- DETAIL PAGE REFACTORING (Tabs & Grid) --- */

.detail-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.detail-tabs-nav {
    display: flex;
    overflow-x: auto;
    background: #fff;
    border-bottom: 2px solid #eee;
    margin: 20px 0;
    gap: 5px;
    padding: 0 5px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-tabs-nav::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar Chrome */

.detail-tab-button {
    padding: 12px 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 700;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.detail-tab-button i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.detail-tab-button:hover {
    color: var(--primary-color, #ff8c42);
}

.detail-tab-button.active {
    color: var(--primary-color, #ff8c42);
    border-bottom-color: var(--primary-color, #ff8c42);
    background: rgba(255, 140, 66, 0.05);
}

.detail-tab-pane {
    display: none;
}

.detail-tab-pane.active {
    display: block;
    animation: detailFadeIn 0.3s ease-out;
}

@keyframes detailFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Grid */
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 992px) {
    .detail-info-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.detail-info-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.detail-map {
    height: 100%;
    width: 100%;
    margin-top: 0;
    /* Reset existing margin */
}

.map-overlay-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
}

/* Manager Section */
.detail-manager-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #667eea;
    border-radius: 12px;
    margin-bottom: 25px;
    padding: 20px;
}

/* Photo Gallery Grid */
.detail-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.photo-card {
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.photo-card:hover {
    transform: scale(1.02);
}

.photo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #475569;
    background: #fff;
    margin: 0;
}

/* QR Code mini */
.qr-container-mini {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

.qr-container-mini img {
    max-width: 120px;
    margin-bottom: 8px;
}

.qr-text-mini {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Utilities */
.w-100 {
    width: 100%;
}

.no-margin {
    margin: 0 !important;
}

/* Reviews UI Polish */
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: #64748b;
}

.review-rating {
    color: #ffc107;
    font-size: 0.85rem;
}

.review-comment {
    color: #334155;
    line-height: 1.6;
    font-size: 0.95rem;
}

.review-status {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.review-status.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

.review-status.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

/* --- BARRE DE RÉSULTATS (séparateur entre carte et liste) --- */
.search-results-count-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--card-bg, #fff);
    border-top: 3px solid var(--primary-color, #ff8c42);
    border-bottom: 1px solid var(--form-border-color, #e8e8e8);
    font-size: 0.9rem;
    color: var(--font-color, #333);
    font-weight: 500;
    flex-wrap: wrap;
}

.count-bar-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color, #ff8c42);
}

.count-bar-label {
    font-weight: 600;
}

.count-bar-query {
    color: var(--font-secondary, #666);
    font-style: italic;
    font-weight: 400;
}

/* --- CARTE PLEIN ÉCRAN MOBILE --- */

/* Mode plein écran : la carte prend tout l'espace viewport */
#home-map-container.map-fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* La carte intérieure suit */
#home-map-container.map-fullscreen-active #home-map {
    height: 100% !important;
    width: 100% !important;
}

/* Bouton plein écran — visible uniquement mobile */
.map-fullscreen-btn {
    display: none !important;
}

@media (max-width: 991px) {
    .map-fullscreen-btn {
        display: inline-flex !important;
    }

    /* En mode fullscreen, les contrôles restent visibles par-dessus */
    #home-map-container.map-fullscreen-active .search-map-controls {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 10000 !important;
    }
}

/* --- BOUTON FERMETURE LÉGENDE LEAFLET --- */
.leaflet-attr-close {
    background: none;
    border: none;
    padding: 0 2px;
    margin-left: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.leaflet-attr-close:hover {
    opacity: 1;
    color: #e53935;
}

/* --- OVERLAY SCROLL LOCK CARTE MOBILE --- */
#map-scroll-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: inherit;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

#map-scroll-lock-overlay span {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

#map-scroll-lock-overlay.map-overlay-hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- Empty States for Tabs --- */
.empty-tab-state {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.empty-tab-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    color: #cbd5e1;
}

.empty-tab-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* --- Report Modal Messages --- */
.report-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.95rem;
    display: none;
    line-height: 1.4;
}

.report-message.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    display: block;
}

.report-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.report-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

/* --- Guest Offer Friction --- */
.offer-guest-friction {
    margin-top: 15px;
    width: 100%;
}

.offer-btn.ghost {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    color: #b45309;
    width: 100%;
    display: block;
    text-align: center;
    transition: all 0.2s;
    font-weight: 600;
}

.offer-btn.ghost:hover {
    background: #f59e0b;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- POI MARKER COLORS --- */
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #ff8c42;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
}

.marker-shops {
    background-color: #ff8c42;
}

.marker-food {
    background-color: #e53935;
}

.marker-health {
    background-color: #43a047;
}

.marker-services {
    background-color: #1e88e5;
}

.marker-leisure {
    background-color: #8e24aa;
}

.marker-heritage {
    background-color: #6d4c41;
}

.marker-nature {
    background-color: #2e7d32;
}

.marker-emergency {
    background-color: #d32f2f;
}

.marker-education {
    background-color: #fbc02d;
}

.marker-craft {
    background-color: #8d6e63;
}

.marker-offices {
    background-color: #546e7a;
}

.marker-infrastructure {
    background-color: #b0bec5;
}

.marker-other {
    background-color: #757575;
}

/* --- INFINITY SCROLL & FLOATING BUTTON --- */
.floating-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff8c42;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    /* Controlled by JS scroll event */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-back-to-top.visible {
    display: flex;
}

.floating-back-to-top:hover {
    background: #e67e3a;
    transform: scale(1.1);
}

/* Infinity Scroll Loader */
.htmx-indicator.search-loading-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: none;
}

.htmx-request .search-loading-overlay,
.htmx-request.search-loading-overlay {
    display: flex;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff8c42;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}