/**
 * Premium Property Card Styles
 * Scoped exclusively for "Featured Premium Properties" section
 * This file is isolated from global property card styles
 */

/* ============================================
   PREMIUM PROPERTY CARD - BASE STYLES
   ============================================ */

.featured-premium-section {
    padding: 60px 0;
}

.featured-premium-section .premium-properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Premium Card Container */
.premium-property-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e4e4e4;
}

/* ============================================
   IMAGE SECTION
   ============================================ */

.premium-property-card .premium-card-image {
    position: relative;
    flex: 0 0 38%;
    max-width: 38%;
    min-height: 200px;
    display: block;
    overflow: hidden;
}

.premium-property-card .premium-card-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.premium-property-card .premium-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 30, 0.22);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.25s ease;
}

.premium-property-card .premium-card-slider .property-card-slider {
    height: 100%;
    aspect-ratio: unset;
}

.premium-property-card .premium-card-slider .property-card-slider .swiper,
.premium-property-card .premium-card-slider .property-card-slider .swiper-wrapper,
.premium-property-card .premium-card-slider .property-card-slider .swiper-slide {
    height: 100%;
}

.premium-property-card .premium-card-slider .property-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: unset;
    transition: transform 0.35s ease;
    transform: scale(1);
}

.premium-property-card .premium-card-slider .property-card-image-fallback {
    height: 100%;
    aspect-ratio: unset;
}

.premium-property-card:hover .premium-card-slider .property-card-image {
    transform: scale(1.04);
}

.premium-property-card:hover .premium-card-image::after {
    opacity: 1;
}

/* Badges - Column Layout */
.premium-property-card .premium-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 5;
}

.premium-property-card .premium-badge {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.premium-property-card .premium-badge-featured {
    background: #198754;
    color: #fff;
}

.premium-property-card .premium-badge-status {
    background: #14fa8e;
    color: #fff;
}

/* Wishlist Button */
.premium-property-card .premium-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: none;
    background: rgba(11, 33, 50, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 5;
}

.premium-property-card .premium-wishlist-btn:hover {
    background: var(--primary-color, #14fa8e);
}

.premium-property-card .premium-wishlist-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
    transition: color 0.2s ease;
}

.premium-property-card .premium-wishlist-btn.added svg {
    color: #e74c3c;
    fill: #e74c3c;
}

/* Category Tag - Bottom Left of Image */
.premium-property-card .premium-card-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 5;
}

.premium-property-card .premium-card-category .premium-category-tag {
    display: inline-block;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.95);
    color: #161e2d;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.premium-property-card .premium-card-category .premium-category-tag:hover {
    background: var(--primary-color, #14fa8e);
    color: #fff;
}

/* Carousel controls: reveal only when hovering image container */
.premium-property-card .property-card-slider .pcs-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, color 0.22s ease;
}

.premium-property-card .property-card-slider .pcs-dots {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.premium-property-card .premium-card-image:hover .property-card-slider .pcs-nav,
.premium-property-card .premium-card-image:hover .property-card-slider .pcs-dots {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.premium-property-card .premium-card-image:hover .property-card-slider .pcs-nav:disabled,
.premium-property-card .premium-card-image:hover .property-card-slider .pcs-nav[aria-disabled="true"] {
    opacity: .35 !important;
    pointer-events: none !important;
}

@media (hover: none) {
    .premium-property-card .property-card-slider .pcs-nav,
    .premium-property-card .property-card-slider .pcs-dots {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .premium-property-card .property-card-slider .pcs-nav:disabled,
    .premium-property-card .property-card-slider .pcs-nav[aria-disabled="true"] {
        opacity: .35 !important;
        pointer-events: none !important;
    }
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.premium-property-card .premium-card-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.premium-property-card .premium-card-header {
    margin-bottom: 10px;
}

.premium-property-card .premium-category-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f4f8;
    color: #5c6368;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.premium-property-card .premium-card-title {
    margin: 0 0 5px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #161e2d;
}

.premium-property-card .premium-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-property-card .premium-card-title a:hover {
    color: var(--primary-color, #14fa8e);
}

.premium-property-card .premium-card-location {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: #5c6368;
    font-size: 13px;
    line-height: 1.35;
}

.premium-property-card .premium-card-location .icon {
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Features */
.premium-property-card .premium-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}

.premium-property-card .premium-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #161e2d;
    font-size: 13px;
    font-weight: 500;
}

.premium-property-card .premium-feature-item .icon {
    font-size: 18px;
    color: #5c6368;
}

/* Divider */
.premium-property-card .premium-card-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 10px 0;
}

/* Footer */
.premium-property-card .premium-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.premium-property-card .premium-card-price {
    flex-shrink: 0;
}

.premium-property-card .premium-price-value {
    font-size: 20px;
    font-weight: 800;
    color: #161e2d;
    letter-spacing: -0.3px;
}

/* Agent */
.premium-property-card .premium-card-agent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-property-card .premium-agent-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.premium-property-card .premium-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-property-card .premium-agent-info {
    display: flex;
    flex-direction: column;
}

.premium-property-card .premium-agent-label {
    font-size: 11px;
    color: #5c6368;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.premium-property-card .premium-agent-name {
    font-size: 14px;
    font-weight: 600;
    color: #161e2d;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1199.98px) {
    .featured-premium-section .premium-properties-grid {
        gap: 18px;
    }

    .premium-property-card .premium-card-image {
        flex: 0 0 36%;
        max-width: 36%;
        min-height: 180px;
    }

    .premium-property-card .premium-card-content {
        padding: 14px 16px;
    }

    .premium-property-card .premium-card-title {
        font-size: 16px;
    }

    .premium-property-card .premium-price-value {
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    .featured-premium-section .premium-properties-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .premium-property-card .premium-card-image {
        flex: 0 0 35%;
        max-width: 35%;
        min-height: 180px;
    }
}

@media (max-width: 767.98px) {
    .featured-premium-section {
        padding: 40px 0;
    }

    /* Stack vertically on mobile */
    .premium-property-card {
        flex-direction: column;
    }

    .premium-property-card .premium-card-image {
        flex: none;
        max-width: 100%;
        min-height: 180px;
        aspect-ratio: 16/9;
    }

    .premium-property-card .premium-card-slider .property-card-slider {
        aspect-ratio: 16/9;
        height: auto;
    }

    .premium-property-card .premium-card-content {
        padding: 14px 16px;
    }

    .premium-property-card .premium-card-title {
        font-size: 16px;
    }

    .premium-property-card .premium-card-features {
        gap: 14px;
    }

    .premium-property-card .premium-feature-item {
        font-size: 12px;
    }

    .premium-property-card .premium-price-value {
        font-size: 18px;
    }

    .premium-property-card .premium-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 575.98px) {
    .premium-property-card .premium-card-image {
        min-height: 160px;
    }

    .premium-property-card .premium-card-content {
        padding: 12px 14px;
    }

    .premium-property-card .premium-card-badges {
        top: 10px;
        left: 10px;
    }

    .premium-property-card .premium-card-category {
        bottom: 10px;
        left: 10px;
    }

    .premium-property-card .premium-card-category .premium-category-tag {
        padding: 3px 7px;
        font-size: 10px;
    }

    .premium-property-card .premium-wishlist-btn {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .premium-property-card .premium-badge {
        padding: 3px 7px;
        font-size: 10px;
    }

    .premium-property-card .premium-card-title {
        font-size: 15px;
    }

    .premium-property-card .premium-price-value {
        font-size: 17px;
    }

}
