/* ==========================================================================
   Основен контейнер и Структура
   ========================================================================== */
.cad-wrapper {
    width: 100% !important;
    margin: 0 auto !important;
    font-family: inherit;
}

/* Настолни компютри и лаптопи: 45% ширина */
@media screen and (min-width: 1025px) {
    .cad-wrapper {
        width: 45% !important;
        max-width: none !important;
    }
}

.cad-form {
    margin-bottom: 24px;
}

.cad-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.cad-input-row {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   Входни полета и Бутони
   ========================================================================== */
.cad-url {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.cad-url:focus {
    border-color: #777;
}

.cad-button,
.cad-submit-comment {
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.cad-button:hover,
.cad-submit-comment:hover {
    background: #333;
}

.cad-button:disabled,
.cad-submit-comment:disabled {
    opacity: .6;
    cursor: wait;
}

.cad-message {
    margin-top: 8px;
    font-size: 14px;
    color: #777;
}

/* ==========================================================================
   Карта на обявата (Резултат)
   ========================================================================== */
.cad-result {
    animation: cadFadeIn .25s ease;
}

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

.cad-card {
    display: flex;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
}

.cad-image-wrapper {
    width: 220px;
    min-width: 220px;
    height: 160px;
    background: #f4f4f4;
}

.cad-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cad-card-content {
    padding: 18px;
}

.cad-domain {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.cad-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.cad-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cad-original-link {
    font-size: 14px;
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================================
   Секция за Коментари
   ========================================================================== */
.cad-discussion {
    margin-top: 25px;
}

.cad-discussion-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cad-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: 5px;
    padding: 0 7px;
    border-radius: 20px;
    background: #f0f0f0;
    font-size: 12px;
}

.cad-comment {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.cad-comment-author {
    font-weight: 700;
    font-size: 14px;
}

.cad-comment-date {
    margin-top: 3px;
    color: #999;
    font-size: 11px;
}

.cad-comment-content {
    margin-top: 8px;
    line-height: 1.5;
    font-size: 14px;
}

.cad-no-comments {
    padding: 15px;
    border-radius: 10px;
    background: #f7f7f7;
    color: #777;
    font-size: 14px;
}

/* ==========================================================================
   Форма за нов коментар
   ========================================================================== */
.cad-comment-form {
    margin-top: 20px;
}

.cad-author,
.cad-email,
.cad-comment-text {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 9px;
    font-family: inherit;
    margin-bottom: 10px;
}

.cad-comment-text {
    resize: vertical;
}

.cad-comment-message {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

/* ==========================================================================
   Адаптивност за Мобилни Устройства (Телефони)
   ========================================================================== */
@media (max-width: 600px) {

    .cad-wrapper {
        width: 65% !important; /* 65% ширина на телефон */
        max-width: none !important;
    }

    .cad-input-row {
        flex-direction: column;
    }

    .cad-card {
        display: block;
    }

    .cad-image-wrapper {
        width: 100%;
        min-width: 0;
        height: 190px;
    }

    .cad-card-content {
        padding: 15px;
    }
}
/* Специално правило за намаляване на логото само на телефон */
@media (max-width: 600px) {
    /* Насочва се към картинката в логото на заглавната част */
    .site-logo img, 
    .custom-logo,
    .elementor-widget-theme-site-logo img,
    header img[src*="avtodambazi"] {
        max-width: 180px !important; /* Променете пикселите (напр. 150px), за да стане още по-малко */
        height: auto !important;
        display: block !important;
        margin: 0 auto !important; /* Центрира логото на екрана */
    }
}
/* Принудително смаляване на логото за мобилни телефони */
@media screen and (max-width: 600px) {
    header img,
    .elementor-header img,
    div[class*="logo"] img,
    img[src*="avto"],
    img[src*="dambazi"] {
        width: 160px !important;
        max-width: 160px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
}
