/* ======================================
   HivePress Top Rated Listings Widget
   ====================================== */

.hptrl-wrapper {
    padding: 20px 0;
}

.hptrl-heading {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a2e;
}

/* Grid Layout */
.hptrl-grid {
    display: grid;
    gap: 24px;
}

.hptrl-cols-1 { grid-template-columns: 1fr; }
.hptrl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hptrl-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hptrl-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.hptrl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #e8e8e8;
}

.hptrl-card:hover {
    transform: translateY(-4px);
}

.hptrl-shadow {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hptrl-shadow:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.hptrl-card-image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #f5f5f5;
}

.hptrl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hptrl-card:hover .hptrl-card-image img {
    transform: scale(1.05);
}

.hptrl-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

/* Category Badge */
.hptrl-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Rating Badge */
.hptrl-rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

.hptrl-rating-badge svg {
    fill: #f5a623;
    flex-shrink: 0;
}

.hptrl-review-count {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
}

/* Card Body */
.hptrl-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hptrl-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1a1a2e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hptrl-card:hover .hptrl-title {
    color: #3a86ff;
}

.hptrl-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.hptrl-location svg {
    flex-shrink: 0;
    color: #999;
}

/* Details (Beds, Baths, Guests) */
.hptrl-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.hptrl-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #777;
}

.hptrl-detail svg {
    color: #999;
    flex-shrink: 0;
}

/* Price */
.hptrl-price {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: auto 0 0 0;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Stars (for potential inline use) */
.hptrl-stars svg {
    fill: #f5a623;
}

/* ======================================
   Responsive
   ====================================== */

@media (max-width: 1024px) {
    .hptrl-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hptrl-cols-3,
    .hptrl-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hptrl-cols-mob-1.hptrl-cols-3,
    .hptrl-cols-mob-1.hptrl-cols-4,
    .hptrl-cols-mob-1.hptrl-cols-2 {
        grid-template-columns: 1fr;
    }

    .hptrl-cols-mob-2.hptrl-cols-3,
    .hptrl-cols-mob-2.hptrl-cols-4,
    .hptrl-cols-mob-2.hptrl-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hptrl-heading {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .hptrl-grid {
        gap: 16px;
    }

    .hptrl-card-body {
        padding: 12px;
    }

    .hptrl-title {
        font-size: 14px;
    }

    .hptrl-price {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hptrl-cols-2,
    .hptrl-cols-3,
    .hptrl-cols-4 {
        grid-template-columns: 1fr;
    }

    .hptrl-cols-mob-2.hptrl-cols-2,
    .hptrl-cols-mob-2.hptrl-cols-3,
    .hptrl-cols-mob-2.hptrl-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
