/* Styles page Restaurants & Hôtels (annuaire + modal)
   Extrait du bloc <style> inline de page-restaurants-hotels.php (consolidation CSS, 23/08/2026).
   Chargé conditionnellement via inc/enqueue.php. */

        .directory-section {
            padding: 70px 0;
            background-color: #f8fafc;
        }
        .directory-controls {
            margin-bottom: 45px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }
        .directory-tabs {
            display: flex;
            gap: 10px;
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .directory-tab {
            background-color: #fff;
            border: 1px solid #e2e8f0;
            color: #475569;
            padding: 10px 24px;
            border-radius: 30px;
            font-size: 14.5px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .directory-tab:hover {
            background-color: #f1f5f9;
            color: #0a4c95;
            border-color: #cbd5e1;
        }
        .directory-tab.is-active {
            background-color: #0a4c95;
            color: #fff;
            border-color: #0a4c95;
            box-shadow: 0 4px 12px rgba(10, 76, 149, 0.2);
        }
        .directory-search {
            position: relative;
            max-width: 400px;
            width: 100%;
        }
        .directory-search input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border: 1px solid #e2e8f0;
            border-radius: 30px;
            background-color: #fff;
            font-size: 14.5px;
            outline: none;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        }
        .directory-search input:focus {
            border-color: #0a4c95;
            box-shadow: 0 4px 12px rgba(10, 76, 149, 0.1);
        }
        .directory-search i {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 16px;
        }

        /* ── Row / Line Layout ── */
        .directory-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .directory-row {
            background-color: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px 24px;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        }
        .directory-row::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 0;
            background-color: #0a4c95;
            transition: width 0.2s ease;
        }
        .directory-row:hover {
            transform: translateX(4px);
            border-color: #cbd5e1;
            box-shadow: 0 6px 18px rgba(10, 76, 149, 0.08);
        }
        .directory-row:hover::before {
            width: 4px;
        }
        .row-image-wrapper {
            width: 110px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background-color: #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #f1f5f9;
        }
        .row-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .row-body {
            margin-left: 24px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .row-badge-wrapper {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }
        .row-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #fff;
        }
        .badge-hotel {
            background-color: #0a4c95;
        }
        .badge-guest {
            background-color: #166534;
        }
        .badge-restaurant {
            background-color: #c2410c;
        }
        .row-title {
            font-size: 18px;
            font-weight: 700;
            color: #0f172a;
            margin: 0;
            transition: color 0.2s ease;
        }
        .directory-row:hover .row-title {
            color: #0a4c95;
        }
        .row-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            font-size: 13.5px;
            color: #64748b;
        }
        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .meta-item i {
            color: #94a3b8;
        }
        .row-action-area {
            margin-left: 20px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
        }
        .btn-row-details {
            background-color: #f0f5fb;
            color: #0a4c95;
            border: none;
            padding: 10px 18px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .directory-row:hover .btn-row-details {
            background-color: #0a4c95;
            color: #fff;
        }

        /* ── Modal Design ── */
        .dir-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            padding: 20px;
        }
        .dir-modal.is-active {
            opacity: 1;
            pointer-events: auto;
        }
        .dir-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(6px);
        }
        .dir-modal-container {
            position: relative;
            background: #fff;
            width: 100%;
            max-width: 700px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            z-index: 10;
        }
        .dir-modal.is-active .dir-modal-container {
            transform: scale(1);
        }
        .dir-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(15, 23, 42, 0.5);
            border: none;
            color: #fff;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease;
            z-index: 15;
            line-height: 1;
        }
        .dir-modal-close:hover {
            background: rgba(15, 23, 42, 0.8);
        }
        .dir-modal-hero {
            height: 260px;
            background-size: cover;
            background-position: center;
            background-color: #cbd5e1;
            position: relative;
            flex-shrink: 0;
        }
        .dir-modal-hero::after {
            content: '';
            position: absolute;
            left: 0; right: 0; bottom: 0;
            height: 80px;
            background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
        }
        .dir-modal-scroll {
            padding: 30px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .dir-modal-header {
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: flex-start;
        }
        .dir-modal-title {
            font-size: 26px;
            font-weight: 800;
            color: #0f172a;
            margin: 0;
            line-height: 1.25;
        }
        .dir-modal-info-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            background-color: #f8fafc;
            padding: 16px 20px;
            border-radius: 8px;
            border: 1px solid #edf2f7;
            font-size: 14px;
            color: #475569;
        }
        .info-row {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        .info-row i {
            color: #0a4c95;
            margin-top: 3px;
            width: 16px;
            text-align: center;
        }
        .dir-modal-desc {
            font-size: 15px;
            line-height: 1.6;
            color: #334155;
        }
        .dir-modal-desc p {
            margin-bottom: 12px;
        }
        .dir-modal-map-frame {
            width: 100%;
            height: 220px;
            border-radius: 10px;
            border: 1px solid #e2e8f0;
            overflow: hidden;
            margin-top: 10px;
            background-color: #f1f5f9;
        }
        .dir-modal-map-frame iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        .dir-modal-footer {
            margin-top: 15px;
            display: flex;
            justify-content: flex-end;
        }
        .btn-map-full {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background-color: #0a4c95;
            color: #fff !important;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
            transition: background-color 0.2s ease;
            box-shadow: 0 4px 12px rgba(10, 76, 149, 0.2);
        }
        .btn-map-full:hover {
            background-color: #083b75;
        }

        .directory-empty {
            text-align: center;
            padding: 60px 20px;
            background: #fff;
            border-radius: 12px;
            border: 1px dashed #cbd5e1;
        }
        .directory-empty i {
            font-size: 48px;
            color: #94a3b8;
            margin-bottom: 15px;
        }
        .directory-empty h3 {
            font-size: 18px;
            color: #475569;
            margin-bottom: 5px;
        }
        .directory-empty p {
            color: #64748b;
            font-size: 14px;
        }

        .directory-owner-note {
            display: flex;
            align-items: center;
            gap: 22px;
            margin-top: 40px;
            padding: 28px 30px;
            background: #fff;
            border-radius: 5px;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.07);
        }
        .directory-owner-note__icon {
            display: grid;
            place-items: center;
            width: 52px;
            height: 52px;
            flex: 0 0 52px;
            border-radius: 5px;
            background: #eaf2fb;
            color: #0a4c95;
            font-size: 21px;
        }
        .directory-owner-note__content {
            flex: 1 1 auto;
            min-width: 0;
        }
        .directory-owner-note h2 {
            margin: 0 0 6px;
            color: #0a1a30;
            font-size: 22px;
            line-height: 1.3;
        }
        .directory-owner-note p {
            max-width: 70ch;
            margin: 0;
            color: #515b6a;
            font-size: 15px;
            line-height: 1.65;
        }
        .directory-owner-note__action {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        /* Responsive stack */
        @media (max-width: 768px) {
            .directory-controls {
                flex-direction: column;
                align-items: stretch;
            }
            .directory-tabs {
                overflow-x: auto;
                padding-bottom: 5px;
            }
            .directory-tab {
                white-space: nowrap;
                padding: 8px 18px;
                font-size: 13.5px;
            }
            .directory-row {
                flex-direction: column;
                align-items: flex-start;
                padding: 20px;
            }
            .row-image-wrapper {
                width: 100%;
                height: 180px;
                margin-bottom: 15px;
            }
            .row-body {
                margin-left: 0;
                width: 100%;
            }
            .row-action-area {
                margin-left: 0;
                margin-top: 15px;
                width: 100%;
            }
            .btn-row-details {
                width: 100%;
                justify-content: center;
            }
            .dir-modal-container {
                max-height: 95vh;
            }
            .dir-modal-scroll {
                padding: 20px;
            }
            .dir-modal-hero {
                height: 180px;
            }
			.directory-owner-note {
				align-items: flex-start;
				flex-wrap: wrap;
				padding: 24px 20px;
			}
			.directory-owner-note__content {
				flex-basis: calc(100% - 74px);
			}
			.directory-owner-note__action {
				width: 100%;
				text-align: center;
			}
        }
.cormier-modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.cormier-modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .cormier-modal-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Accessibilité : le titre de la ligne est le bouton qui ouvre la fiche (clavier) */
.row-title-btn { all: unset; cursor: pointer; display: inline; }
.row-title-btn:focus-visible { outline: 3px solid #0a4c95; outline-offset: 3px; border-radius: 3px; }

/* Galerie Picolet : images entières pour conserver les crédits photographiques. */
.picolet-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.picolet-gallery figure{margin:0;min-width:0}
.picolet-gallery img{display:block;width:100%;height:auto;border-radius:5px}
.picolet-gallery figcaption,.picolet-credit{font-size:13px;line-height:1.5;color:#515b6a;margin-top:8px}
@media(max-width:640px){.picolet-gallery{grid-template-columns:1fr}}
