/* YESBY HOTEL — photos.css */
/* Photos des établissements et hébergements */
.hotel-photo-editor{margin:14px 0 22px;padding:14px;border:1px solid var(--line-strong);border-radius:12px}
.hotel-photo-editor form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hotel-photo-editor input[type=file]{max-width:100%}
.hotel-photo-preview{display:block;width:100%;max-width:430px;height:220px;object-fit:cover;border-radius:10px;margin:12px 0}
.hotel-result-photo{display:block;width:100%;height:200px;object-fit:cover;border-radius:10px;margin:0 0 14px}

/* Galeries multiples HOTEL */
.hotel-photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px;margin:10px 0 16px}
.hotel-photo-tile{min-width:0;padding:5px;border:1px solid var(--line);border-radius:10px}
.hotel-photo-tile img{display:block;width:100%;height:115px;object-fit:cover;border-radius:7px}
.hotel-photo-tools{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.hotel-photo-tools button{cursor:pointer;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--text);font-size:12px;padding:4px 7px}
.hotel-photo-editor input[type=file]{display:block;margin:8px 0}
.hotel-public-gallery{display:flex;gap:7px;overflow-x:auto;margin:0 0 12px}
.hotel-public-gallery img{width:84px;height:65px;object-fit:cover;border-radius:6px;flex-shrink:0}

/* Sélection de photos adaptée aux smartphones */
.hotel-photo-picker{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}
.hotel-photo-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none}
.hotel-photo-picker label.btn{cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.hotel-photo-filenames{font-size:13px;color:var(--sub)}
.hotel-camera-button{display:none!important}
@media(pointer:coarse){.hotel-camera-button{display:inline-flex!important}}

/* Lightbox et miniatures cliquables */
.hotel-photo-zoom,.hotel-photo-thumb{cursor:zoom-in}
.hotel-photo-thumb{cursor:pointer}
.hotel-photo-thumb:hover,.hotel-photo-thumb:focus{outline:2px solid var(--accent);outline-offset:2px}
.hotel-photo-lightbox{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.91);cursor:zoom-out}
.hotel-photo-lightbox img{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:5px}

.hotel-photo-carousel .hotel-carousel-prev,.hotel-photo-carousel .hotel-carousel-next,.hotel-photo-carousel .hotel-carousel-close{position:absolute;border:0;border-radius:50%;background:rgba(35,42,53,.85);color:white;cursor:pointer;display:grid;place-items:center;z-index:1}
.hotel-photo-carousel .hotel-carousel-prev,.hotel-photo-carousel .hotel-carousel-next{top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:38px}
.hotel-photo-carousel .hotel-carousel-prev{left:12px}.hotel-photo-carousel .hotel-carousel-next{right:12px}
.hotel-photo-carousel .hotel-carousel-close{right:14px;top:14px;width:36px;height:36px;font-size:27px}
.hotel-photo-carousel .hotel-carousel-counter{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);background:rgba(0,0,0,.65);color:#fff;border-radius:20px;padding:5px 12px;font-size:13px}
.hotel-photo-carousel button[hidden]{display:none}

/* Onglet Photos : galerie flex compacte et actions primary */
.hotel-photo-targets{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.hotel-photo-gallery{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;margin:12px 0 18px}
.hotel-photo-gallery .hotel-photo-tile{flex:0 1 165px;width:165px;max-width:calc(50% - 6px);padding:6px}
.hotel-photo-gallery .hotel-photo-tile img{width:100%;height:125px;object-fit:cover}
.hotel-photo-gallery .hotel-photo-tools{display:flex;flex-direction:row;gap:5px}
.hotel-photo-gallery .hotel-photo-tools button{flex:1;min-width:0;background:#216bc8;color:#fff;border:1px solid #216bc8;font-size:11px;font-weight:600;padding:5px 4px}
.hotel-photo-gallery .hotel-photo-tools button:hover{background:#1755a5}
.hotel-photo-editor>form{display:block}
.hotel-photo-editor .hotel-photo-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:520px){.hotel-photo-gallery .hotel-photo-tile{flex-basis:calc(50% - 6px)}}

/* Onglet Photos : seule la cible active reste bleue. */
.hotel-photo-targets .btn:not(.active){background:var(--surface);color:var(--text);border-color:var(--line-strong)}
.hotel-photo-targets .btn.active{background:#216bc8;color:#fff;border-color:#216bc8}
.hotel-photo-gallery .hotel-photo-tools button.is-current,.hotel-photo-gallery .hotel-photo-tools button:disabled{background:#59616d;color:#e2e5e9;border-color:#747c88;cursor:default;opacity:.75}

.hotel-search-address{display:flex;gap:7px;align-items:flex-start;margin:8px 0 12px}.hotel-search-map-link{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.hotel-search-map-link:hover{color:var(--accent)}.hotel-search-map-link .hotel-address-line{display:block}


/* Bandeau de couverture de la vitrine privative. */
.hotel-banner-preview{margin:14px 0 22px;padding:14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface-2)}
.hotel-banner-preview h3{margin:0 0 10px}
.hotel-banner-preview img{display:block;width:100%;height:clamp(160px,28vw,330px);object-fit:cover;border-radius:9px}
.hotel-banner-preview p{margin:10px 0 0;font-size:.88rem}
