.place-card-heading { display: flex; align-items: flex-start; gap: 12px; }
.place-card-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.place-card-description { margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.place-card-actions { display: flex; align-items: center; gap: 4px; margin-top: 22px; }
.place-share-button { margin-left: auto; }
.place-share-button svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.place-photo-avatar {
    flex: 0 0 clamp(64px, 22vw, 88px); width: clamp(64px, 22vw, 88px);
    height: clamp(64px, 22vw, 88px); padding: 0; overflow: hidden;
    border: 1px solid #b8bec5; border-radius: 6px; background: #f1f3f5; cursor: pointer;
}
.place-photo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-gallery[hidden], .photo-gallery [hidden] { display: none !important; }
.photo-gallery {
    position: fixed; inset: 0; z-index: 10000; height: 100%; height: 100dvh;
    box-sizing: border-box; overflow: hidden;
    background: #111827; color: #fff; font: 16px/1.4 Arial, sans-serif;
}
.photo-gallery-header {
    position: absolute; top: 0; left: 0; right: 0; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    padding: calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 30px calc(12px + env(safe-area-inset-left));
    background: linear-gradient(to bottom, rgba(0, 0, 0, .58), rgba(0, 0, 0, .24) 60%, transparent);
    pointer-events: none;
}
.photo-gallery-title {
    flex: 1; min-width: 0; margin: 0; font-size: clamp(13px, 3.4vw, 16px); font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.photo-gallery button { font: inherit; cursor: pointer; pointer-events: auto; }
.photo-icon-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0; padding: 0;
    background: rgba(0, 0, 0, .12); color: #fff; border: 0; border-radius: 6px;
}
.photo-icon-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.photo-gallery button:disabled { opacity: .4; cursor: default; }
.photo-gallery button:focus-visible { outline: 2px solid #86efac; outline-offset: 2px; }
.photo-gallery-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.photo-gallery-image { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; transform: translate(-50%, -50%); transform-origin: center; user-select: none; -webkit-user-select: none; pointer-events: none; }
.photo-gallery-stage.is-panning { cursor: grabbing; }
.photo-gallery-message { position: absolute; max-width: 85%; text-align: center; color: #e2e8f0; padding: 12px; pointer-events: none; }
.photo-gallery-nav { position: absolute; top: 0; bottom: 0; width: 22%; border: 0; color: #fff; background: transparent; font-size: 30px !important; opacity: .75; text-shadow: 0 1px 4px rgba(0, 0, 0, .65); }
.photo-gallery-prev { left: 0; text-align: left; padding-left: 12px; }
.photo-gallery-next { right: 0; text-align: right; padding-right: 12px; }
.photo-gallery-footer {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    padding: 36px calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .24) 40%, rgba(0, 0, 0, .58));
    pointer-events: none;
}
.photo-gallery-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; }
.photo-gallery-dots { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
.photo-gallery-dot { width: 9px; height: 9px; border: 0; border-radius: 50%; padding: 0; background: rgba(255, 255, 255, .45); }
.photo-gallery-dot[aria-current="true"] { background: #fff; }
.photo-gallery-tools { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.photo-gallery-count { color: #cbd5e1; font-size: 13px; }
.photo-gallery-status { text-align: center; color: #cbd5e1; font-size: 14px; margin: 6px 0 0; min-height: 20px; }
.photo-gallery-status:empty { margin: 0; min-height: 0; }
.photo-upload-progress {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 24px; box-sizing: border-box;
    background: rgba(0, 0, 0, .38); color: #fff; text-align: center;
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.photo-upload-spinner {
    width: 48px; height: 48px; box-sizing: border-box;
    border: 4px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    border-radius: 50%; animation: photo-upload-spin .8s linear infinite;
}
.photo-upload-progress-text { font-size: 17px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.photo-upload-progress-hint { font-size: 13px; color: rgba(255, 255, 255, .82); }
@keyframes photo-upload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .photo-upload-spinner { animation-duration: 1.6s; }
}
