/* ============================================
   ItaliaArmi - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #4b5320;
    --color-primary-dark: #2e3512;
    --color-primary-light: #65732a;
    --color-accent: #c8a632;
    --color-accent-dark: #a68a1e;
    --color-bg: #f5f3ee;
    --color-bg-dark: #1a1a1a;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-text-white: #ffffff;
    --color-border: #d4d0c8;
    --color-danger: #c0392b;
    --color-success: #27ae60;
    --color-info: #2980b9;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.2s ease;
}

html {
    overflow-x: clip;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

main {
    flex: 1;
    min-width: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--color-bg-dark);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
    align-self: center;
    vertical-align: middle;
}

.logo-text {
    font-size: 22px;
    color: var(--color-text-white);
    font-weight: 300;
    letter-spacing: -0.5px;
}

.logo-text strong {
    font-weight: 700;
    color: var(--color-accent);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-links {
    display: flex;
    gap: 4px;
}

.navbar-link {
    color: #b0b0b0;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-user {
    color: #b0b0b0;
    font-size: 14px;
    margin-right: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-user:hover {
    color: var(--color-text-white);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-white);
    transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-text-white);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Bottoni su sfondi scuri (hero, CTA, listings-hero): usa accent per massimo contrasto */
.hero .btn-primary,
.cta-box .btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #1a1e0a;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(200, 166, 50, 0.35);
}
.hero .btn-primary:hover,
.cta-box .btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #1a1e0a;
    box-shadow: 0 4px 18px rgba(200, 166, 50, 0.5);
}

.hero .btn-outline,
.cta-box .btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    backdrop-filter: blur(2px);
}
.hero .btn-outline:hover,
.cta-box .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1e0a 0%, #2e3512 40%, #4b5320 100%);
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.text-accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 16px;
    outline: none;
    background: var(--color-text-white);
    color: var(--color-text);
}

.search-input::placeholder {
    color: #999;
}

.search-form .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-text);
}

/* --- Categories Section --- */
.categories-section {
    padding: 80px 20px;
}

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

.category-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.category-icon svg {
    width: 40px;
    height: 40px;
}

.category-icon img {
    width: 100%;
    max-width: 120px;
    height: 60px;
    object-fit: contain;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.category-card p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* --- How It Works --- */
.how-it-works {
    padding: 80px 20px;
    background: var(--color-text-white);
}

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

.step-card {
    text-align: center;
    padding: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.step-card p {
    font-size: 15px;
    color: var(--color-text-light);
    max-width: 280px;
    margin: 0 auto;
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 20px;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: var(--color-text-white);
}

.cta-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Auth Pages (Login/Register) --- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px - 200px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.auth-card-wide {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: var(--color-text-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.form-control {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--color-bg);
    color: var(--color-text);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.15);
}

.form-control::placeholder {
    color: #999;
}

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

.form-check {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
    cursor: pointer;
}

.checkbox-label-inline {
    font-size: 14px;
    color: var(--color-text-light);
    margin-left: 8px;
}

.checkbox-label-inline a {
    color: var(--color-primary);
    text-decoration: underline;
}

.professional-fields {
    padding: 20px;
    background: rgba(45, 80, 22, 0.05);
    border-radius: var(--radius);
    border: 1px dashed var(--color-primary-light);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.auth-footer p {
    font-size: 14px;
    color: var(--color-text-light);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- Alerts --- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-danger {
    background-color: #fdecea;
    color: var(--color-danger);
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #e8f4fd;
    color: var(--color-info);
    border: 1px solid #bee5eb;
}

.alert-info a {
    color: var(--color-info);
    font-weight: 600;
    text-decoration: underline;
}

/* --- Flash Messages --- */
.flash-message {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
}

.flash-danger,
.flash-verify_email_error {
    background-color: #fdecea;
    color: var(--color-danger);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 20px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}


.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
}

.footer-social-icon:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.footer-social-fb { background: #1877F2; }
.footer-social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer-social-yt { background: #FF0000; }
.footer-social-tg { background: #229ED9; }
.footer-social-wa { background: #25D366; }

.footer-col {
    min-width: 0;
}

.footer-col h4 {
    color: var(--color-text-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--color-text-white);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Come Funziona Page --- */
.hiw-page {
    min-height: calc(100vh - 64px - 220px);
}

.hiw-hero {
    background: linear-gradient(135deg, #1a1e0a 0%, #2e3512 40%, #4b5320 100%);
    color: #fff;
    padding: 64px 20px 56px;
    text-align: center;
}
.hiw-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
}
.hiw-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.hiw-section {
    padding: 56px 0;
}
.hiw-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.hiw-section-tag {
    display: inline-block;
    background: var(--color-primary-light);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.hiw-section-header h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 10px;
}
.hiw-section-header p {
    color: #64748b;
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

.hiw-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

/* Steps */
.hiw-steps {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.hiw-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    position: relative;
}
.hiw-step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hiw-step-icon {
    color: var(--color-primary);
    margin-bottom: 12px;
}
.hiw-step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.hiw-step p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}
.hiw-step-arrow {
    font-size: 1.8rem;
    color: #cbd5e1;
    align-self: center;
    flex: 0 0 auto;
    margin-top: -12px;
}

/* Cards */
.hiw-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}
.hiw-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
}
.hiw-card-icon {
    color: var(--color-primary);
    margin-bottom: 12px;
}
.hiw-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.hiw-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* CTA box */
.hiw-cta-box {
    text-align: center;
    padding: 32px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.hiw-cta-box .btn {
    margin-bottom: 12px;
}
.hiw-cta-note {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

/* Pro section */
.hiw-pro-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}
.hiw-pro-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hiw-pro-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.hiw-pro-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f0f4e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}
.hiw-pro-feature strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.hiw-pro-feature p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.hiw-pro-cta-card {
    background: var(--color-primary);
    color: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    position: sticky;
    top: 80px;
}
.hiw-pro-cta-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.hiw-pro-cta-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
    margin-bottom: 20px;
}
.hiw-pro-cta-card .btn-primary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
    margin-bottom: 10px;
}
.hiw-pro-cta-card .btn-primary:hover {
    background: #f0f4e8;
    border-color: #f0f4e8;
}
.hiw-pro-cta-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    text-align: center;
}

/* FAQ */
.hiw-faq-section {
    padding-bottom: 72px;
}
.hiw-faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hiw-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.hiw-faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.hiw-faq-item summary::-webkit-details-marker { display: none; }
.hiw-faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 12px;
}
.hiw-faq-item[open] summary::after { content: '−'; }
.hiw-faq-item p {
    padding: 0 20px 16px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .hiw-steps { flex-direction: column; align-items: center; }
    .hiw-step { max-width: 100%; width: 100%; }
    .hiw-step-arrow { transform: rotate(90deg); margin: 0; }
    .hiw-pro-grid { grid-template-columns: 1fr; }
    .hiw-pro-cta-card { position: static; }
}

/* --- Legal Pages --- */
.legal-page {
    padding: 48px 20px 64px;
    min-height: calc(100vh - 64px - 220px);
}

.legal-header {
    max-width: 780px;
    margin: 0 auto 40px;
    text-align: center;
}

.legal-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.legal-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.legal-updated {
    font-size: 13px;
    color: var(--color-text-light);
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-notice {
    background: rgba(200, 57, 43, 0.07);
    border-left: 4px solid var(--color-danger);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-border);
}

.legal-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin: 14px 0 8px;
}

.legal-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 10px;
}

.legal-section ul {
    margin: 8px 0 12px 20px;
}

.legal-section ul li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 4px;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 12px 0;
}

.legal-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    line-height: 1.5;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:nth-child(even) td {
    background: rgba(0,0,0,0.02);
}

.legal-footer-nav {
    max-width: 780px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Account Page --- */
.account-page {
    padding: 40px 20px;
    min-height: calc(100vh - 64px - 220px);
}

.account-header {
    margin-bottom: 32px;
}

.account-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 6px;
}

.account-header p {
    font-size: 15px;
    color: var(--color-text-light);
}

.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 88px;
    min-width: 0;
}

.account-user-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    overflow: hidden;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-white);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-display-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* --- Avatar upload UI --- */
.avatar-upload-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.avatar-upload-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-primary);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-controls {
    flex: 1;
    min-width: 0;
}

.avatar-upload-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.avatar-file-input {
    margin-top: 6px;
    font-size: 13px;
}

/* --- Listing card seller row --- */
.listing-card-seller {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0 2px;
    border-top: 1px solid var(--color-border);
    margin-top: 6px;
}

.listing-card-seller-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.listing-card-seller-name {
    font-size: 12px;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-card-seller-link {
    color: var(--color-text);
    cursor: pointer;
}
.listing-card-seller-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.account-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.account-email {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    background: rgba(45, 80, 22, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.account-nav {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.account-nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.account-nav-link:hover,
.account-nav-link.active {
    color: var(--color-primary);
    background-color: rgba(45, 80, 22, 0.05);
    border-left-color: var(--color-primary);
}

.account-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.account-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.account-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--color-border);
}

.account-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.account-card-header p {
    font-size: 14px;
    color: var(--color-text-light);
}

.account-form-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-error-summary {
    background: #fdf0ef;
    border-left: 3px solid var(--color-danger);
    color: var(--color-danger);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
}

.account-card-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: flex-end;
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
    display: block;
}

.professional-fields-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.account-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-type-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    font-size: 13px;
    color: #92400e;
    margin-top: 8px;
}

.account-info-card .account-form-body {
    padding: 24px 28px;
}

.account-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

.account-info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

.account-info-status {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-ok {
    color: var(--color-success);
}

.status-pending {
    color: var(--color-accent-dark);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success  { background: #d4edda; color: #155724; }
.badge-warning  { background: #fff3cd; color: #856404; }
.badge-info     { background: #d1ecf1; color: #0c5460; }
.badge-danger   { background: #fdecea; color: var(--color-danger); }
.badge-secondary { background: #e9ecef; color: #495057; }

/* --- Listings table --- */
.account-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

.listings-empty {
    padding: 60px 28px;
    text-align: center;
}

.listings-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.listings-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.listings-empty p {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.listings-table-wrapper {
    overflow-x: auto;
}

.listings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.listings-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.listings-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.15s ease;
}

.listings-table tbody tr:last-child {
    border-bottom: none;
}

.listings-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.listings-table td {
    padding: 14px 16px;
    vertical-align: middle;
    color: var(--color-text);
}

.listing-title-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.listing-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-border);
}

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

.listing-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 80, 22, 0.1);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 700;
}

.listing-title-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.listing-name {
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.listing-meta {
    font-size: 12px;
    color: var(--color-text-light);
}

.listing-price {
    font-weight: 600;
    white-space: nowrap;
}

.listing-actions {
    white-space: nowrap;
}

.action-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
    transition: var(--transition);
    text-decoration: underline;
}

.action-danger {
    color: var(--color-danger);
}

.action-danger:hover {
    color: #8b0000;
}

.action-warning {
    color: #c87f00;
}

.action-warning:hover {
    color: #8b5800;
}

.action-info {
    color: var(--color-info);
}

.action-info:hover {
    color: #1a5c87;
}

.action-success {
    color: var(--color-success);
}

.action-success:hover {
    color: #1a7a40;
}

.action-primary {
    color: var(--color-primary);
}

.action-primary:hover {
    color: var(--color-primary-dark);
}

.action-edit {
    color: var(--color-primary);
    font-weight: 600;
}

.action-edit:hover {
    color: var(--color-primary-dark);
}

.actions-group {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

/* Icon-only action buttons with CSS tooltip */
.action-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
    position: relative;
    line-height: 1;
    text-decoration: none;
}

.action-icon-btn svg {
    display: block;
    flex-shrink: 0;
}

/* Tooltip */
.action-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 100;
}

.action-icon-btn:hover::after {
    opacity: 1;
}

/* Color variants */
.action-icon-btn/* Expiry countdown badge */
.expiry-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 5px;
    cursor: help;
    position: relative;
    white-space: nowrap;
}

.expiry-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 5px;
    white-space: normal;
    width: 260px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 200;
    line-height: 1.5;
    text-align: left;
}

.expiry-badge:hover::after {
    opacity: 1;
}

.expiry-ok      { background: rgba(39, 174, 96, 0.15);  color: #1a7a40; }
.expiry-warning { background: rgba(200, 127, 0, 0.15);  color: #8b5800; }
.expiry-urgent  { background: rgba(192, 57, 43, 0.15);  color: var(--color-danger); }

.action-edit    { color: var(--color-primary); }
.action-icon-btn.action-edit:hover    { background: rgba(45, 80, 22, 0.1); }

.action-icon-btn.action-warning { color: #c87f00; }
.action-icon-btn.action-warning:hover { background: rgba(200, 127, 0, 0.1); }

.action-icon-btn.action-info    { color: var(--color-info); }
.action-icon-btn.action-info:hover    { background: rgba(41, 128, 185, 0.1); }

.action-icon-btn.action-success { color: var(--color-success); }
.action-icon-btn.action-success:hover { background: rgba(39, 174, 96, 0.1); }

.action-icon-btn.action-primary { color: var(--color-primary); }
.action-icon-btn.action-primary:hover { background: rgba(45, 80, 22, 0.1); }

.action-icon-btn.action-danger  { color: var(--color-danger); }
.action-icon-btn.action-danger:hover  { background: rgba(192, 57, 43, 0.1); }

.row-archived td {
    opacity: 0.65;
}

.listing-name-muted {
    color: var(--color-text-light);
    font-style: italic;
}

.listing-price-muted {
    color: var(--color-text-light);
    text-decoration: line-through;
}

.nav-count-muted {
    background-color: #9e9e9e;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* --- Symfony form overrides --- */
.auth-form .form-group ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}

.auth-form .form-group ul li {
    color: var(--color-danger);
    font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-links {
        flex-direction: column;
    }

    .navbar-auth {
        flex-direction: column;
        width: 100%;
    }

    .navbar-auth .btn {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-input {
        border-radius: var(--radius) 0 0 var(--radius);
        font-size: 15px;
    }

    .search-form .btn {
        border-radius: 0 var(--radius) var(--radius) 0;
        white-space: nowrap;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 24px;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

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

    .auth-card {
        padding: 28px 20px;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-card-header,
    .account-form-body,
    .account-card-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .account-card-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .listings-table thead th:nth-child(4),
    .listings-table thead th:nth-child(5),
    .listings-table td:nth-child(4),
    .listings-table td:nth-child(5) {
        display: none;
    }

    /* Active listings: nascondi anche la colonna Data (6a) */
    #annunci .listings-table thead th:nth-child(6),
    #annunci .listings-table td:nth-child(6) {
        display: none;
    }

    /* Riduce min-width cella titolo nelle tabelle */
    .listing-title-cell {
        min-width: 120px;
    }

    /* Nav account: scroll orizzontale su mobile */
    .account-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .account-nav-link {
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }

    .account-nav-link:last-child {
        border-right: none;
    }

    .section-title {
        font-size: 26px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    /* Tabelle account su schermi molto piccoli: nascondi anche Prezzo */
    #annunci .listings-table thead th:nth-child(2),
    #annunci .listings-table td:nth-child(2),
    #storico .listings-table thead th:nth-child(2),
    #storico .listings-table td:nth-child(2) {
        display: none;
    }

    .listing-title-cell {
        min-width: 100px;
    }

    .account-page {
        padding: 20px 12px;
    }
}

/* ============================================
   Listings Index Page
   ============================================ */

.listings-hero {
    background: linear-gradient(135deg, #1a1e0a 0%, #2e3512 100%);
    padding: 40px 20px;
}

.listings-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.listings-hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 4px;
}

.listings-hero-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    border-color: var(--color-accent);
    font-weight: 700;
}

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-bg-dark);
}

.listings-page .container {
    padding-top: 32px;
    padding-bottom: 60px;
}

.listings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* --- Filter sidebar --- */
.listings-filters {
    position: sticky;
    top: 88px;
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    min-width: 0;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}

.filter-option-parent {
    font-weight: 700;
    color: var(--color-text);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range .form-control {
    flex: 1;
    min-width: 0;
}

.price-separator {
    color: var(--color-text-light);
    font-size: 14px;
    flex-shrink: 0;
}

.btn-reset-filters {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: underline;
    margin-top: -8px;
    cursor: pointer;
}

.btn-reset-filters:hover {
    color: var(--color-text);
}

/* --- Listings grid --- */
.listings-results {
    min-width: 0;
}

.listings-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    font-weight: 500;
}
.listings-sort {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.sort-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.sort-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.sort-btn-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.sort-btn-active:hover {
    color: #fff;
}

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

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

.listing-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.listing-card-image {
    position: relative;
    padding-bottom: 68%;
    overflow: hidden;
    background: #e8e4dc;
}

.listing-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-card-image img {
    transform: scale(1.04);
}

.listing-card-no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45,80,22,0.08) 0%, rgba(45,80,22,0.15) 100%);
}

.listing-card-no-image span {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    text-align: center;
    padding: 0 12px;
}

.listing-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent);
    color: var(--color-bg-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.listing-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.badge-pro {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
}

.listing-category-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(45, 80, 22, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

.listing-condition-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-border);
    padding: 2px 8px;
    border-radius: 20px;
}

.listing-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.listing-card-specs {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.listing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.listing-card-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-primary);
}

.listing-card-location {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 500;
}

.listings-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.listings-empty-state .listings-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.listings-empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.listings-empty-state p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--color-text);
    color: var(--color-text);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--color-text);
    color: var(--color-text-white);
}

/* ============================================
   Listing New (Form) Page
   ============================================ */

.listing-form-page {
    padding: 40px 20px 60px;
    min-height: calc(100vh - 64px - 220px);
}

.listing-form-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.listing-form-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 6px;
}

.listing-form-header p {
    font-size: 15px;
    color: var(--color-text-light);
}

.listing-form-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.listing-form-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    align-self: start;
}

.listing-form-sidebar {
    min-width: 0;
}

.form-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card-sticky {
    position: sticky;
    top: 88px;
}

.form-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.form-card-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
}

.form-card-header p {
    font-size: 13px;
    color: var(--color-text-light);
}

.form-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    background: rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-light);
    pointer-events: none;
}

.input-prefix-wrapper .form-control {
    padding-left: 32px;
}

.publish-info {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.publish-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.publish-check-item {
    font-size: 13px;
    color: var(--color-text-light);
    padding-left: 22px;
    position: relative;
    transition: color 0.2s;
}

.publish-check-item::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--color-danger);
    font-weight: 700;
    transition: color 0.2s;
}

.publish-check-item.is-done {
    color: var(--color-text);
}

.publish-check-item.is-done::before {
    content: '✓';
    color: var(--color-success);
}

.btn-cancel-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: underline;
}

.btn-cancel-link:hover {
    color: var(--color-text);
}

.legal-disclaimer-box {
    background: #fffbf0;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.legal-disclaimer-label {
    align-items: flex-start !important;
    gap: 10px;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.legal-disclaimer-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.legal-disclaimer-box ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.legal-disclaimer-box ul li,
.legal-disclaimer-box .form-error {
    display: block;
    font-size: 12px;
    color: #c0392b;
    word-break: break-word;
}

.listing-form button[type="submit"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ============================================
   Listing Show (Detail) Page
   ============================================ */

.listing-show-page {
    padding: 32px 20px 60px;
    overflow-x: clip;
}

.listing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.listing-breadcrumb a {
    color: var(--color-primary);
}

.listing-breadcrumb a:hover {
    text-decoration: underline;
}

.listing-breadcrumb span {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.breadcrumb-sep {
    color: var(--color-border);
}

.listing-show-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.listing-show-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* --- Gallery --- */
.listing-gallery {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 100%;
}

.gallery-main {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e8e4dc;
    position: relative;
    width: 100%;
}
.gallery-protect {
    position: absolute;
    inset: 0;
    z-index: 1;
    user-select: none;
}
.gallery-watermark {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.38);
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.82);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: background 0.15s;
}
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    border-top: 1px solid var(--color-border);
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--color-primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45,80,22,0.06) 0%, rgba(45,80,22,0.12) 100%);
    color: var(--color-text-light);
    font-size: 14px;
}

/* --- Description & Details cards --- */
.listing-description-card,
.listing-details-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    overflow: hidden;
    min-width: 0;
}

.listing-description-card h2,
.listing-details-card h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.listing-description-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.listing-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    min-width: 0;
}

.detail-item dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.detail-item dd {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

/* --- Price & Sidebar --- */
.listing-show-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    position: sticky;
    top: 88px;
}

.listing-price-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    overflow: hidden;
    min-width: 0;
}

.listing-show-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.listing-show-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

.listing-show-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.badge-location {
    background: rgba(45,80,22,0.1);
    color: var(--color-primary);
}

.badge-featured {
    background: rgba(200,166,50,0.15);
    color: var(--color-accent-dark);
}

.listing-contact-section {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    margin: 0;
}

.contact-phone-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-call {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-call:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-email {
    background-color: #fff;
    color: var(--color-text);
    border-color: var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-email:hover {
    background-color: var(--color-bg);
    border-color: #aaa;
    color: var(--color-text);
}

.contact-info-text {
    font-size: 13px;
    color: var(--color-text-light);
}

.listing-owner-actions {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.owner-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(45,80,22,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.btn-secondary {
    background-color: #6b6b6b;
    color: var(--color-text-white);
    border-color: #6b6b6b;
}

.btn-secondary:hover {
    background-color: #4a4a4a;
    border-color: #4a4a4a;
    color: var(--color-text-white);
}

.btn-danger {
    background-color: var(--color-danger);
    color: var(--color-text-white);
    border-color: var(--color-danger);
}

.btn-danger:hover {
    background-color: #8b0000;
    border-color: #8b0000;
    color: var(--color-text-white);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    border-color: #25d366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    border-color: #1da851;
    color: #fff;
}

.btn-telegram {
    background-color: #229ed9;
    color: #fff;
    border-color: #229ed9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-telegram:hover {
    background-color: #1a7fac;
    border-color: #1a7fac;
    color: #fff;
}

/* --- Edit listing: existing images grid --- */
.existing-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.existing-image-item {
    position: relative;
    width: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--color-border);
    background: #fff;
}

.existing-image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.existing-image-delete {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-danger);
    cursor: pointer;
    background: #fff7f7;
    border-top: 1px solid var(--color-border);
    touch-action: manipulation;
    -webkit-user-drag: none;
}

.existing-image-delete input[type="checkbox"] {
    accent-color: var(--color-danger);
    width: 13px;
    height: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.existing-image-item:has(input:checked) {
    border-color: var(--color-danger);
    opacity: 0.6;
}

/* --- Contact form fields --- */
.contact-validation-error {
    background: #fff2f2;
    border: 1px solid #f5c6c6;
    color: var(--color-danger);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.contact-option {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
}

.contact-option-header {
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   Armerie — index & show pages
   ============================================ */

/* --- Armerie index --- */
.armerie-page { padding-bottom: 60px; }

.armerie-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-white);
    padding: 48px 0 36px;
    margin-bottom: 32px;
}
.armerie-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.armerie-hero p { opacity: .85; margin-bottom: 20px; }

.armerie-search-form { margin-top: 8px; }
.armerie-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 8px 12px;
    flex-wrap: wrap;
}
.armerie-search-bar svg { color: var(--color-text-light); flex-shrink: 0; }
.armerie-search-input {
    flex: 1;
    min-width: 160px;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--color-text);
    background: transparent;
    padding: 4px 0;
}
.armerie-search-province {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--color-text);
    padding: 4px 4px;
    cursor: pointer;
}
.armerie-reset-link {
    display: block;
    margin-top: 10px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    text-decoration: underline;
}
.armerie-reset-link:hover { color: #fff; }

.armerie-results-header {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.armerie-empty {
    text-align: center;
    padding: 64px 24px;
}
.armerie-empty-icon { font-size: 48px; margin-bottom: 16px; }
.armerie-empty h3 { font-size: 1.25rem; margin-bottom: 8px; }
.armerie-empty p { color: var(--color-text-light); margin-bottom: 20px; }

.armerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.armeria-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    color: var(--color-text);
    text-decoration: none;
}
.armeria-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}
.armeria-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--color-bg);
}
.armeria-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.armeria-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
}
.armeria-card-image .armeria-verified-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
}
.armeria-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.armeria-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.armeria-card-address {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}
.armeria-card-address svg { flex-shrink: 0; }
.armeria-card-desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 12px;
}
.armeria-card-footer { margin-top: auto; }
.armeria-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Verified badge (shared between card + show) */
.armeria-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #a5d6a7;
}

/* --- Armeria show page --- */
.armeria-show-page { padding-bottom: 60px; }
.armeria-show-page .container { max-width: 1100px; }

.armeria-show-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.armeria-show-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--color-border);
}
.armeria-show-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.armeria-show-title-block { flex: 1; min-width: 0; }
.armeria-show-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.armeria-show-name-row h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
}
.armeria-show-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--color-text-light);
}
.armeria-show-location svg { flex-shrink: 0; }

.shop-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 28px;
    scrollbar-width: thin;
}
.shop-gallery-item {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}
.shop-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: var(--transition);
}
.shop-gallery-item img:hover { transform: scale(1.04); }

.armeria-show-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 860px) {
    .armeria-show-layout { grid-template-columns: 1fr; }
}

.armeria-show-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.armeria-show-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.armeria-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px 24px;
}
.armeria-info-card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.armeria-description { font-size: 14px; line-height: 1.7; color: var(--color-text); }

.armeria-address-block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}
.armeria-address-block svg { flex-shrink: 0; margin-top: 2px; color: var(--color-text-light); }
.armeria-address-block address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}

.shop-map { margin-top: 8px; }
.shop-map iframe { display: block; width: 100%; border-radius: var(--radius); border: 0; }
.shop-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
}
.shop-map-link:hover { text-decoration: underline; }

.armeria-contacts { display: flex; flex-direction: column; gap: 10px; }

.armeria-listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}
.armeria-listings-header h2 { margin: 0; border: none; padding: 0; }
.armeria-listings-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}
.armeria-listings-all:hover { text-decoration: underline; }

.armeria-no-listings { font-size: 14px; color: var(--color-text-light); }

.armeria-listings-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.armeria-listing-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}
.armeria-listing-card:hover {
    background: #fff;
    border-color: var(--color-primary-light);
    color: var(--color-text);
}
.armeria-listing-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-border);
}
.armeria-listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.armeria-listing-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    background: var(--color-primary-light);
}
.armeria-listing-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.armeria-listing-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.armeria-listing-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Lightbox for shop images */
.shop-lightbox-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
}
.shop-lightbox-box img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    display: block;
    box-shadow: var(--shadow-lg);
}
.shop-lightbox-box .modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1;
}

.shop-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: background 0.15s;
}
.shop-lightbox-nav:hover { background: #fff; }
.shop-lightbox-prev { left: -22px; }
.shop-lightbox-next { right: -22px; }
.shop-lightbox-counter {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    white-space: nowrap;
}

/* Shop images grid (account page) */
.shop-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.shop-image-item {
    position: relative;
    width: 110px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--color-border);
    background: #fff;
}
.shop-image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}
.shop-image-delete,
.sup-move-btn {
    touch-action: manipulation;
    -webkit-user-drag: none;
}

.shop-image-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 6px;
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-danger);
    cursor: pointer;
    background: #fff7f7;
    border: none;
    border-top: 1px solid var(--color-border);
    gap: 4px;
}
.shop-image-delete:hover { background: #ffecec; }

/* ── Sortable upload preview ── */
.sup-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sup-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    color: var(--color-text-light);
}

.sup-dropzone:hover,
.sup-dropzone--over {
    border-color: var(--color-primary);
    background: rgba(45, 80, 22, 0.04);
    color: var(--color-primary);
}

.sup-dropzone svg {
    flex-shrink: 0;
}

.sup-dropzone-text {
    font-size: 14px;
    font-weight: 600;
}

.sup-dropzone-hint {
    font-size: 12px;
}

.sup-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sup-card {
    position: relative;
    width: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--color-border);
    background: #fff;
    cursor: grab;
    transition: opacity 0.15s, transform 0.15s, border-color 0.15s;
    user-select: none;
}

.sup-card:active { cursor: grabbing; }

.sup-card--cover {
    border-color: var(--color-primary);
}

.sup-card--dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.sup-card--over {
    box-shadow: -3px 0 0 0 var(--color-primary);
}

.sup-card-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    pointer-events: none;
    draggable: false;
}

.sup-cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

.sup-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.9);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    touch-action: manipulation;
    -webkit-user-drag: none;
}

.sup-remove-btn:hover {
    background: var(--color-danger);
}

.sup-move-btns {
    display: flex;
    gap: 0;
}

.sup-move-btn {
    flex: 1;
    background: var(--color-bg);
    border: none;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1;
    padding: 4px 0;
    cursor: pointer;
    font-weight: 700;
}

.sup-move-btn:hover {
    background: rgba(45, 80, 22, 0.08);
    color: var(--color-primary);
}

.sup-move-btns .sup-move-btn + .sup-move-btn {
    border-left: 1px solid var(--color-border);
}

@media (hover: hover) {
    /* Su desktop (mouse disponibile) nascondi i pulsanti ‹ › perché si usa il drag */
    .sup-move-btns {
        display: none;
    }
}

/* ── Drag-and-drop sortable images ── */
.sortable-grid {
    user-select: none;
}

.sortable-item {
    cursor: grab;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.sortable-item:active {
    cursor: grabbing;
}

.sortable-item.dragging {
    opacity: 0.4;
    transform: scale(0.97);
}

.sortable-item.drag-over {
    box-shadow: -3px 0 0 0 var(--color-primary);
}

.sortable-handle {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    background: rgba(255,255,255,0.85);
    border-radius: 4px;
    padding: 2px 3px;
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    pointer-events: none;
}

.sortable-cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    pointer-events: none;
}

.shop-hours-table { display: flex; flex-direction: column; gap: 8px; }

.shop-hours-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--color-bg-light, #f8f8f8);
    border-radius: 8px;
    flex-wrap: wrap;
}

.shop-hours-day {
    min-width: 90px;
    font-weight: 600;
    font-size: 14px;
}

.shop-hours-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.shop-hours-times {
    display: flex;
    flex-direction: column;
    gap: 6px;
    gap: 6px;
    flex: 1;
}

.shop-hours-time {
    width: 110px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
}

.shop-hours-sep { font-weight: 600; color: #666; }

.shop-hours-slot { display: flex; align-items: center; gap: 6px; }

.shop-hours-break-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--color-primary);
    cursor: pointer;
    font-weight: 500;
}
.shop-hours-break-toggle input { cursor: pointer; }

.shop-hours-slot2 { opacity: 0.9; }

.shop-hours-closed { font-size: 13px; color: #999; font-style: italic; }

.armeria-hours-table { display: flex; flex-direction: column; gap: 2px; }

.armeria-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border, #eee);
    font-size: 14px;
}
.armeria-hours-row:last-child { border-bottom: none; }

.armeria-hours-day { font-weight: 600; min-width: 100px; }

.armeria-hours-open .armeria-hours-value { color: var(--color-text); }
.armeria-hours-closed .armeria-hours-value { color: #aaa; font-style: italic; }
.armeria-hours-break-sep { color: #999; margin: 0 4px; }

/* Seller armeria link in listing show */
.seller-armeria-link-wrap { margin-top: 12px; }

/* PRO badge as clickable link */
.badge-pro-link { cursor: pointer; }
.badge-pro-link:hover { opacity: .85; }

.contact-option-hint {
    margin-top: 6px;
    margin-bottom: 0;
    padding-left: 24px;
}

.mt-8 {
    margin-top: 8px;
}

.contact-toggle-row {
    margin-bottom: 4px;
}

.form-check-label-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-check-label-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.form-check-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.form-hint-label {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

/* --- Seller card --- */
.seller-card {
    background: var(--color-text-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    overflow: hidden;
    min-width: 0;
}

.seller-card h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-white);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.seller-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.seller-details strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.seller-type {
    font-size: 11px;
    color: var(--color-text-light);
}

.seller-type-pro {
    color: var(--color-primary);
    font-weight: 600;
}

.seller-location {
    font-size: 12px;
    color: var(--color-text-light);
}

.seller-verified {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.seller-verified::before {
    content: '✓';
    font-weight: 700;
}

.listing-back-link-wrapper {
    text-align: center;
}

.back-to-listings {
    font-size: 14px;
    color: var(--color-text-light);
    transition: var(--transition);
}

.back-to-listings:hover {
    color: var(--color-primary);
}

/* --- Utility actions (share / report) --- */
.listing-utility-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-utility {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
}

.btn-utility:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.04);
}

.btn-utility-report:hover {
    border-color: var(--color-danger, #dc2626);
    color: var(--color-danger, #dc2626);
    background: rgba(220, 38, 38, 0.04);
}

.btn-utility-copied {
    border-color: #16a34a !important;
    color: #16a34a !important;
    background: rgba(22, 163, 74, 0.06) !important;
}

/* --- Modal overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-text-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-text);
    background: var(--color-bg);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.modal-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-reason-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.modal-reason-option:hover {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.03);
}

.modal-reason-option input[type="radio"] {
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.modal-reason-option:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.06);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* --- Contact modal form --- */
.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.contact-form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d4d0c8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fafaf8;
    box-sizing: border-box;
    transition: border-color .15s;
}

.contact-form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

.contact-form-textarea {
    resize: vertical;
    min-height: 110px;
}

/* --- Form errors (listing form) --- */
.listing-form .form-group ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}

.listing-form .form-group ul li {
    color: var(--color-danger);
    font-size: 13px;
}

.form-control-file {
    padding: 10px 0;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
}

input[type="file"] {
    max-width: 100%;
    min-width: 0;
}

/* ── Avatar delete button ── */
.avatar-upload-preview-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-delete-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--color-danger);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
    touch-action: manipulation;
    -webkit-user-drag: none;
}

@media (hover: none) and (pointer: coarse) {
    .avatar-delete-btn {
        width: 32px;
        height: 32px;
        top: -8px;
        right: -8px;
        font-size: 16px;
    }
}

.avatar-delete-btn:hover {
    background: #c0392b;
}

/* ── Password show/hide toggle ── */
.password-field {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-field:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.15);
}

.password-field .form-control {
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    flex: 1;
    width: auto;
    min-width: 0;
}

.password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: var(--color-bg);
    border: none;
    border-left: 2px solid var(--color-border);
    cursor: pointer;
    color: var(--color-text-light);
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.password-toggle:hover {
    background: #ece9e1;
    color: var(--color-text);
}

.password-field:focus-within .password-toggle {
    border-left-color: var(--color-primary);
}

/* ============================================
   Responsive – new pages
   ============================================ */

/* ============================================
   Comuni Multi-Select & Autocomplete
   ============================================ */

.cs-wrapper,
.cs-autocomplete-wrapper {
    position: relative;
}

.cs-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 0;
}

.cs-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(45, 80, 22, 0.12);
    color: var(--color-primary);
    border: 1px solid rgba(45, 80, 22, 0.25);
    border-radius: 20px;
    padding: 3px 10px 3px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cs-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: var(--color-primary);
    padding: 0 2px;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.cs-tag-remove:hover {
    opacity: 1;
}

.cs-search-input {
    width: 100%;
}

.cs-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--color-text-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 220px;
    overflow-y: auto;
}

.cs-dropdown-autocomplete {
    top: 100%;
}

.cs-option {
    padding: 9px 14px;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.1s;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.cs-option:last-child {
    border-bottom: none;
}

.cs-option:hover {
    background-color: rgba(45, 80, 22, 0.06);
    color: var(--color-primary);
}

.cs-selected-summary {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ============================================
   Comuni Checkbox Multi-Select
   ============================================ */
.cs-cb-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cs-cb-search {
    width: 100%;
}

.cs-cb-selected-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-cb-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-text-white);
    max-height: 200px;
    overflow-y: auto;
}

.cs-cb-list:empty {
    display: none;
}

.cs-cb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text);
    transition: background-color 0.1s;
    user-select: none;
    margin: 0;
}

.cs-cb-result:hover {
    background-color: rgba(45, 80, 22, 0.06);
}

.cs-cb-item-checked {
    background: rgba(45, 80, 22, 0.10);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: var(--radius);
}

.cs-cb-item input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.cs-cb-label {
    line-height: 1.3;
}

.cs-cb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 10px;
    min-width: 18px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

.cs-cb-empty {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
    margin: 0;
}

/* ============================================
   Province Multi-Select Dropdown
   ============================================ */
.ps-wrapper {
    position: relative;
}

.ps-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: var(--color-text-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
    gap: 8px;
}

.ps-trigger:hover,
.ps-trigger-open {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 2px rgba(45, 80, 22, 0.12);
}

.ps-trigger-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(45, 80, 22, 0.05);
}

.ps-arrow {
    font-size: 11px;
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: transform 0.15s;
}

.ps-trigger-active .ps-arrow {
    color: var(--color-primary);
}

.ps-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--color-text-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    overflow: hidden;
}

.ps-search-wrap {
    padding: 8px 8px 6px;
    border-bottom: 1px solid var(--color-border);
}

.ps-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) - 2px);
    font-size: 12px;
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    box-sizing: border-box;
}

.ps-search:focus {
    border-color: var(--color-primary-light);
    background: var(--color-text-white);
}

.ps-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0;
}


.ps-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text);
    transition: background-color 0.1s;
    user-select: none;
    margin: 0;
}

.ps-item:hover {
    background-color: rgba(45, 80, 22, 0.06);
}

.ps-item-checked {
    background-color: rgba(45, 80, 22, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

.ps-item input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.ps-label {
    line-height: 1.3;
    flex: 1;
}

@media (max-width: 960px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }

    .listings-filters {
        position: static;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

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

    .listing-form-sidebar .form-card-sticky {
        position: static;
    }

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

    .listing-show-sidebar {
        position: static;
        order: -1;
    }

    .listing-show-price {
        font-size: 24px;
    }

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

    .listings-hero .container {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Previene overflow di testo lungo nella descrizione */
    .listing-description-text {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Padding ridotto su mobile */
    .listing-show-page {
        padding: 20px 12px 48px;
    }

    .listing-description-card,
    .listing-details-card {
        padding: 18px 16px;
    }

    .listing-price-card {
        padding: 18px 16px;
    }
}

@media (max-width: 480px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

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

    .listing-show-page {
        padding: 14px 10px 40px;
    }
}

/* ──────────────────────────────────────────────────
   Seller public profile page
   ────────────────────────────────────────────────── */
.seller-profile-page {
    padding: 40px 0 60px;
}

.seller-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 32px;
}

.seller-profile-avatar {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    overflow: hidden;
}

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

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

.seller-profile-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--color-text);
}

.seller-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.seller-profile-meta .seller-type {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
}

.seller-profile-meta .seller-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.seller-profile-meta .seller-followers-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.seller-profile-meta .seller-followers-count strong {
    color: var(--color-text);
}

.seller-profile-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.seller-profile-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 20px;
}

/* ──────────────────────────────────────────────────
   Armeria show header meta row
   ────────────────────────────────────────────────── */
.armeria-show-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────
   Followed sellers list (account page)
   ────────────────────────────────────────────────── */
.followed-sellers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.followed-seller-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.followed-seller-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
}

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

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

.followed-seller-info strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.followed-seller-info span {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ──────────────────────────────────────────────────
   Seller card actions
   ────────────────────────────────────────────────── */
.seller-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.seller-actions form {
    margin: 0;
}

/* ──────────────────────────────────────────────────
   Favorite / Follow button active states
   ────────────────────────────────────────────────── */
.btn-favorite-active {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}

.btn-favorite-active:hover {
    background: #fde8e8;
    color: #a93226;
}

.btn-following-active {
    background: #eaf4eb;
    color: #1e7e34;
    border: 1px solid #a9d5ae;
}

.btn-following-active:hover {
    background: #d4edda;
    color: #155724;
}

/* ──────────────────────────────────────────────────
   Seller follower count (listing show sidebar)
   ────────────────────────────────────────────────── */
.seller-followers {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.seller-followers strong {
    color: var(--color-text);
}

/* ──────────────────────────────────────────────────
   Account empty message
   ────────────────────────────────────────────────── */
.account-empty-msg {
    color: var(--color-text-light);
    font-size: 15px;
    text-align: center;
    padding: 24px 0;
}

/* ──────────────────────────────────────────────────
   Responsive: seller profile
   ────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .seller-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .seller-profile-meta {
        justify-content: center;
    }

    .followed-seller-item {
        flex-wrap: wrap;
    }
}

/* ──────────────────────────────────────────────────
   Marketplace options (listing form)
   ────────────────────────────────────────────────── */
.marketplace-option {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.marketplace-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.marketplace-option-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.mp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.mp-icon-subito   { background: #FF6000; }
.mp-icon-vinted   { background: #0DA9A4; }
.mp-icon-wallapop { background: #6E3DEA; }

/* ──────────────────────────────────────────────────
   Marketplace links (listing show page)
   ────────────────────────────────────────────────── */
.listing-marketplace-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.listing-marketplace-links .contact-section-label {
    margin-bottom: 10px;
}

.mp-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    margin-bottom: 8px;
    transition: opacity .15s, transform .1s;
}

.mp-link-btn:last-child {
    margin-bottom: 0;
}

.mp-link-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.mp-link-subito   { background: #FF6000; }
.mp-link-vinted   { background: #0DA9A4; }
.mp-link-wallapop { background: #6E3DEA; }

.mp-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255,255,255,.22);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.mp-link-arrow {
    margin-left: auto;
    opacity: .75;
    flex-shrink: 0;
}
