@charset "utf-8";

:root {
    --primary-color: #20578a;
    --primary-color-hover: #0b3e6e;
    --secondary-color: #ee812b;
    --secondary-color-hover: #ff7000;    
    --contact-color: #455a64;
    --link-color: #0066cc;
    --bg-body: #f4f7f9;
    --white: #ffffff;
    --text-main: #333;
    --text-muted: #777;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 6px;
    --header-h: auto;
    --menu-h: 50px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0; width: 100%;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main); line-height: 1.6;
    background-color: var(--bg-body);
}

body {
    background: var(--bg-body);
}

body.smart-ad-modal-open {
    overflow: hidden;
}

.clear { clear: both; }

.header-wrapper {
    background: var(--white); box-shadow: var(--shadow-sm);
    position: relative; top: 0; width: 100%; z-index: 1100;
}

.header {
    max-width: 1100px; margin: 0 auto; height: var(--header-h);
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 20px;
    padding: 10px 15px;
}

.header .logo { display:flex; position:relative; padding-left:75px; }

.search-helper-text, .location-helper-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.header-search-box { flex: 1; }

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 48px;
    padding: 0 4px 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search-input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    font-size: 0.9rem;
    padding-left: 10px;
    font-family: inherit;
}

.search-icon { color: #888; font-size: 22px; }

.search-submit-btn {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 0 20px;
    height: 40px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit-btn:hover { background: #e67e00; }

.header-location-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 400px;
    flex: 1;
    min-width: 250px;
}

.location-main-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    gap: 8px;
}

.location-main-container:focus-within {
    border-color: #f38225;
    background: #fff;
    box-shadow: 0 4px 12px rgba(243, 130, 37, 0.1);
}

.location-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 150px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 0 12px;
}

.location-input-wrapper input {
    border: none;
    background: transparent;
    padding: 8px;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.loc-icon { color: #f38225; font-size: 20px !important; }

.selected-filters {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background: #f38225; 
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.2s ease;
}

.filter-tag .filter-text {
    display: inline-block; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.filter-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    margin-left: 6px;
    cursor: pointer;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.filter-remove:hover { background: rgba(255, 255, 255, 0.4); }
.filter-remove .material-symbols-rounded { font-size: 14px !important; height: 14px; width: 14px; }

.header-banner { flex: 1; text-align: right; max-width: 728px; height: 70px; margin-left: 20px; }
.header-banner img { height: 100%; border-radius: 4px; object-fit: contain; }

.main-menu-wrapper {
    background: #2978B8; position: relative;
    width: 100%; z-index: 1000;
}

.main-menu {
    max-width: 1100px; margin: 0 auto; display: flex;
    align-items: center; min-height: var(--menu-h); padding: 0 15px;
    gap: 10px;
}

.menu-primary-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    flex-wrap: wrap;
}

.menu-primary-actions .add-ads {
    margin-right: 0;
}

.add-ads {
    background: var(--secondary-color); color: #fff;
    padding: 5px 15px; text-decoration: none; font-weight: 700;
    border-radius: 6px; font-size: 18px; text-transform: uppercase;
    margin-right: auto; transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border: 1px solid #ce5f08;
}

button.add-ads {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

.add-ads:hover { background: var(--secondary-color-hover); }
.add-ads:focus { outline: none; box-shadow: none; }

.add-ads--ai {
    background: linear-gradient(135deg, #2f6bff 0%, #6b46ff 58%, #9c3dff 100%);
    border: 1px solid #254fd7;
}

.add-ads--ai:hover {
    background: linear-gradient(135deg, #255cf2 0%, #5a38f3 58%, #8c31f2 100%);
    box-shadow: 0 10px 22px rgba(91, 78, 255, 0.34);
}

.menu-links { display: flex; align-items: center; }

.menu-links a.menu {
    color: var(--white); text-decoration: none; padding: 0 15px;
    font-size: 14px; border-right: 1px solid rgba(255, 255, 255, 0.3); transition: var(--transition); border-bottom: 1px solid rgba(255, 255, 255, 0.0);
}

.menu-links a.menu:hover { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }

.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    flex-wrap: wrap;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link--muted {
    background: transparent;
    border: 1px solid transparent;
}

.auth-link--outline {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
}

.auth-link--dark {
    background: #235d91;
    border: 1px solid #235d91;
}

.auth-link:hover {
    background: rgba(255,255,255,0.18);
}

.auth-link-text {
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.auth-card-shell {
    background: rgba(255,255,255,0.98);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.auth-subtitle {
    margin: -6px 0 18px;
    color: var(--text-muted);
}

.auth-form-card {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-weight: 600;
    color: var(--text-main);
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.auth-field input:focus {
    outline: none;
    border-color: #f38225;
    box-shadow: 0 0 0 3px rgba(243,130,37,0.12);
}

.auth-password-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.auth-password-row input {
    flex: 1 1 auto;
}

.auth-password-action {
    width: 48px;
    min-width: 48px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    background: #fff;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.auth-password-action:hover {
    border-color: var(--primary-color);
    background: #f5f9ff;
}

.auth-field-hint,
.auth-password-status {
    font-size: 13px;
    line-height: 1.4;
}

.auth-field-hint {
    color: var(--text-muted);
}

.auth-password-status.is-ok {
    color: #1f7a3d;
}

.auth-password-status.is-error {
    color: #b43c3c;
}

.auth-submit-btn {
    width: fit-content;
    min-width: unset;
    margin-top: 6px;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}

.auth-alert--error {
    background: #fff1f1;
    color: #a12a2a;
    border: 1px solid #f2c1c1;
}

.auth-alert--success {
    background: #eefaf1;
    color: #25643b;
    border: 1px solid #bde3c8;
}

.auth-alert--info {
    background: #eef6ff;
    color: #204d7a;
    border: 1px solid #c6ddf4;
}

.auth-switch-text {
    margin-top: 16px;
    font-size: 14px;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dce3ea;
}

.google-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d7dce1;
    background: #fff;
    color: #1f1f1f;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.google-auth-btn:hover {
    border-color: #c1cad4;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.google-auth-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: #fff;
    font-weight: 700;
}

.auth-helper-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f9fb;
    color: var(--text-muted);
    border: 1px dashed #d6dce3;
    font-size: 13px;
}

.ai-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ai-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 0 6px;
}

.ai-hero--minimal {
    align-items: center;
    text-align: center;
    padding: 6px 0 2px;
}

.ai-hero--minimal .category-title {
    margin: 0;
}

.ai-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(111,85,255,0.12) 0%, rgba(78,140,255,0.12) 100%);
    color: #3f51b5;
    font-size: 13px;
    font-weight: 700;
}

.ai-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-access-actions .auth-link,
.ai-access-actions .google-auth-btn {
    width: auto;
    max-width: none;
}

.ai-guest-btn {
    border: 1px solid #d7dce1;
    background: #fff9ef;
    color: #8a4d12;
}

.ai-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.ai-feature-grid--launcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ai-feature-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ai-feature-card--launcher {
    position: relative;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(120, 135, 160, 0.22);
    background:
        radial-gradient(circle at top, rgba(111, 85, 255, 0.12), transparent 52%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

.ai-feature-card--launcher::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47,107,255,0.05), rgba(156,61,255,0.06));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ai-feature-card--launcher:hover::before {
    opacity: 1;
}

.ai-feature-card--launcher strong {
    position: relative;
    z-index: 1;
    max-width: 180px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
}

.ai-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cfd9e6;
}

.ai-feature-card.is-selected {
    border-color: #6f55ff;
    box-shadow: 0 0 0 3px rgba(111,85,255,0.12);
}

.ai-feature-card.is-locked {
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.ai-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6f55ff 0%, #4e8cff 100%);
    color: #fff;
}

.ai-feature-card--launcher .ai-feature-icon {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    font-size: 62px !important;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.ai-feature-card--photo .ai-feature-icon {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.ai-feature-card--voice .ai-feature-icon {
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
}

.ai-feature-card--url .ai-feature-icon {
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
}

.ai-feature-action {
    margin-top: auto;
    color: #3f51b5;
    font-weight: 700;
}

.ai-security-note {
    padding: 16px 18px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ai-security-note ul {
    margin: 0;
    padding-left: 18px;
}

.ai-security-note li + li {
    margin-top: 6px;
}

.ai-access-actions--compact {
    justify-content: center;
}

.ai-guest-note {
    text-align: center;
}

.smart-ad-hidden-form {
    display: none;
}

.smart-ad-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.smart-ad-modal[hidden] {
    display: none !important;
}

.smart-ad-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.smart-ad-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.smart-ad-modal__dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #2f6bff 0%, #6b46ff 58%, #9c3dff 100%);
}

.smart-ad-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.smart-ad-modal__header h2 {
    margin: 0;
    font-size: 24px;
}

.smart-ad-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d7dce1;
    border-radius: 10px;
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.smart-ad-modal__close:hover {
    background: #f7f9fc;
    border-color: #c7d2de;
    transform: translateY(-1px);
}

.smart-ad-loader {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
}

.smart-ad-loader[hidden] {
    display: none !important;
}

.smart-ad-loader__box {
    position: relative;
    min-width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    text-align: center;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.smart-ad-loader__box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(111,85,255,0.12), transparent 55%);
    pointer-events: none;
}

.smart-ad-loader__box strong {
    position: relative;
    z-index: 1;
    font-size: 24px;
}

.smart-ad-loader__status,
.smart-ad-loader__box > span:last-of-type {
    position: relative;
    z-index: 1;
}

.smart-ad-loader__status {
    font-weight: 700;
    color: #3f51b5;
}

.smart-ad-loader__box > span:last-of-type {
    color: var(--text-muted);
}

.inzi-loader-bird {
    position: relative;
    z-index: 1;
    width: 118px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 24px rgba(79, 70, 229, 0.18));
}

.inzi-loader-bird svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.inzi-loader-bird__group {
    animation: inzi-float 3s ease-in-out infinite;
}

.inzi-loader-bird__wing {
    transform-box: fill-box;
}

.inzi-loader-bird__wing--left {
    transform-origin: 90% 80%;
    animation: inzi-flap-left 0.8s ease-in-out infinite;
}

.inzi-loader-bird__wing--right {
    transform-origin: 10% 20%;
    animation: inzi-flap-right 0.8s ease-in-out infinite;
}

.smart-ad-loader__dots {
    display: inline-flex;
    gap: 8px;
    margin-top: 6px;
}

.smart-ad-loader__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f6bff 0%, #9c3dff 100%);
    animation: smart-ad-bounce 1.1s infinite ease-in-out;
}

.smart-ad-loader__dots span:nth-child(2) {
    animation-delay: 0.12s;
}

.smart-ad-loader__dots span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes smart-ad-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.55; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes inzi-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes inzi-flap-left {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes inzi-flap-right {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(25deg); }
}

@keyframes smart-ad-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.smart-ad-panel,
.smart-ad-result {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.smart-ad-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.smart-ad-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.smart-ad-voice-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smart-ad-voice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.smart-ad-field label {
    font-weight: 700;
    color: var(--text-main);
}

.smart-ad-field input[type="url"],
.smart-ad-field input[type="file"],
.smart-ad-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.smart-ad-field textarea {
    min-height: 120px;
    resize: vertical;
}

.smart-ad-field input:focus,
.smart-ad-field textarea:focus {
    outline: none;
    border-color: #6b46ff;
    box-shadow: 0 0 0 3px rgba(107,70,255,0.12);
}

.smart-ad-mic-btn,
.smart-ad-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d7dce1;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.smart-ad-mic-btn {
    background: linear-gradient(135deg, #2f6bff 0%, #6b46ff 58%, #9c3dff 100%);
    border-color: #254fd7;
    color: #fff;
}

.smart-ad-mic-btn:hover {
    background: linear-gradient(135deg, #255cf2 0%, #5a38f3 58%, #8c31f2 100%);
}

.smart-ad-mic-btn.is-recording {
    background: linear-gradient(135deg, #ef4444 0%, #c026d3 100%);
    border-color: #be185d;
    box-shadow: 0 8px 20px rgba(190, 24, 93, 0.24);
}

.smart-ad-mic-btn.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.smart-ad-secondary-btn {
    background: #fff;
    color: var(--text-main);
}

.smart-ad-secondary-btn:hover {
    background: #f7f9fc;
    border-color: #c7d2de;
}

.smart-ad-voice-status {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-size: 13px;
}

.smart-ad-voice-note {
    margin-top: 0;
}

.smart-ad-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.smart-ad-submit {
    justify-content: center;
}

.smart-ad-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.smart-ad-result-card {
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.smart-ad-result-card--wide {
    grid-column: 1 / -1;
}

.smart-ad-result-card p {
    margin: 8px 0 0;
    white-space: pre-line;
}

.smart-ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.smart-ad-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3f51b5;
    font-size: 13px;
    font-weight: 700;
}

.account-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.account-section-title {
    margin: 24px 0 14px;
    font-size: 22px;
}

.account-empty-box {
    padding: 20px;
    border: 1px dashed #d6dce3;
    border-radius: 8px;
    background: #fafcfe;
}

.account-ads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-ad-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    background: #fff;
}

.account-ad-title {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.account-ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

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

.burger-toggle {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    display: none; background: rgba(255,255,255,0.1); border: 1px solid #555;
    color: #fff; border-radius: 4px; padding: 6px 12px;
    align-items: center; gap: 8px; font-family: inherit;
}

.body_ads {
    max-width: 1100px;
    margin: 16px auto;
    display: flex; gap: 25px; padding: 0 15px; min-height: 60vh;
}

.obw-menu {
    width: 300px; flex-shrink: 0; background: rgba(255,255,255,0.98);
    padding: 10px; border-radius: var(--radius); height: fit-content;
    box-shadow: var(--shadow-sm); top: 150px;
    pointer-events: auto;
}

.mobile-menu-header {
    padding: 6px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius);
}

.category-nav { display: flex; flex-direction: column; }
.category { border-bottom: 1px solid #f0f0f0; }

.obw-menu a.menu1, .menu1 {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 5px; text-decoration: none;
    color: #333; font-weight: 500; transition: background 0.2s, color var(--transition);
    min-height: 44px; cursor: pointer; font-size: 14px;
}

.obw-menu a.menu1:hover, .menu1:hover, .category.active .menu1 {
    background: #f8f9fa; color: var(--primary-color);
}

.obw-menu a.menu1 .material-symbols-rounded, .menu1 .material-symbols-rounded {
    font-size: 22px; color: #666;
}

.obw-menu a.menu1:hover .material-symbols-rounded, .category.active .menu1 .material-symbols-rounded {
    color: var(--primary-color);
}

.obw-menu a.menu2, .menu2 {
    display: block; padding: 8px 0; font-size: 13px;
    color: var(--text-muted); text-decoration: none; transition: var(--transition);
}

.obw-menu a.menu2:hover, .obw-menu a.menu2.active, .menu2:hover, .menu2.active {
    color: var(--primary-color);
}

.category .submenu {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out, opacity 0.2s ease;
    opacity: 0; overflow: hidden; padding-left: 45px;
    background: #fff;
}

.category.active .submenu {
    grid-template-rows: 1fr; opacity: 1;
    padding-top: 5px; padding-bottom: 10px;
}

.submenu-inner { min-height: 0; display: flex; flex-direction: column; }

.obw-body { flex: 1; }

.obw-main {
    background: var(--white); padding: 25px; margin-bottom: 20px;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: var(--transition); display: flex; flex-direction: column;
    border: 1px solid rgba(0,0,0,0.2); position: relative;
}

.obw-main:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.obw-main__vip { border: 1px solid #f7c948; }
.obw-main__top { border: 1px solid #235d91; }

.obw-label-box {
    display: flex;
    gap: 6px;
    position: absolute;
    top: -15px;
    left: -10px;
    zoom: 0.8;  
}

.ad-status-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 0px 4px;
    border-radius: 6px; 
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: default;
}

.label-brand-icon { width: 28px; height: 28px; object-fit: contain; }
.status-vip { background-color: #f38225; }
.status-top { background-color: #235d91; }

.obw-main:hover .ad-status-label { filter: brightness(1.1); transition: filter 0.2s ease; }

.obw-date {
    font-size: 12px; color: var(--text-muted); font-weight: 600;
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    position: absolute; top: -2px; left: -2px;
}

.obw-date span.top, .obw-date span.vip { display: inline-block; width: 40px; height: 16px; background-size: contain !important; }
.obw-date span.top { background: url(/images/lable-top.jpg) no-repeat; }
.obw-date span.vip { background: url(/images/lable-vip.jpg) no-repeat; }

.obw-content-wrapper, .ads__img-container { display: flex; gap: 20px; justify-content: space-between; }

.ads__img-link { display: block; width: 208px; height: 128px; border-radius: var(--radius); overflow: hidden; padding: 3px; border: 1px solid #ccc; }

.ad-thumb { width: 200px; height: 120px; object-fit: contain; border-radius: 0px; background: transparent; }

.obw-main .text { flex-grow: 1; font-size: 15px; color: #333; line-height: 1.5; }

.obw-main strong, .ad-title-text {
    color: var(--primary-color); font-size: 1.15em; display: block;
    margin-bottom: 6px; line-height: 1.3;
    display: -webkit-box; -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-link-title { text-decoration: none; color: inherit; }

.ad-item-meta { display: flex; margin-top: 14px; align-items: center; }

.ad-list-location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #ccc;
}

.ad-list-location .material-symbols-rounded { font-size: 24px; margin-right: 4px; color: #f38225; }

.location-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }

.location-map-link {
    display: inline-flex;
    align-items: center;
    text-decoration: underline dotted;
    color: inherit; 
    transition: opacity 0.2s;
}

.location-map-link:hover { opacity: 0.8; text-decoration: underline; }

.contact-protected-box { margin-right: 14px; }
.contact-protected-box .material-symbols-rounded, .www-wrapper .material-symbols-rounded { font-size: 20px; font-weight: 400; }

.ad-list-location .material-symbols-rounded.extern-link, .www-wrapper .material-symbols-rounded.extern-link {
    font-size: 14px; vertical-align: middle; margin-left: 2px; height: 14px; width: 16px;      
}

.ad-www, .contact-protected-box a { color: var(--link-color); text-decoration: none; cursor: pointer; transition: color 0.3s; }
.ad-www:hover, .contact-protected-box a:hover { color: var(--primary-color); text-decoration: underline; }

.obw-main .contacts {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f0;
    display: flex; justify-content: flex-start; align-items: center; gap: 0;
    flex-wrap: wrap;
}

.read-more-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background-color: #f0f2f5; color: #555;
    border-radius: 50%; text-decoration: none; transition: var(--transition);
    position: absolute; right: -12px; bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.read-more-arrow:hover {
    background-color: var(--primary-color); color: var(--white);
    transform: scale(1.1) translateX(3px);
}

.ad-list-info { flex-grow: 1; }
.ad-list-price { font-size: 0.95em; color: #444; }
.ad-list-price .price-val { font-weight: bold; }

.ad-preview {
    display: -webkit-box; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
    font-size: 14px; line-height: 1.5; max-height: 4.5em;
    color: var(--text-muted); margin-top: 8px;
}

.ad-full-view { padding: 30px; }

.ad-header { border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 25px; }
.ad-title-h1 { font-size: 26px; color: var(--text-main); margin: 10px 0; line-height: 1.3; font-weight: 700; }
.ad-meta-top { margin-bottom: 10px; color: #888; font-size: 0.9em; }

.ad-gallery { margin-bottom: 30px; }

.ad-image-main {
    width: 100%; background: #f8f8f8; border-radius: var(--radius);
    overflow: hidden; margin-bottom: 15px; display: flex;
    justify-content: center; align-items: center; aspect-ratio: 16 / 9;
}

.ad-image-main img { max-width: 100%; max-height: 100%; object-fit: contain; }

.ad-thumbnails { display: flex; flex-wrap: wrap; gap: 6px; overflow-x: auto; padding-bottom: 10px; }

.thumb-item {
    flex: 0 0 100px; height: 70px; border-radius: var(--radius);
    overflow: hidden; cursor: pointer; border: 1px solid transparent; transition: var(--transition);
    position: relative;
}

.thumb-item:hover, .thumb-item.active { border-color: var(--primary-color); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-click-area { height: 100%; }

.ad-text-full { font-size: 16px; line-height: 1.6; color: #444; margin-bottom: 40px; white-space: pre-line; }

.ad-contact-box {
    background: #edf5ff; border: 1px solid #dfeefe; border-radius: var(--radius);
    padding: 15px; margin: 30px 0 40px;
}

.contact-header {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 18px; margin-bottom: 20px; color: var(--primary-color);
}

.contact-row {
    padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 20px;
}

.contact-row:last-child { border-bottom: none; }
.contact-row .label { flex: 0 0 25px; color: #777; font-size: 14px; font-weight: 600; min-width: 110px; }
.contact-row .value {
    font-weight: 700; color: var(--primary-color); text-decoration: none; font-size: 17px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }

.contact-big-link {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.2em; font-weight: bold; color: var(--primary-color);
    text-decoration: none; margin: 15px 0;
}

.ad-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 20px; }

.back-link {
    background-color: #f0f2f5; color: #555; padding: 8px 16px;
    border-radius: 8px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; text-decoration: none !important;
    transition: var(--transition); cursor: pointer;
    border: none; outline: none; font-family: inherit;
}

.back-link:hover {
    background-color: #e4e6e9; color: var(--primary-color);
    border-color: #ddd; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.back-link .material-symbols-rounded { text-decoration: none !important; font-size: 20px; }

.share-buttons { display: flex; align-items: center; gap: 10px; }
.share-buttons a { padding: 0; text-decoration: none; font-size: 12px; font-weight: bold; height:36px; width:36px; }
.share-buttons img { width: 100%; height: 100%; }
.share-buttons span { font-size: 12px; }

.similar-ads { margin-top: 50px; border-top: 2px solid #eee; padding-top: 30px; }
.section-title { font-size: 20px; margin-bottom: 20px; color: #333; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.similar-item {
    background: #fff; padding: 20px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
    transition: var(--transition); border: 1px solid #f0f0f0;
}

.similar-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.sim-text { font-size: 14px; height: 65px; overflow: hidden; margin-bottom: 12px; color: #555; }
.sim-more { font-size: 12px; color: var(--primary-color); font-weight: 700; text-transform: uppercase; }

.author-manage-panel {
    background: #eef7ff;
    border: 1px solid #b8daff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.amp-actions { display: flex; gap: 10px; }
.amp-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.btn-up { background: #28a745; color: #fff; border: none; cursor: pointer; }
.btn-up:hover { background: #218838; }
.btn-del { background: #dc3545; color: #fff; }
.btn-del:hover { background: #c82333; }
.btn-disabled { background: #e9ecef; color: #6c757d; cursor: not-allowed; border: 1px solid #dee2e6; }

.set-main-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ccc;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.thumb-item.is-main .set-main-btn {
    color: #ffcc00;
    border-color: #ffcc00;
    background: #fff;
    font-weight: bold;
}

.set-main-btn:hover { transform: scale(1.1); color: #ffcc00; }

.obw-body form { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.ru-line {
    display: flex; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}

.ru-line:last-of-type { border-bottom: none; }
.ru-lable { flex: 0 0 200px; font-weight: 700; font-size: 14px; color: #444; padding-top: 10px; }

.ru-line input:not([type="checkbox"]):not([type="radio"]), .ru-line select, #text_obw {
    flex: 1; min-width: 280px; padding: 12px 15px; border: 1px solid #ddd;
    border-radius: 8px; font-family: inherit; font-size: 15px; transition: var(--transition);
    max-width: 100%; width: 100%;
}

.ru-line input:not([type="checkbox"]):not([type="radio"]):focus, .ru-line select:focus, #text_obw:focus {
    outline: none; border-color: #745ac6; box-shadow: 0 0 0 3px rgba(116,90,198,0.2);
}

#text_obw { height: 180px; resize: vertical; }
.ru-info { width: 100%; margin-top: 8px; font-size: 12px; color: #999; font-style: italic; padding-left: 200px; }

.add_button {
    display: block; width: 100%; max-width: 350px; margin: 30px auto 0;
    background: var(--secondary-color); color: #fff; border: none; padding: 18px;
    font-size: 16px; font-weight: 700; border-radius: 10px; cursor: pointer;
    transition: var(--transition); text-transform: uppercase; letter-spacing: 1px;
}

.add_button:hover { background: var(--secondary-color-hover); transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.2); }

.price-input-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ru-line .price-input-group input, .ru-line .price-input-group select { min-width: unset; }
.price-input-group .price-from { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; user-select: none; flex: 0 0 auto; }
.price-input-group .price-from input[type="checkbox"] {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}
.price-input-group input[type="number"] { width: 110px; flex-grow: 0; }
.price-input-group .currency-select { width: 85px; }

.photo-upload-panel {
    flex: 1 1 0;
    min-width: 280px;
    width: 100%;
}

.photo-upload-panel .ru-info {
    padding-left: 0;
}

.photo-limits-note {
    opacity: .8;
}

.photo-selection-box {
    display: none;
    margin-top: 12px;
}

.photo-selection-box.is-visible {
    display: block;
}

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

.photo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

.photo-card__preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.photo-card__meta {
    min-width: 0;
}

.photo-card__name {
    display: block;
    color: #333;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-card__size {
    color: #666;
    font-size: 12px;
}

.photo-card__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(217, 83, 79, 0.95);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.photo-card__remove:hover {
    background: #c9302c;
}

.photo-clear-btn {
    margin-top: 12px;
    background: #777;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.photo-clear-btn:hover {
    background: #666;
}

.photo-message {
    margin-top: 10px;
}

.photo-message__error {
    color: #c62828;
    padding: 10px 12px;
    font-weight: 700;
    background: #fff5f5;
    border: 1px solid #f3c4c4;
    border-radius: 8px;
}

.input-group { margin-bottom: 15px; }
.input-group input, .input-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; }
.form-actions { margin-top: 25px; }
#formMessage, #formResponse { margin-top: 20px; font-weight: 600; }

.footer { background: #EFEFEF; color: #333; padding: 60px 0; margin-top: 60px; }

.footer-body {
    max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 40px; padding: 0 15px;
}

.footer-copyright img { filter: grayscale(1); opacity: 0.5; }     

.footer-copyright a { display: flex; margin-bottom: 16px; }

.footer-nav-title { color: #000; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #333; text-decoration: none; font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: #000; padding-left: 5px; }

.social-icons { display: flex; gap: 20px; }
.social-icons span { color: #333; font-size: 24px; transition: var(--transition); }
.social-icons a:hover span { transform: scale(1.2); color: #000; }

.load-more-wrap { text-align: center; margin: 40px 0 20px; padding: 0 10px; }

#loadMore {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; max-width: 400px; padding: 16px 30px;
    background-color: var(--white); color: var(--primary-color);
    border: 2px solid var(--primary-color); border-radius: var(--radius);
    font-size: 16px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; cursor: pointer; transition: var(--transition);
    user-select: none;
}

#loadMore span { font-size: 20px; line-height: 1; display: inline-block; transition: transform 0.5s ease; }
#loadMore:hover { background-color: var(--primary-color); color: var(--white); box-shadow: 0 5px 15px rgba(204, 0, 51, 0.2); }
#loadMore:hover span { transform: rotate(180deg); }
#loadMore:disabled { background-color: #f0f0f0; border-color: #ccc; color: #999; cursor: not-allowed; box-shadow: none; }
#loadMore:disabled span { animation: spin 1s linear infinite; }

.breadcrumbs { margin-bottom: 0px; padding: 10px 0; font-size: 13px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: " / "; color: #ccc; font-size: 12px; }
.breadcrumbs a { color: var(--link-color); text-decoration: none; transition: var(--transition); }
.breadcrumbs a:hover { color: var(--primary-color); text-decoration: underline; }

.breadcrumbs span[itemprop="name"] {
    max-width: 300px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; display: inline-block; vertical-align: bottom;
}

.material-symbols-rounded {
    display: inline-block; width: 24px; height: 24px; line-height: 1;
    font-size: 24px; overflow: hidden; vertical-align: middle;
    min-width: 24px; text-decoration: none !important;
    transition: opacity 0.3s ease, color var(--transition);
}

.sub-progress {
    display: none; 
    margin: 25px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eeeeee;
}

.sub-progress__hint { font-weight: bold; margin-bottom: 12px; color: #333333; font-size: 0.9em; }
.sub-progress__track { width: 100%; background: #e0e0e0; height: 10px; border-radius: 5px; overflow: hidden; }

.sub-progress__fill {
    width: 0%;
    background: #0066cc; 
    height: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: linear-gradient(
        45deg, 
        rgba(255,255,255,.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,.15) 50%, 
        rgba(255,255,255,.15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 40px 40px;
    animation: progress-bar-stripes 1s linear infinite;
}

.ad-closed-alert {
    margin-bottom: 20px; padding: 20px;
    background: #fff3f3; border: 1px solid #ffcccc;
    border-radius: 8px; display: flex; gap: 15px; align-items: center;
}

.ad-closed-alert__icon { font-size: 40px !important; color: #cc0000; flex-shrink: 0; }
.material-symbols-rounded.ad-closed-alert__icon { width: 40px; height: 40px; }
.ad-closed-alert__title { display: block; font-size: 1.2em; color: #cc0000; }
.ad-closed-alert__text { margin-top: 5px; margin-bottom: 0; color: #666666; line-height: 1.4; }

.amp-success-alert {
    display: flex; align-items: flex-start; gap: 12px;
    background: #e8f5e9; border-left: 4px solid #2e7d32;
    padding: 15px; margin-bottom: 20px; border-radius: 4px; color: #1b5e20;
}
.amp-success-alert span { color: #2e7d32; }
.amp-success-alert p { margin: 5px 0 0 0; font-size: 0.85em; opacity: 0.9; }

.e-protect { color: var(--link-color); text-decoration: underline dotted; cursor: pointer; transition: color 0.3s; }
.e-protect:hover { color: var(--primary-color); text-decoration: underline; }

.msg-ad-deleted { background: #fff3cd; color: #856404; padding: 15px; border-radius: 8px; text-align: center; margin: 20px 0; border: 1px solid #ffeeba; }
.no-ads-message { padding: 20px; text-align: center; }
.no-ads-message .add-ads { max-width: fit-content; margin: 0 auto; min-width: unset; }

.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.scroll-to-top .material-symbols-rounded {
    font-size: 24px;
}

.scroll-to-top:hover {
    background: var(--primary-color-hover);
    transform: translateY(6px);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.hidden-metadata { display: none; }

.category-title { color: var(--text-main); margin-bottom: 20px; margin-top: 0; font-size: 26px; }

.cookie-banner {
    position: fixed; bottom: 0px; left: 0px; right: 0px;
    background: #2978B8; color: #fff; padding: 10px;
    z-index: 10000; 
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    border: 1px solid #2978B8;
}

.cookie-content {
    max-width: 1100px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; gap: 8px; flex-direction: column;
}

.cookie-text p { margin: 0;}

.cookie-link { color: #fff; text-decoration: underline; cursor: pointer; }
.cookie-link:hover { color: #ccc; }

.cookie-btn { padding: 10px 30px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.cookie-btn.accept { background: #009900; color: #fff; }
.cookie-btn.accept:hover { background: #008000; }

.autocomplete-suggestions, .suggestions-dropdown {
    position: absolute; top: 105%; left: 0; right: 0;
    z-index: 1000; background: #fff; border: 1px solid #ddd;
    border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    max-height: 350px; overflow-y: auto;
}

.autocomplete-suggestions { top: 76px; margin-left: 200px; border-radius: (--radius); box-shadow: 0 4px 10px rgba(0,0,0,0.1); max-height: 250px; display: none; }

.suggestion-item { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #f5f5f5; }
.suggestion-item:hover { background: #f9f9f9; color: #235d91; }
.suggestion-item small { color: #888; display: block; margin-top: 2px; }

.no-ads-cta {
    text-align: center; padding: 50px 20px;
    background: #fffaf5; border: 2px dashed #f38225;
    border-radius: 20px; margin: 30px 0;
}

.no-ads-cta h2 { font-weight: 600; font-size: 1.8rem; color: #222; margin-bottom: 15px; }
.no-ads-cta p { font-size: 1.1rem; color: #555; margin-bottom: 30px; line-height: 1.6; }

.btn-add-first {
    display: inline-flex; align-items: center; justify-content: center;
    background: #f38225; color: #fff !important; padding: 20px 30px;
    border-radius: 12px; text-decoration: none; font-weight: 700;
    font-size: 1.3rem; box-shadow: 0 4px 15px rgba(243, 130, 37, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    flex-direction: column; 
}

.btn-add-first:hover { transform: scale(1.02); background: #e67616; }

.btn-add-first .material-symbols-rounded {
    font-size: 3.5rem; margin-bottom: 10px;
    display: block; line-height: 1; overflow: visible; 
}

.admin-bar {display: none;}

@keyframes progress-bar-stripes {
    from { background-position: 40px 0; }
    to { background-position: 0 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .btn-add-first { flex-direction: row; padding: 10px 35px; }
    .btn-add-first .material-symbols-rounded {
        margin-bottom: 0; margin-right: 10px;
        font-size: 2.2rem; height: 34px; width: 34px;
    }
}

@media (max-width: 900px) {
    .header-banner { display: none; }
    .burger-toggle {
        cursor: pointer !important; position: relative !important; z-index: 9999 !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        touch-action: manipulation; display: inline-flex !important;
        pointer-events: auto !important;
    }
    .burger-toggle * { pointer-events: none; }
    .menu-links { display: none; }
    .body_ads { flex-direction: column; }
    .obw-menu {
        position: fixed; left: -300px; top: 0; width: 300px; height: 100vh;
        z-index: 2000; border-radius: 0; overflow-y: auto; background: #fff;
        padding-bottom: 105px;
    }
    .obw-menu.is-active { left: 0; box-shadow: 15px 0 40px rgba(0,0,0,0.3); transition: left .3s; }
    .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; background: #333; color: #fff; padding: 20px; font-weight: bold; }
    body.menu-open { overflow: hidden; }
    body.menu-open::after {
        content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
        z-index: 1999; backdrop-filter: blur(4px); pointer-events: auto;
    }
    .obw-body { width: 100%; }
    .obw-main { padding: 20px; }
    .obw-content-wrapper { flex-direction: column; }
    .ad-thumb { width: 100%; height: 200px; }
    .ru-line { flex-direction: column; }
    .ru-lable { padding-top: 0; margin-bottom: 10px; flex: 0 0 auto; }
    .ru-info { padding-left: 0; }
    .contact-row { flex-direction: column; gap: 0; align-items: start; }
    .autocomplete-suggestions { top: 105px; margin-left: 0;}
}

@media (max-width: 768px) {
    .header { flex-direction: column; align-items: center; gap: 8px; }
    .header-location-box { max-width: 100%; margin-top: 0px; order: 3; }
    .header-search-box {width: 100%;}
    .header .logo {margin-bottom: 16px;}
    .location-helper-text, .search-helper-text { display: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .obw-body form { padding: 0 10px 20px 10px; }
    .footer-body { justify-content: space-around; flex-direction: column; text-align: center; }
    .footer-copyright { width: 100%; text-align: center; display: flex; flex-direction: column; justify-content: center; order: 3; }     
    .footer-copyright a { margin: 0 auto 24px auto; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 0; }
    .ad-item-meta { flex-direction: column; align-items: flex-start; }
    .ad-item-meta .ad-list-location { margin-left: 0; border: none; padding: 0; margin-top: 6px; }
    .menu-primary-actions,
    .auth-links {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
    .account-summary-card, .account-ad-row { flex-direction: column; align-items: flex-start; }
    .photo-selection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-feature-grid--launcher {
        grid-template-columns: 1fr;
    }
    .ai-feature-card--launcher {
        min-height: 180px;
    }
    .ai-access-actions,
    .smart-ad-actions,
    .smart-ad-voice-buttons {
        flex-direction: column;
    }
    .ai-access-actions .auth-link,
    .ai-access-actions .google-auth-btn,
    .smart-ad-actions .add-ads,
    .smart-ad-actions .auth-link,
    .smart-ad-mic-btn,
    .smart-ad-secondary-btn {
        width: 100%;
        justify-content: center;
    }
    .smart-ad-modal__dialog {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .obw-content-wrapper { flex-direction: column-reverse; gap: 10px; }
    .ad-thumb { height: 180px; }
    .ad-closed-alert { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 480px) {
    .obw-main .contacts { flex-wrap: wrap; }
    .read-more-arrow { order: 2; margin-left: auto; }
    .ad-image-main { aspect-ratio: 1 / 1; }
    .social-icons { justify-content: center; }
    .breadcrumbs { margin-bottom: 0; }
    .breadcrumbs span[itemprop="name"] { max-width: 150px; }
    #loadMore { max-width: 100%; font-size: 14px; padding: 14px 20px; }
    .add-ads { padding: 5px 10px 5px 5px; gap: 0; font-size:11px; min-width:unset; }
    .menu-primary-actions {
        justify-content: space-between;
        gap: 6px;
    }
    .menu-primary-actions .add-ads {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
    .burger-toggle { padding: 5px 10px 5px 5px; gap: 0; font-size:14px; }
    .material-symbols-rounded { width: 20px; height: 20px; font-size: 20px!important; }
    .photo-selection-grid { grid-template-columns: 1fr; }
    .photo-clear-btn { width: 100%; }
}

/* Search Results Page Styles */
.container { max-width: 1100px; margin: 0 auto; padding: 20px 15px; }

.search-results-wrapper { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }

.search-results-header { margin-bottom: 30px; border-bottom: 2px solid #f0f0f0; padding-bottom: 20px; }
.search-results-header h1 { margin: 0 0 10px 0; font-size: 28px; color: var(--text-main); }
.search-query-info { margin: 0; font-size: 16px; color: var(--text-muted); }
.results-count { display: inline-block; margin-left: 10px; background: #f0f0f0; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.search-empty-message { margin: 0; font-size: 16px; color: #ff6b6b; }

.ads-list, .search-results-list { display: flex; flex-direction: column; gap: 20px; }

.ad-card {
    background: var(--white); border: 1px solid #e0e0e0; border-radius: var(--radius);
    transition: var(--transition); overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ad-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--secondary-color); }

.ad-card-content { display: flex; gap: 20px; padding: 20px; height: 100%; }

.ad-card-image {
    flex-shrink: 0; width: 150px; height: 150px; object-fit: cover;
    border-radius: 8px; overflow: hidden; display: flex; align-items: center;
    justify-content: center; background: #f5f5f5; text-decoration: none;
}

.ad-card-image img { width: 100%; height: 100%; object-fit: cover; }

.ad-card-image.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; font-size: 12px; text-align: center; padding: 10px;
}

.ad-card-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.ad-title {
    display: block; font-size: 18px; font-weight: 600;
    color: var(--primary-color); text-decoration: none;
    margin-bottom: 10px; line-height: 1.4;
    overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; line-clamp: 2;
}

.ad-title:hover { text-decoration: underline; }

.ad-preview {
    font-size: 14px; color: var(--text-muted); line-height: 1.5;
    margin-bottom: 12px; overflow: hidden;
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; line-clamp: 3;
}

.ad-meta {
    display: flex; gap: 15px; align-items: center; font-size: 12px; color: #999;
    margin-top: auto;
}

.ad-date { display: flex; align-items: center; gap: 4px; }
.ad-date::before { content: "📅"; }

.ad-price {
    font-weight: 600; color: var(--secondary-color); font-size: 14px;
    background: #fff8f0; padding: 4px 8px; border-radius: 4px;
}

.search-no-results {
    text-align: center; padding: 60px 20px; background: #f9f9f9;
    border-radius: var(--radius); border: 2px dashed #ddd;
}

.search-no-results p { margin: 0 0 10px 0; font-size: 16px; color: var(--text-muted); }
.search-no-results p:first-child { font-size: 18px; font-weight: 600; color: var(--text-main); }
.search-no-results a { color: var(--link-color); text-decoration: underline; }
.search-no-results a:hover { color: var(--primary-color); }

.pagination {
    display: flex; justify-content: center; align-items: center; gap: 15px;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid #e0e0e0;
}

.pagination-prev, .pagination-next {
    padding: 10px 20px; background: #f0f0f0; color: var(--link-color);
    border: 1px solid #ddd; border-radius: 6px; text-decoration: none;
    transition: var(--transition);
}

.pagination-prev:hover, .pagination-next:hover {
    background: var(--link-color); color: #fff; border-color: var(--link-color);
}

.pagination-info { font-weight: 600; color: var(--text-muted); }

@media (max-width: 768px) {
    .ad-card-content { flex-direction: column; gap: 15px; }
    .ad-card-image { width: 100%; height: 200px; }
    .search-results-wrapper { padding: 20px; }
    .search-results-header h1 { font-size: 24px; }
    .ads-list { gap: 15px; }
}