- post form: up to 3 verification questions (loss and found) and a "how not to get scammed" note; sent as verificationQuestions JSON - feed card: "I found it" / "It's mine" instead of "Write" for posts with questions; phone shows "after check" until the author approves - chat draft shows ClaimForm; VerificationPanel lets the author approve or reject answers and locks the claimant's input until approval, then offers the author's phone - messages: claim answers card, verification system line, fraudSignal warnings for the recipient; ChatSafetyNotice with new-account mark - tests, README Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
734 lines
22 KiB
CSS
734 lines
22 KiB
CSS
/* ── Modal Backdrop ── */
|
||
.f-modal-bg {
|
||
position: fixed; inset: 0; background: var(--bg-overlay); z-index: 100;
|
||
display: flex; align-items: center; justify-content: center;
|
||
animation: mfadeIn .2s ease;
|
||
}
|
||
.f-modal {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border); border-radius: 24px;
|
||
width: 440px; max-height: 90vh; overflow-y: auto; padding: 26px 28px 24px;
|
||
animation: mslideUp .3s cubic-bezier(.34,1.56,.64,1);
|
||
}
|
||
.f-modal::-webkit-scrollbar { width: 4px; }
|
||
.f-modal::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
|
||
|
||
/* Header */
|
||
.f-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
|
||
.f-modal-title { color: var(--text-primary); font-weight: 900; font-size: 1.1rem; }
|
||
.f-close-btn {
|
||
background: var(--hover-bg); border: 1px solid var(--border);
|
||
border-radius: 8px; width: 32px; height: 32px;
|
||
display: flex; align-items: center; justify-content: center;
|
||
cursor: pointer; color: var(--muted); transition: background .15s;
|
||
}
|
||
.f-close-btn:hover { background: var(--hover-bg); color: var(--text-primary); }
|
||
|
||
/* Form Fields */
|
||
.f-m-group { margin-bottom: 14px; }
|
||
.f-m-row { display: flex; gap: 10px; }
|
||
.f-m-row .f-m-group { flex: 1; min-width: 0; }
|
||
.f-m-row .f-m-field { width: 100%; min-width: 0; }
|
||
.f-m-label {
|
||
display: block; color: var(--muted);
|
||
font-size: .72rem; font-weight: 700; letter-spacing: .6px;
|
||
margin-bottom: 6px; text-transform: uppercase; font-family: var(--font);
|
||
}
|
||
.f-m-field {
|
||
width: 100%; background: var(--bg-input);
|
||
border: 1.5px solid var(--border); border-radius: 12px;
|
||
padding: 11px 14px; color: var(--text-primary); font-family: var(--font);
|
||
font-size: .9rem; outline: none; resize: none;
|
||
transition: border-color .2s, box-shadow .2s;
|
||
}
|
||
.f-m-field:focus { border-color: var(--teal); background: rgba(var(--teal-rgb), .07); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .12); }
|
||
.f-m-field::placeholder { color: var(--muted); }
|
||
.f-m-field option { background: var(--bg-surface-solid); color: var(--text-primary); }
|
||
|
||
/* select высотой как текстовые поля */
|
||
select.f-m-field {
|
||
height: auto;
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
padding: 10px 14px;
|
||
min-height: 42px;
|
||
}
|
||
select.f-m-field::selection { background: transparent; }
|
||
.f-m-field.err { border-color: rgba(237,73,86,.55); }
|
||
|
||
/* Clearable field */
|
||
.f-clr-wrap { position: relative; display: flex; align-items: center; }
|
||
.f-clr-wrap .f-m-field { padding-right: 40px; }
|
||
.f-clr-wrap textarea.f-m-field { line-height: 1.4; }
|
||
.f-clr-btn {
|
||
position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
|
||
width: 26px; height: 26px; border: none; border-radius: 8px;
|
||
background: var(--hover-bg); color: var(--muted);
|
||
display: flex; align-items: center; justify-content: center;
|
||
cursor: pointer; transition: background .15s, color .15s;
|
||
}
|
||
.f-clr-btn:hover { background: var(--bg-input); color: var(--text-primary); }
|
||
.f-clr-wrap textarea + .f-clr-btn { top: 22px; transform: none; }
|
||
|
||
/* Type Toggle */
|
||
.f-type-toggle { display: flex; gap: 8px; }
|
||
.f-type-opt {
|
||
flex: 1; padding: 10px; border-radius: 10px;
|
||
border: 1.5px solid var(--border); background: var(--bg-input);
|
||
color: var(--muted); font-family: var(--font); font-size: .85rem;
|
||
font-weight: 800; cursor: pointer; text-align: center; transition: all .2s;
|
||
}
|
||
.f-type-opt.loss { border-color: rgba(237,73,86,.5); background: rgba(237,73,86,.12); color: #ff6b6b; }
|
||
.f-type-opt.found { border-color: rgba(48, 168, 94, .5); background: rgba(48, 168, 94, .1); color: #30a85e; }
|
||
|
||
/* Map picker */
|
||
.f-map-pick {
|
||
width: 100%; padding: 13px 16px;
|
||
background: var(--teal);
|
||
border: none; border-radius: 13px;
|
||
display: flex; align-items: center; justify-content: center;
|
||
gap: 8px; color: #fff; font-size: .95rem; cursor: pointer;
|
||
transition: background .15s, transform .15s, box-shadow .15s;
|
||
font-family: var(--font); font-weight: 700;
|
||
}
|
||
.f-map-pick:hover { background: var(--teal2); transform: translateY(-1px); }
|
||
.f-map-pick:active { transform: translateY(0); }
|
||
|
||
/* Image Upload */
|
||
.f-img-upload-label {
|
||
display: flex; align-items: center; justify-content: center; gap: 8px;
|
||
border: 2px dashed var(--border); border-radius: 12px; padding: 20px;
|
||
cursor: pointer; color: var(--muted); font-size: .85rem; font-family: var(--font);
|
||
transition: border-color .2s, background .2s;
|
||
}
|
||
.f-img-upload-label:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), .05); color: var(--teal); }
|
||
.f-img-input { display: none; }
|
||
.f-img-upload-text {
|
||
display: flex; flex-direction: column; align-items: center; gap: 4px;
|
||
text-align: center;
|
||
}
|
||
.f-img-upload-sub { font-size: .75rem; opacity: .8; }
|
||
|
||
/* Перетаскивание фото (десктоп): над зоной файл — пунктир окрашивается,
|
||
поле подсвечивается и чуть «приподнимается», превью приглушаются,
|
||
чтобы взгляд шёл на место, куда отпустить файл. */
|
||
.f-img-drop-zone .f-img-upload-label {
|
||
transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s;
|
||
}
|
||
.f-img-drop-zone.is-dragover .f-img-upload-label {
|
||
border-color: var(--teal);
|
||
border-style: solid;
|
||
background: rgba(var(--teal-rgb), .1);
|
||
color: var(--teal);
|
||
font-weight: 600;
|
||
transform: scale(1.02);
|
||
box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .15);
|
||
}
|
||
.f-img-drop-zone.is-dragover .f-img-grid { opacity: .55; transition: opacity .2s; }
|
||
/* Аватар уже есть: поверх превью — затемнение с подсказкой «заменить» */
|
||
.f-img-drop-zone.is-dragover .f-img-preview-wrap {
|
||
box-shadow: 0 0 0 3px var(--teal), 0 0 0 7px rgba(var(--teal-rgb), .18);
|
||
}
|
||
.f-img-drop-overlay {
|
||
position: absolute; inset: 0; z-index: 1;
|
||
display: flex; align-items: center; justify-content: center;
|
||
padding: 8px; text-align: center;
|
||
background: rgba(0, 0, 0, .55);
|
||
color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.3;
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* Profile Photo Preview */
|
||
.f-img-preview-wrap {
|
||
position: relative;
|
||
width: 120px;
|
||
height: 120px;
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
}
|
||
.f-img-preview {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
.f-img-preview-wrap .f-img-remove {
|
||
position: absolute;
|
||
top: 4px;
|
||
right: 4px;
|
||
width: 22px;
|
||
height: 22px;
|
||
background: rgba(0,0,0,0.55);
|
||
border: none;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
color: #fff;
|
||
padding: 0;
|
||
transition: background .2s;
|
||
}
|
||
.f-img-preview-wrap .f-img-remove:hover { background: rgba(0,0,0,0.8); }
|
||
.f-img-preview-wrap .f-img-remove svg {
|
||
width: 12px;
|
||
height: 12px;
|
||
}
|
||
|
||
/* Multi-image Grid */
|
||
.f-img-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 8px;
|
||
margin-bottom: 10px;
|
||
}
|
||
.f-img-grid-item {
|
||
position: relative;
|
||
aspect-ratio: 1;
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
}
|
||
.f-img-grid-preview {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
.f-img-grid-item .f-img-remove {
|
||
position: absolute;
|
||
top: 4px;
|
||
right: 4px;
|
||
width: 22px;
|
||
height: 22px;
|
||
background: rgba(0,0,0,0.55);
|
||
border: none;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
color: #fff;
|
||
padding: 0;
|
||
transition: background .2s;
|
||
}
|
||
.f-img-grid-item .f-img-remove:hover { background: rgba(0,0,0,0.8); }
|
||
.f-img-grid-item .f-img-remove svg {
|
||
width: 12px;
|
||
height: 12px;
|
||
}
|
||
|
||
/* ── Image Viewer Modal ── */
|
||
.f-viewer-bg {
|
||
position: fixed; inset: 0;
|
||
background: rgba(0,0,0,.85);
|
||
z-index: 200;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
animation: mfadeIn .2s ease;
|
||
}
|
||
.f-viewer {
|
||
position: relative;
|
||
max-width: 90vw;
|
||
max-height: 90vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
user-select: none;
|
||
}
|
||
.f-viewer-img-wrap {
|
||
touch-action: pan-y;
|
||
}
|
||
.f-viewer-img {
|
||
max-width: 90vw;
|
||
max-height: 80vh;
|
||
border-radius: 12px;
|
||
object-fit: contain;
|
||
cursor: pointer;
|
||
box-shadow: 0 8px 40px rgba(0,0,0,.5);
|
||
touch-action: pan-y;
|
||
}
|
||
/* Та же лёгкая приглушка, что и в карточке: объявление найдено, но всё равно
|
||
хорошо видно, что это за вещь/питомец. */
|
||
.f-viewer-img-closed { filter: grayscale(.6) brightness(.85); }
|
||
|
||
/* Плашка «Найдено» поверх фото в просмотрщике: остаётся на каждом слайде
|
||
карусели, поэтому статус не теряется при листании. */
|
||
.f-viewer-found-badge {
|
||
position: absolute; top: 10px; left: 10px; z-index: 2;
|
||
display: inline-flex; align-items: center; gap: 6px;
|
||
padding: 7px 14px 7px 11px;
|
||
border-radius: 999px;
|
||
background: linear-gradient(135deg, #35c46f, #1f9d55);
|
||
border: 1px solid rgba(255,255,255,.35);
|
||
color: #fff;
|
||
font-size: .85rem; font-weight: 800; line-height: 1.2;
|
||
white-space: nowrap;
|
||
box-shadow: 0 2px 12px rgba(0,0,0,.35);
|
||
pointer-events: none;
|
||
}
|
||
.f-viewer-contact {
|
||
margin-top: 16px;
|
||
padding: 10px 28px;
|
||
border-radius: 12px;
|
||
border: none;
|
||
background: var(--teal);
|
||
color: #fff;
|
||
font-size: .95rem;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
transition: opacity .2s;
|
||
z-index: 1;
|
||
}
|
||
.f-viewer-contact:hover {
|
||
opacity: .85;
|
||
}
|
||
.f-viewer-close {
|
||
position: fixed;
|
||
top: 16px;
|
||
right: 16px;
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 50%;
|
||
background: rgba(255,255,255,.12);
|
||
border: 1px solid rgba(255,255,255,.2);
|
||
color: #fff;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
z-index: 210;
|
||
transition: background .2s;
|
||
}
|
||
.f-viewer-close:hover {
|
||
background: rgba(255,255,255,.25);
|
||
}
|
||
.f-viewer-dots {
|
||
display: flex;
|
||
gap: 8px;
|
||
margin-top: 16px;
|
||
}
|
||
.f-viewer-dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
background: rgba(255,255,255,.3);
|
||
border: none;
|
||
cursor: pointer;
|
||
padding: 0;
|
||
transition: background .2s;
|
||
}
|
||
.f-viewer-dot.active {
|
||
background: #fff;
|
||
}
|
||
|
||
/* Hints & Errors */
|
||
.f-hint { font-size: .72rem; color: var(--muted); margin-top: 4px; }
|
||
.f-err-msg { font-size: .78rem; color: var(--err); margin-top: 5px; }
|
||
|
||
/* Submit Button */
|
||
.f-m-submit {
|
||
width: 100%;
|
||
background: var(--teal);
|
||
border: none; border-radius: 13px;
|
||
padding: 14px; color: #fff; font-family: var(--font);
|
||
font-size: 1rem; font-weight: 800; cursor: pointer; margin-top: 6px;
|
||
transition: background .15s, opacity .15s, transform .15s;
|
||
}
|
||
.f-m-back {
|
||
width: 100%;
|
||
background: var(--hover-bg);
|
||
border: 1.5px solid var(--border); border-radius: 13px;
|
||
padding: 12px; color: var(--text-primary); font-family: var(--font);
|
||
font-size: .95rem; font-weight: 700; cursor: pointer; margin-bottom: 6px;
|
||
transition: background .15s, border-color .15s, transform .15s;
|
||
}
|
||
.f-m-back:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
|
||
.f-m-back:active:not(:disabled) { transform: translateY(0); }
|
||
.f-m-back:disabled { opacity: .5; cursor: not-allowed; }
|
||
.f-m-submit:hover:not(:disabled) { background: var(--teal2); transform: translateY(-1px); }
|
||
.f-m-submit:active:not(:disabled) { transform: translateY(0); }
|
||
.f-m-submit:disabled { opacity: .5; cursor: not-allowed; animation: none; background: var(--muted2); color: var(--muted); }
|
||
.f-m-submit-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
|
||
|
||
/* ── Modal Logout Button ── */
|
||
.f-modal-logout {
|
||
display: block; width: 100%; margin-top: 16px; padding: 10px;
|
||
border-radius: 10px; border: 1px solid rgba(237,73,86,.3);
|
||
background: rgba(237,73,86,.08); color: rgba(237,73,86,.8);
|
||
font-family: var(--font); font-size: .9rem; font-weight: 700; cursor: pointer;
|
||
transition: background .15s, border-color .15s;
|
||
}
|
||
.f-modal-logout:hover {
|
||
background: rgba(237,73,86,.18);
|
||
border-color: rgba(237,73,86,.5);
|
||
}
|
||
.f-m-spinner {
|
||
width: 16px; height: 16px;
|
||
border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
|
||
border-radius: 50%; animation: spin .7s linear infinite;
|
||
}
|
||
|
||
/* ── Upload Ad Modal ── */
|
||
.f-upload-progress {
|
||
height: 8px; border-radius: 4px; overflow: hidden;
|
||
background: var(--bg-input); border: 1px solid var(--border);
|
||
}
|
||
.f-upload-progress-fill {
|
||
height: 100%; background: var(--teal);
|
||
transition: width .15s ease;
|
||
}
|
||
.f-upload-progress-text {
|
||
font-size: .72rem; color: var(--muted); margin-top: 4px; text-align: right;
|
||
}
|
||
.f-ok-msg {
|
||
font-size: .82rem; color: var(--teal); margin-top: 8px;
|
||
}
|
||
|
||
/* ── Support Modal ── */
|
||
.f-support-body {
|
||
padding: 0 4px;
|
||
}
|
||
.f-support-text {
|
||
margin: 0;
|
||
font-size: 0.9rem;
|
||
line-height: 1.7;
|
||
color: var(--text-primary);
|
||
}
|
||
.f-support-email {
|
||
margin: 18px 0 0;
|
||
}
|
||
.f-support-email a {
|
||
color: var(--teal);
|
||
font-weight: 700;
|
||
font-size: 1.05rem;
|
||
text-decoration: none;
|
||
transition: opacity 0.15s;
|
||
}
|
||
.f-support-email a:hover {
|
||
opacity: 0.8;
|
||
}
|
||
.f-support-footer {
|
||
margin: 18px 0 0;
|
||
font-size: 0.82rem;
|
||
color: var(--muted);
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.f-modal-bg {
|
||
align-items: center;
|
||
padding: 0;
|
||
}
|
||
|
||
.f-modal-bg:has(.f-post-detail-modal) {
|
||
align-items: center;
|
||
}
|
||
|
||
.f-modal-bg.auth-modal-bg {
|
||
align-items: center;
|
||
}
|
||
|
||
.f-modal:not(.auth-modal) {
|
||
width: 100%;
|
||
max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px);
|
||
border-radius: 20px;
|
||
padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
|
||
}
|
||
|
||
.auth-modal {
|
||
width: 100%;
|
||
max-height: calc(80dvh - env(safe-area-inset-top, 0px));
|
||
border-radius: 20px;
|
||
padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
|
||
}
|
||
}
|
||
|
||
/* Safe-area: не даём верху модалки уходить под вырез/браузерную панель на iOS */
|
||
@supports (padding-top: env(safe-area-inset-top)) {
|
||
.f-modal-bg {
|
||
padding-top: env(safe-area-inset-top, 0px);
|
||
padding-bottom: env(safe-area-inset-bottom, 0px);
|
||
}
|
||
}
|
||
|
||
/* ── Rules Checkbox ── */
|
||
.f-rules-checkbox {
|
||
display: flex; align-items: center; gap: 10px; cursor: pointer;
|
||
user-select: none; padding: 6px 0;
|
||
}
|
||
.f-rules-input {
|
||
position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
|
||
}
|
||
.f-rules-checkmark {
|
||
flex-shrink: 0; width: 20px; height: 20px;
|
||
border: 2px solid var(--border); border-radius: 5px;
|
||
background: var(--bg-input); transition: all .2s;
|
||
position: relative;
|
||
}
|
||
.f-rules-input:checked + .f-rules-checkmark {
|
||
background: var(--teal); border-color: var(--teal);
|
||
}
|
||
.f-rules-input:checked + .f-rules-checkmark::after {
|
||
content: ""; position: absolute; left: 5px; top: 1px;
|
||
width: 6px; height: 10px;
|
||
border: solid #fff; border-width: 0 2.5px 2.5px 0;
|
||
transform: rotate(45deg);
|
||
}
|
||
.f-rules-input:focus + .f-rules-checkmark {
|
||
box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .25);
|
||
}
|
||
.f-rules-text {
|
||
font-size: .82rem; color: var(--muted); line-height: 1.4;
|
||
}
|
||
.f-rules-link {
|
||
color: var(--teal); cursor: pointer; text-decoration: underline;
|
||
text-underline-offset: 2px; transition: opacity .15s;
|
||
}
|
||
.f-rules-link:hover { opacity: .75; }
|
||
|
||
/* ── Result Modal (success / blocked) ── */
|
||
.f-modal-result {
|
||
text-align: center;
|
||
padding: 36px 28px 28px;
|
||
max-width: 380px;
|
||
}
|
||
.f-result-icon {
|
||
width: 56px; height: 56px;
|
||
border-radius: 50%;
|
||
display: flex; align-items: center; justify-content: center;
|
||
margin: 0 auto 16px;
|
||
font-size: 1.5rem; font-weight: 900;
|
||
}
|
||
.f-result-icon.success {
|
||
background: rgba(var(--teal-rgb), .15);
|
||
color: var(--teal);
|
||
}
|
||
.f-result-icon.blocked {
|
||
background: rgba(255, 107, 107, .15);
|
||
color: #ff6b6b;
|
||
}
|
||
.f-result-title {
|
||
margin: 0 0 8px;
|
||
font-size: 1.05rem; font-weight: 800;
|
||
color: var(--text-primary);
|
||
}
|
||
.f-result-text {
|
||
margin: 0 0 22px;
|
||
font-size: .85rem; line-height: 1.5;
|
||
color: var(--muted);
|
||
}
|
||
.f-result-btn {
|
||
width: 100%; border: none; border-radius: 12px;
|
||
padding: 13px; font-family: var(--font);
|
||
font-size: .9rem; font-weight: 800; cursor: pointer;
|
||
transition: opacity .15s, transform .15s;
|
||
}
|
||
.f-result-btn:hover { opacity: .88; transform: translateY(-1px); }
|
||
.f-result-btn:active { transform: translateY(0); }
|
||
.f-result-btn.ok {
|
||
background: var(--teal);
|
||
color: #fff;
|
||
}
|
||
.f-result-btn.err {
|
||
background: rgba(237, 73, 86, .1);
|
||
border: 1.5px solid rgba(237, 73, 86, .35);
|
||
color: #ed4956;
|
||
}
|
||
|
||
.f-map-frame {
|
||
width: 100%;
|
||
height: 260px;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.f-map-inner {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
/* Map Modal */
|
||
.f-map-modal {
|
||
width: 520px;
|
||
max-width: 95vw;
|
||
}
|
||
.f-map-modal-frame {
|
||
height: 300px;
|
||
}
|
||
.f-map-selected {
|
||
display: flex; flex-direction: column; gap: 4px;
|
||
margin: 14px 0 6px; padding: 12px 14px;
|
||
background: var(--bg-input); border: 1.5px solid var(--border);
|
||
border-radius: 12px;
|
||
}
|
||
.f-map-selected-label {
|
||
color: var(--muted); font-size: .68rem; font-weight: 700;
|
||
letter-spacing: .5px; text-transform: uppercase;
|
||
}
|
||
.f-map-selected-value {
|
||
color: var(--text-primary); font-size: .9rem; font-weight: 600;
|
||
word-break: break-word;
|
||
}
|
||
|
||
/* Geolocation hint inside map modal */
|
||
.f-map-geo {
|
||
margin-top: 10px; padding: 8px 12px;
|
||
border-radius: 10px;
|
||
font-size: .78rem; font-weight: 700;
|
||
background: rgba(var(--teal-rgb), .08);
|
||
border: 1px solid rgba(var(--teal-rgb), .25);
|
||
color: var(--teal);
|
||
text-align: center;
|
||
}
|
||
|
||
|
||
.f-modal-sm {
|
||
width: 420px;
|
||
}
|
||
|
||
.f-post-detail-modal {
|
||
width: 480px;
|
||
max-width: 95vw;
|
||
padding: 0;
|
||
overflow: hidden;
|
||
border-radius: 24px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
max-height: min(90vh, 820px);
|
||
}
|
||
.f-post-detail-modal .f-card {
|
||
border: none;
|
||
border-radius: 24px;
|
||
box-shadow: none;
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow-y: auto;
|
||
scrollbar-width: thin;
|
||
}
|
||
.f-post-detail-modal .f-card::-webkit-scrollbar { width: 4px; }
|
||
.f-post-detail-modal .f-card::-webkit-scrollbar-track { background: transparent; }
|
||
.f-post-detail-modal .f-card::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
|
||
.f-post-detail-modal .f-card-head {
|
||
border-radius: 24px 24px 0 0;
|
||
flex-shrink: 0;
|
||
padding: 10px 14px;
|
||
}
|
||
.f-post-detail-modal .f-card-img {
|
||
max-height: none;
|
||
/* Раньше было overflow: visible для полноэкранного просмотра. Теперь фото
|
||
листается прямо в карточке (карусель), поэтому кадры должны обрезаться
|
||
по «окну». */
|
||
overflow: hidden;
|
||
flex-shrink: 0;
|
||
}
|
||
.f-post-detail-modal .f-card-caption {
|
||
padding: 8px 14px;
|
||
}
|
||
.f-post-detail-modal .f-card-caption-text {
|
||
-webkit-line-clamp: unset;
|
||
line-clamp: unset;
|
||
overflow: visible;
|
||
}
|
||
.f-post-detail-modal .f-card-foot {
|
||
position: sticky;
|
||
bottom: 0;
|
||
z-index: 2;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
|
||
background: var(--bg-card);
|
||
border-top: 1px solid var(--border);
|
||
box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
|
||
}
|
||
.f-app.f-map-view .f-card-foot .f-card-phone {
|
||
font-size: .75rem;
|
||
}
|
||
.f-app.f-map-view .f-card-contact {
|
||
padding: 8px 20px;
|
||
font-size: .75rem;
|
||
}
|
||
.f-post-detail-close {
|
||
position: absolute;
|
||
top: calc(12px + env(safe-area-inset-top, 0px));
|
||
right: calc(12px + env(safe-area-inset-right, 0px));
|
||
z-index: 10;
|
||
color: #262626;
|
||
border-color: rgba(0,0,0,.08);
|
||
background: rgba(255,255,255,.9);
|
||
}
|
||
.f-post-detail-close:hover {
|
||
color: #262626;
|
||
}
|
||
.f-post-detail-status {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 60px 0;
|
||
}
|
||
.f-post-detail-error {
|
||
color: var(--err);
|
||
font-size: 0.9rem;
|
||
}
|
||
@media (max-width: 600px) {
|
||
.f-modal.f-post-detail-modal {
|
||
width: 67%;
|
||
max-height: 100vh;
|
||
border-radius: 24px;
|
||
padding: 0;
|
||
margin: auto;
|
||
}
|
||
}
|
||
/* ── Address autocomplete + inline map (CreateUpdatePost) ── */
|
||
.f-addr { position: relative; z-index: 30; }
|
||
.f-addr-list {
|
||
position: absolute; z-index: 20;
|
||
top: calc(100% + 4px); left: 0; right: 0;
|
||
margin: 0; padding: 4px; list-style: none;
|
||
max-height: 264px; overflow-y: auto;
|
||
background: var(--bg-surface-solid);
|
||
border: 1px solid var(--border); border-radius: 12px;
|
||
box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
|
||
}
|
||
.f-addr-item {
|
||
display: flex; flex-direction: column; gap: 2px;
|
||
padding: 9px 12px; border-radius: 8px; cursor: pointer;
|
||
font-family: var(--font);
|
||
}
|
||
.f-addr-item.active { background: var(--hover-bg); }
|
||
.f-addr-title { font-size: .9rem; color: var(--text-primary); }
|
||
.f-addr-sub { font-size: .75rem; color: var(--muted); }
|
||
/* Индикатор поиска — слева от крестика очистки */
|
||
.f-addr-spinner {
|
||
position: absolute; right: 42px; top: 21px; margin-top: -8px;
|
||
width: 16px; height: 16px; border-radius: 50%;
|
||
border: 2px solid rgba(var(--teal-rgb), .25); border-top-color: var(--teal);
|
||
animation: f-addr-spin .7s linear infinite; pointer-events: none;
|
||
}
|
||
@keyframes f-addr-spin { to { transform: rotate(360deg); } }
|
||
.f-map-open { margin-top: 10px; }
|
||
.f-map-modal-frame.loading { opacity: .85; }
|
||
|
||
/* Контрольные вопросы находки в форме объявления */
|
||
.f-verify-question + .f-verify-question { margin-top: 8px; }
|
||
.f-verify-add {
|
||
margin-top: 8px;
|
||
background: none; border: none; padding: 0;
|
||
color: var(--teal); font-family: var(--font); font-weight: 600; cursor: pointer;
|
||
}
|
||
|
||
/* Предупреждение о мошенниках в форме объявления */
|
||
.f-safety-note {
|
||
border: 1px solid rgba(230, 150, 0, .35);
|
||
background: rgba(255, 176, 32, .1);
|
||
border-radius: 14px;
|
||
padding: 10px 12px;
|
||
}
|
||
.f-safety-title { font-weight: 700; font-size: .88rem; margin-bottom: 4px; }
|
||
.f-safety-text { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
|