552 lines
15 KiB
CSS
552 lines
15 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; }
|
|
.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; }
|
|
|
|
/* 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-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;
|
|
}
|
|
|
|
/* ── 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;
|
|
}
|
|
.f-post-detail-modal .f-card {
|
|
border: none;
|
|
border-radius: 24px;
|
|
box-shadow: none;
|
|
}
|
|
.f-post-detail-modal .f-card-head {
|
|
border-radius: 24px 24px 0 0;
|
|
}
|
|
.f-post-detail-modal .f-card-head {
|
|
padding: 10px 14px;
|
|
}
|
|
.f-post-detail-modal .f-card-img {
|
|
max-height: none;
|
|
overflow: visible;
|
|
}
|
|
.f-post-detail-modal .f-card-img img {
|
|
width: 100%;
|
|
height: auto;
|
|
object-fit: contain;
|
|
}
|
|
.f-post-detail-modal .f-card-caption {
|
|
padding: 8px 14px;
|
|
}
|
|
.f-post-detail-modal .f-card-foot {
|
|
padding: 8px 14px;
|
|
}
|
|
.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;
|
|
}
|
|
} |