:root {
    --primary-color: #334155;
    --primary-hover: #1e293b;
    --secondary-color: #1e293b;
    --background-color: #f1f5f9;
    --card-background: #ffffff;
    --text-color: #334155;
    --border-color: #cbd5e1;
    --radius-md: 4px;
    /* Header, main column, footer share this horizontal inset (≤768px / fallback). */
    --layout-page-padding-x: 12px;
    --layout-max-width: 1400px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding-top: 109px;
    -webkit-font-smoothing: antialiased;
}

/* DESKTOP HEADER (Original) */
.header-container {
    background-color: var(--card-background);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid #e8edf3;
}

.top-bar {
    background-color: #2c3e50;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 10px;
}

.top-bar-content {
    max-width: var(--layout-max-width);
    width: 90%;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 0 var(--layout-page-padding-x);
}

.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease;
}
.top-bar a:hover { color: #fff; }

.main-header {
    max-width: var(--layout-max-width);
    width: 90%;
    margin: 4px auto 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--layout-page-padding-x);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: -12px;
    text-decoration: none !important;
}

.logo-visual { 
    position: relative; 
    width: 58px; 
    height: 58px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transform: translate(7px, -4px);
}
.logo-img { height: 100%; width: auto; display: block; object-fit: contain; transition: transform 0.4s ease; }

.cursor-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 5px;
    left: -2px;
    transform: rotate(135deg);
    fill: #000;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s;
}

.logo:hover .logo-img,
.logo.logo--animating .logo-img {
    transform: scale(1.1);
}

.logo:hover .cursor-icon,
.logo.logo--animating .cursor-icon {
    /* no `forwards` so the cursor resets after each run (tap / hover replay) */
    animation: cursorSlideCurve 0.3s linear;
}

@keyframes cursorSlideCurve {
    0% {
        transform: translate(0, 0) rotate(135deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(25px, 20px) rotate(135deg) scale(0.5);
        opacity: 0;
    }
}

.logo-text { display: flex; align-items: baseline; font-weight: 700; font-size: 22px; color: #000; }
.logo-text span:last-child { color: #0056b3; }

.search-wrapper {
    flex-grow: 1;
    max-width: 450px;
    display: flex;
    margin: 0 24px;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px 0 0 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-wrapper input:focus { border-color: #93c5fd; }

.search-wrapper button {
    background: #0056b3;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease;
}

.search-wrapper button:hover { background: #00448f; }

.post-ad-btn {
    background: #0056b3;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.25);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.post-ad-btn:hover {
    background: #00448f;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.32);
}

/* DESKTOP SIDEBAR & GRID (Original) */
.main-container {
    max-width: var(--layout-max-width);
    width: 90%;
    margin: 36px auto 28px;
    display: flex;
    gap: 16px;
    padding: 0 var(--layout-page-padding-x);
    box-sizing: border-box;
}

.sidebar {
    flex: 0 0 216px;
    width: 216px;
    min-width: 216px;
    margin-left: 0;
    box-sizing: border-box;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.sidebar-box h3 { font-size: 14px; margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 8px; }

/* Kategoriler box: same visual system as filter-box (no gradient) */
.sidebar-box.category-container {
    border: 1px solid #cfdaed;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    padding: 14px 14px 16px;
}
.sidebar-box.category-container h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eef7;
}

.sidebar-intent-banner {
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 12px;
    line-height: 1.35;
}

/* Index sidebar: filter card + fields (aligned with combobox look) */
.sidebar-box.filter-box {
    border: 1px solid #cfdaed;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    padding: 14px 14px 16px;
}
.sidebar-box.filter-box .sidebar-filter-box-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eef7;
}
.sidebar-mobile-filter-toggle {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c9d6ea;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.sidebar-mobile-filter-toggle:hover {
    border-color: #94a3b8;
    background: #fff;
}
.sidebar-filter-section-title {
    margin: 14px 0 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}
.sidebar-filter-section-title:first-of-type {
    margin-top: 0;
}
.sidebar-filter-section-title--nested {
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 11px;
}
.sidebar-filter-group__body .sidebar-filter-section-title--nested:first-of-type {
    margin-top: 0;
}
.sidebar-filter-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 14px 0 8px;
    flex-wrap: wrap;
}
.sidebar-filter-section-title--inheading {
    margin: 0;
    flex: 1;
    min-width: 120px;
}
.sidebar-locate-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #1e40af;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.sidebar-locate-btn:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}
.sidebar-filter-map {
    height: 150px;
    border-radius: 12px;
    border: 1px solid #cfdaed;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
}
.sidebar-range-block {
    margin: 12px 0 4px;
}
.sidebar-range-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.sidebar-range-value {
    color: #1e40af;
    font-variant-numeric: tabular-nums;
}
.sidebar-range-input {
    width: 100%;
    accent-color: var(--primary-color, #2563eb);
    height: 8px;
    margin: 2px 0 0;
}
.sidebar-box.filter-box .sidebar-filter-select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 0 34px 0 11px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #c7d2e5;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-box.filter-box .sidebar-filter-select:hover {
    border-color: #9fb2d0;
}
.sidebar-box.filter-box .sidebar-filter-select:focus {
    outline: none;
    border-color: #7ea2d6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.sidebar-box.filter-box .sidebar-filter-select--compact {
    height: 34px;
    font-size: 12px;
    margin-bottom: 8px;
}
.sidebar-filter-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.sidebar-filter-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #0f172a;
    border: 1px solid #c9d6ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-filter-input-row .sidebar-filter-input {
    margin-bottom: 0;
}
.sidebar-filter-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}
.sidebar-filter-input:focus {
    outline: none;
    border-color: #7ea2d6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.sidebar-check-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 4px;
}
.sidebar-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.sidebar-check-row:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.sidebar-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color, #2563eb);
    flex-shrink: 0;
    margin: 0;
}
.sidebar-filter-submit {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 4px;
    padding: 11px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    background: var(--primary-color, #2563eb);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.sidebar-filter-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}
.sidebar-filter-submit:active {
    transform: translateY(1px);
}

.sidebar-filter-clear {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4px;
    padding: 11px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    background: #f8fafc;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sidebar-filter-clear:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}
.sidebar-filter-clear:active {
    transform: translateY(1px);
}

/* Sadece masaüstünde (≥769px) sidebar altındaki filtre butonlarını belirgin şekilde küçült */
@media (min-width: 769px) {
    .sidebar-box.filter-box .sidebar-filter-actions,
    .sidebar-filter-actions {
        margin-top: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: 100% !important;
    }
    .sidebar-box.filter-box .sidebar-filter-submit,
    .sidebar-filter-submit {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        gap: 5px !important;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22) !important;
        margin: 0 !important;
        width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .sidebar-box.filter-box .sidebar-filter-submit:hover,
    .sidebar-filter-submit:hover {
        box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3) !important;
    }
    .sidebar-box.filter-box .sidebar-filter-submit svg,
    .sidebar-filter-submit svg,
    .sidebar-box.filter-box .sidebar-filter-clear svg,
    .sidebar-filter-clear svg {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
    }
    .sidebar-box.filter-box .sidebar-filter-clear,
    .sidebar-filter-clear {
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 8px !important;
        font-size: 11.5px !important;
        font-weight: 500 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        gap: 4px !important;
        margin: 0 !important;
        width: 100% !important;
        background: #f8fafc !important;
        color: #475569 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .sidebar-box.filter-box .sidebar-filter-clear:hover,
    .sidebar-filter-clear:hover {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        border-color: #94a3b8 !important;
    }
}

.sidebar-profile-hint {
    font-size: 12px;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 12px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

/* Collapsible filter group (roommate extended filters) */
.sidebar-filter-group {
    border: 1px solid #cfdaed;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.sidebar-filter-group__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.sidebar-filter-group__title::-webkit-details-marker { display: none; }
.sidebar-filter-group__title::after {
    content: '▾';
    font-size: 11px;
    color: #64748b;
    transition: transform 0.2s ease;
}
.sidebar-filter-group[open] > .sidebar-filter-group__title::after {
    transform: rotate(-180deg);
}
.sidebar-filter-group__body {
    padding: 12px 12px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border-top: 1px solid #e8eef7;
}
.sidebar-filter-group__body p:not(.sidebar-filter-section-title) {
    margin: 0 0 4px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.sidebar-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
}
.sidebar-box.filter-box .sidebar-checkbox-group {
    gap: 4px;
    margin-top: 8px;
}
.sidebar-box.filter-box .sidebar-checkbox-label {
    display: block;
    margin: 0;
}

.category-list { list-style: none; padding: 0; }
.category-list-wrapped {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.secondhand-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 8px 5px;
    font-family: inherit;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    z-index: 1;
}

.secondhand-sidebar-toggle:hover {
    color: #334155;
}

.secondhand-sidebar-toggle.is-disabled {
    opacity: 0.75;
    cursor: default;
}

.secondhand-arrow {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    margin-left: 6px;
    transition: none;
}

.secondhand-sidebar-toggle[aria-expanded="true"] .secondhand-arrow {
    transform: rotate(180deg);
}

.secondhand-category-header {
    list-style: none;
}

.secondhand-nav-back {
    list-style: none;
}

.cat-item--back {
    font-size: 13px;
    font-weight: 600;
}

.secondhand-section-title {
    list-style: none;
    padding: 2px 8px 6px;
}

.secondhand-section-title-text {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cat-item--nested {
    padding-left: 16px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    color: #444;
    text-decoration: none !important;
}

.cat-item:hover, .cat-item.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 8px;
}

.cat-icon { width: 16px; height: 16px; fill: currentColor; }
.cat-icon-font {
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Desktop: modern pill icon container for category items - Tek renk */
.cat-item .cat-icon-pill {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.12s, background-color 0.12s, color 0.12s;
    background: #eff6ff;
    color: #1d4ed8;
}

/* Tek renk kuralı: masaüstü kategori butonlarının tüm sembol ve kutuları tek renk */
.cat-icon-pill,
.cat-icon-pill--roommate,
.cat-icon-pill--computer,
.cat-icon-pill--phone,
.cat-icon-pill--camera,
.cat-icon-pill--home-el,
.cat-icon-pill--ev,
.cat-icon-pill--elektronik,
.cat-icon-pill--saat,
.cat-icon-pill--spor,
.cat-icon-pill--taki,
.cat-icon-pill--muzik,
.cat-icon-pill--kitap,
.cat-icon-pill--konser,
.cat-icon-pill--default {
    background: #eff6ff;
    color: #1d4ed8;
}

.cat-item:hover .cat-icon-pill {
    background: #dbeafe;
    color: #1d4ed8;
}

.cat-item.active .cat-icon-pill {
    background: #2563eb;
    color: #ffffff;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.home-showcase-block {
    margin-bottom: 22px;
}

.home-showcase-block .listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-section-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.home-view-all-link::after {
    content: "›";
    margin-left: 6px;
    font-size: 13px;
    line-height: 1;
    opacity: 0.75;
}

.home-view-all-link:hover {
    color: #1e293b;
    border-color: #94a3b8;
    background: #eef2f7;
}

/* Second-hand category hub (/ikinci-el/kategoriler/) */
.item-category-hub__head {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.item-category-hub__h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #0f172a;
}

.item-category-hub__lede {
    font-size: 13px;
    color: #64748b;
    display: block;
    max-width: 520px;
    line-height: 1.4;
}

.item-category-hub__flat-link {
    align-self: flex-start;
}

.item-category-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 18px 0 32px;
}

.item-hub-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.item-hub-card__main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 65%);
    text-decoration: none !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s ease;
}

.item-hub-card__main:hover {
    background: linear-gradient(180deg, #f1f5f9 0%, #fff 70%);
}

.item-hub-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.item-hub-card__hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #0056b3);
}

.item-hub-card__subs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 12px 14px;
}

.item-hub-card__sub {
    font-size: 12px;
    font-weight: 600;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
    line-height: 1.2;
    max-width: 100%;
}

.item-hub-card__sub:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.item-category-hub__empty {
    grid-column: 1 / -1;
    color: #64748b;
    margin: 12px 0;
}

.listing-grid-collapsible {
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.home-grid-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.home-grid-toggle svg {
    transition: transform 0.2s ease;
}

.home-grid-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.home-grid-toggle-icon {
    margin-top: 0;
    padding: 4px;
    width: 24px;
    height: 24px;
    justify-content: center;
    border-radius: 999px;
}

.listing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.listing-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.listing-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.listing-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

/* Image Badges (Top Left) */
.listing-img-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3.5px 7px;
    border-radius: 6px;
    color: #ffffff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.listing-img-badge--featured {
    background: rgba(245, 158, 11, 0.95);
}

.listing-img-badge--dormonly {
    background: rgba(124, 58, 237, 0.95);
}

.listing-img-badge--quick {
    background: rgba(147, 51, 234, 0.95);
}

.listing-img-badge--roommate {
    background: rgba(79, 70, 229, 0.95);
}

.listing-img-badge--verified {
    background: rgba(16, 185, 129, 0.95);
}

.listing-img-badge--condition {
    background: rgba(15, 23, 42, 0.85);
}

.listing-badge-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Floating Favorite Button (Top Right) */
.listing-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #64748b;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.listing-fav-btn:hover {
    background: #ffffff;
    color: #f43f5e;
    transform: scale(1.08);
}

.listing-fav-btn--active {
    color: #f43f5e !important;
}

.listing-fav-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Card Body */
.listing-info {
    padding: 11px 13px 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-height: 0;
    background: #ffffff;
}

.listing-top-section {
    min-width: 0;
}

/* Price & Category Row */
.listing-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.listing-price {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.listing-category-badge {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    color: #0369a1;
    background: #f0f7ff;
    border: 1px solid #bae6fd;
    padding: 2px 6px;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    flex-shrink: 1;
}

/* Title */
.listing-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 5px 0 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 2.7em;
}

/* Location & Delivery Footer */
.listing-card-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
}

.listing-campus-line {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    color: #334155;
    font-weight: 600;
    min-width: 0;
}

.listing-campus-icon {
    width: 14px;
    height: 14px;
    color: #0284c7;
    flex-shrink: 0;
    margin-top: 2px;
}

.listing-campus-text {
    font-size: 10.5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-width: 0;
}

.listing-campus-text--same {
    color: #0284c7;
}

/* Pills Row (Dormitory & Delivery Point) */
.listing-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.listing-pill {
    display: inline-flex;
    align-items: flex-start;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 5.5px;
    border-radius: 5px;
    max-width: 100%;
    line-height: 1.3;
}

.listing-pill-icon {
    font-size: 10.5px;
    flex-shrink: 0;
    line-height: 1.3;
}

.listing-pill-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.listing-pill--dorm {
    background: #fffbeb;
    color: #78350f;
    border: 1px solid #fde68a;
}

.listing-pill--dropoff {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* Forms (Login/Signup/Wizard) */
.form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.form-container.auth-narrow {
    max-width: 400px;
}

.auth-header { text-align: center; margin-bottom: 20px; }
.auth-header h2 { font-size: 24px; font-weight: 700; margin-bottom: 5px; color: #333; }
.auth-header p { color: #666; font-size: 13px; margin: 0; }

.auth-form input[type="text"], 
.auth-form input[type="email"], 
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}

.auth-select-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    border: none;
    padding: 0;
    background: transparent;
}

.auth-select-wrap .sidebar-combobox {
    width: 100%;
}

.auth-select-wrap .sidebar-combobox__trigger {
    width: 100%;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-select-wrap .sidebar-combobox__trigger:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.auth-select-wrap .sidebar-combobox.is-open .sidebar-combobox__trigger {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
    background: #ffffff;
}

.auth-select-wrap select {
    margin-bottom: 0 !important;
}

.auth-select-hint {
    margin: 7px 0 0;
    font-size: 12px;
    color: #64748b;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.auth-btn:hover {
    background-color: var(--primary-hover);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* Footer (Desktop) */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-content {
    max-width: var(--layout-max-width);
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 var(--layout-page-padding-x);
}

/* Desktop gutter: explicit longhands so padding updates reliably (viewport ≥769px). */
@media (min-width: 769px) {
    .top-bar-content,
    .main-header,
    .footer-content {
        width: 90%;
        padding-left: var(--layout-page-padding-x);
        padding-right: var(--layout-page-padding-x);
    }
    .logo {
        margin-left: 0;
    }
    .main-container {
        width: 90%;
        max-width: var(--layout-max-width);
        margin: 36px auto 28px;
        padding-left: var(--layout-page-padding-x);
        padding-right: var(--layout-page-padding-x);
    }
    .sidebar {
        margin-left: 0;
    }
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* UTILITIES */
.hide-mobile { display: block; }
.show-mobile { display: none !important; }

/* ========================================
   LETGO STYLE MOBILE UI (Isolated)
   ======================================== */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }

    /* Üst bölüm (logo + arama + isteğe bağlı filtre şeridi) sayfayla birlikte kayar — sabit dock yok. */
    :root {
        --mobile-safe-top: env(safe-area-inset-top, 0px);
        --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
        /* Taller header row: larger logo + search; strip grows on arama sayfası (index-search-active) */
        --mobile-header-inner: 54px;
        --mobile-header-h: calc(var(--mobile-safe-top) + var(--mobile-header-inner));
        --mobile-cat-rail-h: 42px;
        /* Bottom tab bar + safe area + FAB overlap cushion (see .mobile-nav height: auto) */
        --mobile-bottom-nav-stack-h: calc(var(--mobile-bottom-nav-h) + max(env(safe-area-inset-bottom, 0px), 6px) + 22px);
        --mobile-top-dock-h: calc(var(--mobile-header-h) + var(--mobile-cat-rail-h));
        --mobile-bottom-nav-h: 52px;
        --mobile-rail-content-gap: 12px;
    }


    body {
        --mobile-body-padding-top: var(--mobile-header-h); /* Fixed header only; sticky/in-flow elements follow naturally */
        padding-top: var(--mobile-body-padding-top);
        padding-bottom: calc(var(--mobile-bottom-nav-h) + var(--mobile-safe-bottom) + 6px);
        background-color: #fff;
    }

    body.page-home {
        background-color: #fff;
    }

    .top-bar { display: none; }

    .header-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1300;
        height: var(--mobile-header-h);
        padding-top: var(--mobile-safe-top);
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: visible;
        background: #fff;
        border-bottom: 1px solid #eef1f5;
        box-shadow: none; /* Removed for seamless transition to sticky elements */
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .taxonomy-breadcrumb {
        display: flex !important;
        background: #fff;
        border-bottom: 1px solid #f1f5f9;
        padding: 6px 15px;
        font-size: 11px;
        overflow-x: auto;
        margin: 0; /* Sticky sibling margin reset */
    }

    .mobile-index-filter-strip {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 7px 10px;
        min-width: 0;
        background: #ffffff;
        border-bottom: 1.5px solid #cbd5e1;
        position: sticky;
        top: var(--mobile-header-h);
        z-index: 1280;
        margin: 0 0 8px 0;
        box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.05);
    }

    /* Global Announcement/Warning Bars */
    .global-announcement-bar {
        text-align: center;
        padding: 12px 15px;
        font-size: 14px;
        border-bottom: 1px solid transparent;
        position: relative;
        z-index: 1000;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .global-announcement-bar.warning { background-color: #fef9c3; border-bottom: 1px solid #fde047; color: #854d0e; }
    .global-announcement-bar.info { background-color: #e0f2fe; border-bottom: 1px solid #7dd3fc; color: #0c4a6e; }
    .global-announcement-bar a { font-weight: 700; text-decoration: underline; }
    .global-announcement-bar.info a { color: #0369a1; }
    .global-announcement-bar.warning a { color: #854d0e; }

    @media (max-width: 768px) {
        .global-announcement-bar {
            font-size: 13px;
            padding: 10px 15px;
            margin-bottom: 12px; /* Gap below each warning bar as requested */
        }
    }


    /* Homepage Category Tags (Hero replacement - hidden) */
    .home-category-tags {
        display: none !important;
        margin: 0; /* Tight to header */
        padding: 8px 0 10px;
        border-bottom: 1px solid #f1f5f9;
    }

    .main-header {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: var(--mobile-header-inner);
        max-width: none;
        width: 100% !important;
        margin: 0;
        padding: 0 12px;
        background: #fff;
        z-index: 1;
        display: flex;
        align-items: center;
        border-bottom: none;
        transform: translateY(-2px);
    }

    .logo {
        margin-left: 0;
    }

    .logo-visual {
        width: 48px;
        height: 48px;
        transform: translate(1px, -1px);
    }
    .logo-img { height: 100%; }
    .logo .cursor-icon {
        width: 15px;
        height: 15px;
        top: 5px;
        left: -1px;
    }

    .search-wrapper {
        display: flex;
        margin: 0 0 0 8px !important;
        background: #f1f5f9;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        padding: 6px 10px;
        min-height: 36px;
        align-items: center;
        max-width: none !important;
        flex: 1;
        transition: border-color 0.15s, background 0.15s;
    }

    .search-wrapper:focus-within {
        border-color: #93c5fd;
        background: #fff;
    }

    .search-wrapper input {
        background: transparent;
        border: none;
        padding: 0;
        font-size: 14px;
        line-height: 1.35;
        width: 100%;
        min-width: 0;
        color: #334155;
    }

    .search-wrapper input::placeholder { color: #94a3b8; }

    .search-wrapper button { display: none; }

    /* Universal Mobile Sidebar: reset margins and widths so children are never skewed */
    .sidebar,
    body.page-home .sidebar,
    body.page-search .sidebar {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto;
        right: auto;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        min-height: 0;
        overflow-x: visible;
        overflow-y: visible;
        background: transparent !important;
        z-index: auto !important;
        border: none !important;
        padding: 0 !important;
    }
    .sidebar.is-open,
    body.page-home .sidebar.is-open,
    body.page-search .sidebar.is-open {
        z-index: 1250 !important;
    }

    .sidebar-box:not(.category-container):not(.filter-box) { display: none !important; }
    .sidebar-box.category-container { display: none !important; }
    .sidebar-box { border: none; padding: 0; margin: 0; }
    .sidebar-box.filter-box {
        display: none !important;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 0;
        z-index: 1;
        border: none;
        background: #fff;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
    }

    .category-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: visible !important;
        height: var(--mobile-cat-rail-h);
        max-height: var(--mobile-cat-rail-h);
        padding: 5px max(12px, env(safe-area-inset-left, 0px)) 5px max(12px, env(safe-area-inset-right, 0px)) !important;
        gap: 8px !important;
        scroll-padding-inline: max(12px, env(safe-area-inset-left, 0px));
        -webkit-overflow-scrolling: touch;
        align-items: center;
        align-content: center;
    }

    .category-list > li {
        flex: 0 0 auto;
    }

    /* Desktop uses .category-list-wrapped { flex-direction: column }; force one row on mobile. */
    ul.category-list.category-list-wrapped {
        flex-direction: row !important;
    }

    /* Mobilde dropdown/toggle istemiyoruz; tüm kategori chipleri kaydırılarak görünsün. */
    .secondhand-category-header {
        display: none !important;
    }

    .cat-item {
        flex-direction: column !important;
        min-width: 44px;
        min-height: 0;
        gap: 0;
        padding: 0 2px !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.1;
        box-sizing: border-box;
    }

    /* Category icon colors - Unified light blue theme */
    .cat-circle {
        width: 32px; height: 32px;
        background: #e0f2fe; /* Light blue background */
        color: #0369a1;      /* Darker blue icon */
        border-radius: 9px;
        position: relative;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: box-shadow 0.15s, transform 0.15s;
    }

    .cat-circle.show-mobile {
        display: flex !important; /* override show-mobile block */
    }
    .cat-circle .cat-icon-font {
        position: absolute;
        inset: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px !important;
        line-height: 1 !important;
        font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20 !important;
    }

    .cat-item.active .cat-circle {
        background: #dbeafe;
        color: #1d4ed8;
        box-shadow: 0 0 0 2.5px var(--primary-color, #2563eb);
    }

    .cat-item > span:not(.cat-icon-font):not(.show-mobile) {
        display: none;
    }
    .cat-item.active > span:not(.cat-icon-font):not(.show-mobile) {
        color: #1d4ed8;
    }

    /* Mobile index filter strip handled above with sticky positioning */
    .mobile-index-filter-pills {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex: 0 1 auto;
        min-width: 0;
        padding: 2px 2px 3px 2px;
    }
    .mobile-index-filter-pills::-webkit-scrollbar { display: none; }

    .mobile-index-filter-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0 10px;
        height: 29px;
        min-height: 29px;
        border-radius: 999px;
        border: 1px solid #cbd5e1;
        background: #ffffff !important;
        font-size: 11.5px;
        font-weight: 600;
        color: #334155 !important;
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
        font-family: inherit;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        transition: all 0.16s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-index-filter-pill:active {
        transform: scale(0.96);
    }
    .mobile-index-filter-pill .material-symbols-outlined {
        font-size: 14px;
        color: #64748b !important;
        transition: color 0.16s ease;
    }
    /* Light blue tint: when filter is selected and menu is closed */
    .mobile-index-filter-pill.has-value,
    .mobile-index-filter-pill.is-active {
        background: #eff6ff !important;
        border-color: #93c5fd !important;
        color: #1d4ed8 !important;
        box-shadow: 0 1px 3px rgba(29, 78, 216, 0.1);
    }
    .mobile-index-filter-pill.has-value .material-symbols-outlined,
    .mobile-index-filter-pill.is-active .material-symbols-outlined {
        color: #1d4ed8 !important;
    }
    /* Sleek slate highlight when filter pill is currently open */
    .mobile-index-filter-pill.is-open-active {
        background: #1e293b !important;
        border-color: #1e293b !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    }
    .mobile-index-filter-pill.is-open-active .material-symbols-outlined {
        color: #ffffff !important;
    }

    .mobile-index-filter-expand {
        flex-shrink: 0;
        width: 29px;
        height: 29px;
        min-width: 29px;
        border-radius: 50%;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #475569;
        cursor: pointer;
        font-family: inherit;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        transition: all 0.16s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-index-filter-expand:active {
        transform: scale(0.95);
    }
    .mobile-index-filter-expand.is-open {
        background: #1e293b;
        border-color: #1e293b;
        color: #ffffff;
    }
    .mobile-index-filter-expand .material-symbols-outlined {
        font-size: 16px;
        transition: transform 0.22s ease;
        display: block;
    }
    .mobile-index-filter-expand.is-open .material-symbols-outlined {
        transform: rotate(180deg);
        color: #ffffff;
    }

    /* Mobile filter drawer header */
    .sidebar-filter-box-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 14px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
        box-sizing: border-box;
    }
    .sidebar-filter-box-header .sidebar-filter-box-title {
        margin: 0;
        font-size: 13.5px;
        font-weight: 700;
        color: #0f172a;
        letter-spacing: -0.01em;
        border-bottom: none;
        padding-bottom: 0;
    }
    .sidebar-filter-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        color: #475569;
        cursor: pointer;
        padding: 0;
        transition: all 0.15s ease;
    }
    .sidebar-filter-close-btn:hover,
    .sidebar-filter-close-btn:active {
        background: #f1f5f9;
        border-color: #94a3b8;
        color: #0f172a;
    }
    .sidebar-filter-close-btn .material-symbols-outlined {
        font-size: 16px;
    }

    /* Mobile Filter Drawer: section visibility */
    .sidebar-box.filter-box .sidebar-filter-section {
        width: 100%;
    }
    .sidebar-box.filter-box .sidebar-filter-actions {
        width: 100%;
        margin: 10px 0 0 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* When a specific filter pill is clicked, ONLY that filter section is displayed */
    .sidebar-box.filter-box[data-active-filter="category"] .sidebar-filter-section:not([data-filter-section="category"]),
    .sidebar-box.filter-box[data-active-filter="province"] .sidebar-filter-section:not([data-filter-section="province"]),
    .sidebar-box.filter-box[data-active-filter="university"] .sidebar-filter-section:not([data-filter-section="university"]),
    .sidebar-box.filter-box[data-active-filter="price"] .sidebar-filter-section:not([data-filter-section="price"]) {
        display: none !important;
    }

    /* When all filters are requested via "Daha fazla", display all sections */
    .sidebar-box.filter-box[data-active-filter="all"] .sidebar-filter-section {
        display: block !important;
    }

    /* Mobile "Daha fazla" expand link at the bottom corner */
    .mobile-filter-more-wrap {
        width: 100% !important;
        margin: 6px 0 0 0;
        padding: 4px 0 0 0;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        text-align: right;
    }
    .mobile-filter-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 4px 6px;
        color: #254d73;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        border-radius: 6px;
        transition: color 0.15s ease, opacity 0.15s ease, transform 0.12s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-filter-more-btn:hover,
    .mobile-filter-more-btn:active {
        color: #1e293b;
        background: rgba(241, 245, 249, 0.7) !important;
        transform: scale(0.97);
    }
    .mobile-filter-more-btn .mobile-filter-more-icon {
        font-size: 18px;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        display: inline-block;
        color: inherit;
    }
    .mobile-filter-more-btn.is-expanded {
        color: #254d73;
    }
    .mobile-filter-more-btn.is-expanded .mobile-filter-more-icon {
        transform: rotate(180deg);
    }

    /* Mobile Grid (Full Width) */
    .main-container { padding: 0; margin: 0; width: 100%; max-width: 100%; display: block; }
    
    .listing-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1px !important;
        background: #eee;
        width: 100%;
    }

    .listing-card {
        border-radius: 0;
        border: none !important;
        margin: 0;
    }

    .listing-image-container {
        padding-top: 0 !important;
        aspect-ratio: 4 / 3 !important;
    }

    /* Mobile Secondhand Showcase Progressive Scroll (20 items initially, loads more on scroll) */
    #item-grid.listing-grid-collapsible {
        max-height: none !important;
        overflow: visible !important;
    }

    [data-grid-toggle][data-target-grid="item-grid"] {
        display: none !important;
    }

    #item-grid .listing-card[data-mobile-hidden="true"] {
        display: none !important;
    }

    /* Mobile Bottom Navigation */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        height: auto !important;
        min-height: var(--mobile-bottom-nav-h, 54px);
        justify-content: space-around;
        align-items: center;
        z-index: 2100;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
        padding-top: 4px;
        padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 10px;
        font-weight: 500;
        text-decoration: none !important;
        flex: 1;
        min-height: 44px;
        padding: 4px 2px;
        border-radius: 12px;
        transition: color 0.15s ease, transform 0.12s ease, background-color 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
        position: relative;
    }

    .mobile-nav-item:active {
        transform: scale(0.92);
        background: rgba(241, 245, 249, 0.85);
    }

    .mobile-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 26px;
        border-radius: 13px;
        margin-bottom: 2px;
        transition: background-color 0.18s ease, transform 0.15s ease;
    }

    .mobile-nav-icon svg {
        transition: transform 0.15s ease, fill 0.15s ease;
    }

    .mobile-nav-item.active {
        color: #254d73;
        font-weight: 700;
    }

    .mobile-nav-item.active .mobile-nav-icon {
        background: #e2edf5;
        color: #254d73;
    }

    .mobile-nav-item.active svg {
        fill: #254d73;
    }

    .mobile-nav-label {
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: -0.1px;
        white-space: nowrap;
    }

    .mobile-nav-item.center {
        position: relative;
        top: -12px;
    }

    .mobile-nav-item.center .plus-icon {
        width: 44px;
        height: 44px;
        background: #254d73;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid #ffffff;
        box-shadow: 0 4px 12px rgba(37, 77, 115, 0.35);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .mobile-nav-item.center:active .plus-icon {
        transform: scale(0.92);
        box-shadow: 0 2px 6px rgba(37, 77, 115, 0.25);
    }

    .mobile-nav-item.center .mobile-nav-label {
        color: #254d73;
        font-weight: 700;
        margin-top: 2px;
    }

    /* Mobile Footer Styles */

    .mobile-footer {
        background: #2c3e50;
        padding: 20px 15px 80px; /* Reduced padding */
        text-align: center;
        color: #fff;
    }
    
    .footer-content-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Reduced gap */
    }
    
    .logo-mobile-footer {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #fff;
        font-weight: bold;
        font-size: 18px;
    }
    
    .logo-mobile-footer img {
        height: 30px;
        filter: brightness(0) invert(1);
    }
    
    .footer-links-mobile a {
        color: #bdc3c7;
        text-decoration: none;
        font-size: 13px;
        margin: 0 5px;
    }
    
    .social-links-mobile {
        display: flex;
        gap: 15px;
        font-size: 20px;
    }

.social-links-mobile .material-symbols-outlined {
    color: #fff;
}

    .social-links-mobile a {
        text-decoration: none;
    }
    
    .copyright-mobile {
        color: #7f8c8d;
        font-size: 11px;
        margin: 0;
    }
}

/* ========================================
   GLOBAL COMBOBOX & FORM SELECT ENHANCEMENTS
   ======================================== */
.sidebar-native-select {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sidebar-combobox {
    position: relative;
    margin-bottom: 10px;
    min-width: 0;
    --sidebar-picker-trigger-h: 40px;
}

.sidebar-combobox__chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.sidebar-combobox__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 8px;
    cursor: pointer;
}

.sidebar-combobox__chip .material-symbols-outlined {
    font-size: 14px;
}

.sidebar-combobox__trigger {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.sidebar-combobox__trigger:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.sidebar-combobox.is-open {
    z-index: 1050;
}

.sidebar-combobox.is-open .sidebar-combobox__trigger {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
    background: #ffffff;
}

.sidebar-combobox.is-disabled .sidebar-combobox__trigger,
.sidebar-combobox__trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
    pointer-events: none;
}

.sidebar-combobox__trigger .field-icon {
    font-family: 'Material Symbols Outlined', sans-serif !important;
    font-size: 20px !important;
    font-weight: normal !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    direction: ltr !important;
    -webkit-font-feature-settings: 'liga' !important;
    -webkit-font-smoothing: antialiased !important;
    color: #1d4ed8;
    margin-right: 6px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    overflow: hidden;
}

.sidebar-combobox__trigger-text {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.sidebar-combobox__trigger-text.is-placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.sidebar-combobox__trigger .trigger-arrow,
.sidebar-combobox__trigger .material-symbols-outlined:not(.field-icon) {
    font-size: 20px !important;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.sidebar-combobox.is-open .trigger-arrow,
.sidebar-combobox.is-open .material-symbols-outlined:not(.field-icon) {
    transform: rotate(180deg);
    color: #1d4ed8;
}

.sidebar-combobox__panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.05);
    padding: 0;
    z-index: 1050;
    overflow: hidden;
    box-sizing: border-box;
}

.sidebar-combobox.is-open > .sidebar-combobox__panel {
    display: block !important;
}

.sidebar-combobox__search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
    width: 100%;
}

.sidebar-combobox__search-icon {
    position: absolute;
    left: 17px;
    color: #94a3b8;
    font-size: 18px !important;
    pointer-events: none;
    z-index: 1;
}

.sidebar-combobox__search {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px 8px 32px !important;
    font-size: 13.5px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.sidebar-combobox__search:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}

.sidebar-combobox__list {
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px;
    box-sizing: border-box;
    width: 100%;
}

.sidebar-combobox__group {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 8px 10px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-combobox__option {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    border-radius: 8px;
    text-align: left;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    color: #334155;
    margin-bottom: 2px;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.sidebar-combobox__option:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.sidebar-combobox__option.is-active {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700;
}

.sidebar-combobox__option-title {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-combobox__option-icon {
    color: #1d4ed8;
    font-size: 18px !important;
    flex-shrink: 0;
}

.sidebar-combobox__empty {
    padding: 14px 12px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 768px) {
    .sidebar-combobox__panel {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: calc(var(--mobile-bottom-nav-h, 52px) + 8px);
        top: auto;
        width: auto;
        max-width: 390px;
        margin: 0 auto;
        max-height: 55vh;
        border-radius: 14px;
        transform: translateY(14px) scale(0.98);
        transform-origin: bottom center;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .sidebar-combobox__list {
        max-height: 42vh;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* WIZARD & CREATE LISTING ENHANCEMENTS */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.wizard-progress::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 5px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.wizard-step.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: #f8fafc;
    box-shadow: 0 0 0 4px rgba(51, 65, 85, 0.1);
}

.selection-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.selectable-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
    position: relative;
}

.selectable-card input[type="radio"],
.selectable-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.selectable-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.selectable-card.active {
    border-color: var(--primary-color);
    background: #f8fafc;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.card-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.btn-large {
    padding: 12px 25px;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ui-icon-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ui-icon-label .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
    color: currentColor;
}

/* Global Material Symbols Optimization - Prevent FOUT */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    /* Use transparent color for the text itself so names aren't visible before font load */
    /* Google Fonts &display=block will handle the rest */
}

.ui-icon-label.btn-save-search .material-symbols-outlined {
    font-size: 19px;
}

.social-icon-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-link .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}


/* Form layout for listing details */
.listing-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.1);
}

/* Upload zone */
.upload-zone {
    background: #f8fafc;
    padding: 40px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    margin-bottom: 30px;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: #f1f5f9;
}

.upload-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .wizard-progress {
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 10px;
    }
    .wizard-progress::before { display: none; }
    .wizard-step {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 11px;
        padding: 4px 10px;
    }
    .selection-grid {
        grid-template-columns: 1fr !important;
    }
    .listing-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Modern listing create form ("al" = add-listing)
   Replaces the legacy .wizard-progress / .selectable-card flow.
   ============================================================ */

.al-container {
    max-width: 960px;
    margin: 24px auto 96px;
    padding: 0 16px;
}

.al-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.al-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0f172a;
}
.al-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 15px;
}

.al-alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.al-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid transparent;
}
.al-alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.al-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.al-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.al-alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* Sections */
.al-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.al-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #0f172a;
}
.al-section-hint { font-size: 13px; font-weight: 400; color: #64748b; }
.al-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* İlan ver — adım adım sihirbaz */
.al-wizard { margin-bottom: 0; }
.al-wizard-progress-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.al-wizard-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.al-wizard-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color, #334155), #0ea5e9);
    transition: width 0.65s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: width;
}
.al-wizard-step-meta {
    margin: 10px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.al-wizard .al-section[data-wizard-hidden] {
    display: none !important;
}
.al-wizard-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 20px;
}
.al-wizard-nav-back { flex-shrink: 0; }
.al-wizard-nav-next,
.al-wizard-nav-finish {
    margin-left: auto;
}
.al-wizard-nav-next {
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.15s, transform 0.12s;
}
.al-wizard-nav-next:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.al-wizard-nav-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
.al-submit-bar { position: relative; }
.al-submit-publish-moved-to-wizard .al-publish-btn {
    display: none;
}

/* Shared field components */
.al-field { margin-bottom: 14px; }
.al-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.al-required { color: #dc2626; }
.al-hint { font-size: 12px; color: #64748b; }
.al-helper {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}
.al-counter { font-size: 12px; color: #94a3b8; }
.al-counter.near-limit { color: #dc2626; font-weight: 600; }
.al-field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.al-input, .al-textarea, .al-form select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

select.al-input,
select.input,
select.form-select,
.al-form select,
.auth-form select,
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    min-height: 44px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    padding: 10px 40px 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
select.al-input:hover,
select.input:hover,
select.form-select:hover,
.al-form select:hover,
.auth-form select:hover,
.form-group select:hover {
    border-color: #94a3b8;
}
select.al-input:focus,
select.input:focus,
select.form-select:focus,
.al-form select:focus,
.auth-form select:focus,
.form-group select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.al-input.al-input-error {
    border-color: #dc2626;
}
.al-input.al-input-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.al-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.al-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Kampüs (ilan ver) — kart + özel select ok */
.al-campus-field {
    margin-top: 18px;
    padding: 16px 18px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.al-campus-field .al-label {
    margin-bottom: 10px;
}
.al-select-wrap {
    position: relative;
    display: block;
}
.al-select-wrap--campus::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    pointer-events: none;
    opacity: 0.85;
}
.al-select-wrap.has-combobox::after,
.al-select-wrap:has(.sidebar-combobox)::after,
.al-select-wrap--campus.has-combobox::after,
.al-select-wrap--campus:has(.sidebar-combobox)::after {
    display: none !important;
}
.al-select-wrap--campus select#id_campus {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    font-family: inherit;
    padding: 13px 44px 13px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #0f172a;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.al-select-wrap--campus select#id_campus:hover {
    border-color: #94a3b8;
}
.al-select-wrap--campus select#id_campus:focus {
    outline: none;
    border-color: var(--primary-color, #334155);
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.12);
}
.al-select-wrap--campus select#id_campus:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.al-field-note {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0;
    line-height: 1.45;
}
.al-optional-label {
    font-weight: 500;
    color: #64748b;
    font-size: 12px;
}
.al-rm-intro { margin-bottom: 18px !important; }
.al-rm-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    background: #fafbfc;
}
.al-rm-card-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.al-rm-card-body .al-field:last-child { margin-bottom: 0; }
.al-roommate-map {
    height: 220px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 10px 0 12px;
    overflow: hidden;
    background: #e2e8f0;
}
.al-roommate-locate-btn { margin-bottom: 4px; }
.al-switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.al-switch-tile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.al-switch-tile:hover { border-color: #cbd5e1; }
.al-switch-tile:has(input:checked) {
    border-color: var(--primary-color);
    background: #f8fafc;
    box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.06);
}
.al-switch-tile input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}
.al-switch-tile-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.al-switch-tile-text strong {
    font-size: 14px;
    color: #0f172a;
}
.al-switch-tile-text small {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}
.al-field-span-2 { grid-column: 1 / -1; }
.al-check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
}
.al-check-inline input { margin-right: 8px; }

.al-input-group { position: relative; }
.al-input-group .al-input { padding-right: 48px; }
.al-input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    pointer-events: none;
}

/* Type cards */
.al-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.al-type-card {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.15s;
    background: #fff;
    position: relative;
}
.al-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.al-type-card:hover { border-color: #94a3b8; }
.al-type-card.active {
    border-color: var(--primary-color);
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.08);
}
.al-type-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.al-type-name { font-size: 15px; font-weight: 700; color: #0f172a; }
.al-type-desc { font-size: 12px; color: #64748b; margin-top: 4px; }


/* Category grid */
.al-cat-search-wrap { margin-bottom: 12px; }
.al-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    max-height: 2000px;
    transition: max-height 0.35s ease;
    padding-bottom: 10px;
    overflow: hidden;
}
.al-cat-grid.is-collapsed {
    max-height: 52px;
    transition: none; /* collapse animasyonsuz — sadece expand animasyonlu */
    position: relative;
    overflow: hidden;
}
.al-cat-grid.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
    pointer-events: none;
}
.al-cat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all 0.12s;
    font-size: 13px;
}
.al-cat-chip input { position: absolute; opacity: 0; }
.al-cat-chip:hover { border-color: #94a3b8; background: #f8fafc; }
.al-cat-chip.active {
    border-color: var(--primary-color);
    background: #f1f5f9;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.1);
}
.al-cat-emoji { font-size: 18px; flex-shrink: 0; }
.al-cat-name-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.al-cat-name { line-height: 1.3; }
.al-cat-submatch {
    font-size: 11px;
    font-weight: 600;
    color: #0284c7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 2px;
}

/* Category Prediction */
.al-predict-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.al-predict-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
    transition: all 0.15s ease;
    user-select: none;
}
.al-predict-badge:hover {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.18);
}
.al-predict-badge:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}
.al-predict-badge:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.al-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: fit-content;
    margin: 10px auto 0;
    padding: 4px 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.al-cat-toggle:hover {
    background: #f8fafc;
    color: var(--primary-color, #0f172a);
    border-color: #cbd5e1;
}
.al-cat-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.1);
}
.al-cat-toggle-icon {
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.al-cat-toggle.is-expanded .al-cat-toggle-icon {
    transform: rotate(180deg);
}

/* Chips (condition / etc) */
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chip {
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    background: #fff;
    transition: all 0.12s;
    user-select: none;
}
.al-chip input { display: none; }
.al-chip:hover { border-color: #94a3b8; }
.al-chip:has(input:checked) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Roommate check grid */
.al-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.al-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    transition: all 0.12s;
}
.al-check input { width: 16px; height: 16px; accent-color: var(--primary-color); }
.al-check:hover { border-color: #94a3b8; background: #f8fafc; }
.al-check:has(input:checked) {
    border-color: var(--primary-color);
    background: #f1f5f9;
}

/* Photo dropzone */
.al-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 180px;
}
.al-dropzone:hover, .al-dropzone:focus {
    border-color: var(--primary-color);
    background: #f1f5f9;
    outline: none;
}
.al-dropzone.dragging {
    border-color: var(--primary-color);
    background: #e0e7ef;
}
.al-dropzone.has-photos { padding: 16px; cursor: default; }
.al-dropzone-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    padding: 20px;
}
.al-dropzone-empty svg { color: #94a3b8; margin-bottom: 10px; }
.al-dropzone-title {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 4px;
}
.al-dropzone-hint { font-size: 12px; color: #64748b; margin: 0; }
.al-photo-help {
    margin: 10px 0 0;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.al-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.al-photo-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: grab;
    border: 2px solid transparent;
    transition: transform 0.12s, border-color 0.12s;
}
.al-photo-tile:hover { border-color: var(--primary-color); }
.al-photo-tile.dragging-tile { opacity: 0.4; cursor: grabbing; }
.al-photo-tile.processing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="%23334155" stroke-width="3" stroke-linecap="round"><path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="1s" repeatCount="indefinite"/></path></svg>') center/32px no-repeat;
}
.al-photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.al-photo-primary {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 2;
}
.al-photo-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.al-photo-del:hover { background: #dc2626; }
.al-photo-size {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}
.al-photo-add {
    aspect-ratio: 1 / 1;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    color: #64748b;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.12s;
}
.al-photo-add span { font-size: 11px; }
.al-photo-add:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fafc;
}

/* Attributes editor */
.al-attr-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.al-attr-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 8px;
    align-items: center;
}
.al-attr-del {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.12s;
}
.al-attr-del:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

.al-btn-ghost {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.12s;
}
.al-btn-ghost:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

/* Location section */
.al-loc-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
}
.al-address-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}
.al-address-result {
    text-align: left;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    width: 100%;
    font-family: inherit;
}
.al-address-result:hover { background: #e2e8f0; }
.al-address-display {
    margin: 6px 0;
    padding: 8px 12px;
    background: #eff6ff;
    border-radius: 6px;
    font-size: 13px;
    color: #1e3a8a;
}
.al-map {
    height: 350px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 1;
    margin: 8px 0;
}

.al-loc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 20px;
    align-items: start;
    margin-top: 8px;
}
@media (max-width: 900px) {
    .al-loc-layout {
        grid-template-columns: 1fr;
    }
}
.al-loc-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 10px;
}
.al-loc-extra-hint {
    margin: 0 0 12px;
    font-size: 13px;
}
.al-loc-extra-strong {
    font-weight: 700;
    color: var(--primary-color);
}
.al-dropoff-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.al-drop-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 14px 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.al-drop-card-head {
    margin-bottom: 10px;
}
.al-drop-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.al-drop-card .al-drop-card-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.al-drop-opt {
    font-weight: 400;
    color: #94a3b8;
}
.al-drop-coords {
    margin: 8px 0 0;
    font-size: 11px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.al-drop-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.al-drop-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
    padding: 24px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-family: inherit;
    color: #64748b;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    width: 100%;
    text-align: center;
}
.al-drop-slot-empty:hover {
    border-color: var(--primary-color);
    background: #f1f5f9;
    color: #334155;
}
.al-drop-slot-empty:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.15);
}
.al-drop-slot-plus {
    font-size: 52px;
    font-weight: 200;
    line-height: 1;
    color: var(--primary-color);
}
.al-drop-slot-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}
.al-drop-slot-sub {
    font-size: 12px;
    line-height: 1.45;
    max-width: 260px;
    margin: 0;
}
.al-drop-marker-leaflet {
    background: transparent !important;
    border: none !important;
}
.al-drop-marker-inner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ea580c;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}

.al-drop-card-tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin-bottom: 12px;
}

.al-drop-card-tr-field .al-drop-card-label {
    margin-bottom: 4px;
}

.al-drop-card-tr-field .al-input {
    width: 100%;
}

.al-drop-card--map-pick {
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

.al-dropoff-map-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 8px 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.al-dropoff-map-hint .al-hint {
    margin: 0;
    flex: 1 1 200px;
}

.al-map.al-map--dropoff-pick {
    outline: 3px solid rgba(234, 88, 12, 0.45);
    outline-offset: 2px;
    border-radius: 10px;
}

@media (max-width: 520px) {
    .al-drop-card-tr {
        grid-template-columns: 1fr;
    }
}

/* Submit bar */
.al-submit-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.al-publish-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.al-publish-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.al-publish-btn:disabled {
    opacity: 0.6;
    cursor: progress;
}
.al-cancel-link {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}
.al-cancel-link:hover { color: var(--primary-color); text-decoration: underline; }

/* Success page */
.al-success {
    max-width: 560px;
    margin: 40px auto 96px;
    text-align: center;
    padding: 0 16px;
}
.al-success-icon { font-size: 72px; margin-bottom: 16px; }
.al-success-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #0f172a;
}
.al-success-subtitle { color: #64748b; margin: 0 0 24px; line-height: 1.6; }
.al-success-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.al-success-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.al-success-body { flex: 1; }
.al-success-h2 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #0f172a; }
.al-success-price { font-size: 18px; font-weight: 800; color: var(--primary-color); margin: 0; }
.al-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.al-success-actions .al-publish-btn { text-decoration: none; display: inline-block; }
.al-share { text-align: center; color: #64748b; font-size: 13px; }
.al-share p { margin: 0 0 8px; }
.al-share-btn {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 4px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.12s;
}
.al-share-btn:hover { background: #f1f5f9; border-color: var(--primary-color); }

/* Mobile tweaks */
@media (max-width: 720px) {
    .al-container { padding: 0 12px; margin-top: 12px; margin-bottom: calc(180px + env(safe-area-inset-bottom, 0px)); }
    .al-section { padding: 16px; }
    .al-title { font-size: 22px; }
    .al-type-grid { grid-template-columns: 1fr; }
    .al-row { grid-template-columns: 1fr; }
    .al-cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .al-photo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .al-loc-controls { grid-template-columns: 1fr; }
    .al-map { height: 260px; }
    .al-attr-row { grid-template-columns: 1fr 1fr auto; }

    /* iOS Safari auto-zooms into inputs with <16px font. Prevent that. */
    .al-input, .al-textarea, .al-form select,
    .al-address-result { font-size: 16px; }
    .al-chip { padding: 10px 16px; font-size: 14px; }

    /* Larger touch targets (Apple HIG 44x44, Material 48x48). */
    .al-photo-del { width: 32px; height: 32px; font-size: 20px; top: 4px; right: 4px; }
    .al-attr-del { width: 44px; height: 44px; font-size: 20px; }
    .al-type-card { padding: 16px 12px; }
    .al-check { padding: 12px; }
    .al-cat-chip { padding: 12px; }

    .al-wizard-nav-next,
    .al-wizard-nav-finish {
        margin-left: 0;
        flex: 1;
        min-height: 48px;
        text-align: center;
    }

    /* Hint that map responds to two-finger panning so the user can scroll the page. */
    .al-map::before {
        content: "Haritayı iki parmakla hareket ettirin";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(15, 23, 42, 0.75);
        color: #fff;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 11px;
        z-index: 401;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s;
    }
    .al-map.show-pan-hint::before { opacity: 1; }
    #al-section-location-tr { position: relative; }

    /* Non-sticky publish bar for better visibility and less screen clutter */
    .al-submit-bar {
        position: relative;
        bottom: auto;
        left: auto; right: auto;
        background: transparent;
        margin: 20px 0 0 0;
        padding: 16px 0 0 0;
        border-top: 1px solid var(--border-color);
        box-shadow: none;
        justify-content: flex-end;
        z-index: 1;
        gap: 12px;
    }
    .al-publish-btn { flex: 1; padding: 14px; font-size: 16px; }
    .al-cancel-link { flex-shrink: 0; padding: 12px 8px; }
    .al-success-card { flex-direction: column; text-align: center; }
}

/* ============================================================
   Listing results + detail layout baseline (desktop-first)
   Keeps marketplace look while enabling stronger mobile fallbacks.
   ============================================================ */
.listing-header {
    margin-bottom: 12px;
}

.search-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.search-results-table thead th {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.search-results-table thead th.sortable {
    padding: 0;
    vertical-align: middle;
}

.search-results-table thead th.sortable.sort-active {
    background: #eff6ff;
    color: #1e40af;
}

.sr-sort-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
}

.sr-sort-link:hover {
    background: rgba(51, 65, 85, 0.08);
    color: var(--primary-color, #334155);
}

.search-results-table thead th.sort-active .sr-sort-link:hover {
    background: rgba(30, 64, 175, 0.08);
}

.sr-sort-ind {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 800;
}

.search-results-table td {
    padding: 10px 12px;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}

.search-results-table tbody tr:last-child td {
    border-bottom: none;
}

.search-results-table .col-img {
    width: 128px;
}

.sr-img-box {
    position: relative;
    width: 118px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.sr-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sr-title-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.sr-title-link:hover {
    text-decoration: underline;
}

/* Search results tags row (category, brand, custom tags) */
.sr-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    margin-bottom: 2px;
}

.sr-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    letter-spacing: -0.01em;
}

/* Kategori etiketi */
.sr-tag--category {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* Marka etiketi */
.sr-tag--brand {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 700;
}

/* Özel etiketler */
.sr-tag--custom {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

/* Oda arkadaşı özellikleri */
.sr-tag--prop,
.sr-tag--type {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
    font-weight: 600;
}

.sr-meta-condition {
    font-size: 11px;
    color: #64748b;
    margin-left: 2px;
}

.detail-page-shell {
    background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 38%, #fff 100%);
    padding: clamp(16px, 3vw, 32px) clamp(12px, 2.5vw, 24px) clamp(28px, 5vw, 48px);
}

.detail-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.detail-media-col {
    min-width: 0;
}

.detail-gallery-wrap {
    position: relative;
    width: 100%;
}

.detail-main-image {
    width: 100%;
    height: clamp(220px, 38vw, 520px);
    max-height: min(58vh, 560px);
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

.detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detail-main-image__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 15px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 6px;
    -webkit-overflow-scrolling: touch;
}

.thumbnail-container .thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.thumbnail-container .thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.03);
}

.detail-gallery-wrap__favorite.favorite-icon-container {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
}

.detail-favorite-link {
    font-size: 22px;
    text-decoration: none;
    line-height: 1;
    color: #cbd5e1;
}

.detail-favorite-link.is-active {
    color: #e74c3c;
}

.detail-description-section {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.detail-description-section__title {
    margin: 0 0 12px;
}

.detail-description-body {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.detail-description-body p:last-child {
    margin-bottom: 0;
}

.detail-info-col {
    min-width: 0;
}

.detail-info-col .detail-page-head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px;
}

.detail-page-head--title-only {
    gap: 0;
}

.detail-page-head--title-only .detail-page-title {
    width: 100%;
}

.detail-card__title {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.detail-roommate-card__title {
    margin-bottom: 10px;
}

.detail-seller-box .detail-card__title {
    margin-bottom: 10px;
}

.detail-seller-box__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
}

.detail-seller-box__name {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    font-size: 1.05rem;
    line-height: 1.25;
}

.detail-seller-box__name:hover {
    text-decoration: underline;
}

.detail-seller-box__pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color, #0056b3);
    background: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
}

.detail-seller-box__identity .detail-seller-box__pill {
    margin-top: 0;
}

.detail-seller-box__school {
    margin: 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.35;
}

.detail-seller-box__school--muted {
    color: #94a3b8;
    font-style: italic;
}

.detail-seller-box__phone-wrap {
    margin-top: 10px;
}

.detail-seller-box__phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.detail-seller-box__phone-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.detail-seller-box__phone-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.phone-spoiler-text {
    background: #e2e8f0;
    color: #334155;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.phone-spoiler-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #2563eb;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.detail-seller-box__phone-btn:hover .phone-spoiler-badge {
    background: #1d4ed8;
}

.detail-seller-box__phone-revealed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
    animation: phoneRevealPop 0.2s ease-out;
}

.detail-seller-box__phone-revealed:hover {
    background: #bfdbfe;
    color: #1e40af;
}

.phone-reveal-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
}

@keyframes phoneRevealPop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.detail-page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.detail-page-title {
    flex: 1 1 auto;
    min-width: 0;
    align-self: flex-start;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
    color: #0f172a;
}

.detail-seller-box--same-uni {
    outline: 2px solid var(--primary-color, #0056b3);
    outline-offset: 2px;
    background: #f8fafc;
}

.listing-seller-uni {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.2;
}

.listing-seller-uni--same {
    outline: 1px solid var(--primary-color, #0056b3);
    outline-offset: 2px;
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--primary-color, #0056b3);
    background: #eff6ff;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-price-box,
.detail-seller-box,
.detail-item-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    height: auto;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.detail-price-box .price {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.detail-price-box .button {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.detail-price-box .button:last-child {
    margin-bottom: 0;
}

.detail-price-box__badge {
    display: inline-block !important;
    width: auto !important;
    margin-bottom: 12px !important;
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.detail-cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.detail-cta {
    border: none;
    min-height: 44px;
    line-height: 1.2;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.detail-cta:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.detail-cta--primary {
    background: var(--primary-color, #0056b3) !important;
    color: #fff !important;
}

.detail-cta--secondary {
    background: #0f766e !important;
    color: #fff !important;
}

.detail-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    align-items: baseline;
}

.detail-meta__label {
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.detail-meta__value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    min-width: 0;
}

.detail-meta__arrow {
    color: #94a3b8;
    font-weight: 400;
    margin: 0 1px;
}

.detail-roommate-card {
    margin-top: 14px;
    padding: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.detail-spec-dl {
    margin: 0;
}

.detail-spec-dl__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 6px 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.detail-spec-dl__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-spec-dl__dt {
    margin: 0;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
}

.detail-spec-dl__dd {
    margin: 0;
    color: #0f172a;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.detail-lifestyle.lifestyle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.detail-lifestyle .lifestyle-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.detail-lifestyle .lifestyle-tag .material-symbols-outlined {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #475569;
}

.detail-map-section {
    margin-top: 4px;
}

.detail-map-section--standalone {
    margin-top: 20px;
}

.detail-map-section--standalone .detail-map {
    height: 260px;
}

.detail-map {
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 0;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.detail-map-legend {
    margin: 12px 0 0;
    padding-left: 0;
    list-style: none;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}
.detail-map-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.detail-map-legend__dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: 0 0 12px;
    border: 2px solid currentColor;
    background: currentColor;
    opacity: 0.4;
}
.detail-map-legend__dot--main { color: #2563eb; }
.detail-map-legend__dot--extra { color: #0ea5e9; }

.detail-map-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
}

.detail-divider {
    height: 1px;
    margin: 20px 0;
    border: 0;
    background: linear-gradient(90deg, transparent, #e2e8f0 12%, #e2e8f0 88%, transparent);
}

.detail-report {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #b91c1c;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s ease;
}

.detail-report:hover {
    color: #991b1b;
    text-decoration: underline;
}

.detail-report .material-symbols-outlined {
    font-size: 20px;
}

@media (max-width: 480px) {
    .detail-meta,
    .detail-spec-dl__row {
        grid-template-columns: 1fr;
    }

    .detail-meta__value,
    .detail-spec-dl__dd {
        text-align: left;
    }
}

/* ---------- User profile (/user/<pk>/) ---------- */
.profile-page {
    width: min(960px, 100%);
    margin: 0 auto;
}

.profile-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 24px;
    align-items: flex-start;
    padding: 24px;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.profile-hero__avatar {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #64748b, #334155);
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.profile-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-hero__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.profile-hero__main {
    flex: 1;
    min-width: 200px;
}

.profile-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.profile-hero__name {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.profile-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.profile-chip--verified {
    color: #0f766e;
    background: #ccfbf1;
    border-color: #99f6e4;
}

.profile-chip__ico {
    font-size: 14px !important;
    font-variation-settings: 'FILL' 1;
}

/* Doğrulanmış öğrenci rozeti (listing kart + arama satırı + detay/profil) */
.student-verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    white-space: nowrap;
    margin-top: 5px;
    margin-bottom: 2px;
}
.student-verified-chip__ico {
    font-size: 14px !important;
    font-variation-settings: 'FILL' 1;
}
.student-verified-chip--compact .student-verified-chip__label {
    display: none;
}
.student-verified-chip--compact {
    padding: 2px 5px;
}

/* KYK yurda özel ilan rozeti */
.dorm-only-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #92400e;
    background: #fef9c3;
    border: 1px solid #facc15;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 100%;
}
.dorm-only-chip__ico { font-size: 14px !important; font-variation-settings: 'FILL' 1; }
.dorm-only-chip__label { overflow:hidden; text-overflow:ellipsis; }

/* Üst site banner'ları (e-posta doğrulama, kampüs seç vb.) */
.site-banner {
    border-bottom: 1px solid transparent;
}
.site-banner__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
}
.site-banner__ico {
    font-size: 22px !important;
    flex: 0 0 auto;
    font-variation-settings: 'FILL' 1;
}
.site-banner__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
}
.site-banner__body strong { font-size: 13.5px; font-weight: 700; }
.site-banner__sub { opacity: 0.85; font-size: 12.5px; }
.site-banner__btn {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.15s;
}
.site-banner__btn:hover { filter: brightness(1.05); }

.site-banner--warn {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    color: #78350f;
    border-color: #fcd34d;
}
.site-banner--warn .site-banner__ico { color: #b45309; }
.site-banner--warn .site-banner__btn {
    background: #b45309;
    color: #fff;
}

.site-banner--info {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
    border-color: #bfdbfe;
}
.site-banner--info .site-banner__ico { color: #1d4ed8; }
.site-banner--info .site-banner__btn {
    background: #1d4ed8;
    color: #fff;
}

@media (max-width: 640px) {
    .site-banner__inner { gap: 10px; padding: 10px 12px; }
    .site-banner__sub { display: none; }
    .site-banner__btn { padding: 6px 10px; font-size: 12px; }
}

.profile-hero__since {
    margin: 0 0 4px;
    font-size: 13px;
    color: #64748b;
}

.profile-hero__uni {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.profile-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.profile-stat {
    font-size: 13px;
    color: #64748b;
}

.profile-stat strong {
    color: #0f172a;
    font-weight: 800;
    margin-right: 4px;
}

.profile-stat--rating strong {
    color: #b45309;
}

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.profile-card__title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    margin-bottom: 16px;
}

.profile-muted {
    margin: 0 0 16px;
    font-size: 14px;
    color: #94a3b8;
    font-style: italic;
}

.profile-dl {
    margin: 0;
}

.profile-dl__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
}

.profile-dl__row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.profile-dl dt {
    margin: 0;
    color: #64748b;
    font-weight: 600;
}

.profile-dl dd {
    margin: 0;
    color: #0f172a;
}

.profile-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    background: var(--primary-color);
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.profile-edit-link:hover {
    background: var(--primary-hover);
    color: #fff !important;
}

.profile-edit-link__ico {
    font-size: 18px !important;
}

.profile-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.profile-section__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.profile-section__count {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 999px;
}

.profile-listing-grid {
    gap: 14px;
}

.profile-listing-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.listing-price-line {
    margin: 6px 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

.listing-price-line--muted {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.listing-meta-line {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.profile-fav {
    font-size: 18px;
    text-decoration: none;
    color: #cbd5e1;
}

.profile-fav--on {
    color: #e74c3c;
}

.profile-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.profile-review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.profile-review-stars {
    font-size: 15px;
    letter-spacing: 2px;
    color: #ca8a04;
}

.profile-review-card__meta {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

.profile-review-card__text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.profile-review-card__byline {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.profile-review-card__byline a {
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
}

.profile-review-card__byline a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .profile-hero {
        padding: 18px;
    }

    .profile-hero__name {
        font-size: 1.35rem;
    }

    .profile-dl__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (max-width: 900px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-container .detail-info-col {
        order: -1;
    }
}
/* ============================================================
   Mobile adjustments preserving desktop visual language
   ============================================================ */
@media (max-width: 768px) {
    .home-showcase-block .listing-header {
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: center;
        align-items: center !important;
        text-align: center;
    }

    .home-showcase-block .home-section-title-wrap {
        justify-content: center;
    }

    .item-category-hub__head.listing-header {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    .item-category-hub__grid {
        grid-template-columns: 1fr;
        margin-top: 12px;
    }

    .home-view-all-link {
        padding: 4px 9px;
        font-size: 10.5px;
        border-radius: 999px;
    }

    .listing-header {
        gap: 8px;
        align-items: flex-start !important;
    }

    .listing-header h2 {
        margin: 0 0 4px;
        font-size: 18px;
        line-height: 1.25;
    }

    .listing-header span {
        font-size: 12px;
        color: #64748b;
    }

    body.page-search .content-area,
    .page-search .content-area {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .search-results-table {
        display: block;
        border: none;
        background: transparent;
    }

    .search-results-table thead {
        display: none;
    }

    .search-results-table tbody {
        display: block;
        width: 100%;
    }

    .search-results-table tr {
        display: grid;
        grid-template-columns: 82px 1fr auto;
        column-gap: 12px;
        row-gap: 3px;
        align-items: center;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 8px;
        padding: 8px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
        transition: transform 0.12s ease;
    }

    .search-results-table tr:active {
        transform: scale(0.985);
    }

    .search-results-table td {
        padding: 0;
        border: none;
        margin-bottom: 0;
    }

    .search-results-table .col-img {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 82px;
    }

    .sr-img-box {
        width: 82px;
        height: 104px;
        aspect-ratio: 3 / 4;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        background: #f1f5f9;
    }

    .sr-img-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }

    .search-results-table .col-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 13.5px;
        line-height: 1.3;
    }

    .search-results-table .sr-title-link {
        font-weight: 600;
        color: #1e293b;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .search-results-table .sr-tags-row {
        margin-top: 3px;
        gap: 3.5px;
    }

    .search-results-table .sr-tag {
        font-size: 10px;
        padding: 1.5px 5.5px;
        border-radius: 4px;
        max-width: 115px;
    }

    .search-results-table .col-location {
        grid-column: 2;
        grid-row: 2;
        font-size: 11px;
        color: #64748b;
        line-height: 1.3;
    }

    .search-results-table .col-location br {
        display: none;
    }

    .search-results-table .col-date {
        grid-column: 2;
        grid-row: 3;
        font-size: 10.5px;
        color: #94a3b8;
        line-height: 1.2;
    }

    .search-results-table .col-price {
        grid-column: 3;
        grid-row: 1 / span 3;
        align-self: center;
        text-align: right;
        padding-left: 6px;
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
        white-space: nowrap;
    }

    .detail-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        grid-template-areas:
            "detail-title"
            "detail-media"
            "detail-info";
    }

    .detail-media-col {
        grid-area: detail-media;
    }

    .detail-info-col {
        grid-area: detail-info;
        display: contents;
    }

    .detail-info-col .detail-page-head {
        grid-area: detail-title;
        margin-bottom: 0;
    }

    #main-image-container.detail-main-image,
    .detail-main-image {
        height: min(52vw, 280px) !important;
        max-height: 300px;
    }

    .thumbnail-container {
        gap: 8px !important;
    }

    .thumbnail-container .thumbnail {
        width: 72px !important;
        height: 54px !important;
    }

    .detail-page-head {
        flex-direction: column;
    }

    .detail-page-title {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        font-size: 18px;
        line-height: 1.25;
    }

    .detail-price-box .price {
        font-size: 22px;
    }

    .detail-price-box .button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .al-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .dash-my-card__actions {
        flex-direction: column;
    }

    .dash-mini-btn {
        justify-content: center;
        width: 100%;
    }
    .account-settings__grid {
        grid-template-columns: 1fr;
    }
}

/* Profilim (/profilim/) — Hesap ayarları aşağıda */
.profile-dashboard {
    max-width: 1040px;
    margin: 0 auto;
}

.dash-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 28px;
    align-items: flex-start;
    padding: 26px;
    margin-bottom: 22px;
    background: linear-gradient(155deg, #ffffff 0%, #f1f5f9 55%, #e8eff7 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

.dash-hero__avatar {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 6px 20px rgba(51, 65, 85, 0.2);
    background: linear-gradient(145deg, #64748b, #334155);
}

.dash-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dash-hero__avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.dash-hero__body {
    flex: 1;
    min-width: 220px;
}

.dash-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    margin-bottom: 8px;
}

.dash-hero__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.dash-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.dash-chip__ico {
    font-size: 16px !important;
}

.dash-chip--ok {
    color: #0f766e;
    background: #ccfbf1;
    border-color: #99f6e4;
}

.dash-chip--warn {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.dash-hero__email {
    margin: 0 0 6px;
    font-size: 14px;
    color: #334155;
    word-break: break-word;
}

.dash-hero__uni {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.dash-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 12px;
}

.dash-stat {
    font-size: 13px;
    color: #64748b;
}

.dash-stat strong {
    color: #0f172a;
    font-weight: 800;
    margin-right: 4px;
}

.dash-hero__links {
    margin-top: 4px;
}

.dash-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0056b3 !important;
    text-decoration: none !important;
}

.dash-text-link:hover {
    text-decoration: underline !important;
}

.dash-text-link .material-symbols-outlined {
    font-size: 18px !important;
}

.dash-quick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.dash-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.dash-tile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.dash-tile--accent {
    background: linear-gradient(145deg, #eff6ff 0%, #fff 100%);
    border-color: #bfdbfe;
}

.dash-tile--danger {
    background: linear-gradient(145deg, #fef2f2 0%, #fff 100%);
    border-color: #fecaca;
}

.dash-tile__ico {
    font-size: 28px !important;
    color: var(--primary-color);
}

.dash-tile--accent .dash-tile__ico {
    color: #0369a1;
}

.dash-tile--danger .dash-tile__ico {
    color: #dc2626;
}

.dash-tile__label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.dash-section {
    margin-bottom: 32px;
}

.dash-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.dash-section__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.dash-section__count {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 11px;
    border-radius: 999px;
}

.dash-my-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.dash-my-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.dash-my-card--sold {
    opacity: 0.92;
}

.dash-my-card__media {
    text-decoration: none !important;
    color: inherit !important;
}

.dash-my-card__img-wrap {
    position: relative;
}

.dash-sold-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: #64748b;
    border-radius: 999px;
}

.dash-my-card__body {
    padding: 12px 14px 10px;
}

.dash-my-card__title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-my-card__price {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
}

.dash-my-card__price--muted {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

.dash-my-card__date {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.dash-my-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.dash-my-card__form {
    margin: 0;
    display: inline-flex;
}

.dash-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none !important;
    background: #e2e8f0;
    color: #334155 !important;
    font-family: inherit;
    transition: background 0.12s ease, transform 0.1s ease;
}

.dash-mini-btn .material-symbols-outlined {
    font-size: 17px !important;
}

.dash-mini-btn:hover {
    background: #cbd5e1;
}

.dash-mini-btn--gold {
    background: #fef08a;
    color: #713f12 !important;
}

.dash-mini-btn--gold:hover {
    background: #fde047;
}

.dash-mini-btn--orange {
    background: #fed7aa;
    color: #9a3412 !important;
}

.dash-mini-btn--orange:hover {
    background: #fdba74;
}

.dash-mini-btn--danger {
    background: #fecaca;
    color: #991b1b !important;
}

.dash-mini-btn--danger:hover {
    background: #fca5a5;
}

.dash-empty {
    padding: 36px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.dash-empty__text {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 15px;
}

.dash-empty__cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    font-weight: 700;
    font-size: 14px;
    color: #fff !important;
    background: var(--primary-color);
    border-radius: 10px;
    text-decoration: none !important;
}

.dash-empty__cta:hover {
    background: var(--primary-hover);
    color: #fff !important;
}

/* Account Settings Modernization */
.account-settings {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.account-settings__header {
    margin-bottom: 2rem;
}

.account-settings__title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.account-settings__lead {
    color: #64748b;
    font-size: 1.1rem;
}

/* Verification Alert */
.settings-verification-alert {
    display: flex;
    gap: 1.25rem;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.settings-verification-alert__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: #ffe4e6;
    color: #e11d48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-verification-alert__icon .material-symbols-outlined {
    font-size: 1.75rem;
    font-variation-settings: 'FILL' 1;
}

.settings-verification-alert__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #9f1239;
    margin-bottom: 0.5rem;
}

.settings-verification-alert__text {
    color: #be123c;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.settings-verification-alert__btn {
    background: #e11d48;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-verification-alert__btn:hover {
    background: #be123c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* Settings Grid & Cards */
.account-settings__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.settings-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.settings-card__header {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-card__header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.settings-card__header .material-symbols-outlined {
    color: #64748b;
    font-size: 1.25rem;
}

.settings-card__body {
    padding: 1.5rem;
}

.settings-card--compact .settings-card__body {
    padding: 1.25rem;
}

/* Modern Form Styles */
.modern-form .form-section {
    margin-bottom: 2.5rem;
}

.modern-form .form-section:last-of-type {
    margin-bottom: 1.5rem;
}

.modern-form .form-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fcfdfe;
    transition: all 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Buttons and Links */
.button--full {
    width: 100%;
    justify-content: center;
}

.button--outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}

.button--outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1e293b;
}

.text-muted {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.mt-3 { margin-top: 0.75rem; }
.text-xs { font-size: 0.75rem; }
.link { color: #3b82f6; text-decoration: underline; }

@media (max-width: 900px) {
    .account-settings__grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .account-settings {
        margin: 1rem auto;
    }
    
    .settings-verification-alert {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }
}


/* Sidebar floating picker (desktop + mobile baseline) */
.sidebar-native-select {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Sidebar picker overrides specifically for .sidebar-box.filter-box on desktop */
.sidebar-box.filter-box .sidebar-combobox__trigger {
    height: var(--sidebar-picker-trigger-h, 36px);
    min-height: var(--sidebar-picker-trigger-h, 36px);
    max-height: var(--sidebar-picker-trigger-h, 36px);
}
@media (min-width: 769px) {
    .sidebar-box.filter-box .sidebar-combobox__panel {
        top: -6px;
        left: calc(100% + 10px);
        right: auto;
        width: min(360px, 80vw);
    }
}

/* Sidebar picker visual polish (calmer, cleaner, aligned) */
.sidebar-box.filter-box .sidebar-combobox.is-open {
    /* Above #filter-map (z-index:1); otherwise Leaflet steals clicks on the campus dropdown. */
    z-index: 2100;
}

.sidebar-box.filter-box .sidebar-combobox {
    margin-bottom: 10px;
    --sidebar-picker-trigger-h: 32px;
}

.sidebar-box.filter-box .sidebar-combobox__chip-wrap {
    display: none;
}

.sidebar-box.filter-box .sidebar-combobox__trigger {
    border: 1px solid #c7d2e5;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    box-shadow: none;
    padding: 0 9px;
    font-size: 13px;
    line-height: 1;
    box-sizing: border-box;
    transition: border-color 0.16s ease, background-color 0.16s ease;
    min-width: 0;
    overflow: hidden;
    gap: 6px;
}

.sidebar-box.filter-box .sidebar-combobox__trigger:hover {
    border-color: #9fb2d0;
    background: linear-gradient(180deg, #ffffff 0%, #ecf2ff 100%);
    box-shadow: none;
    transform: none;
}

.sidebar-box.filter-box .sidebar-combobox__trigger-text {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.sidebar-box.filter-box .sidebar-combobox__trigger .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar-box.filter-box .sidebar-combobox__panel {
    width: min(360px, 78vw);
    max-width: calc(100vw - 24px);
    border: 1px solid #cfdaed;
    border-radius: 14px;
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.24);
    padding: 10px 10px 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    overflow-x: hidden;
    box-sizing: border-box;
}

.sidebar-box.filter-box .sidebar-combobox__list {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 14px;
}

.sidebar-box.filter-box .sidebar-combobox__search {
    border: 1px solid #c9d6ea;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
    margin-bottom: 8px;
    color: #0f172a;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sidebar-box.filter-box .sidebar-combobox__search:focus {
    outline: none;
    border-color: #7ea2d6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.sidebar-box.filter-box .sidebar-combobox__group {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    padding: 6px 8px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-box.filter-box .sidebar-combobox__option {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 5px;
    padding: 10px 14px;
    font-size: 13px;
    gap: 6px;
    align-items: center;
    min-height: 36px;
    box-shadow: none;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.sidebar-box.filter-box .sidebar-combobox__option:hover,
.sidebar-box.filter-box .sidebar-combobox__option.is-active {
    background: #eef4ff;
    border-color: #bcd0f3;
    color: #0f172a;
    transform: none;
    box-shadow: none;
}

.sidebar-box.filter-box .sidebar-combobox__option-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    word-break: normal;
}

.sidebar-box.filter-box .sidebar-combobox__option .material-symbols-outlined {
    flex-shrink: 0;
}

/* Sidebar filter map: expand (combobox-style overlay) */
.filter-map-wrap {
    position: relative;
    margin-bottom: 10px;
    z-index: 1;
}

.filter-map-expand-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1002;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #334155;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-map-expand-btn:hover {
    background: #fff;
    border-color: #94a3b8;
    color: #0f172a;
}

.filter-map-expand-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.filter-map-expand-btn .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.filter-map-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10060;
    box-sizing: border-box;
    pointer-events: none;
}

.filter-map-modal.is-open {
    display: block;
}

.filter-map-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: transparent;
    pointer-events: auto;
    cursor: default;
}

.filter-map-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1920px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid #b8c9e8;
    border-radius: 14px;
    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.08),
        0 12px 28px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: auto;
}

.filter-map-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

@media (min-width: 768px) and (pointer: fine) {
    .filter-map-modal__toolbar {
        cursor: grab;
        user-select: none;
    }

    .filter-map-modal__toolbar:active {
        cursor: grabbing;
    }

    .filter-map-modal__close {
        cursor: pointer;
    }
}

.filter-map-modal__title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.filter-map-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.filter-map-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.filter-map-modal__close .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}

.filter-map-modal__map {
    width: 100%;
    min-width: 0;
    flex: 1;
    min-height: min(52vh, 520px);
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.filter-map-modal__map .leaflet-container {
    font-family: inherit;
}

/* SEO city × topic landings (/ilan/…/) */
.seo-city-landing {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    max-width: 100%;
}
.seo-city-landing__h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary-color);
    line-height: 1.25;
}
.seo-city-landing__intro {
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}
.seo-city-landing__nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin-bottom: 6px;
}
.seo-city-landing__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.seo-city-landing__links a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
}
.seo-city-landing__links a:hover {
    text-decoration: underline;
}

/* Homepage Welcome SEO */
.homepage-welcome-seo {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.homepage-welcome-seo__h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--primary-color);
    line-height: 1.2;
}
.homepage-welcome-seo__sub {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .homepage-welcome-seo {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    .homepage-welcome-seo__h1 {
        font-size: 1.25rem;
    }
    .homepage-welcome-seo__sub {
        font-size: 0.9rem;
    }
}

/* Footer SEO city links */
.footer-col--seo-landings {
    max-width: 320px;
}
.footer-seo-intro {
    color: #95a5a6;
    font-size: 12px;
    margin: 0 0 10px;
    line-height: 1.4;
}
.footer-seo-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 0;
    max-height: 220px;
    overflow-y: auto;
    font-size: 12px;
}
.footer-seo-grid a {
    color: #bdc3c7;
    text-decoration: none;
}
.footer-seo-grid a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-seo-mobile {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    color: #95a5a6;
    line-height: 1.5;
}
.footer-seo-mobile a {
    color: #7fb3d5;
    text-decoration: none;
}
.footer-seo-mobile-label {
    display: block;
    margin-bottom: 4px;
    color: #7f8c8d;
}

/* native-select-combobox.js — ana sütunda panel aşağı açılsın (masaüstü) */
@media (min-width: 769px) {
    .content-area .native-select-combobox .sidebar-combobox__panel {
        left: 0 !important;
        right: auto;
        top: calc(100% + 4px);
        width: 100% !important;
        max-width: 100% !important;
        transform: none;
    }
}

.native-select-combobox {
    box-sizing: border-box;
}

.sidebar-box.filter-box .native-select-combobox--compact .sidebar-combobox__trigger {
    --sidebar-picker-trigger-h: 34px;
    min-height: 34px;
    max-height: 34px;
}

.sidebar-filter-submit--loading {
    opacity: 0.65;
    pointer-events: none;
}

/* Hierarchical Taxonomy UI */
.al-cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.al-cat-back-btn {
    background: #ffffff;
    border: 1px solid #dee2e6;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s;
}

.al-cat-back-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.al-cat-path {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.al-cat-path span {
    color: #0d6efd;
}

.al-brand-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.al-brand-input-wrap {
    position: relative;
    margin-top: 8px;
}

.al-brand-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: static;
    padding: 0;
    max-height: none;
    overflow: visible;
}

.al-brand-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.al-brand-suggestion-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.al-brand-suggestion-chip:hover {
    background: #334155;
    border-color: #334155;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.al-brand-suggestion-chip:active {
    transform: translateY(0);
}

#al-cat-note {
    margin-top: 12px;
    color: #059669;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#al-cat-note::before {
    content: 'ℹ️';
    font-size: 14px;
}

/* --- Force Mobile Fixes (End of File to override previous declarations) --- */
@media (max-width: 768px) {
    /* Dimmed Backdrop for Mobile Filter: covers ONLY main content below pillbox */
    .mobile-filter-backdrop {
        display: none;
        position: fixed;
        top: calc(var(--mobile-header-h, 54px) + 44px);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(1.5px);
        -webkit-backdrop-filter: blur(1.5px);
        z-index: 1150;
        opacity: 0;
        transition: opacity 0.15s ease;
        pointer-events: none;
        touch-action: none;
    }
    .mobile-filter-backdrop.is-open {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Mobile search row with optional close button */
    .sidebar-combobox__search-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 8px !important;
    }
    .sidebar-combobox__search-wrap .sidebar-combobox__search {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-bottom: 0 !important;
    }
    .sidebar-combobox__search-close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 50% !important;
        border: 1px solid #cbd5e1 !important;
        background: #f1f5f9 !important;
        color: #475569 !important;
        cursor: pointer !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        transition: all 0.15s ease !important;
    }
    .sidebar-combobox__search-close:hover,
    .sidebar-combobox__search-close:active {
        background: #e2e8f0 !important;
        color: #0f172a !important;
    }
    .sidebar-combobox__search-close .material-symbols-outlined {
        font-size: 18px !important;
    }

    /* Fix: Prevent dropdowns from opening to the right on mobile (general fallback) */
    .sidebar-combobox__panel,
    .native-select-combobox .sidebar-combobox__panel {
        position: fixed !important;
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        top: auto !important;
        bottom: calc(var(--mobile-bottom-nav-h, 52px) + 8px) !important;
        transform: translateY(14px) scale(0.98) !important;
        transform-origin: bottom center !important;
        z-index: 10001 !important;
        display: none !important; /* Hide by default */
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 14px !important;
        box-shadow: 0 20px 45px -4px rgba(15, 23, 42, 0.28) !important;
        padding: 12px 12px 8px !important;
        box-sizing: border-box !important;
    }

    /* Pillbox popups: second select form opens right over the first popup (overwrite) */
    .sidebar-box.filter-box .sidebar-combobox__panel,
    .sidebar-box.filter-box .native-select-combobox .sidebar-combobox__panel {
        position: fixed !important;
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        top: var(--mobile-filter-popdown-top, calc(var(--mobile-header-h, 54px) + 44px)) !important;
        bottom: auto !important;
        max-height: calc(100vh - var(--mobile-filter-popdown-top, 98px) - var(--mobile-bottom-nav-h, 52px) - 20px) !important;
        border-radius: 12px !important;
        transform: translateY(-4px) scale(0.98) !important;
        transform-origin: top center !important;
        z-index: 10005 !important;
        display: none !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.08) !important;
        padding: 10px 10px 8px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .sidebar-combobox.is-open > .sidebar-combobox__panel,
    .sidebar-box.filter-box .sidebar-combobox.is-open > .sidebar-combobox__panel,
    .native-select-combobox.is-open > .sidebar-combobox__panel {
        display: block !important;
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sidebar-box.filter-box .sidebar-combobox__list,
    .sidebar-box.filter-box .native-select-combobox .sidebar-combobox__list {
        max-height: calc(100vh - var(--mobile-filter-popdown-top, 98px) - var(--mobile-bottom-nav-h, 52px) - 86px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .sidebar-box.filter-box .sidebar-combobox__search,
    .native-select-combobox .sidebar-combobox__search {
        height: 38px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        padding: 0 10px !important;
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    }
    .sidebar-box.filter-box .sidebar-combobox__search:focus,
    .native-select-combobox .sidebar-combobox__search:focus {
        border-color: #1e293b !important;
        box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.12) !important;
        outline: none !important;
    }
    .sidebar-box.filter-box .sidebar-combobox__search::placeholder,
    .native-select-combobox .sidebar-combobox__search::placeholder {
        color: #94a3b8 !important;
        font-weight: 400 !important;
    }

    .sidebar-box.filter-box .sidebar-combobox__group,
    .native-select-combobox .sidebar-combobox__group {
        color: #475569 !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        padding: 6px 4px 4px !important;
    }

    .sidebar-box.filter-box .sidebar-combobox__option,
    .native-select-combobox .sidebar-combobox__option {
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-weight: 500 !important;
        font-size: 13px !important;
        min-height: 36px !important;
        margin-bottom: 4px !important;
        padding: 8px 10px !important;
        transition: all 0.15s ease !important;
    }
    .sidebar-box.filter-box .sidebar-combobox__option:hover,
    .native-select-combobox .sidebar-combobox__option:hover {
        background: #f8fafc !important;
        border-color: #cbd5e1 !important;
    }
    .sidebar-box.filter-box .sidebar-combobox__option.is-active,
    .native-select-combobox .sidebar-combobox__option.is-active {
        background: #f1f5f9 !important;
        border-color: #1e293b !important;
        color: #0f172a !important;
        font-weight: 600 !important;
    }
    .sidebar-box.filter-box .sidebar-combobox__option-icon,
    .native-select-combobox .sidebar-combobox__option-icon {
        color: #1e293b !important;
    }

    /* Mobile Popdown attached right below the filter strip */
    .sidebar-box.filter-box.is-open,
    body.page-search .sidebar-box.filter-box.is-open,
    body.page-home .sidebar-box.filter-box.is-open {
        position: fixed !important;
        top: calc(var(--mobile-header-h, 54px) + 44px); /* Fallback; dynamically positioned via JS right below strip */
        left: 14px !important;
        right: 14px !important;
        margin: 0 auto !important;
        width: auto !important;
        max-width: 390px !important;
        transform: none !important;
        padding: 0 !important;
        text-align: left !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.05) !important;
        background: #ffffff !important;
        display: block !important;
        max-height: calc(100vh - var(--mobile-header-h, 54px) - var(--mobile-bottom-nav-h, 54px) - 60px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 1260 !important;
    }

    .sidebar-box.filter-box.is-open form {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 14px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-section {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-section-title,
    .sidebar-box.filter-box.is-open .sidebar-filter-section-heading {
        text-align: left !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 0 5px 0 !important;
        color: #475569 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-input-row {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-filter-input-row .sidebar-filter-input {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-select,
    .sidebar-box.filter-box.is-open .sidebar-filter-input,
    .sidebar-box.filter-box.is-open .sidebar-combobox,
    .sidebar-box.filter-box.is-open .sidebar-combobox__trigger {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 6px 0 !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-select,
    .sidebar-box.filter-box.is-open .sidebar-filter-input,
    .sidebar-box.filter-box.is-open .sidebar-combobox__trigger {
        height: 38px !important;
        min-height: 38px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        background-color: #f8fafc !important;
        color: #0f172a !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        padding: 0 10px !important;
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
        transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-select:focus,
    .sidebar-box.filter-box.is-open .sidebar-filter-input:focus,
    .sidebar-box.filter-box.is-open .sidebar-combobox.is-open .sidebar-combobox__trigger {
        background-color: #ffffff !important;
        border-color: #1e293b !important;
        box-shadow: 0 0 0 2px rgba(30, 41, 59, 0.12) !important;
        outline: none !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-input::placeholder {
        color: #94a3b8 !important;
        font-weight: 400 !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23475569' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 8px center !important;
        padding-right: 32px !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-combobox__trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-combobox__trigger-text {
        color: #0f172a !important;
        font-weight: 500 !important;
        font-size: 13px !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-combobox__trigger .material-symbols-outlined {
        color: #64748b !important;
        font-size: 18px !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-group {
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        padding: 8px 10px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-group__title {
        text-align: left !important;
        justify-content: flex-start !important;
        color: #1e293b !important;
        font-weight: 600 !important;
        font-size: 12.5px !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-filter-actions {
        width: 100% !important;
        margin: 10px 0 0 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-filter-submit {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 38px !important;
        padding: 0 8px !important;
        background: #1e293b !important;
        color: #ffffff !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        border: none !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12) !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        transition: all 0.15s ease !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-filter-submit svg {
        flex-shrink: 0 !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-filter-submit:hover,
    .sidebar-box.filter-box.is-open .sidebar-filter-submit:active {
        background: #0f172a !important;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18) !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-filter-clear {
        flex: 1.15 1 0 !important;
        min-width: 0 !important;
        height: 38px !important;
        padding: 0 6px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        color: #475569 !important;
        font-size: 11.5px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        transition: all 0.15s ease !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-filter-clear svg {
        flex-shrink: 0 !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-filter-clear:hover,
    .sidebar-box.filter-box.is-open .sidebar-filter-clear:active {
        background: #f8fafc !important;
        border-color: #94a3b8 !important;
        color: #0f172a !important;
    }

    .sidebar-box.filter-box.is-open .sidebar-locate-btn {
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #475569 !important;
        font-weight: 500 !important;
        font-size: 11.5px !important;
        border-radius: 999px !important;
        padding: 4px 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-locate-btn:hover {
        background: #f8fafc !important;
        border-color: #94a3b8 !important;
        color: #0f172a !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-range-label {
        color: #334155 !important;
        font-weight: 600 !important;
        font-size: 12px !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-range-value {
        color: #0f172a !important;
        font-weight: 700 !important;
    }
    .sidebar-box.filter-box.is-open .sidebar-range-input {
        accent-color: #1e293b !important;
    }
}

/* Desktop Taxonomy Dropdown */
.sidebar-category-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.taxonomy-dropdown {
    position: relative;
    display: inline-block;
}
.taxonomy-dropdown__btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    color: #475569;
}
.taxonomy-dropdown__content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.taxonomy-dropdown__content a {
    color: #334155;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-size: 12px;
}
.taxonomy-dropdown__content a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}
.taxonomy-dropdown:hover .taxonomy-dropdown__content {
    display: block;
}

/* Sidebar Back Button */
.category-nav-back {
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}
.cat-item--back {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}
.cat-back-label {
    font-size: 13px;
}

/* Home Category Tags - Letgo style */
.home-category-tags {
    margin: 0;
    padding: 8px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 100%;
}
.home-category-tags::-webkit-scrollbar { display: none; }

.taxonomy-breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 6px;
}
.taxonomy-breadcrumb__item {
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
}
.taxonomy-breadcrumb__item:last-child {
    color: var(--primary-color);
    font-weight: 500;
}
.taxonomy-breadcrumb__separator {
    color: #e2e8f0;
}
.home-category-tags__inner {
    display: flex;
    gap: 10px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.home-category-tags__inner::-webkit-scrollbar { display: none; }
.home-cat-tag {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 3px;
    min-width: 48px;
}
.home-cat-tag__emoji {
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Material Symbols Outlined';
    font-size: 17px;
    color: #475569;
    transition: background 0.15s, color 0.15s;
}
.home-cat-tag:hover .home-cat-tag__emoji {
    background: var(--primary-color);
    color: #fff;
}
.home-cat-tag__name {
    font-size: 9px;
    color: #64748b;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48px;
}

/* Per-category colors for home-category-tags (mirrors sidebar rail) */
.home-category-tags__inner li:nth-child(1) .home-cat-tag__emoji,
.home-category-tags__inner a:nth-child(1) .home-cat-tag__emoji { background: #eef2ff; color: #4f46e5; }
.home-category-tags__inner a:nth-child(2) .home-cat-tag__emoji { background: #e0f2fe; color: #0284c7; }
.home-category-tags__inner a:nth-child(3) .home-cat-tag__emoji { background: #fef3c7; color: #d97706; }
.home-category-tags__inner a:nth-child(4) .home-cat-tag__emoji { background: #d1fae5; color: #059669; }
.home-category-tags__inner a:nth-child(5) .home-cat-tag__emoji { background: #ede9fe; color: #7c3aed; }
.home-category-tags__inner a:nth-child(6) .home-cat-tag__emoji { background: #ffedd5; color: #ea580c; }
.home-category-tags__inner a:nth-child(7) .home-cat-tag__emoji { background: #fce7f3; color: #db2777; }
.home-category-tags__inner a:nth-child(8) .home-cat-tag__emoji { background: #dbeafe; color: #2563eb; }
.home-category-tags__inner a:nth-child(9) .home-cat-tag__emoji { background: #ecfccb; color: #65a30d; }
.home-category-tags__inner a:nth-child(10) .home-cat-tag__emoji { background: #e0f2fe; color: #0284c7; }

/* ================================================================
   Taxonomy tree connectors
   ----------------------------------------------------------------
   Paste at the BOTTOM of:  core/static/core/style.css
   Then bump the ?v= query string in base.html's <link> for style.css.
   Do NOT modify base.html, category_icon.html or any template.
   Scoped to .taxonomy-tree only — affects no other part of the site.
   ================================================================ */

.taxonomy-tree,
.taxonomy-tree ul[role="group"] {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Tight indent — each nest step is only 12px wide */
.taxonomy-tree ul[role="group"] {
    margin-left: 10px;
}

.taxonomy-tree ul[role="group"] > .node {
    position: relative;
    padding-left: 12px;
    overflow: visible;
}

/* Vertical guide line (per-node so :last-child can shorten it) */
.taxonomy-tree ul[role="group"] > .node::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e1;
}

/* Rounded elbow into each row */
.taxonomy-tree ul[role="group"] > .node::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 20px;
    border-left: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    border-bottom-left-radius: 8px;
    z-index: 1;
    background: transparent;
}

/* Last child: vertical line stops at the elbow (no dangling tail) */
.taxonomy-tree ul[role="group"] > .node:last-child::after {
    height: 20px;
}

/* Hierarchy emphasis — existing .cat-item.active styling is preserved */
.taxonomy-tree .tree-parent > .cat-item {
    font-weight: 600;
    color: #1e293b;
}
.taxonomy-tree .tree-active > .cat-item.active {
    font-weight: 700;
}
.taxonomy-tree .tree-child .cat-icon-pill {
    opacity: 0.85;
}

/* Reduce size of icons and text in taxonomy tree to fit better */
.taxonomy-tree .cat-item {
    gap: 8px;
    padding: 6px 8px;
    font-size: 13.5px;
}

.taxonomy-tree .cat-item .cat-icon-pill {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.taxonomy-tree .cat-item .cat-icon-font {
    font-size: 16px;
}

/* Sidebar "Show More" Button Styling */
.sidebar-show-more-node {
    padding: 4px 8px 8px;
}

.sidebar-show-more-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    width: 100%;
}

.sidebar-show-more-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.sidebar-show-more-btn .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.2s;
}

.taxonomy-tree.is-expanded .sidebar-show-more-btn .material-symbols-outlined {
    transform: rotate(180deg);
}

.taxonomy-tree .extra-node {
    display: none !important;
}

.taxonomy-tree.is-expanded .extra-node {
    display: block !important;
}

/* ==========================================================================
   Prominent Phone Alert & Top Phone Section in Account Settings
   ========================================================================== */
.settings-phone-alert {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.25rem;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.25), 0 8px 10px -6px rgba(245, 158, 11, 0.2);
    animation: phoneAlertPulse 3s ease-in-out infinite alternate;
}

@keyframes phoneAlertPulse {
    0% {
        box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.25), 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    100% {
        box-shadow: 0 14px 30px -5px rgba(245, 158, 11, 0.35), 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.settings-phone-alert__icon {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

.settings-phone-alert__icon .material-symbols-outlined {
    font-size: 2.25rem;
    font-variation-settings: 'FILL' 1;
}

.settings-phone-alert__content {
    flex: 1;
}

.settings-phone-alert__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #92400e;
    margin-top: 0;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.settings-phone-alert__text {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #78350f;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.settings-phone-alert__action {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.settings-phone-alert__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d97706;
    color: white !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    transition: all 0.2s ease;
}

.settings-phone-alert__btn:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

.settings-phone-alert__btn .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Phone Field Form Section Highlight */
.form-section--phone-highlight {
    background: #fffdf7;
    border: 2px solid #fed7aa;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.form-section--phone-highlight.is-required-highlight {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.form-section__header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-section__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section__icon-phone {
    font-size: 1.75rem;
    color: #d97706;
    background: #fef3c7;
    padding: 6px;
    border-radius: 10px;
}

.phone-required-tag {
    display: inline-block;
    background: #fed7aa;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.phone-label-prominent {
    display: block;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 8px;
}

.text-required {
    color: #ef4444;
    font-weight: bold;
}

.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-input-icon {
    position: absolute;
    left: 14px;
    color: #f59e0b;
    font-size: 1.35rem;
    pointer-events: none;
    z-index: 2;
}

.phone-input-container .input--phone {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: white !important;
    transition: all 0.2s ease !important;
}

.phone-input-container .input--phone:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2) !important;
    outline: none !important;
}

.phone-input-help {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 6px;
}

.phone-public-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 0.92rem !important;
    color: #334155 !important;
    font-weight: 500 !important;
    margin: 4px 0 0 0 !important;
}

.phone-public-checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #d97706;
    cursor: pointer;
}

@media (max-width: 768px) {
    .settings-phone-alert {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }
    .settings-phone-alert__icon {
        width: 3.25rem;
        height: 3.25rem;
    }
    .settings-phone-alert__title {
        font-size: 1.15rem;
    }
    .settings-phone-alert__text {
        font-size: 0.95rem;
    }
}
