/**
 * HRM Room Slideshow - Pure CSS/JS Implementation
 * No external dependencies required
 */

/* Main container */
.hrm-slideshow {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Slideshow container */
.hrm-slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Track holding all slides */
.hrm-slideshow-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

/* Individual slide */
.hrm-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    position: relative;
}

/* Slide image */
.hrm-slide-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Placeholder when no image */
.hrm-slide-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrm-slide-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #bbb;
}

/* Slide content overlay */
.hrm-slide-content {
    padding: 20px;
    background: #fff;
    text-align: center;
}

.hrm-slide-title-link {
    text-decoration: none;
    color: inherit;
}

.hrm-slide-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.hrm-slide-title-link:hover .hrm-slide-title {
    color: #0073aa;
}

.hrm-slide-excerpt {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.hrm-slide-price {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 700;
    color: #27ae60;
}

.hrm-price-label {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

/* Select button */
.hrm-slide-select-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hrm-slide-select-btn:hover {
    background: #005a87;
}

.hrm-slide-select-btn:active {
    transform: scale(0.98);
}

.hrm-slide-select-btn.selected {
    background: #27ae60;
}

/* Navigation arrows */
.hrm-slideshow-prev,
.hrm-slideshow-next {
    position: absolute;
    top: 200px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hrm-slideshow-prev {
    left: 15px;
}

.hrm-slideshow-next {
    right: 15px;
}

.hrm-slideshow-prev:hover,
.hrm-slideshow-next:hover {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.hrm-slideshow-prev .dashicons,
.hrm-slideshow-next .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #333;
}

/* Dots navigation */
.hrm-slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
    background: #f8f8f8;
}

.hrm-slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.hrm-slideshow-dot:hover {
    background: #999;
}

.hrm-slideshow-dot.hrm-dot-active {
    background: #0073aa;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hrm-slideshow {
        margin: 0 0 20px;
        border-radius: 0;
    }

    .hrm-slide-image,
    .hrm-slide-placeholder {
        height: 300px;
    }

    .hrm-slideshow-prev,
    .hrm-slideshow-next {
        top: 150px;
        width: 38px;
        height: 38px;
    }

    .hrm-slideshow-prev {
        left: 10px;
    }

    .hrm-slideshow-next {
        right: 10px;
    }

    .hrm-slide-title {
        font-size: 20px;
    }

    .hrm-slide-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hrm-slide-image,
    .hrm-slide-placeholder {
        height: 220px;
    }

    .hrm-slideshow-prev,
    .hrm-slideshow-next {
        top: 110px;
        width: 34px;
        height: 34px;
    }

    .hrm-slide-content {
        padding: 15px;
    }

    .hrm-slide-title {
        font-size: 18px;
    }

    .hrm-slide-select-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
