@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   MaximizeCar.com - Optimized responsive stylesheet
   Fekete / fehér / narancs arculat
   ========================================================= */

:root {
    --primary: #070707;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-soft: rgba(249, 115, 22, 0.12);
    --bg: #f6f6f6;
    --surface: #ffffff;
    --text: #111111;
    --text-soft: #626873;
    --border: #ececec;
    --danger: #ef4444;
    --success: #15803d;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 8px 22px rgba(0,0,0,0.06);
    --shadow: 0 18px 50px rgba(0,0,0,0.08);
    --header-height: 78px;
    --mobile-nav-height: 58px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    padding-bottom: 0;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.mc-header,
header.mc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: #000 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.20);
    display: flex;
    align-items: center;
}

.nav-container,
.mc-nav-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo,
.mc-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.mc-logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.desktop-nav,
.mc-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.mc-desktop-nav .nav-link,
.mc-desktop-nav .nav-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,0.86) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.mc-desktop-nav .nav-link:hover,
.mc-desktop-nav .nav-icon-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.logout-btn {
    color: #fb7185 !important;
}

.nav-unread-dot {
    position: absolute;
    top: -5px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    border: 2px solid #070707;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn-u,
.btn-modern-search {
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: .2s ease;
}

.btn-u {
    min-height: 52px;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-u.primary,
.btn-u.primary.btn-full,
.menu-action-box .btn-u.primary,
.mc-upload-btn,
.btn-u.primary.mc-upload-btn,
#commentSubmitBtn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(249,115,22,0.28);
}

.btn-u.secondary {
    background: #f4f4f5;
    color: #111;
    border: 1px solid #eee;
}

.btn-u.ghost {
    background: #fff;
    color: #111;
    border: 1px solid #e5e5e5;
}

.btn-u.secondary:hover,
.btn-u.ghost:hover,
.mc-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.btn-full {
    width: 100%;
}

.mc-upload-btn {
    border-radius: 14px !important;
    padding: 14px 22px !important;
    white-space: nowrap;
}

.action-buttons-ultra {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================================
   Hero / Search
   ========================================================= */

.search-hero.mc-search-hero,
.search-hero {
    position: relative;
    min-height: 430px;
    padding: 66px 20px 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.72) 36%, rgba(0,0,0,0.30) 100%),
        radial-gradient(circle at 72% 42%, rgba(249,115,22,0.32), transparent 30%),
        url("../img/hero-bg.png") center / cover no-repeat !important;
    overflow: visible;
}

.search-hero.mc-search-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 130px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.76));
    pointer-events: none;
}

.hero-content,
.mc-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
}

.mc-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(249,115,22,0.18);
    border: 1px solid rgba(249,115,22,0.45);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero-title {
    color: #fff !important;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    max-width: 760px;
    margin: 0 0 18px;
    letter-spacing: -2px;
    font-weight: 900;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    color: rgba(255,255,255,0.88) !important;
    font-size: 18px;
    margin: 0 0 30px;
    max-width: 700px;
}

.filter-glass-bar,
.mc-filter-card {
    width: 100%;
    max-width: 1320px;
    overflow: visible;
    background: rgba(255,255,255,0.97) !important;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 24px !important;
    padding: 18px !important;
    box-shadow: 0 25px 65px rgba(0,0,0,0.30) !important;
}

.modern-search-form,
.mc-search-form {
    width: 100%;
    display: grid !important;
    grid-template-columns:
        minmax(190px,1.28fr)
        minmax(165px,.95fr)
        minmax(230px,1.05fr)
        minmax(210px,1fr)
        minmax(125px,.68fr)
        150px;
    align-items: stretch;
    gap: 0;
    min-width: 0;
}

.input-with-icon,
.mc-search-field {
    position: relative;
    height: 72px;
    min-width: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.border-left-desktop {
    border-left: 1px solid #eee;
}

.mc-search-field i,
.input-with-icon i {
    flex: 0 0 auto;
    color: #111;
    font-size: 18px;
    margin-right: 14px;
}

.field-stack {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.field-stack input,
.field-stack select,
.input-with-icon input,
.input-with-icon select {
    width: 100%;
    min-width: 0;
    height: 28px;
    border: none;
    outline: none;
    background: transparent;
    color: #111;
    padding: 0;
    font-size: 16px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-stack small {
    display: block;
    color: #8b9099;
    font-size: 13px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-field-price {
    min-width: 230px;
}

.search-field-price .price-field-inner {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 115px;
    align-items: center;
    gap: 10px;
}

.search-field-price .currency-select {
    width: 115px !important;
    min-width: 115px !important;
    max-width: 115px !important;
    height: 44px;
    border-radius: 14px;
    background: #f5f5f5;
    padding: 0 12px !important;
    font-weight: 900 !important;
    text-align: center;
    text-align-last: center;
}

.search-field-location {
    position: relative;
}

.search-field-location input[type="text"] {
    padding-right: 28px;
}

.clear-location-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 999px;
    background: #eceff3;
    color: #555;
    font-size: 17px;
    line-height: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-field-location:has(input:not(:placeholder-shown)) .clear-location-btn {
    display: inline-flex;
}

.loc-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    z-index: 5000;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.sug-item {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.25;
    border-bottom: 1px solid #f2f2f2;
}

.sug-item:last-child {
    border-bottom: none;
}

.sug-item:hover {
    background: #f5f7fb;
}

.btn-modern-search.mc-search-submit {
    width: 100%;
    height: 64px;
    margin: 4px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 14px 30px rgba(249,115,22,0.32);
    font-weight: 900;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Advanced search panel */
.advanced-toggle-row,
.advanced-filter-panel {
    grid-column: 1 / -1;
}

.advanced-toggle-row {
    width: 100%;
    padding: 16px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.advanced-toggle-btn {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #fff;
    color: #111;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
}

.advanced-toggle-btn i,
.reset-filter-link i {
    color: var(--accent);
}

.reset-filter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #61656d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.advanced-filter-panel {
    display: none;
    width: 100%;
    padding-top: 16px;
}

.advanced-filter-panel.open {
    display: block;
}

.advanced-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    width: 100%;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 16px;
}

.adv-field {
    min-width: 0;
}

.adv-field-wide {
    grid-column: span 2;
}

.adv-field label {
    display: block;
    margin: 0 0 7px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.adv-field input,
.adv-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 13px;
    background: #fff;
    color: #111;
    padding: 0 13px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

.adv-field input:focus,
.adv-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249,115,22,.14);
}

/* =========================================================
   Marketplace / sidebar / cards
   ========================================================= */

.marketplace-container,
.marketplace-content {
    width: 100%;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.modern-side-menu,
.side-menu {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.menu-label {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.side-categories,
.mc-side-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-categories li a,
.mc-side-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555 !important;
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: .2s ease;
}

.mc-side-categories li a span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.mc-side-categories li a i:first-child {
    width: 18px;
    color: #6b7280;
}

.mc-side-categories li a .cat-arrow {
    color: #9ca3af;
    font-size: 12px;
}

.side-categories li a:hover,
.side-categories li a.active,
.mc-side-categories li a:hover,
.mc-side-categories li a.active {
    background: var(--accent-soft) !important;
    color: var(--accent-dark) !important;
}

.results-feed {
    width: 100%;
    min-width: 0;
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.results-feed .section-title,
.section-title {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
}

.modern-car-grid,
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.premium-car-card,
.car-card {
    position: relative;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: .3s ease;
    box-shadow: 0 12px 34px rgba(0,0,0,0.05);
}

.premium-car-card:hover,
.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(0,0,0,0.12);
}

.card-image-box,
.car-image {
    position: relative;
    overflow: hidden;
    background: #eee;
}

.card-image-box img,
.car-image img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.premium-car-card:hover .card-image-box img {
    transform: scale(1.04);
}

.price-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 5;
    background: linear-gradient(135deg, #050505, #272727);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 8px 13px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.30);
    font-size: 18px;
    font-weight: 900;
}

.card-fav-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 99 !important;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-fav-btn i {
    color: #111;
    font-size: 20px;
    transition: .2s ease;
}

.card-fav-btn.active i {
    color: var(--danger);
}

.card-body,
.car-info {
    padding: 22px;
}

.car-title {
    margin: 0 0 10px;
    color: #111;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.7px;
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #5f6671;
    font-size: 15px;
}

.car-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.car-meta i {
    color: #111;
}

/* =========================================================
   Mobile drawer / category menu
   ========================================================= */

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 3500;
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    transition: opacity .25s ease;
}

.menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.mobile-side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 340px);
    height: 100vh;
    height: 100dvh;
    z-index: 4000;
    transform: translateX(-105%);
    transition: transform .28s ease;
    background: #fff;
    box-shadow: 12px 0 35px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
}

.mobile-side-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.close-drawer {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.drawer-scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.drawer-padding {
    padding: 18px 20px 110px;
}

.mobile-filter-pill {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f2f5;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

/* =========================================================
   Mobile bottom navigation
   ========================================================= */

.mobile-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    height: var(--mobile-nav-height);
    padding: 0 20px max(0px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    align-items: center;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-icon {
    font-size: 20px;
}

/* =========================================================
   Listing detail
   ========================================================= */

.listing-wrapper-modern {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-shadow {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.main-image-viewport {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.main-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.thumb-strip {
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: none;
    border-radius: 0 0 16px 16px;
}

.thumb-item {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: .65;
    transition: .2s ease;
}

.thumb-item:hover {
    opacity: 1;
}

.ultra-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 900;
}

.specs-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.spec-box {
    background: #f7f8fa;
    border-radius: 16px;
    padding: 16px;
}

.spec-box span {
    display: block;
    margin-bottom: 6px;
    color: #888;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.spec-box strong {
    color: #111;
    font-size: 16px;
}

.ultra-divider {
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

.description-body {
    line-height: 1.7;
    color: #333;
    font-size: 15px;
}

.location-label {
    color: #555;
    line-height: 1.5;
}

.modern-map {
    height: 350px;
    margin-top: 20px;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
}

.no-map-box {
    margin-top: 20px;
    padding: 20px;
    background: #f7f8fa;
    border-radius: 16px;
    color: #777;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.price-huge {
    color: #000;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 900;
}

.car-name-huge {
    margin: 14px 0 18px;
    color: #333;
    font-size: 25px;
    font-weight: 900;
}

.quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.quick-specs span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f7fa;
    color: #333;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
}

.fav-btn-round {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #f5f7fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-btn-round i {
    color: #ccc;
    font-size: 20px;
}

.fav-btn-round.active {
    background: #fff0f0;
}

.fav-btn-round.active i {
    color: #ff4d4d;
}

.seller-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 18px;
    text-decoration: none;
    color: #111;
}

.seller-card-mini:hover {
    background: #f7f8fa;
}

.seller-avatar,
.comment-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-avatar {
    width: 46px;
    height: 46px;
}

.seller-info {
    flex: 1;
    min-width: 0;
}

.seller-info strong,
.seller-info span {
    display: block;
}

.seller-info span {
    margin-top: 3px;
    color: #777;
    font-size: 13px;
}

.verified-badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    border-radius: 50%;
    background: #e8f8ee;
    color: var(--success);
    font-size: 12px;
}

.safety-tip-modern {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #ffe1c4;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    color: #7c3a00;
    font-size: 14px;
    line-height: 1.5;
}

.safety-tip-modern p {
    margin: 0;
}

/* Comments */
.comments-section {
    margin-top: 28px;
    background: #fff;
    border-radius: 26px;
    padding: 28px;
}

.comments-head {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.comments-head .ultra-title {
    margin: 0;
}

.comments-head span {
    background: #fff3eb;
    color: #f56600;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
}

.comment-form {
    background: #f7f7f8;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 22px;
}

.comment-form textarea,
#modalMsgText {
    width: 100%;
    border: 1px solid #e7e7e7;
    background: #fff;
    border-radius: 18px;
    padding: 15px;
    resize: vertical;
    outline: none;
    font-size: 15px;
}

.comment-form textarea {
    min-height: 110px;
    margin-bottom: 12px;
}

#modalMsgText {
    height: 150px;
    margin-bottom: 15px;
}

.comment-form textarea:focus,
#modalMsgText:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,106,0,0.10);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-card {
    display: flex;
    gap: 12px;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 16px;
    background: #fff;
}

.comment-avatar {
    width: 44px;
    height: 44px;
}

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

.comment-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.comment-top a {
    color: #111;
    font-weight: 900;
    text-decoration: none;
}

.comment-top span {
    color: #999;
    font-size: 12px;
}

.comment-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.login-note,
.empty-text {
    color: #777;
}

.login-note {
    background: #f7f8fa;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.login-note a {
    color: #111;
    font-weight: 900;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    width: 95%;
    max-width: 500px;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #f5f7fa;
    cursor: pointer;
    font-size: 20px;
}

/* Gallery lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0,0,0,0.92);
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.gallery-close,
.gallery-nav {
    position: absolute;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #fff;
    cursor: pointer;
}

.gallery-close {
    top: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
    font-size: 34px;
}

.gallery-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 48px;
    line-height: 1;
}

.gallery-prev {
    left: 28px;
}

.gallery-next {
    right: 28px;
}

.gallery-close:hover,
.gallery-nav:hover {
    background: rgba(255,106,0,0.9);
}

/* =========================================================
   Language dropdown + RTL
   ========================================================= */

.language-dropdown {
    position: relative;
    flex-shrink: 0;
}

.language-current {
    height: 42px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 14px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
    cursor: pointer;
}

.language-current:hover {
    background: rgba(255,255,255,0.14);
}

.flag-icon {
    font-size: 18px;
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 9999;
    display: none;
    width: 220px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 3px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.language-menu.open {
    display: block;
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    border-radius: 12px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
}

.language-menu a:hover,
.language-menu a.active {
    background: #fff3eb;
    color: #f56600;
}

.language-menu a span {
    font-size: 19px;
}

.language-menu a strong {
    font-weight: 800;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .mc-desktop-nav,
html[dir="rtl"] .mc-nav-container {
    flex-direction: row-reverse;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 901px) {
    .mobile-side-drawer,
    .menu-overlay,
    .mobile-filter-pill,
    .mobile-nav {
        display: none !important;
    }

    .listing-wrapper-modern {
        flex-direction: row;
        align-items: flex-start;
    }

    .listing-left-column {
        flex: 1;
        min-width: 0;
    }

    .listing-right-column {
        width: 400px;
        flex-shrink: 0;
    }

    .sticky-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 22px);
    }
}

@media (max-width: 1200px) and (min-width: 901px) {
    .modern-search-form,
    .mc-search-form {
        grid-template-columns: repeat(2, minmax(0,1fr)) 150px;
    }

    .search-field-price {
        min-width: 0;
    }

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

@media (max-width: 900px) {
    :root {
        --header-height: 66px;
    }

    body {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .mc-header,
    header.mc-header {
        height: var(--header-height);
    }

    .mobile-nav {
        display: flex;
    }

    .mc-nav-container,
    .nav-container {
        padding: 0 14px;
    }

    .mc-logo-img {
        height: 42px;
    }

    .nav-desktop-label,
    .mc-desktop-nav .text-link span {
        display: none !important;
    }

    .mc-desktop-nav {
        gap: 3px;
    }

    .mc-desktop-nav .nav-link,
    .mc-desktop-nav .nav-icon-link {
        padding: 9px;
    }

    .logout-btn {
        display: none !important;
    }

    .mc-upload-btn {
        max-width: 128px;
        padding: 11px 12px !important;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mc-upload-btn i {
        display: none;
    }


    .language-dropdown {
        display: block !important;
    }

    .language-current {
        height: 38px;
        padding: 0 9px;
        border-radius: 12px;
        font-size: 12px;
		background-color:#000;
    }

    .language-current .flag-icon {
        font-size: 16px;
    }

    .language-current i {
        display: none;
    }

    .language-menu {
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 18px;
        z-index: 99999;
    }


    .search-hero.mc-search-hero,
    .search-hero {
        min-height: auto;
        padding: 40px 12px 32px;
        align-items: flex-start;
    }

    .mc-hero-kicker {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: 34px;
        letter-spacing: -1.2px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .filter-glass-bar,
    .mc-filter-card {
        max-width: 100%;
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .modern-search-form,
    .mc-search-form {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }

    .input-with-icon,
    .mc-search-field {
        width: 100%;
        height: auto;
        min-height: 58px;
        padding: 8px 12px;
        border-left: none !important;
        border-bottom: 1px solid #eee;
    }

    .mc-search-field i,
    .input-with-icon i {
        width: 22px;
        margin-right: 10px;
        text-align: center;
        font-size: 16px;
    }

    .field-stack input,
    .field-stack select,
    .input-with-icon input,
    .input-with-icon select {
        height: 30px;
        font-size: 15px;
    }

    .field-stack small {
        font-size: 12px;
    }

    .search-field-price {
        min-width: 0;
    }

    .search-field-price .price-field-inner {
        grid-template-columns: 1fr 86px;
        width: 100%;
    }

    .search-field-price .currency-select {
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
        height: 42px;
        border-radius: 12px;
        background: #f5f5f5;
    }

    .search-field-radius {
        border-bottom: none !important;
    }

    .btn-modern-search.mc-search-submit {
        width: 100%;
        height: 52px;
        margin-top: 10px;
        border-radius: 14px;
    }

    .advanced-toggle-row {
        flex-wrap: wrap;
        gap: 10px;
    }

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

    .adv-field-wide {
        grid-column: span 2;
    }

    .mobile-filter-pill {
        display: inline-flex;
    }

    #desktopSideMenu,
    .modern-side-menu,
    .side-menu {
        display: none !important;
    }

    .marketplace-container,
    .marketplace-content {
        display: block;
        margin: 24px auto;
        padding: 0 14px;
    }

    .feed-header {
        align-items: center;
    }

    .results-feed .section-title,
    .section-title {
        font-size: 24px;
    }

    .modern-car-grid,
    .car-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-image-box img,
    .car-image img {
        height: 190px;
    }

    .card-body,
    .car-info {
        padding: 16px;
    }

    .car-title {
        font-size: 19px;
    }

    .car-meta {
        gap: 8px;
        font-size: 13px;
    }

    .listing-wrapper-modern {
        margin: 20px auto;
        padding: 0 12px;
        gap: 18px;
    }

    .card-shadow {
        padding: 20px;
        border-radius: 18px;
    }

    .price-huge {
        font-size: 30px;
    }

    .car-name-huge {
        font-size: 22px;
    }

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

    .modern-map {
        height: 280px;
    }

    .comments-section {
        padding: 20px;
        border-radius: 20px;
    }

    .comment-card {
        align-items: flex-start;
    }

    .comment-top {
        flex-direction: column;
        gap: 3px;
    }

    .modal-content {
        padding: 22px;
        border-radius: 20px;
    }

    .gallery-lightbox {
        padding: 14px;
    }

    .gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 38px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-close {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 560px) {
    .advanced-toggle-row {
        flex-direction: column;
        align-items: stretch;
    }

    .advanced-toggle-btn,
    .reset-filter-link {
        width: 100%;
        justify-content: center;
    }

    .advanced-filter-grid {
        grid-template-columns: 1fr;
    }

    .adv-field-wide {
        grid-column: span 1;
    }

    .modern-car-grid,
    .car-grid {
        grid-template-columns: 1fr;
    }

    .card-image-box img,
    .car-image img {
        height: 220px;
    }
}

@media (max-width: 420px) {
    .mc-logo-img {
        height: 38px;
    }

    .mc-upload-btn {
        max-width: 112px;
    }

    .hero-title {
        font-size: 30px;
    }

    .specs-grid-large {
        grid-template-columns: 1fr;
    }

    .price-row {
        align-items: center;
    }
}
@media (max-width: 800px) {
    body:has(.chat-main-view.active) .mobile-nav {
        display: none !important;
    }

    .chat-main-view.active {
        display: flex !important;
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        z-index: 5000 !important;
        background: #fafafa;
    }

    .chat-header {
        flex-shrink: 0;
    }

    .messages-window {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: 16px;
    }

    .chat-input-bar {
        display: block !important;
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        z-index: 20;
        background: #fff;
        padding: 10px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid #eee;
    }

    #activeChatForm {
        width: 100%;
    }
}

.mobile-lang-switch {
    display: none;
}

@media (max-width: 900px) {
    .mobile-lang-switch {
        display: block;
        margin-bottom: 18px;
        padding: 14px;
        border-radius: 18px;
        background: #f5f5f5;
        border: 1px solid #e8e8e8;
    }

    .mobile-lang-current {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 900;
        margin-bottom: 12px;
        color: #111;
    }

    .mobile-lang-current span {
        font-size: 20px;
    }

    .mobile-lang-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
        max-height: 260px;
        overflow-y: auto;
    }

    .mobile-lang-list a {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 9px 8px;
        border-radius: 12px;
        background: #fff;
        color: #111;
        text-decoration: none;
        font-size: 13px;
        font-weight: 800;
    }

    .mobile-lang-list a.active {
        background: #000;
        color: #fff;
    }

    .mobile-lang-list .flag {
        font-size: 17px;
    }

    .mobile-lang-list .name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.mobile-lang-switcher {
    display: none;
    margin: 10px 0;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.mobile-lang-switcher a {
    display: inline-block;
    padding: 6px 10px;
    margin-right: 6px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}

/* MOBIL */
@media (max-width: 768px) {
    .mobile-lang-switcher {
        display: block;
    }


}

@media (max-width: 900px) {
    .language-dropdown {
        display: block !important;
        position: absolute !important;
        right: 14px !important;
        top: calc(var(--header-height) + 10px) !important;
        z-index: 99999 !important;
        pointer-events: auto !important;
    }

    .language-current {
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .language-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        top: calc(100% + 8px) !important;
        z-index: 100000 !important;
        pointer-events: auto !important;
    }

    .search-hero,
    .search-hero::after,
    .mc-search-hero,
    .mc-search-hero::after {
        pointer-events: auto;
    }

    .search-hero::after,
    .mc-search-hero::after {
        pointer-events: none !important;
    }
}

.view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 14px;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    background: linear-gradient(135deg, #ff6a00, #ff7a1a);
    color: #fff;

    border: none;
    box-shadow: 0 6px 18px rgba(255, 106, 0, 0.25);

    transition: all 0.2s ease;
}

/* hover */
.view-link:hover {
    background: linear-gradient(135deg, #ff7a1a, #ff8c2f);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 106, 0, 0.35);
}

/* active */
.view-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.2);
}

/* ikon */
.view-link i {
    font-size: 12px;
}
.modern-search-form,
.mc-search-form {
    grid-template-columns:
        minmax(240px, 1.6fr)
        minmax(190px, 1fr)
        minmax(310px, 1.25fr)
        160px;
}
.advanced-location-field {
    position: relative;
}

.advanced-location-field input {
    padding-right: 40px !important;
}

.advanced-clear-location {
    display: inline-flex !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
}

.advanced-loc-suggestions {
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
}

.profile-settings {
    margin-left: auto;
}

.settings-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f5f5f5;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
    font-size: 16px;
}

.settings-btn:hover {
    background: #000;
    color: #fff;
    transform: rotate(15deg);
}

@media (max-width: 700px) {
    .profile-settings {
        position:sticky;
        top: 20px;
        right: 20px;


		
		
    }
}

.profile-avatar {
    overflow: hidden;
}

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

.seller-avatar {
    overflow: hidden;
}

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

.chat-header-partner-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    overflow: hidden;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 17px;
}

.chat-header-partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-dev-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    opacity: 0.55;
    transition: 0.2s ease;
}

.footer-dev-logo:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.footer-dev-logo img {
    max-width: 150px;
    height: auto;
    display: block;
}
.legal-page {
    max-width: 1050px;
    margin: 40px auto;
    padding: 0 16px 60px;
}

.legal-card {
    background: #fff;
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 14px 45px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.legal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 22px;
    margin-bottom: 28px;
}

.legal-header h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
}

.legal-header p {
    margin: 0;
    color: #777;
}

.legal-card section {
    margin-bottom: 28px;
}

.legal-card h2 {
    font-size: 21px;
    margin: 0 0 12px;
    font-weight: 900;
    color: #111;
}

.legal-card p {
    color: #444;
    line-height: 1.7;
    margin: 0 0 12px;
}

.legal-card ul {
    margin: 8px 0 14px 20px;
    padding: 0;
}

.legal-card li {
    margin-bottom: 7px;
    color: #444;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .legal-page {
        margin: 22px auto;
        padding: 0 12px 40px;
    }

    .legal-card {
        padding: 24px;
        border-radius: 22px;
    }

    .legal-header h1 {
        font-size: 27px;
    }

    .legal-card h2 {
        font-size: 19px;
    }
}
.profile-link-card{
    margin-top:25px;
    background:#fff;
    border-radius:24px;
    padding:25px;
}

.profile-link-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.profile-link-top h3{
    margin:0;
    font-size:20px;
    font-weight:800;
}

.profile-link-top span{
    color:#777;
    font-size:13px;
}

.profile-link-top i{
    font-size:26px;
    color:var(--accent);
}

.profile-link-box{
    margin-bottom:15px;
}

.profile-link-box input{
    width:100%;
    padding:15px;
    border-radius:14px;
    border:1px solid #ddd;
    background:#f7f7f7;
    font-size:14px;
}

.profile-link-actions{
    align-content: center;
    max-width:100px;
    margin:auto;
    display:flex;
    gap:10px;
}

.profile-link-actions button{
    flex:1;
}

#copyMessage{
    margin-top:15px;
    text-align:center;
    font-size:13px;
    color:#16a34a;
    font-weight:700;
}