/**
 * Public profile & community pages (Facebook-inspired layout: cover, avatar, content).
 */
.ht-prof-cover {
    height: min(220px, 28vw);
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    background-size: cover;
    background-position: center;
    border-radius: 0 0 12px 12px;
}
.ht-prof-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-top: -56px;
    padding: 0 1rem 1.25rem;
    position: relative;
}
.ht-prof-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 4px solid var(--card-bg, #fff);
    object-fit: cover;
    background: var(--border-color);
    flex-shrink: 0;
}
.ht-prof-meta h1 {
    margin: 0 0 0.25rem;
    font-size: 1.45rem;
}
.ht-prof-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.ht-prof-stars {
    color: #ca8a04;
    letter-spacing: 0.05em;
}
.ht-prof-bio {
    max-width: 52rem;
    line-height: 1.5;
    margin: 0 1rem 1.5rem;
}
.ht-community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}
.ht-community-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
}
.ht-community-card img.hero {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: rgba(148, 163, 184, 0.2);
}
.ht-community-card .body { padding: 0.9rem 1rem; flex: 1; }
.ht-community-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.ht-review-list { list-style: none; padding: 0; margin: 0; }
.ht-review-list li {
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}
.ht-review-form label { display: block; margin: 0.5rem 0; }
.ht-review-form textarea { width: 100%; max-width: 100%; min-height: 4rem; }
.ht-profile-form label { display: block; margin: 0.85rem 0; }
.ht-profile-url-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.25rem;
}
.ht-profile-url-row input[type="url"] { flex: 1; min-width: 12rem; margin-top: 0; }
/* Cropper modal (aligns with Cropper.js usage in designs.php) */
.ht-img-editor-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0,0,0,0.88);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ht-img-editor-modal.is-open {
    display: flex;
}
.ht-img-editor-content {
    background: #1e293b;
    border-radius: 16px;
    width: min(920px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}
.ht-img-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #f1f5f9;
    font-weight: 600;
}
.ht-img-editor-header button.ht-img-editor-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}
.ht-img-editor-toolbar {
    display: flex;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.ht-img-editor-toolbar button {
    padding: 0.38rem 0.7rem;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.07);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.12s;
}
.ht-img-editor-toolbar button:hover { background: rgba(255,255,255,0.16); }
.ht-img-editor-canvas {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    max-height: 56vh;
    background: #0f172a;
}
.ht-img-editor-canvas img { display: block; max-width: 100%; }
.ht-img-editor-footer {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.ht-img-editor-footer .ht-img-editor-save {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.ht-img-editor-footer .ht-img-editor-save:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.ht-img-editor-footer .ht-img-editor-cancel {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}
.ht-profile-form input[type="text"],
.ht-profile-form input[type="url"],
.ht-profile-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 0.25rem; padding: 0.5rem 0.6rem; border-radius: 8px; border: 1px solid var(--border-color); }
.ht-alert-success {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.ht-community-map-section {
    margin: 1.25rem 0 1.5rem;
}
.ht-community-map-section .ht-community-map {
    width: 100%;
    height: min(420px, 52vh);
    min-height: 240px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(148, 163, 184, 0.12);
}
.ht-community-map-actions {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.ht-community-place-row {
    margin: 0.35rem 0 0;
}
.ht-community-place-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}
.ht-community-place-row input[type="text"] {
    width: 100%;
    max-width: 32rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    box-sizing: border-box;
}
.ht-community-place-hint {
    font-size: 0.85rem;
    margin: 0.25rem 0 0.75rem;
}
/* Location / search panel: fieldset has no box by default; outer wrapper supplies padding + card. */
.ht-community-search {
    margin: 1.5rem 0;
    padding: 1.15rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}
.ht-community-search fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.ht-community-search legend {
    padding: 0;
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}
.ht-community-search .row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ht-community-search input[type="number"] { width: 7rem; padding: 0.45rem; border-radius: 8px; border: 1px solid var(--border-color); }
.ht-ghost-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
