/**
 * Hotel Carousel V1 — Custom Styles
 * Aknan Widgets Plugin
 *
 * These styles were previously output via wp_add_inline_style() inside
 * hc_enqueue_hotel_carousel_assets() in functions.php. Extracting them to a
 * standalone file makes them cacheable and easier to maintain.
 *
 * Handle: hc-custom-styles
 * Dependency: hc-slick-carousel-css, hc-font-awesome
 */

/* ── Carousel Container ─────────────────────────────────────────────────── */
.hc-hotel-carousel {
    direction: rtl;
    text-align: right;
}

.hc-hotel-carousel .slick-slide {
    margin: 10px 8px;
    height: auto;
}

.hc-hotel-carousel .slick-track {
    display: flex !important;
}

.hc-hotel-carousel .slick-slide > div {
    height: 100%;
}

/* ── Card Link Wrapper ──────────────────────────────────────────────────── */
.hc-hotel-carousel-item-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.hc-hotel-carousel-item-link:hover {
    transform: translateY(-5px);
}

.hc-hotel-carousel-item-link:hover .hc-hotel-carousel-item {
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.35);
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.hc-hotel-carousel-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.28);
    background-color: white;
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ── Image ──────────────────────────────────────────────────────────────── */
.hc-hotel-image-wrapper {
    position: relative;
}

.hc-hotel-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.hc-hotel-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

/* ── Star Rating Badge (overlaid on image) ──────────────────────────────── */
.hc-hotel-stars {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1;
}

.hc-hotel-stars span {
    font-size: 20px;
    color: #FFD700;
    margin-left: 2px;
}

/* ── Hotel Info Panel ───────────────────────────────────────────────────── */
.hc-hotel-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hc-hotel-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.hc-hotel-location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.hc-hotel-location:before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 5px;
    color: #4caf50;
}

/* ── Review / Rating Row ────────────────────────────────────────────────── */
.hc-hotel-rating {
    display: flex;
    align-items: center;
}

.hc-rating-score {
    background-color: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 5px;
}

.hc-rating-text {
    font-size: 14px;
    margin-right: 5px;
}

.hc-review-count {
    font-size: 12px;
    color: #999;
    margin-right: 5px;
}

/* -- Price Row ───────────────────────────────────────────────────────────── */
.hc-hotel-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.hc-price-label {
    font-size: 11px;
    color: #64748b;
}

.hc-price-amount {
    font-size: 16px;
    font-weight: 800;
    color: #4caf50;
}

.hc-price-amount.hc-price-on-request {
    font-size: 13px;
    font-weight: 600;
}


/* ── Navigation Arrows ──────────────────────────────────────────────────── */
.hc-hotel-carousel .slick-prev,
.hc-hotel-carousel .slick-next {
    z-index: 9;
    width: 40px;
    height: 40px;
}

.hc-hotel-carousel .slick-prev {
    right: 25px;
    left: auto;
}

.hc-hotel-carousel .slick-next {
    left: 25px;
    right: auto;
}

.hc-hotel-carousel .slick-prev:before,
.hc-hotel-carousel .slick-next:before {
    font-size: 40px;
    opacity: 1;
    color: #1e547b !important;
    background-color: white;
    border-radius: 30px;
}

/* ── Mobile Arrow Adjustment ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hc-hotel-carousel .slick-prev {
        margin-right: 15px !important;
    }
    .hc-hotel-carousel .slick-next {
        margin-left: 15px !important;
    }
}
