/**
 * MERIVA UI V4 — app shell, sidebar, explore hero, mobile dock.
 * Scoped to body.m-layout-member.m-ui-v4. Does not delete legacy CSS.
 */

.v4-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

body.m-ui-v4 .m-app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body.m-ui-v4 .m-app-container {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

body.m-ui-v4 .m-app-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: var(--meriva-v4-content-gap);
    padding-bottom: calc(var(--meriva-v4-content-gap) + 0.5rem);
}

body.m-ui-v4 .mx-explore-v2,
body.m-ui-v4 .mx-city-v2,
body.m-ui-v4 .v4-explore {
    max-width: none;
    width: 100%;
}

/* —— Sidebar: always expanded on desktop —— */
body.m-ui-v4 .m-app-sidebar.v4-sidebar {
    width: var(--meriva-v4-sidebar-width);
    min-width: var(--meriva-v4-sidebar-width);
    flex: 0 0 var(--meriva-v4-sidebar-width);
    background: var(--meriva-v4-sidebar);
    color: #f4f1ea;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.1rem 0.85rem 1rem;
    overflow-x: hidden;
}

@media (min-width: 1100px) {
    body.m-ui-v4 .m-app-sidebar.v4-sidebar,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:hover,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:focus-within,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar.is-hover-open,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) {
        width: clamp(220px, 14vw, 260px);
        min-width: clamp(220px, 14vw, 260px);
        flex-basis: clamp(220px, 14vw, 260px);
        padding: 1.15rem 0.9rem 1rem;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-brand-copy,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-nav-label,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-nav-group,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-foot-copy,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-theme-switch {
        opacity: 1;
        max-width: none;
        overflow: visible;
        position: static;
        clip: auto;
        height: auto;
        width: auto;
        transform: none;
        pointer-events: auto;
    }
}

.v4-sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 1.15rem;
}

.v4-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.15rem 0.35rem 0.35rem;
}

.v4-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.v4-sidebar-brand:hover,
.v4-sidebar-brand:focus-visible {
    color: inherit;
}

.v4-sidebar-brand .m-badger-emblem {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.v4-sidebar-wordmark {
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.v4-sidebar-tagline {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.68rem;
    color: rgba(244, 241, 234, 0.55);
    line-height: 1.25;
}

.v4-sidebar-close {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    border-radius: 10px;
}

.v4-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.v4-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-block: 0.35rem;
}

.v4-nav-group + .v4-nav-group {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.2rem;
    padding-top: 0.65rem;
}

.v4-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.55rem;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    color: rgba(244, 241, 234, 0.82);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 550;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.v4-nav-link .v4-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: rgba(244, 241, 234, 0.62);
}

.v4-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f7f3ec;
}

.v4-nav-link.is-active {
    background: var(--meriva-v4-gold);
    color: var(--meriva-v4-black);
    font-weight: 700;
}

.v4-nav-link.is-active .v4-icon {
    color: var(--meriva-v4-black);
}

.v4-sidebar-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    padding: 0.2rem 0.35rem 0.4rem;
}

.v4-sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.v4-mpoints-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
}

.v4-mpoints-compact:hover {
    background: rgba(255, 255, 255, 0.07);
    color: inherit;
}

.v4-mpoints-label {
    font-size: 0.72rem;
    color: rgba(244, 241, 234, 0.55);
}

.v4-mpoints-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--meriva-v4-gold);
    font-variant-numeric: tabular-nums;
}

.v4-sidebar-footer fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.v4-sidebar-footer legend {
    font-size: 0.68rem;
    color: rgba(244, 241, 234, 0.5);
    margin-bottom: 0.35rem;
    padding: 0;
}

.v4-theme-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
}

.v4-theme-opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 2.2rem;
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(244, 241, 234, 0.75);
    font-size: 0.68rem;
    cursor: pointer;
}

.v4-theme-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.v4-theme-opt:has(input:checked),
.v4-theme-opt:has(input:focus-visible) {
    border-color: var(--meriva-v4-gold);
    color: var(--meriva-v4-gold);
}

.v4-theme-opt .v4-icon {
    width: 0.95rem;
    height: 0.95rem;
}

/* —— Context bar —— */
.v4-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.85rem var(--meriva-v4-content-gap) 0.55rem;
    background: var(--meriva-v4-surface);
    position: sticky;
    top: 0;
    z-index: 40;
}

.v4-context-copy {
    min-width: 0;
}

.v4-context-title {
    margin: 0;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--meriva-v4-text);
    line-height: 1.2;
}

.v4-context-lead {
    margin: 0.15rem 0 0;
    font-size: 0.86rem;
    color: var(--meriva-v4-text-muted);
}

.v4-context-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.v4-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    border-radius: 999px;
    text-decoration: none;
    position: relative;
}

.v4-icon-btn:hover {
    border-color: rgba(201, 162, 39, 0.45);
    color: var(--meriva-v4-text);
}

.v4-context-actions .m-navbar-icon,
.v4-context-actions .m-btn-icon {
    width: 2.55rem;
    height: 2.55rem;
    min-width: 2.55rem;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    border-radius: 999px;
    box-shadow: none;
}

.v4-city-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    max-width: 12rem;
}

.v4-city-chip:hover {
    color: var(--meriva-v4-text);
    border-color: rgba(201, 162, 39, 0.4);
}

.v4-city-chip .v4-icon {
    color: var(--meriva-v4-gold);
}

.v4-city-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-bell-count {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: var(--meriva-v4-gold);
    color: var(--meriva-v4-black);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1rem;
    text-align: center;
}

.v4-user-menu {
    position: relative;
}

.v4-user-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border: 1px solid var(--meriva-v4-border);
    border-radius: 999px;
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    font-weight: 750;
    font-size: 0.86rem;
}

.v4-user-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 13.5rem;
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
    z-index: 60;
}

.v4-user-panel[hidden] {
    display: none !important;
}

.v4-user-panel a,
.v4-user-panel button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    background: transparent;
    color: var(--meriva-v4-text);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.88rem;
    text-align: left;
}

.v4-user-panel a:hover,
.v4-user-panel button:hover {
    background: var(--meriva-v4-surface-soft);
}

.v4-user-group {
    margin: 0.2rem 0;
    padding: 0.35rem 0.65rem 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--meriva-v4-text-muted);
}

.v4-user-sep {
    height: 1px;
    margin: 0.25rem 0.4rem;
    background: var(--meriva-v4-border);
}

.v4-guest-auth {
    display: flex;
    gap: 0.4rem;
}

/* —— Explore —— */
.v4-explore {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.4vw, 2rem);
    min-width: 0;
}

.v4-explore-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr) minmax(220px, 0.55fr);
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: stretch;
    padding: clamp(1.1rem, 2.2vw, 1.75rem);
    border-radius: var(--meriva-v4-radius-xl);
    background: linear-gradient(160deg, #16161c 0%, #0b0b0e 70%);
    color: #f7f3ec;
    min-width: 0;
    overflow: hidden;
}

.v4-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 1.1rem;
}

.v4-hero-lines {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.v4-hero-lines span {
    display: block;
}

.v4-hero-verbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(247, 243, 236, 0.78);
    font-size: 0.92rem;
}

.v4-hero-verbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.v4-hero-verbs .v4-icon {
    color: var(--meriva-v4-gold);
}

.v4-hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.v4-hero-search .m-input {
    flex: 1 1 12rem;
    min-width: 0;
    min-height: 2.7rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f7f3ec;
}

.v4-hero-map {
    min-width: 0;
    display: flex;
    align-items: center;
}

.v4-hero-map .m-turkey-map-wrapper,
.v4-hero-map .m-tr-map {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1007 / 527;
}

.v4-hero-map .m-tr-map {
    max-height: none !important;
}

.v4-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.05rem 1.1rem;
    border-radius: var(--meriva-v4-radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.v4-hero-card h2 {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 243, 236, 0.55);
}

.v4-hero-card .v4-mpoints-value {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.v4-hero-card p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(247, 243, 236, 0.72);
}

.v4-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.v4-action {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: var(--meriva-v4-radius-md);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    text-decoration: none;
    color: var(--meriva-v4-text);
    box-shadow: var(--meriva-v4-shadow);
}

.v4-action:hover {
    color: var(--meriva-v4-text);
    border-color: rgba(201, 162, 39, 0.35);
}

.v4-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--meriva-v4-gold);
    flex-shrink: 0;
}

.v4-action h3,
.v4-navcard h3,
.v4-hit h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.v4-action p,
.v4-navcard p,
.v4-hit p {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--meriva-v4-text-muted);
}

.v4-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.v4-section-head h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.v4-navcards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.v4-navcard {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 1.05rem 1.05rem;
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    text-decoration: none;
    color: var(--meriva-v4-text);
}

.v4-navcard:hover {
    color: var(--meriva-v4-text);
    border-color: rgba(201, 162, 39, 0.4);
}

.v4-navcard .v4-icon {
    color: var(--meriva-v4-gold);
    margin-top: 0.1rem;
}

.v4-city-grid,
.v4-hits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.v4-city-card,
.v4-hit {
    display: block;
    min-width: 0;
    padding: 1rem 1.05rem;
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    text-decoration: none;
    color: var(--meriva-v4-text);
}

.v4-city-card:hover,
.v4-hit:hover {
    color: var(--meriva-v4-text);
    border-color: rgba(201, 162, 39, 0.4);
}

.v4-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--meriva-v4-gold);
    font-weight: 700;
}

.v4-empty {
    padding: 1.25rem;
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px dashed var(--meriva-v4-border);
    color: var(--meriva-v4-text-muted);
}

.v4-nav-count {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--meriva-v4-text);
}

.v4-mpoints-today {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(247, 243, 236, 0.7);
}

.v4-mpoints-today strong {
    color: var(--meriva-v4-gold);
    font-variant-numeric: tabular-nums;
}

.v4-hero-card .v4-mpoints-value span {
    font-size: 0.45em;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: 0.35em;
    color: rgba(247, 243, 236, 0.65);
}

.v4-hero-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.v4-biz-rail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr));
    gap: 0.85rem;
    min-width: 0;
}

.v4-biz {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    text-decoration: none;
    color: var(--meriva-v4-text);
    overflow: hidden;
    box-shadow: var(--meriva-v4-shadow);
}

.v4-biz:hover {
    color: var(--meriva-v4-text);
    border-color: rgba(201, 162, 39, 0.4);
}

.v4-biz-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--meriva-v4-surface-soft);
    overflow: hidden;
}

.v4-biz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v4-biz-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--meriva-v4-gold);
}

.v4-biz-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.8rem 0.9rem;
    min-width: 0;
}

.v4-biz-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.16);
    color: #8a6a12;
    font-size: 0.68rem;
    font-weight: 700;
}

html[data-meriva-theme="black"] .v4-biz-badge,
html[data-meriva-theme="gray"] .v4-biz-badge {
    color: var(--meriva-v4-gold);
}

.v4-biz-badge .v4-icon {
    width: 0.85em;
    height: 0.85em;
}

.v4-biz-name,
.v4-post-nick,
.v4-post-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.v4-biz-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.v4-biz-cat,
.v4-biz-place,
.v4-post-place {
    margin: 0;
    font-size: 0.75rem;
    color: var(--meriva-v4-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-biz-place {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.v4-biz-place .v4-icon {
    width: 0.9em;
    height: 0.9em;
    flex-shrink: 0;
}

.v4-feed {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    min-width: 0;
}

.v4-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    overflow: visible;
    box-shadow: var(--meriva-v4-shadow);
}

.v4-post--compact {
    overflow: hidden;
}

.v4-post-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.85rem 0.4rem;
    min-width: 0;
}

.v4-post-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--meriva-v4-surface-soft);
}

.v4-post-avatar.is-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--meriva-v4-gold);
}

.v4-post-meta {
    min-width: 0;
}

.v4-post-nick {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
}

.v4-post-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem 0.7rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.v4-post-body:hover {
    color: inherit;
}

.v4-post-title {
    margin: 0;
    font-size: 0.95rem;
}

.v4-post-excerpt {
    margin: 0;
    font-size: 0.82rem;
    color: var(--meriva-v4-text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.v4-post-media {
    width: 100%;
    max-height: 11rem;
    object-fit: cover;
    border-radius: 10px;
    background: var(--meriva-v4-surface-soft);
}

.v4-post-foot {
    display: flex;
    gap: 0.9rem;
    padding: 0.45rem 0.85rem 0.8rem;
    color: var(--meriva-v4-text-muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.v4-post-foot span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.v4-safety {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
    border-radius: var(--meriva-v4-radius-xl);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
}

.v4-safety-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 14px;
    background: rgba(201, 162, 39, 0.14);
    color: var(--meriva-v4-gold);
    flex-shrink: 0;
}

.v4-safety h2 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}

.v4-safety p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--meriva-v4-text-muted);
}

.v4-safety .m-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.v4-city {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-width: 0;
}

.v4-city-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem;
}

.v4-city-hero-copy {
    min-width: 0;
}

.v4-city-meta {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--meriva-v4-text-muted);
}

.v4-city-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.v4-city-search .m-input {
    flex: 1 1 12rem;
    min-width: 0;
}

.v4-city-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.2rem;
}

.v4-city-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    text-decoration: none;
    font-size: 0.85rem;
}

.v4-city-tabs a span {
    color: var(--meriva-v4-text-muted);
    font-variant-numeric: tabular-nums;
}

.v4-city-tabs a.is-active {
    background: var(--meriva-v4-hero);
    color: #f7f3ec;
    border-color: transparent;
}

.v4-city-tabs a.is-active span {
    color: var(--meriva-v4-gold);
}

.v4-city-filter {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    font-size: 0.88rem;
}

.v4-city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.v4-city-chips a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    text-decoration: none;
    font-size: 0.82rem;
}

.v4-city-chips a.is-selected {
    background: rgba(201, 162, 39, 0.16);
    border-color: rgba(201, 162, 39, 0.4);
}

.v4-city-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.75rem;
}

.v4-city-card h3 {
    margin: 0.35rem 0 0.2rem;
    font-size: 1rem;
}

.v4-city-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--meriva-v4-text-muted);
}

.v4-city-map-frame {
    border-radius: var(--meriva-v4-radius-lg);
    overflow: hidden;
    border: 1px solid var(--meriva-v4-border);
}

.v4-city .m-city-leaflet {
    height: 220px;
}

/* —— Map V4 colors (hero + scoped) —— */
body.m-ui-v4 .v4-hero-map .m-tr-map path {
    fill: #3a3a40;
    stroke: #2a2a30;
    stroke-width: 1px;
}

body.m-ui-v4 .v4-hero-map .m-tr-map g:hover path {
    fill: #4a4a52;
    stroke: var(--meriva-v4-gold);
    filter: brightness(1.08);
}

body.m-ui-v4 .v4-hero-map .m-tr-map g.m-city-active > path,
body.m-ui-v4 .v4-hero-map .m-tr-map g.m-city-active g path {
    fill: var(--meriva-v4-gold);
    stroke: #e5c45a;
    stroke-width: 1.6px;
    filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.35));
}

body.m-ui-v4 .v4-hero-map .m-malatya-pin {
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.28));
}

/* —— Mobile dock + plus sheet —— */
.v4-dock {
    display: none;
}

.v4-plus-sheet[hidden],
.v4-plus-backdrop[hidden] {
    display: none !important;
}

.v4-plus-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.45);
    z-index: 1090;
}

.v4-plus-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1100;
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    box-shadow: 0 -12px 40px rgba(8, 8, 10, 0.18);
}

.v4-plus-sheet h2 {
    margin: 0.15rem 0 0.75rem;
    font-size: 1rem;
}

.v4-plus-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.v4-plus-list a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.7rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--meriva-v4-text);
}

.v4-plus-list a:hover,
.v4-plus-list a:focus-visible {
    background: var(--meriva-v4-surface-soft);
}

.v4-plus-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
}

@media (max-width: 1099.98px) {
    body.m-ui-v4 .m-app-sidebar.v4-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100dvh;
        transform: translateX(-105%);
        z-index: 1080;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar.show-mobile {
        transform: translateX(0);
    }

    .v4-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .v4-dock {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        align-items: flex-end;
        justify-content: space-around;
        gap: 0.15rem;
        min-height: 4.15rem;
        padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
        background: var(--meriva-v4-white);
        border-top: 1px solid var(--meriva-v4-border);
    }

    .v4-dock-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.12rem;
        flex: 1 1 0;
        min-width: 0;
        color: var(--meriva-v4-text-muted);
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 650;
    }

    .v4-dock-link.is-active {
        color: var(--meriva-v4-text);
    }

    .v4-dock-link.is-active .v4-icon {
        color: var(--meriva-v4-gold);
    }

    .v4-dock-plus {
        width: 3.1rem;
        height: 3.1rem;
        margin-top: -1.15rem;
        border: 0;
        border-radius: 999px;
        background: var(--meriva-v4-gold);
        color: var(--meriva-v4-black);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 3.1rem;
    }

    body.m-ui-v4:has(.v4-dock) .m-app-main {
        padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
    }
}

@media (min-width: 992px) and (max-width: 1099.98px) {
    .v4-explore-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .v4-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-biz-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .v4-explore-hero {
        grid-template-columns: 1fr;
    }

    .v4-hero-card {
        order: 3;
    }

    .v4-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-navcards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-feed {
        grid-template-columns: 1fr;
    }

    .v4-biz-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-safety {
        flex-wrap: wrap;
    }

    .v4-safety .m-btn {
        margin-left: 0;
    }

    .v4-city-chip span {
        max-width: 6.5rem;
    }
}

@media (min-width: 1100px) {
    .v4-dock,
    .v4-plus-sheet,
    .v4-plus-backdrop {
        display: none !important;
    }
}

@media (min-width: 1100px) and (max-width: 1279.98px) {
    body.m-ui-v4 .m-app-sidebar.v4-sidebar,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:hover,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:focus-within,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar.is-hover-open,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) {
        width: 210px;
        min-width: 210px;
        flex-basis: 210px;
    }

    .v4-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-biz-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .v4-navcards {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .v4-biz-rail {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1440px) {
    body.m-ui-v4 .m-app-main {
        padding-inline: clamp(1.25rem, 2.4vw, 2.25rem);
    }

    .v4-hits {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (min-width: 1600px) {
    .v4-explore-hero {
        grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr) minmax(240px, 0.5fr);
        min-height: 22rem;
    }

    .v4-biz-rail {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .v4-feed {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .v4-context {
        padding-inline: 0.85rem;
    }

    body.m-ui-v4 .m-app-main {
        padding-inline: 0.85rem;
    }

    body.m-layout-public .v4-land-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 1.15rem 1rem 1.2rem;
        border-radius: 20px;
    }

    body.m-layout-public .v4-land-hero h1 {
        font-size: clamp(1.85rem, 11vw, 2.55rem);
    }

    body.m-layout-public .v4-land-cta .m-btn {
        width: 100%;
        justify-content: center;
    }

    body.m-layout-public .v4-land-city {
        grid-template-columns: 1fr;
    }

    body.m-layout-public .v4-land-city .m-btn {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        justify-content: center;
        margin-top: 0.35rem;
    }

    body.m-layout-public .v4-land-hero .v4-hero-map .m-tr-map,
    body.m-layout-public .v4-land-hero .v4-hero-map .m-turkey-map-wrapper {
        max-height: none !important;
    }

    .v4-land-actions {
        grid-template-columns: 1fr;
    }

    .v4-context-lead {
        display: none;
    }

    .v4-feed {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 411.98px) {
    .v4-city-chip {
        padding-inline: 0.55rem;
    }

    .v4-navcards,
    .v4-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v4-nav-link,
    .v4-action,
    .v4-navcard,
    body.m-ui-v4 .v4-hero-map .m-tr-map path,
    .v4-plus-sheet {
        transition: none;
    }

    body.m-ui-v4 .m-malatya-pin {
        animation: none;
    }
}

/* —— Content V4 feed / details / composer —— */
.v4-content {
    width: 100%;
    max-width: min(56rem, 100%);
    margin-inline: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-x: clip;
}

.v4-content-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.v4-content-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.v4-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    text-decoration: none;
    font-size: 0.82rem;
}

.v4-pill.is-on {
    background: var(--meriva-v4-hero);
    color: #f7f3ec;
    border-color: transparent;
}

.v4-pill:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-content-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.v4-content-filters .m-input,
.v4-content-filters .m-select {
    flex: 1 1 10rem;
    min-width: 0;
}

.v4-content-note,
.v4-content-end,
.v4-content-retry {
    margin: 0;
    font-size: 0.85rem;
    color: var(--meriva-v4-text-muted);
}

.v4-content-feed {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}

.v4-post--feed,
.v4-post--detail,
.v4-post--mine {
    padding-bottom: 0.35rem;
}

.v4-post--feed .v4-post-title {
    -webkit-line-clamp: 3;
}

.v4-post--detail .v4-post-title {
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.v4-post--feed .v4-post-excerpt {
    -webkit-line-clamp: 8;
}

.v4-post-prose {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.v4-post-media-frame {
    display: block;
    margin: 0 0.85rem 0.7rem;
    border-radius: 14px;
    overflow: hidden;
    background: var(--meriva-v4-surface-soft);
    min-width: 0;
}

.v4-post-media-frame img,
.v4-post-media-frame video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
    background: var(--meriva-v4-surface-soft);
}

.v4-post--detail .v4-post-media-frame img,
.v4-post--detail .v4-post-media-frame video {
    max-height: min(70vh, 36rem);
}

.v4-post--compact .v4-post-media-frame {
    margin: 0 0.65rem 0.5rem;
}

.v4-post--compact .v4-post-media-frame img,
.v4-post--compact .v4-post-media-frame video {
    max-height: 11rem;
    object-fit: cover;
}

.v4-post-pdf {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0.85rem 0.7rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--meriva-v4-border);
    color: inherit;
    text-decoration: none;
}

.v4-post-menu {
    margin-left: auto;
    position: relative;
}

.v4-post-menu-btn {
    list-style: none;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: var(--meriva-v4-text-muted);
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.v4-post-menu-btn::-webkit-details-marker {
    display: none;
}

.v4-post-menu-btn:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-post-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 24;
    min-width: 12.5rem;
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.v4-post-menu-list a,
.v4-post-menu-list button {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--meriva-v4-text);
    text-decoration: none;
    text-align: left;
    font-size: 0.88rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.v4-post-status {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.16);
    color: var(--meriva-v4-gold);
    white-space: nowrap;
}

.v4-post-status--published {
    background: rgba(46, 125, 50, 0.14);
}

.v4-post-status--rejected {
    background: rgba(180, 60, 50, 0.14);
}

.v4-post-note {
    margin: 0 0.85rem 0.7rem;
    font-size: 0.85rem;
    color: var(--meriva-v4-text-muted);
}

.v4-post-foot {
    align-items: center;
    flex-wrap: wrap;
}

.v4-post-menu-list a:focus-visible,
.v4-post-menu-list button:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 1px;
}

.v4-post-comments,
.v4-post-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--meriva-v4-text-muted);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.v4-react {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.v4-react-btn {
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--meriva-v4-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.v4-react-btn:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-react-btn .v4-react-filled {
    display: none;
}

.v4-react-btn.is-on .v4-react-outline {
    display: none;
}

.v4-react-btn.is-on .v4-react-filled {
    display: inline-flex;
}

.v4-react-btn.is-on.m-crest-up {
    color: #c45c4a;
}

.v4-react-btn.is-on.m-crest-down {
    color: #8a7464;
}

.v4-react-score {
    min-width: 1.4rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.88rem;
}

.v4-comments,
.v4-content-panel,
.v4-composer-card {
    padding: 1.05rem 1.1rem;
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
    min-width: 0;
}

.v4-comments h2,
.v4-content-panel h2,
.v4-composer-card h1 {
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.05rem;
}

.v4-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.v4-comment {
    display: flex;
    gap: 0.65rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--meriva-v4-border);
    min-width: 0;
}

.v4-comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.2rem;
    font-size: 0.82rem;
}

.v4-comment-head span {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.v4-comment-body {
    margin: 0;
    overflow-wrap: anywhere;
}

.v4-comment-form,
.v4-inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.v4-inline-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.v4-content-notice {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-surface-soft);
}

.v4-content-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--meriva-v4-text-muted);
}

.v4-type-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.9rem 0 1rem;
}

.v4-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-height: 4.4rem;
    border-radius: 12px;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-surface);
    color: var(--meriva-v4-text);
    cursor: pointer;
}

.v4-type.is-on {
    border-color: var(--meriva-v4-gold);
    background: rgba(201, 162, 39, 0.12);
}

.v4-type:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-composer-who {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.35rem 0 0.85rem;
    min-width: 0;
}

.v4-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.85rem;
    min-width: 0;
}

.v4-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.v4-upload {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border-radius: 14px;
    border: 1px dashed var(--meriva-v4-border);
}

.v4-upload-lead {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.v4-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.v4-upload-preview img,
.v4-upload-preview video {
    max-width: 100%;
    max-height: 16rem;
    border-radius: 10px;
}

.v4-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.v4-empty-icon {
    display: inline-flex;
    color: var(--meriva-v4-gold);
    margin-bottom: 0.4rem;
}

@media (max-width: 767.98px) {
    .v4-field-row {
        grid-template-columns: 1fr;
    }

    .v4-content {
        max-width: 100%;
    }

    .v4-post-media-frame img,
    .v4-post-media-frame video {
        max-height: 18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v4-react-btn,
    .v4-pill,
    .v4-type {
        transition: none;
    }
}

/* —— Phase 4 public + member surfaces —— */
body.m-layout-public {
    min-height: 100dvh;
    background: var(--meriva-v4-surface);
    color: var(--meriva-v4-text);
}

body.m-layout-public .m-app-main.v4-pub-main {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
}

.v4-pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.v4-pub-join {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem 0.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.v4-pub-join-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--meriva-v4-gold);
}

.v4-pub-join-copy {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(244, 241, 234, 0.62);
}

.v4-pub-join .m-btn {
    width: 100%;
    justify-content: center;
}

.v4-pub-join .m-btn-ghost {
    color: #f4f1ea;
    border-color: rgba(255, 255, 255, 0.14);
}

.v4-pub-top {
    display: none;
}

.v4-pub-top-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    font-size: 0.92rem;
}

.v4-pub-top-brand .m-badger-emblem {
    width: 28px;
    height: 28px;
}

.v4-pub-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.2rem;
    align-items: center;
    padding: 1.25rem var(--meriva-v4-content-gap) calc(1.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--meriva-v4-border);
    color: var(--meriva-v4-text-muted);
    font-size: 0.85rem;
}

.v4-pub-foot nav {
    display: flex;
    gap: 0.85rem;
}

.v4-pub-foot a {
    color: inherit;
}

.v4-land {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 3vw, 2.6rem);
    min-width: 0;
}

.v4-land-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(1rem, 2.4vw, 2rem);
    align-items: center;
    min-height: min(72vh, 36rem);
    padding: clamp(1.1rem, 2.2vw, 1.85rem);
    border-radius: var(--meriva-v4-radius-xl);
    background: linear-gradient(160deg, #16161c 0%, #0b0b0e 70%);
    color: #f7f3ec;
    min-width: 0;
    overflow: hidden;
}

.v4-land-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.v4-land-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.v4-land-hero-map {
    width: 100%;
}

body.m-layout-public .v4-land-hero .v4-hero-map .m-tr-map,
body.m-layout-public .v4-land-hero .v4-hero-map .m-turkey-map-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(58vh, 34rem) !important;
    aspect-ratio: 1007 / 527;
}

.v4-land-city {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.2rem 0.85rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.v4-land-city [data-map-state] {
    grid-column: 1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--meriva-v4-gold);
}

.v4-land-city strong {
    grid-column: 1;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.v4-land-city [data-map-hint] {
    grid-column: 1;
    font-size: 0.8rem;
    color: rgba(247, 243, 236, 0.62);
}

.v4-land-city .m-btn {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
}

.v4-land-brand,
.v4-land-kicker {
    margin: 0 0 0.45rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--meriva-v4-gold);
}

.v4-land-hero h1 {
    margin: 0;
    font-family: var(--meriva-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(2.05rem, 4.1vw, 3.55rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: #fff;
}

.v4-auth-slogan {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.v4-land-lead {
    margin: 1rem 0 1.35rem;
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    line-height: 1.45;
    color: rgba(247, 243, 236, 0.78);
}

.v4-land-cta,
.v4-land-cta .m-btn {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.v4-land-cta-follow {
    margin-top: 1rem;
}

.v4-land-hero .m-btn-ghost {
    color: #f7f3ec;
    border-color: rgba(255, 255, 255, 0.18);
}

.v4-land-copy {
    margin: 0 0 1rem;
    color: var(--meriva-v4-text-muted);
    max-width: 40rem;
}

.v4-land-section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    letter-spacing: -0.03em;
}

.v4-land-action,
.v4-land-steps li,
.v4-land-vitrin > div,
.v4-land-safe,
.v4-auth-card {
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    border-radius: var(--meriva-v4-radius-lg);
    box-shadow: var(--meriva-v4-shadow);
    min-width: 0;
}

.v4-land-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.v4-land-action {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.v4-land-action:hover,
.v4-land-action:focus-visible {
    border-color: rgba(201, 162, 39, 0.45);
    color: inherit;
}

.v4-land-action .v4-icon {
    color: var(--meriva-v4-gold);
}

.v4-land-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.v4-land-steps li {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.v4-land-vitrin {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.v4-land-vitrin h3 {
    margin: 0;
    padding: 1rem 1rem 0;
}

.v4-land-list {
    list-style: none;
    margin: 0;
    padding: 0.7rem 1rem 1rem;
}

.v4-land-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--meriva-v4-border);
}

.v4-land-list a {
    color: inherit;
    font-weight: 700;
}

.v4-land-empty,
.v4-land-list span {
    color: var(--meriva-v4-text-muted);
    font-size: 0.85rem;
}

.v4-land-empty {
    padding: 0 1rem 1rem;
}

.v4-land-safe {
    display: flex;
    gap: 0.85rem;
    padding: 1.1rem;
    align-items: flex-start;
}

.v4-auth {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    align-items: start;
    max-width: 64rem;
}

.v4-auth-brand {
    padding: 0.4rem 0.2rem;
}

.v4-auth-points {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.v4-auth-points li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.v4-auth-card {
    padding: 1.2rem 1.15rem 1.35rem;
}

.v4-auth-card h1 {
    margin: 0 0 0.4rem;
    font-size: 1.7rem;
}

.v4-auth-note,
.v4-auth-dev {
    margin: 0.85rem 0 0;
    color: var(--meriva-v4-text-muted);
    font-size: 0.88rem;
}

.v4-auth-note a {
    color: var(--meriva-v4-gold);
    font-weight: 700;
}

.v4-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.4rem 0 0.8rem;
}

.v4-page {
    width: 100%;
    max-width: min(72rem, 100%);
    margin-inline: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v4-page--narrow {
    max-width: min(56rem, 100%);
}

.v4-sec-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.v4-market {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.85rem;
}

.v4-market-card,
.v4-board-row,
.v4-mission,
.v4-event,
.v4-profile-card,
.v4-mp-hero,
.v4-ledger-item {
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    border-radius: var(--meriva-v4-radius-lg);
    box-shadow: var(--meriva-v4-shadow);
    min-width: 0;
    overflow: hidden;
}

.v4-market-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.v4-market-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--meriva-v4-surface-soft);
}

.v4-market-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4-market-body {
    padding: 0.8rem 0.9rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.v4-market-body h3 {
    margin: 0;
    font-size: 1rem;
}

.v4-board {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.v4-board-row {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
}

.v4-board-row.is-top-1 {
    border-color: rgba(201, 162, 39, 0.45);
}

.v4-mp-hero {
    padding: 1.2rem 1.15rem;
}

.v4-mp-value {
    margin: 0.2rem 0 0.6rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
}

.v4-mp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.v4-ledger-item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
}

.v4-profile {
    display: grid;
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.4fr);
    gap: 0.9rem;
}

.v4-profile-card {
    padding: 1rem 1.05rem;
}

.v4-dl {
    margin: 0 0 0.85rem;
    display: grid;
    gap: 0.45rem;
}

.v4-dl > div {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.4fr) minmax(0, 1fr);
    gap: 0.5rem;
    min-width: 0;
}

.v4-dl dt {
    margin: 0;
    color: var(--meriva-v4-text-muted);
    font-weight: 600;
}

.v4-dl dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.m-appearance-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.m-appearance-choice {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--meriva-v4-border);
    border-radius: var(--meriva-v4-radius-md, 12px);
    background: var(--meriva-v4-surface-soft);
    color: var(--meriva-v4-text);
    cursor: pointer;
}

.m-appearance-choice:has(input:checked) {
    border-color: var(--meriva-v4-gold);
    box-shadow: 0 0 0 1px var(--meriva-v4-gold);
}

.m-appearance-choice input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--meriva-v4-gold);
    flex: 0 0 auto;
}

.m-appearance-swatch {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid var(--meriva-v4-border);
    flex: 0 0 auto;
}

.m-appearance-swatch-black { background: #060608; }
.m-appearance-swatch-white { background: #F7F3EC; }
.m-appearance-swatch-gray { background: #1C1C22; }

@media (min-width: 1100px) {
    body.m-layout-public .v4-pub-top {
        display: none !important;
    }
}

@media (max-width: 1099.98px) {
    body.m-layout-public .v4-pub-top {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        position: sticky;
        top: 0;
        z-index: 40;
        min-height: 3.4rem;
        padding: 0.45rem 0.85rem;
        padding-left: calc(0.85rem + env(safe-area-inset-left));
        padding-right: calc(0.85rem + env(safe-area-inset-right));
        background: var(--meriva-v4-sidebar);
        color: #f4f1ea;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.m-layout-public .v4-pub-top .v4-icon-btn {
        color: #f4f1ea;
        background: transparent;
        border-color: rgba(255, 255, 255, 0.12);
    }

    body.m-layout-public .v4-pub-top .v4-pub-top-brand {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 899.98px) {
    .v4-land-steps,
    .v4-land-vitrin,
    .v4-auth,
    .v4-profile,
    .v4-mp-stats {
        grid-template-columns: 1fr;
    }

    .v4-land-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v4-board-row {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .m-appearance-choices {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .m-appearance-choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

