:root {
    --ao-bg: #f7f5ef;
    --ao-surface: #ffffff;
    --ao-surface-2: #f1ece0;
    --ao-border: #d9cfa9;
    --ao-border-soft: #e9e3d2;
    --ao-gold: #b8860b;
    --ao-gold-bright: #96700f;
    --ao-gold-deep: #7a5c15;
    --ao-text: #211d14;
    --ao-text-muted: #6b5f45;
    --ao-danger: #b23a2c;
    --ao-success: #3f7a44;
    --ao-navbar-gradient: linear-gradient(180deg, #ffffff 0%, #f7f5ef 100%);
    --ao-locked-bg: #efe8d4;
    color-scheme: light;
}

html[data-theme="dark"] {
    --ao-bg: #0a0a0b;
    --ao-surface: #141311;
    --ao-surface-2: #1c1a15;
    --ao-border: #3a3220;
    --ao-border-soft: #2a2519;
    --ao-gold: #d4af37;
    --ao-gold-bright: #f2cd63;
    --ao-gold-deep: #8f6f1f;
    --ao-text: #f0ead8;
    --ao-text-muted: #a99a72;
    --ao-danger: #e2745a;
    --ao-success: #6fae72;
    --ao-navbar-gradient: linear-gradient(180deg, #121110 0%, #0a0a0b 100%);
    --ao-locked-bg: #0d0c0a;
    color-scheme: dark;
}

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

* {
    box-sizing: border-box;
}

html, body {
    background: var(--ao-bg);
    color: var(--ao-text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: 'Oswald', system-ui, sans-serif;
    letter-spacing: 0.02em;
}

a {
    color: var(--ao-gold-bright);
}

a:hover {
    color: var(--ao-gold);
}

.navbar {
    background: var(--ao-navbar-gradient) !important;
    border-bottom: 1px solid var(--ao-border);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.ao-navbar .navbar-nav {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.25rem;
}

.ao-navbar .nav-link {
    font-size: 0.92rem;
}

.navbar .nav-link {
    color: var(--ao-text-muted) !important;
}

.navbar .nav-link:hover {
    color: var(--ao-gold-bright) !important;
}

.navbar .text-light {
    color: var(--ao-text) !important;
}

.btn-primary {
    background: linear-gradient(180deg, var(--ao-gold-bright), var(--ao-gold-deep));
    border: 1px solid var(--ao-gold-deep);
    color: #16130a;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, #f7da85, var(--ao-gold));
    border-color: var(--ao-gold);
    color: #16130a;
}

.btn-outline-primary {
    color: var(--ao-gold-bright);
    border-color: var(--ao-gold-deep);
}

.btn-outline-primary:hover {
    background: var(--ao-gold-deep);
    color: #16130a;
}

.btn-outline-light {
    border-color: var(--ao-border);
    color: var(--ao-text-muted);
}

.btn-outline-light:hover {
    background: var(--ao-surface-2);
    color: var(--ao-gold-bright);
    border-color: var(--ao-gold-deep);
}

.card {
    background: var(--ao-surface);
    border: 1px solid var(--ao-border-soft);
    color: var(--ao-text);
}

.card-title {
    color: var(--ao-gold-bright);
}

.card-text.fw-bold {
    color: var(--ao-gold);
}

.form-control,
.form-select {
    background: var(--ao-surface-2);
    border: 1px solid var(--ao-border);
    color: var(--ao-text);
}

.form-control:focus,
.form-select:focus {
    background: var(--ao-surface-2);
    border-color: var(--ao-gold-deep);
    color: var(--ao-text);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: var(--ao-text-muted);
    opacity: 0.7;
}

.form-label {
    color: var(--ao-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.form-check {
    padding-left: 2rem;
}

.form-check-input {
    background-color: var(--ao-surface-2);
    border: 1px solid var(--ao-border);
    margin-left: -2rem;
}

.form-check-input:checked {
    background-color: var(--ao-gold-deep);
    border-color: var(--ao-gold);
}

.form-check-label {
    color: var(--ao-text);
    font-size: 0.92rem;
}

.text-muted {
    color: var(--ao-text-muted) !important;
}

.alert-success {
    background: rgba(111, 174, 114, 0.15);
    border: 1px solid var(--ao-success);
    color: #b8e6ba;
}

.text-danger {
    color: var(--ao-danger) !important;
}

.ao-dropdown-menu {
    background: var(--ao-surface);
    border: 1px solid var(--ao-border);
    min-width: 180px;
}

.ao-dropdown-menu .dropdown-item {
    color: var(--ao-text);
}

.ao-dropdown-menu .dropdown-item:hover,
.ao-dropdown-menu .dropdown-item:focus {
    background: var(--ao-surface-2);
    color: var(--ao-gold-bright);
}

.ao-dropdown-menu .dropdown-divider {
    border-color: var(--ao-border-soft);
}

.navbar .dropdown-toggle {
    color: var(--ao-text) !important;
}

.navbar .dropdown-toggle:hover {
    color: var(--ao-gold-bright) !important;
}

.ao-theme-toggle {
    border-color: var(--ao-border);
    color: var(--ao-text);
    background: var(--ao-surface-2);
    font-size: 1rem;
    line-height: 1;
    padding: 0.3rem 0.55rem;
}

.ao-theme-toggle:hover {
    border-color: var(--ao-gold-deep);
    background: var(--ao-surface);
    color: var(--ao-gold-bright);
}

.ao-toggle-password {
    border: 1px solid var(--ao-border);
    border-left: none;
    background: var(--ao-surface-2);
    color: var(--ao-text-muted);
}

.ao-toggle-password:hover {
    background: var(--ao-surface);
    color: var(--ao-gold-bright);
    border-color: var(--ao-border);
}

.ao-danger-zone {
    border-color: var(--ao-danger);
}

.ao-danger-zone .ao-form-section-header {
    border-bottom-color: var(--ao-danger);
}

footer {
    border-top: 1px solid var(--ao-border-soft) !important;
    color: var(--ao-text-muted);
}

.ao-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: var(--ao-surface);
    border-top: 1px solid var(--ao-gold-deep);
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
}

.ao-cookie-banner-text {
    color: var(--ao-text);
    font-size: 0.9rem;
    flex: 1 1 320px;
}

.ao-cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.hero {
    padding: 4rem 0;
    text-align: center;
}

.ao-inspection-ad {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--ao-surface);
    border: 1px solid var(--ao-gold-deep);
    border-radius: 24px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ao-inspection-ad:hover {
    border-color: var(--ao-gold-bright);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 4px 18px rgba(212, 175, 55, 0.12);
}

.ao-inspection-ad-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ao-surface-2);
    border: 1px solid var(--ao-border);
}

.ao-inspection-ad-text {
    flex-grow: 1;
}

.ao-inspection-ad-title {
    color: var(--ao-gold-bright);
    font-weight: 700;
    font-size: 1.1rem;
}

.ao-inspection-ad-subtitle {
    color: var(--ao-text-muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.ao-inspection-ad-cta {
    color: var(--ao-text);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--ao-border-soft);
}

.faq-item {
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--ao-gold-deep);
    padding-left: 1rem;
}

.ao-form-section {
    background: var(--ao-surface);
    border: 1px solid var(--ao-border-soft);
    border-radius: 4px;
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.ao-form-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ao-surface-2);
    border-bottom: 1px solid var(--ao-border-soft);
    padding: 0.85rem 1.25rem;
}

.ao-form-section-header .ao-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
    background: linear-gradient(180deg, var(--ao-gold-bright), var(--ao-gold-deep));
    color: #16130a;
    font-weight: 700;
    font-size: 0.8rem;
}

.ao-form-section-header h2 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--ao-text);
    text-transform: uppercase;
}

.ao-form-section-body {
    padding: 1.25rem;
}

.ao-avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ao-gold-deep);
    background: var(--ao-surface-2);
}

.ao-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--ao-gold-deep);
    margin-right: 0.4rem;
}

.ao-logo-img {
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.ao-listing-thumb {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--ao-border-soft);
}
.ao-dropdown-header {
    padding: 0.5rem 1rem;
    color: var(--ao-gold-bright);
    font-weight: 600;
}

.ao-dropdown-header .ao-nav-avatar {
    width: 32px;
    height: 32px;
}

.ao-seller-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--ao-surface);
    border: 1px solid var(--ao-border-soft);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.15s ease;
}

.ao-seller-box:hover {
    border-color: var(--ao-gold-deep);
}

.ao-market-box {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.ao-market-good {
    color: var(--ao-success);
    border-color: var(--ao-success);
    background: rgba(111, 174, 114, 0.08);
}

.ao-market-high {
    color: var(--ao-danger);
    border-color: var(--ao-danger);
    background: rgba(226, 116, 90, 0.08);
}

.ao-market-neutral {
    color: var(--ao-gold-bright);
    border-color: var(--ao-gold-deep);
    background: rgba(212, 175, 55, 0.06);
}

.ao-accent {
    color: var(--ao-gold-bright);
}

.ao-about-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.ao-about-list li {
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--ao-text);
}

.ao-about-list li::before {
    content: "•";
    color: var(--ao-gold-bright);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.ao-extra-service {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--ao-border-soft);
}

.ao-extra-service:last-child {
    border-bottom: none;
}

.ao-extra-price {
    color: var(--ao-gold-bright);
    font-weight: 600;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

.ao-extra-link {
    color: var(--ao-text);
    text-decoration: underline;
    text-decoration-color: var(--ao-gold-deep);
    text-underline-offset: 2px;
}

.ao-extra-link:hover {
    color: var(--ao-gold-bright);
    text-decoration-color: var(--ao-gold-bright);
}

.ao-inquiry-submit {
    line-height: 1.4;
    text-align: center;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.ao-inquiry-message {
    resize: vertical;
}

.ao-market-hint {
    font-size: 0.82rem;
    color: var(--ao-gold-bright);
    margin-top: 0.35rem;
    min-height: 1.1rem;
}

.ao-promoted-card {
    border: 1px solid var(--ao-gold-deep) !important;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 4px 18px rgba(212, 175, 55, 0.12);
    position: relative;
}

.ao-promoted-ribbon {
    position: absolute;
    top: 0.6rem;
    left: 0;
    background: linear-gradient(90deg, var(--ao-gold-bright), var(--ao-gold-deep));
    color: #16130a;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.7rem;
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

.ao-lead-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--ao-border-soft);
}

.ao-lead-row:last-child {
    border-bottom: none;
}

.ao-lead-unread {
    background: rgba(212, 175, 55, 0.05);
}

.ao-lead-status {
    padding-top: 0.15rem;
}

.ao-lead-badge-new {
    background: linear-gradient(180deg, var(--ao-gold-bright), var(--ao-gold-deep));
    color: #16130a;
    font-weight: 700;
}

.ao-lead-badge-read {
    background: var(--ao-surface-2);
    color: var(--ao-text-muted);
    border: 1px solid var(--ao-border-soft);
}

.ao-admin-seller-contact {
    font-size: 0.82rem;
    color: var(--ao-gold-bright);
    margin-top: 0.2rem;
}

.ao-reply {
    border-left: 3px solid var(--ao-gold-deep);
    background: var(--ao-surface-2);
    padding: 0.6rem 0.9rem;
    margin-top: 0.75rem;
    border-radius: 0 4px 4px 0;
}

.ao-lead-actions {
    min-width: 170px;
}

.ao-dealer-badge {
    background: linear-gradient(180deg, var(--ao-gold-bright), var(--ao-gold-deep));
    color: #16130a;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3em 0.6em;
}

.ao-profile-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--ao-gold-deep);
    background: var(--ao-surface-2);
    flex-shrink: 0;
}

.ao-seller-name {
    color: var(--ao-text);
    font-weight: 600;
}

.ao-seller-phone {
    color: var(--ao-gold-bright);
    font-size: 0.9rem;
}

.ao-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ao-gold-deep);
    background: var(--ao-surface-2);
}

.ao-locked-field,
.ao-locked-field:disabled {
    background-color: var(--ao-locked-bg) !important;
    color: var(--ao-gold-bright) !important;
    -webkit-text-fill-color: var(--ao-gold-bright) !important;
    border: 1px solid var(--ao-gold-deep) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: not-allowed;
    opacity: 1 !important;
}

.ao-equip-accordion .accordion-item {
    background: var(--ao-surface);
    border: 1px solid var(--ao-border-soft);
    margin-bottom: 0.6rem;
    border-radius: 4px;
    overflow: hidden;
}

.ao-equip-accordion .accordion-button {
    background: var(--ao-surface-2);
    color: var(--ao-text);
    font-family: 'Oswald', system-ui, sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    box-shadow: none !important;
}

.ao-equip-accordion .accordion-button::after {
    filter: invert(72%) sepia(45%) saturate(500%) hue-rotate(1deg) brightness(105%);
}

.ao-equip-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--ao-surface-2), var(--ao-surface));
    color: var(--ao-gold-bright);
}

.ao-equip-accordion .accordion-body {
    background: var(--ao-surface);
    padding: 1rem 1.1rem;
}

.ao-equip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--ao-border-soft);
    color: var(--ao-text-muted);
    font-size: 0.75rem;
    margin-left: 0.6rem;
}

.ao-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ao-chip-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.ao-chip-label {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--ao-border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--ao-text-muted);
    background: var(--ao-surface-2);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.ao-chip-label:hover {
    border-color: var(--ao-gold-deep);
    color: var(--ao-text);
}

.ao-chip-input:checked + .ao-chip-label {
    background: linear-gradient(180deg, var(--ao-gold-bright), var(--ao-gold-deep));
    border-color: var(--ao-gold);
    color: #16130a;
    font-weight: 600;
}

.ao-chip-input:focus-visible + .ao-chip-label {
    outline: 2px solid var(--ao-gold-bright);
    outline-offset: 2px;
}


/* ---- Мобилна версия ---- */
.ao-navbar .navbar-toggler {
    border-color: var(--ao-border);
}

html:not([data-theme="dark"]) .ao-navbar .navbar-toggler-icon {
    filter: invert(1);
}

@media (max-width: 1199.98px) {
    .ao-navbar .navbar-collapse {
        padding: 0.75rem 0;
    }

    .ao-navbar .navbar-nav {
        gap: 0.15rem;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 2rem 0;
    }

    .ao-inspection-ad {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.75rem;
    }

    .ao-inspection-ad-text {
        flex-basis: calc(100% - 4.5rem);
    }

    .ao-inspection-ad-cta {
        width: 100%;
    }
}


.ao-existing-image {
    width: 120px;
}

.ao-existing-image img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--ao-border-soft);
    margin-bottom: 0.35rem;
}


/* Кликаеми снимка и заглавие в картите с обяви */
.ao-card-image-link {
    display: block;
}

.ao-card-link {
    color: inherit;
    text-decoration: none;
}

.ao-card-link:hover {
    color: var(--ao-gold, inherit);
    text-decoration: underline;
}


/* Блок с данни за администратор в страницата на обявата */
.ao-admin-box {
    border-left: 3px solid var(--ao-gold-bright);
}
