/**
 * CME Elementor Widgets Styles
 * @since 5.0.0
 */

/* Variables */
:root {
    --cme-el-primary: #2563eb;
    --cme-el-success: #10b981;
    --cme-el-warning: #f59e0b;
    --cme-el-danger: #ef4444;
    --cme-el-gray-50: #f9fafb;
    --cme-el-gray-100: #f3f4f6;
    --cme-el-gray-300: #d1d5db;
    --cme-el-gray-500: #6b7280;
    --cme-el-gray-700: #374151;
    --cme-el-gray-900: #111827;
}

/* Status Badge */
.cme-el-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cme-el-status--available {
    background: var(--cme-el-success);
    color: #fff;
}
.cme-el-status--reserved {
    background: var(--cme-el-warning);
    color: #fff;
}
.cme-el-status--unavailable {
    background: var(--cme-el-danger);
    color: #fff;
}

/* ==================== CARD (shared) ==================== */
.cme-el-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}
.cme-el-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.cme-el-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.cme-el-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.cme-el-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cme-el-card:hover .cme-el-card__image img {
    transform: scale(1.05);
}
.cme-el-card__image .cme-el-status {
    position: absolute;
    top: 10px;
    left: 10px;
}
.cme-el-card__content {
    padding: 16px;
}
.cme-el-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--cme-el-gray-900);
    margin: 0 0 6px;
    line-height: 1.3;
}
.cme-el-card__address {
    font-size: 13px;
    color: var(--cme-el-gray-500);
    margin: 0 0 10px;
}
.cme-el-card__meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--cme-el-gray-500);
    margin-bottom: 12px;
}
/* Card Prices - new structure v5.1.0 */
.cme-el-card__prices {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cme-el-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.cme-el-card__price-value {
    font-weight: 600;
    color: var(--cme-el-gray-700);
    font-size: 14px;
}
.cme-el-card__price-label {
    font-size: 11px;
    color: var(--cme-el-gray-500);
    text-transform: uppercase;
}
.cme-el-card__price-row--total .cme-el-card__price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--cme-el-primary);
}
.cme-el-card__price-row--total .cme-el-card__price-label {
    font-size: 12px;
}

/* Legacy single price */
.cme-el-card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--cme-el-primary);
    margin-bottom: 12px;
}
.cme-el-card__button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--cme-el-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}
.cme-el-card__button:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ==================== CAROUSEL ==================== */
.cme-el-carousel-wrapper {
    position: relative;
    padding: 0 40px;
}
.cme-el-carousel .swiper-slide {
    height: auto;
}
.cme-el-carousel .swiper-button-prev,
.cme-el-carousel .swiper-button-next {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--cme-el-primary);
}
.cme-el-carousel .swiper-button-prev::after,
.cme-el-carousel .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}
.cme-el-carousel .swiper-pagination-bullet-active {
    background: var(--cme-el-primary);
}

/* ==================== GRID ==================== */
.cme-el-grid {
    display: grid;
    gap: 24px;
}

/* ==================== LIST ==================== */
.cme-el-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cme-el-list__item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}
.cme-el-list__item:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.cme-el-list__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}
.cme-el-list__image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}
.cme-el-list__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cme-el-list__content {
    flex: 1;
    min-width: 0;
}
.cme-el-list__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--cme-el-gray-900);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cme-el-list__address {
    font-size: 13px;
    color: var(--cme-el-gray-500);
    margin: 0 0 6px;
}
.cme-el-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--cme-el-gray-500);
}
.cme-el-list__meta .cme-el-status {
    padding: 2px 8px;
    font-size: 10px;
}
/* List Prices - new structure v5.1.0 */
.cme-el-list__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 140px;
}
.cme-el-list__price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.cme-el-list__price-value {
    font-weight: 600;
    color: var(--cme-el-gray-700);
    font-size: 13px;
    white-space: nowrap;
}
.cme-el-list__price-label {
    font-size: 10px;
    color: var(--cme-el-gray-500);
    text-transform: uppercase;
}
.cme-el-list__price-row--total .cme-el-list__price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--cme-el-primary);
}
.cme-el-list__price-row--total .cme-el-list__price-label {
    font-size: 11px;
}

/* Legacy single price */
.cme-el-list__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--cme-el-primary);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cme-el-list__link {
        flex-wrap: wrap;
    }
    .cme-el-list__image {
        width: 100%;
        height: 150px;
    }
    .cme-el-list__price {
        width: 100%;
        margin-top: 8px;
    }
}

/* ==================== MAP ==================== */
.cme-el-map {
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}
