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

:root {
    --ink: #17211d;
    --muted: #64706a;
    --paper: #f7f8f4;
    --surface: #ffffff;
    --green: #0d6848;
    --green-dark: #084d36;
    --mint: #dcecdf;
    --border: #dfe4df;
    --shadow: 0 18px 50px rgba(27, 47, 38, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    align-items: center;
    background: rgba(247, 248, 244, 0.94);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    padding: 18px max(24px, calc((100vw - 1180px) / 2));
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    align-items: center;
    display: flex;
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    gap: 10px;
}

.brand-mark {
    align-items: center;
    background: var(--green);
    border-radius: 10px 3px 10px 3px;
    color: white;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    transform: rotate(-3deg);
    width: 34px;
}

nav {
    align-items: center;
    display: flex;
    font-size: 0.93rem;
    font-weight: 600;
    gap: 22px;
}

.nav-form {
    display: inline-flex;
    margin: 0;
}

.user-link {
    font-weight: 700;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    padding: 12px 18px;
}

.button-primary {
    background: var(--green);
    color: white;
}

.button-primary:hover {
    background: var(--green-dark);
}

.button-secondary {
    border: 1px solid var(--border);
}

.hero {
    background:
        radial-gradient(circle at 90% 0%, rgba(242, 166, 90, 0.22), transparent 30%),
        linear-gradient(145deg, #edf3e9 0%, #f7f8f4 65%);
    min-height: 520px;
    padding: 90px max(24px, calc((100vw - 1180px) / 2)) 120px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    color: var(--green);
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
}

h1,
h2 {
    font-family: "Manrope", sans-serif;
    letter-spacing: -0.04em;
    margin: 0;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.02;
    max-width: 780px;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 24px 0 38px;
}

.search-panel {
    align-items: end;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    margin-top: 38px;
    padding: 20px;
}

.search-panel label {
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 8px;
}

.search-panel input,
.search-panel select {
    background: #f8faf7;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--ink);
    min-height: 48px;
    padding: 0 13px;
}

.search-button {
    min-height: 48px;
}

.trust-strip {
    background: var(--surface);
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin: -44px auto 0;
    max-width: 1040px;
    padding: 28px 34px;
    position: relative;
}

.trust-strip div {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trust-strip div:last-child {
    border: 0;
}

.trust-strip span,
.category-card small {
    color: var(--muted);
}

.trust-strip span {
    font-size: 0.9rem;
}

.category-section {
    margin: 0 auto;
    max-width: 1180px;
    padding: 110px 24px;
}

.section-heading {
    margin-bottom: 34px;
}

.category-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

.category-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: grid;
    gap: 22px;
    grid-template-columns: auto 1fr auto;
    padding: 30px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.category-icon {
    align-items: center;
    background: var(--mint);
    border-radius: 50%;
    color: var(--green);
    display: flex;
    font-size: 1.8rem;
    height: 68px;
    justify-content: center;
    width: 68px;
}

.motorcycle .category-icon {
    background: #fbe6cf;
    color: #a65d1e;
}

.category-card strong,
.category-card small {
    display: block;
}

.category-card strong {
    font-family: "Manrope", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.seller-callout {
    align-items: center;
    background: var(--green);
    color: white;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin: 0 auto 80px;
    max-width: 1180px;
    padding: 54px;
}

.seller-callout p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

.eyebrow.light {
    color: #b9e5ce;
}

.button-light {
    background: white;
    color: var(--green);
    flex-shrink: 0;
}

.adsense-placement {
    background: #ffffff;
    border: 1px solid var(--border);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 48px auto;
    max-width: 1180px;
    min-height: 112px;
    overflow: hidden;
    padding: 10px;
    width: calc(100% - 48px);
}

.adsense-label {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.adsbygoogle {
    display: block;
    width: 100%;
}

.adsense-preview {
    background: repeating-linear-gradient(
        -45deg,
        #f8faf8,
        #f8faf8 12px,
        #f1f5f2 12px,
        #f1f5f2 24px
    );
    border-style: dashed;
}

.adsense-preview-content {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    text-align: center;
}

.adsense-preview-content strong {
    color: var(--ink);
    font-family: "Manrope", sans-serif;
}

.listing-grid-ad {
    grid-column: 1 / -1;
    margin: 24px 0;
    max-width: none;
    width: 100%;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    font-size: 0.88rem;
    gap: 24px;
    justify-content: space-between;
    margin: auto;
    max-width: 1180px;
    padding: 34px 24px;
}

.site-footer strong {
    color: var(--ink);
}

.page-shell {
    margin: 0 auto;
    max-width: 1180px;
    min-height: 65vh;
    padding: 72px 24px 100px;
}

.narrow-shell {
    max-width: 760px;
}

.page-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-intro {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 22px 0 36px;
}

.search-page-panel {
    grid-template-columns: 2fr 1fr auto;
    margin: 34px 0 46px;
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 54px;
    text-align: center;
}

.empty-state h2 {
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--muted);
}

.listing-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

.listing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.listing-photo {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #e9eee9;
    color: var(--muted);
    display: flex;
    font-size: 0.85rem;
    justify-content: center;
}

.listing-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.listing-content {
    padding: 20px;
}

.listing-content h2 {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.listing-content strong {
    color: var(--green);
}

.listing-content p {
    color: var(--muted);
    font-size: 0.85rem;
}

.step-list {
    display: grid;
    gap: 14px;
    margin-bottom: 34px;
}

.step-list div {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    padding: 18px;
}

.step-list strong {
    align-items: center;
    background: var(--mint);
    border-radius: 50%;
    color: var(--green);
    display: flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.admin-login-shell {
    align-items: center;
    background:
        radial-gradient(circle at 10% 15%, rgba(220, 236, 223, 0.8), transparent 30%),
        var(--paper);
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 170px);
    padding: 48px 24px;
}

.admin-login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 500px;
    padding: 44px;
    width: 100%;
}

.admin-brand {
    margin-bottom: 46px;
}

.admin-login-card h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.admin-login-card > p,
.admin-login-card > small {
    color: var(--muted);
}

.admin-login-card > p {
    line-height: 1.6;
}

.admin-login-card > small {
    display: block;
    margin-top: 24px;
    text-align: center;
}

.admin-login-form {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.admin-login-form label {
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-login-form input {
    border: 1px solid var(--border);
    border-radius: 9px;
    font-family: monospace;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    min-height: 52px;
    padding: 0 14px;
}

.admin-login-form input:focus {
    border-color: var(--green);
    outline: 3px solid rgba(13, 104, 72, 0.15);
}

.login-alert {
    background: #fff0ed;
    border-left: 4px solid #bd3428;
    color: #7f241c;
    font-size: 0.9rem;
    margin-top: 22px;
    padding: 14px;
}

.admin-heading {
    align-items: flex-start;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.admin-stat-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, 1fr);
    margin: 16px 0 36px;
}

.admin-stat-grid article,
.admin-stat-grid > a {
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.admin-stat-grid > a:hover {
    border-color: var(--green);
    box-shadow: 0 8px 24px rgba(27, 47, 38, 0.08);
}

.admin-stat-grid span {
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-stat-grid strong {
    font-family: "Manrope", sans-serif;
    font-size: 2rem;
}

.admin-empty-state {
    text-align: left;
}

.admin-empty-state .button {
    margin-top: 12px;
}

.back-link {
    color: var(--muted);
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 36px;
}

.back-link:hover {
    color: var(--green);
}

.admin-filter-bar {
    align-items: end;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) auto;
    margin-bottom: 28px;
    padding: 20px;
}

.admin-filter-bar label {
    color: var(--muted);
    display: grid;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 8px;
}

.admin-filter-bar input,
.admin-filter-bar select {
    background: #f8faf7;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    min-height: 46px;
    padding: 0 12px;
}

.admin-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.admin-table {
    border-collapse: collapse;
    min-width: 850px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #f3f6f2;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td small {
    color: var(--muted);
    margin-top: 5px;
}

.action-cell {
    text-align: right !important;
}

.status-badge {
    background: #edf0ed;
    border-radius: 999px;
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 10px;
}

.status-badge.pending {
    background: #fff0d9;
    color: #875313;
}

.status-badge.needs-revision {
    background: #e6efff;
    color: #315b9c;
}

.status-badge.rejected {
    background: #ffe5e1;
    color: #9a3127;
}

.status-badge.approved {
    background: var(--mint);
    color: var(--green-dark);
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    margin: 34px 0;
}

.account-card > div {
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 5px;
    padding: 20px 22px;
}

.account-card > div:last-child {
    border-bottom: 0;
}

.account-card span {
    color: var(--muted);
    font-size: 0.78rem;
}

.technical-value {
    font-family: monospace;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-form-section {
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    gap: 24px;
    margin-bottom: 34px;
    padding: 26px 28px;
}

.profile-form-section h2 {
    font-size: 1.55rem;
}

.profile-form-section p {
    color: var(--muted);
    line-height: 1.6;
    margin: 10px 0 0;
}

.profile-form {
    display: grid;
    gap: 10px;
}

.profile-form label {
    font-size: 0.85rem;
    font-weight: 700;
}

.profile-form input {
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--ink);
    min-height: 50px;
    padding: 0 14px;
}

.profile-form input:focus {
    border-color: var(--green);
    outline: 3px solid rgba(13, 104, 72, 0.15);
}

.profile-form small {
    color: var(--muted);
    line-height: 1.5;
}

.profile-form .button {
    justify-self: start;
    margin-top: 8px;
}

.profile-alert {
    margin-top: 0;
}

.success-alert {
    background: #e9f6ed;
    border-left: 4px solid var(--green);
    color: var(--green-dark);
    font-size: 0.9rem;
    padding: 14px;
}

.listing-form {
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    gap: 28px;
    margin-top: 34px;
    padding: 30px;
}

.form-section-heading h2 {
    font-size: 1.65rem;
}

.listing-form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-form-grid label {
    color: var(--muted);
    display: grid;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 8px;
}

.listing-form-grid input,
.listing-form-grid select,
.listing-form-grid textarea {
    background: #f8faf7;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--ink);
    padding: 13px 14px;
}

.listing-form-grid input,
.listing-form-grid select {
    min-height: 50px;
}

.listing-form-grid textarea {
    line-height: 1.6;
    resize: vertical;
}

.listing-form-grid input:focus,
.listing-form-grid select:focus,
.listing-form-grid textarea:focus {
    border-color: var(--green);
    outline: 3px solid rgba(13, 104, 72, 0.15);
}

.listing-form-grid .full-width-field {
    grid-column: 1 / -1;
}

.custom-vehicle-fields {
    background: #f8faf7;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 16px;
}

.custom-vehicle-fields > p {
    margin: 0 0 14px;
}

.custom-vehicle-fields > div {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-form-grid .checkbox-field {
    align-items: center;
    align-self: end;
    color: var(--ink);
    display: flex;
    min-height: 50px;
}

.listing-form-grid .checkbox-field input {
    min-height: auto;
}

.form-submit-row {
    align-items: center;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
}

.form-submit-row small {
    color: var(--muted);
}

.form-submit-row [data-manual-save] {
    min-width: 180px;
}

.form-submit-row [data-manual-save-status][data-state="saving"] {
    color: #3976b9;
}

.form-submit-row [data-manual-save-status][data-state="saved"] {
    color: var(--green);
    font-weight: 700;
}

.form-submit-row [data-manual-save-status][data-state="error"] {
    color: #bd3428;
    font-weight: 700;
}

.draft-meta {
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    gap: 1px;
    grid-template-columns: 1fr;
    margin-top: 34px;
}

.draft-meta > div {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
}

.draft-meta > div + div {
    border-left: 1px solid var(--border);
}

.draft-meta span {
    color: var(--muted);
    font-size: 0.78rem;
}

.draft-save-bar {
    align-items: center;
    background: #f3f6f2;
    color: var(--muted);
    display: flex;
    font-size: 0.85rem;
    gap: 10px;
    padding: 12px 14px;
}

.draft-save-indicator {
    background: var(--green);
    border-radius: 50%;
    display: block;
    height: 9px;
    width: 9px;
}

.draft-save-indicator[data-state="dirty"] {
    background: #ca7a20;
}

.draft-save-indicator[data-state="saving"] {
    animation: save-pulse 900ms ease-in-out infinite alternate;
    background: #3976b9;
}

.draft-save-indicator[data-state="error"] {
    background: #bd3428;
}

@keyframes save-pulse {
    from {
        opacity: 0.35;
    }

    to {
        opacity: 1;
    }
}

.photo-editor {
    display: grid;
    gap: 24px;
    margin-top: 54px;
}

.photo-editor .form-section-heading p {
    color: var(--muted);
    line-height: 1.6;
    margin: 10px 0 0;
}

.photo-upload-form {
    align-items: end;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
}

.photo-upload-form label {
    color: var(--muted);
    display: grid;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 8px;
}

.photo-upload-form input,
.photo-upload-form select {
    background: #f8faf7;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--ink);
    min-height: 50px;
    padding: 11px 13px;
}

.photo-upload-form .photo-file-field,
.photo-upload-form small {
    grid-column: 1 / -1;
}

.photo-upload-form .button {
    justify-self: start;
}

.photo-upload-form small {
    color: var(--muted);
}

.photo-empty-state {
    border: 1px dashed var(--border);
    color: var(--muted);
    padding: 28px;
    text-align: center;
}

.draft-photo-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.draft-photo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    gap: 12px;
    padding-bottom: 16px;
}

.draft-photo-card > img {
    aspect-ratio: 4 / 3;
    background: #e9eee9;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.draft-photo-card > div,
.draft-photo-card > form {
    margin: 0 14px;
}

.draft-photo-card > div {
    display: grid;
    gap: 4px;
}

.draft-photo-card small {
    color: var(--muted);
}

.photo-delete-button {
    background: transparent;
    border: 0;
    color: #9a3127;
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}

.admin-review-header,
.admin-review-layout,
.review-data-grid,
.review-status-stack,
.moderation-decision-panel form,
.moderation-history,
.moderation-photo-grid figcaption {
    display: flex;
}

.admin-review-header {
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem 0;
}

.review-status-stack {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-review-layout {
    align-items: flex-start;
    gap: 2rem;
}

.admin-review-layout > main {
    display: grid;
    flex: 1;
    gap: 1.5rem;
    min-width: 0;
}

.review-panel,
.moderation-decision-panel {
    background: #ffffff;
    border: 1px solid #dfe5df;
    border-radius: 16px;
    padding: 1.5rem;
}

.review-panel h2,
.moderation-decision-panel h2 {
    margin-top: 0;
}

.review-data-grid {
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
}

.review-data-grid > div {
    flex: 1 1 calc(50% - 1rem);
    min-width: 220px;
}

.review-data-grid dt {
    color: #617068;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.review-data-grid dd {
    font-weight: 650;
    margin: 0;
}

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

.moderation-photo-grid figure {
    border: 1px solid #dfe5df;
    border-radius: 12px;
    margin: 0;
    overflow: hidden;
}

.moderation-photo-grid img,
.public-preview-photo img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.photo-zoom-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: zoom-in;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.photo-zoom-trigger:focus-visible {
    outline: 3px solid #1b8a67;
    outline-offset: -3px;
}

.photo-zoom-icon {
    background: rgba(10, 25, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    height: 38px;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
}

.photo-zoom-icon::before {
    border: 2px solid #ffffff;
    border-radius: 50%;
    content: "";
    height: 11px;
    left: 10px;
    position: absolute;
    top: 8px;
    width: 11px;
}

.photo-zoom-icon::after {
    background: #ffffff;
    border-radius: 2px;
    content: "";
    height: 2px;
    left: 21px;
    position: absolute;
    top: 22px;
    transform: rotate(45deg);
    transform-origin: left center;
    width: 9px;
}

.photo-viewer-dialog {
    background: transparent;
    border: 0;
    color: #ffffff;
    max-height: 96vh;
    max-width: 96vw;
    padding: 0;
    width: fit-content;
}

.photo-viewer-dialog::backdrop {
    backdrop-filter: blur(3px);
    background: rgba(5, 12, 10, 0.88);
}

.photo-viewer-content {
    background: #101915;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    max-width: 94vw;
    overflow: hidden;
}

.photo-viewer-content header {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    min-height: 54px;
    padding: 8px 12px 8px 18px;
}

.photo-viewer-content header p {
    flex: 1;
    font-size: 0.92rem;
    margin: 0;
}

.photo-viewer-counter {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    white-space: nowrap;
}

.photo-viewer-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.75rem;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    width: 40px;
}

.photo-viewer-close:hover,
.photo-viewer-close:focus-visible {
    background: rgba(255, 255, 255, 0.24);
}

.photo-viewer-image-frame {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 220px;
    position: relative;
}

.photo-viewer-image-frame img {
    display: block;
    max-height: calc(96vh - 56px);
    max-width: 94vw;
    object-fit: contain;
}

.photo-viewer-navigation {
    align-items: center;
    background: rgba(8, 20, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.6rem;
    height: 48px;
    justify-content: center;
    padding: 0 0 3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    z-index: 1;
}

.photo-viewer-navigation:hover,
.photo-viewer-navigation:focus-visible {
    background: rgba(13, 111, 79, 0.95);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.photo-viewer-navigation[hidden] {
    display: none;
}

.photo-viewer-previous {
    left: 14px;
}

.photo-viewer-next {
    right: 14px;
}

@media (max-width: 600px) {
    .photo-viewer-navigation {
        height: 42px;
        width: 42px;
    }

    .photo-viewer-previous {
        left: 8px;
    }

    .photo-viewer-next {
        right: 8px;
    }
}

.moderation-photo-grid figcaption {
    flex-direction: column;
    padding: 0.75rem;
}

.public-preview .preview-price {
    display: block;
    font-size: 1.6rem;
    margin-top: 1rem;
}

.preserve-lines {
    white-space: pre-wrap;
}

.moderation-history {
    flex-direction: column;
    gap: 1rem;
}

.moderation-history article {
    border-left: 3px solid #0d6f4f;
    padding-left: 1rem;
}

.moderation-history small {
    display: block;
    color: #617068;
}

.moderation-decision-panel {
    position: sticky;
    top: 1rem;
    width: min(360px, 100%);
}

.moderation-decision-panel form {
    border-top: 1px solid #dfe5df;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.moderation-reject-button {
    background: #9d2f2f;
    color: #ffffff;
}

@media (max-width: 900px) {
    .admin-review-layout {
        flex-direction: column;
    }

    .moderation-decision-panel {
        position: static;
        width: auto;
    }
}

@media (max-width: 640px) {
    .admin-review-header {
        flex-direction: column;
    }

    .review-status-stack {
        align-items: flex-start;
    }

    .moderation-photo-grid {
        grid-template-columns: 1fr;
    }
}

.seller-listings-section {
    margin: 3rem 0;
}

.seller-listing-grid {
    display: grid;
    gap: 1.25rem;
}

.seller-listing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
}

.seller-listing-photo {
    align-items: center;
    background: #e9eee9;
    color: var(--muted);
    display: flex;
    justify-content: center;
    min-height: 190px;
    position: relative;
}

.seller-listing-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.seller-listing-photo-watermark {
    align-items: center;
    background: rgb(10 24 19 / 58%);
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.seller-listing-photo-watermark strong {
    border: 3px solid currentColor;
    color: #ffffff;
    font-size: clamp(1.25rem, 3vw, 2rem);
    letter-spacing: 0.12em;
    padding: 0.4rem 0.75rem;
    transform: rotate(-10deg);
}

.seller-listing-content {
    padding: 1.5rem;
}

.seller-listing-title-row,
.seller-listing-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.seller-listing-title-row {
    justify-content: space-between;
}

.seller-listing-title-row h3 {
    margin: 0;
}

.seller-listing-content dl {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1.25rem 0;
}

.seller-listing-content dt {
    color: var(--muted);
    font-size: 0.75rem;
}

.seller-listing-content dd {
    font-weight: 700;
    margin: 0.25rem 0 0;
}

.seller-moderation-message {
    background: #fff8e8;
    border-left: 4px solid #d58b22;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
}

.seller-moderation-message p {
    margin: 0.35rem 0 0;
}

.seller-listing-actions form {
    margin: 0;
}

.status-badge.active {
    background: var(--mint);
    color: var(--green-dark);
}

.status-badge.paused,
.status-badge.expired {
    background: #fff0d9;
    color: #875313;
}

.status-badge.sold,
.status-badge.exhausted {
    background: #edf0ed;
    color: #46504b;
}

.status-badge.suspended {
    background: #ffe5e1;
    color: #9a3127;
}

@media (max-width: 800px) {
    .seller-listing-card {
        grid-template-columns: 1fr;
    }

    .seller-listing-photo {
        max-height: 280px;
    }

    .seller-listing-content dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.public-listing-heading,
.public-detail-layout,
.public-spec-grid,
.seller-contact-card {
    display: flex;
}

.public-listing-heading {
    align-items: flex-start;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.public-listing-heading p,
.seller-contact-card p,
.seller-contact-card small,
.public-detail-panel > p {
    color: var(--muted);
}

.public-listing-price {
    flex-shrink: 0;
    text-align: right;
}

.public-listing-price strong,
.public-listing-price span {
    display: block;
}

.public-listing-price strong {
    color: var(--green);
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.public-photo-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 2rem;
}

.public-photo-gallery figure {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 0;
    overflow: hidden;
}

.public-photo-gallery .cover-photo {
    grid-column: span 2;
    grid-row: span 2;
}

.public-photo-gallery img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.public-photo-gallery figcaption {
    color: var(--muted);
    font-size: 0.78rem;
    padding: 0.65rem 0.8rem;
}

.public-detail-layout {
    align-items: flex-start;
    gap: 2rem;
}

.public-detail-layout > main {
    display: grid;
    flex: 1;
    gap: 1.5rem;
}

.public-detail-panel,
.seller-contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.public-detail-panel h2,
.seller-contact-card h2 {
    font-size: 1.5rem;
}

.listing-action-button {
    display: block;
    margin-top: 0.75rem;
    width: 100%;
}

.listing-report-form {
    border-top: 1px solid var(--border-color);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.listing-report-form summary {
    cursor: pointer;
    font-weight: 700;
}

.listing-report-form form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.listing-report-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

.listing-report-form select,
.listing-report-form textarea {
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    font: inherit;
    padding: 0.7rem;
    width: 100%;
}

.admin-report-list {
    display: grid;
    gap: 1rem;
}

.pagination {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.electric-vehicle-fields {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.electric-vehicle-fields legend {
    font-weight: 700;
    padding: 0 0.5rem;
}

.admin-report-actions label {
    display: grid;
    gap: 0.35rem;
}

.admin-report-actions textarea {
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    font: inherit;
    min-height: 5rem;
    padding: 0.7rem;
    width: 100%;
}

.admin-report-card {
    align-items: start;
    display: flex;
    justify-content: space-between;
}

.admin-report-card h2 {
    margin-bottom: 0.5rem;
}

.admin-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.account-notifications {
    margin-top: 2rem;
}

.notification-list {
    display: grid;
    gap: 0.75rem;
}

.notification-list article {
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
}

.public-spec-grid {
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.5rem 0 0;
}

.public-spec-grid > div {
    flex: 1 1 calc(50% - 1.25rem);
    min-width: 200px;
}

.public-spec-grid dt,
.listing-period-note span {
    color: var(--muted);
    font-size: 0.8rem;
}

.public-spec-grid dd {
    font-weight: 700;
    margin: 0.25rem 0 0;
}

.seller-contact-card {
    flex-direction: column;
    position: sticky;
    top: 92px;
    width: min(360px, 100%);
}

.whatsapp-button {
    background: #1f9d60;
    color: #ffffff;
    margin: 1rem 0;
}

.listing-period-note {
    border-top: 1px solid var(--border);
    display: grid;
    gap: 0.25rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

@media (max-width: 900px) {
    .public-photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-detail-layout {
        flex-direction: column;
    }

    .seller-contact-card {
        position: static;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .public-listing-heading {
        flex-direction: column;
    }

    .public-listing-price {
        text-align: left;
    }

    .public-photo-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .public-photo-gallery figure {
        flex: 0 0 86%;
        scroll-snap-align: start;
    }
}

@media (max-width: 820px) {
    .pagination .button-secondary,
    .share-listing-button {
        display: inline-flex;
    }

    nav > a:first-child,
    .button-secondary {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-bottom: 90px;
        padding-top: 64px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .listing-form-grid {
        grid-template-columns: 1fr;
    }

    .listing-form-grid .full-width-field {
        grid-column: auto;
    }

    .custom-vehicle-fields > div {
        grid-template-columns: 1fr;
    }

    .draft-meta {
        grid-template-columns: 1fr;
    }

    .draft-meta > div + div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

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

    .trust-strip {
        margin: 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .seller-callout {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
        padding: 36px 24px;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 14px 18px;
    }

    .button {
        padding: 10px 13px;
    }

    .trust-strip {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .trust-strip div {
        border-bottom: 1px solid var(--border);
        border-right: 0;
        padding-bottom: 16px;
    }

    .category-section {
        padding-bottom: 70px;
        padding-top: 70px;
    }

    .site-footer {
        flex-direction: column;
    }

    .adsense-placement {
        margin-bottom: 32px;
        margin-top: 32px;
        min-height: 120px;
        width: calc(100% - 36px);
    }

    .listing-grid-ad {
        width: 100%;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .admin-login-card {
        padding: 30px 22px;
    }

    .admin-heading {
        flex-direction: column;
    }

    .photo-upload-form,
    .draft-photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-upload-form .photo-file-field,
    .photo-upload-form small {
        grid-column: auto;
    }
}
