/* Елітна нерухомість - мінімальні стилі (використовуємо стилі WP Residence) */

/* Бейдж елітної нерухомості */
.mir-elite-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
}

/* Заголовок секції */
.mir-elite-header {
    text-align: center;
    margin-bottom: 40px;
}

.mir-elite-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.mir-elite-icon {
    margin-right: 10px;
}

.mir-elite-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .mir-elite-title {
        font-size: 24px;
    }
    
    .mir-elite-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* Старі класи для сумісності */

.mir-elite-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.mir-elite-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mir-elite-icon {
    font-size: 2rem;
}

.mir-elite-subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin: 0;
}

.mir-elite-grid {
    /* Контейнер без grid - сітка в .items_shortcode_wrapper_grid */
    width: 100%;
}

.mir-elite-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mir-elite-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mir-elite-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mir-elite-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.mir-elite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mir-elite-card:hover .mir-elite-image img {
    transform: scale(1.1);
}

.mir-elite-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b0 50%, #d4af37 100%);
    color: #1a1a2e;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.mir-elite-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mir-elite-card:hover .mir-elite-overlay {
    opacity: 1;
}

.mir-view-btn {
    background: #d4af37;
    color: #1a1a2e;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.mir-elite-content {
    padding: 25px;
}

.mir-elite-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.mir-elite-location {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mir-elite-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mir-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 0.9rem;
}

.mir-feature-icon {
    font-size: 1rem;
}

.mir-elite-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.mir-elite-footer {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px;
}

/* Кнопка "Переглянути всі" - використовуємо стандартні стилі WP Residence */
.mir-elite-view-all a.wpresidence_button {
    text-decoration: none;
}

.mir-elite-view-all a.wpresidence_button:hover {
    text-decoration: none;
}

/* Віджет в сайдбарі */
.mir-elite-properties-widget {
    background: #1a1a2e;
    padding: 20px;
    border-radius: 10px;
}

.mir-elite-widget-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mir-elite-widget-item a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mir-elite-widget-item a:hover {
    transform: translateX(5px);
}

.mir-elite-widget-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.mir-elite-widget-info {
    padding: 10px 10px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mir-elite-widget-title {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.mir-elite-widget-price {
    color: #d4af37;
    font-weight: 700;
    font-size: 1rem;
}

/* Адаптивність */
@media (max-width: 768px) {
    .mir-elite-title {
        font-size: 1.8rem;
    }
    
    .mir-elite-section {
        padding: 0px 15px;
    }
}

/* Приховуємо кнопку "Переглянути всі" на сторінці елітної нерухомості (там є своя пагінація) */
body.mir-is-elite-page .mir-elite-view-all {
    display: none !important;
}



/* Секція елітної нерухомості - стилі як у Elementor */
.mir-elite-section {
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px 15px 0px 15px;
}

/* Перевизначаємо відступи секції Elementor (було 55px 10px 55px, стає 40px 0px 40px) */
.elementor-18593 .elementor-element.elementor-element-91e09fc {
    padding: 0px 40px 0px 40px !important;
}

/* Фон для блоку інформації картки (як у Elementor) */
.mir-elite-section .property_listing.property_card_default .property-unit-information-wrapper {
    background-color: #ffffff !important;
}

/* Легка тінь навколо картки */
.mir-elite-section .property_listing.property_card_default {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* Тінь при наведенні - сильніша */
.mir-elite-section .property_listing.property_card_default:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Сітка карток - точно як у Elementor */
.mir-elite-section .items_shortcode_wrapper_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
    gap: 30px;
    min-width: 100%;
    margin: 0px;
    justify-content: start;
}

/* Адаптив - на мобільному 1 колонка */
@media (max-width: 768px) {
    .mir-elite-section .items_shortcode_wrapper_grid {
        grid-template-columns: 1fr;
    }
}
