/**
 * Workreap Directorist Carousel
 * @package WRDC
 */

/* ЗАГОЛОВОК */
.wt-dc-heading {
    margin-bottom: 24px;
}

.wt-dc-heading .wt-dc-category {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wt-dc-heading .wt-dc-title {
    margin: 0 0 8px 0;
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
    text-transform: uppercase;
}

.wt-dc-heading .wt-dc-subtitle {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* КАРУСЕЛЬ - минимум стилей, все делает Swiper */
.wt-dc-carousel {
    width: 100%;
}

/* ======================
   ФИЛЬТР ПО ГОРОДАМ
   ====================== */

.wt-dc-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.wt-dc-filter--top-center {
    justify-content: center;
}

.wt-dc-filter--top-left {
    justify-content: flex-start;
}

.wt-dc-filter--top-right {
    justify-content: flex-end;
}

.wt-dc-filter__pill {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.wt-dc-filter__pill:hover {
    color: #fff;
    background: #333;
}

.wt-dc-filter__pill--active {
    color: #fff;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.wt-dc-filter__pill--active:hover {
    color: #fff;
    background: #333;
    border-color: #333;
}

.wt-dc-carousel .swiper-slide {
    height: auto;
}

/* Стрелки - поверх карточек по центру */
.wt-dc-carousel .swiper-button-prev,
.wt-dc-carousel .swiper-button-next {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    color: #333;
    margin-top: -18px;
}

.wt-dc-carousel .swiper-button-prev::after,
.wt-dc-carousel .swiper-button-next::after {
    font-size: 13px;
    font-weight: bold;
}

.wt-dc-carousel .swiper-button-prev {
    left: 8px;
}

.wt-dc-carousel .swiper-button-next {
    right: 8px;
}

/* Пагинация */
.wt-dc-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
}

.wt-dc-carousel .swiper-pagination-bullet-active {
    background: #333;
}

/* ======================
   КАРТОЧКА ОБЪЯВЛЕНИЯ
   Полноценное изображение + текстовый оверлей
   ====================== */

.wt-featuredbox {
    position: relative;
    display: block;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: #fff !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wt-featuredbox:hover,
.wt-featuredbox:visited,
.wt-featuredbox:active,
.wt-featuredbox:focus {
    color: #fff !important;
    text-decoration: none;
}

.wt-featuredbox:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transform: translateY(-4px);
}

.wt-featuredbox.wt-no-image {
    background-color: #e2e8f0;
}

.wt-featuredbox.wt-no-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.wt-featuredbox h3,
.wt-featuredbox h3:hover,
.wt-featuredbox:visited h3,
.wt-featuredbox:active h3,
.wt-featuredbox:focus h3 {
    color: #fff !important;
}

.wt-dc-placeholder-img {
    display: none;
}

.wt-contenthead {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.wt-contenthead h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
    line-height: 1.3;
}

.wt-contenthead h3 a,
.wt-contenthead h3 a:hover,
.wt-contenthead h3 a:visited,
.wt-contenthead h3 a:active {
    color: #fff !important;
    text-decoration: none;
}

.wt-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.wt-star .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    color: rgba(255,255,255,0.35);
}

.wt-star-active .dashicons {
    color: #f59e0b;
}

.wt-review-count {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-left: 4px;
}

.wt-price {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.wt-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}

.wt-location .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.wt-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #e53e3e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 10px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
    pointer-events: none;
}

.wt-btn:hover {
    background: #c53030;
    color: #fff;
}

.wt-dc-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f59e0b;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
}

/* ======================
   КАРТОЧКА ГОРОДА
   ====================== */

.wt-city-card {
    position: relative;
    display: block;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: #fff !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wt-city-card:hover,
.wt-city-card:visited,
.wt-city-card:active,
.wt-city-card:focus {
    color: #fff !important;
    text-decoration: none;
}

.wt-city-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transform: translateY(-4px);
}

.wt-city-card.wt-no-image {
    background-color: #e2e8f0;
}

.wt-city-card.wt-no-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.wt-city-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.wt-city-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.wt-city-count {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* СОСТОЯНИЯ */
.wt-dc-error,
.wt-dc-no-listings {
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
}

.wt-dc-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.wt-dc-no-listings {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #718096;
}

/* ПРЕВЬЮ */
.wt-dc-card-preview {
    height: 350px;
    pointer-events: none;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.wt-dc-title-placeholder {
    height: 18px;
    width: 80%;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    margin-bottom: 8px;
}

.wt-dc-text-placeholder {
    height: 12px;
    width: 60%;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-bottom: 6px;
}

.wt-dc-text-short {
    width: 40%;
}

/* АДАПТИВ */
@media (max-width: 767px) {
    .wt-dc-carousel .swiper-button-prev,
    .wt-dc-carousel .swiper-button-next {
        display: none;
    }

    .wt-featuredbox,
    .wt-city-card {
        height: 300px;
    }
}

@media print {
    .wt-dc-carousel { display: none; }
}
