.detail-gallery { display: grid; grid-template-columns: 3fr 2fr; gap: 6px;
    border-radius: 12px; overflow: hidden; max-height: 480px; margin-bottom: 24px; }
.gallery-main { position: relative; }
.gallery-hero-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-hero-img--empty {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; color: #ccc; font-size: 13px;
    background: #f5f5f5;
}
.gallery-thumbs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery-thumb { width: 100%; height: 100%; object-fit: cover; cursor: pointer;
    transition: filter 0.2s; }
.gallery-thumb:hover { filter: brightness(0.88); }
.gallery-all-btn {
    position: absolute; bottom: 14px; right: 14px;
    background: white; border: 1px solid #ddd; border-radius: 8px;
    padding: 7px 13px; font-size: 12px; font-weight: 600; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.gallery-all-btn:hover { background: #f5f5f5; }

.photo-modal[hidden] { display: none; }
.photo-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center;
    justify-content: center; padding: 24px; }
.photo-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); }
.photo-modal-panel { position: relative; z-index: 1; width: min(100%, 1000px); max-height: 90vh;
    overflow: auto; background: #fff; border-radius: 12px; padding: 20px; }
.photo-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.photo-modal-header h2 { margin: 0; font-size: 1.25rem; }
.photo-modal-close { min-width: 44px; min-height: 44px; border: 0; background: transparent;
    font-size: 30px; line-height: 1; cursor: pointer; }
.photo-modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.photo-modal-image { padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.photo-modal-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.photo-modal-category { display: block; padding: 6px 2px 0; color: #555; font-size: .85rem; text-align: left; }
.photo-modal-open { overflow: hidden; }
.photo-lightbox[hidden] { display: none; }
.photo-lightbox { position: fixed; inset: 0; z-index: 2; display: flex; align-items: center;
    justify-content: center; background: rgba(0, 0, 0, .94); color: #fff; }
.photo-lightbox-backdrop { position: absolute; inset: 0; }
.photo-lightbox-panel { position: relative; z-index: 1; width: min(100%, 1200px); height: 100%;
    display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.photo-lightbox-header { display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 12px; font-weight: 600; }
.photo-lightbox-stage { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 0; }
.photo-lightbox-image { max-width: calc(100% - 112px); max-height: 78vh; object-fit: contain;
    outline: none; }
.photo-lightbox-nav { min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; cursor: pointer; }
.photo-lightbox-nav:hover { background: rgba(255,255,255,.25); }
.media-category-picker { display: flex; align-items: center; gap: 10px; max-width: 360px; margin: 12px 0; }
.media-category-picker span { font-weight: 600; white-space: nowrap; }
.media-item-category { display: block; color: #666; text-transform: capitalize; }
@media(max-width:768px) {
    .detail-gallery { grid-template-columns: 1fr; }
    .gallery-thumbs-grid { display: none; }
    .photo-modal { padding: 12px; }
    .photo-modal-panel { padding: 14px; }
    .photo-modal-grid { grid-template-columns: 1fr; }
    .photo-lightbox-panel { padding: 12px; }
    .photo-lightbox-stage { gap: 8px; }
    .photo-lightbox-image { max-width: calc(100% - 88px); max-height: 72vh; }
    .photo-lightbox-nav { min-width: 40px; min-height: 44px; }
}

/* Sticky bar */
.sticky-book-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: white; border-top: 1px solid #e0e0e0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    align-items: center; justify-content: space-between; gap: 12px;
}
@media(max-width:768px) { .sticky-book-bar { display: flex; } body { padding-bottom: 80px; } }
.sbb-amount { font-size: 20px; font-weight: 800; color: #1a1a1a; }
.sbb-per { font-size: 12px; color: #888; }
.sbb-rating { font-size: 12px; color: #555; }
.sbb-cta {
    background: #003580; color: white; padding: 12px 22px; border-radius: 8px;
    font-weight: 700; font-size: 14px; text-decoration: none; min-height: 46px;
    display: flex; align-items: center; white-space: nowrap;
}
.sbb-cta:hover { background: #00224f; color: white; }

@media (max-width: 768px) {
  .sbb-cta {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Urgency */
.urgency-bar { padding: 8px 14px; border-radius: 6px; font-size: 13px;
    font-weight: 600; margin: 8px 0; display: flex; align-items: center; gap: 6px; }
.urgency-demand { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.urgency-social { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }