/* ===================================
   SHARED/COMMON STYLES
   =================================== */

/* Trending Badge - Common for all */
.trending-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #EA6B1F;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.trending-icon {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Hotel Image - Common */
.hotel-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

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

/* Hotel Content - Common */
.hotel-content {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hotel Header - Common */
.hotel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5;
}

/* Category - Common */
.hotel-category {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #EA6B1F;
    font-size: 14px;
    font-weight: 500;
}

.hotel-icon {
    width: 16px;
    height: 16px;
    fill: #EA6B1F;
}

/* Rating Section - Common */
.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.review-text {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

/* Hotel Title - Common */
.hotel-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

/* Location Info - Common */
.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #666;
    font-size: 16px;
}

.location-icon {
    width: 16px;
    height: 16px;
    fill: #666;
}

/* Pricing Section - Common */
.pricing-section {
    display: flex;
    margin-bottom: 0;
}

.price-label {
    color: #555;
    font-size: 15px;
    margin-right: 5px;
    margin-bottom: 8px;
    display: block;
}

.price-container {
    display: inline-block;
}

.current-price {
    color: #EA6B1F;
    font-weight: 600;
    font-size: 18px;
    margin-right: 6px;
}

.original-price {
    color: #999;
    font-size: 15px;
    text-decoration: line-through;
}

/* Hotel Details - Common */
.hotel-details {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 16px;
}

.detail-icon {
    width: 16px;
    height: 16px;
    fill: #666;
}

/* Action Button - Common (Single Class for ALL buttons) */
.hotel-action {
    margin-left: auto;
}

.hotel-book-now-btn {
    display: inline-block;
    background: #EA6B1F;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.hotel-book-now-btn:hover {
    background: #0168A4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 107, 31, 0.3);
}

/* ===================================
   CAROUSEL LAYOUT SPECIFIC
   =================================== */

.hotel-cards-wrapper {
    position: relative;
    
}

.hotel-cards-container {
    padding: 10px 0;
}

.hotel-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    margin: 0 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hotel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

/* ===================================
   SLICK CAROUSEL CUSTOM STYLES
   =================================== */

.hotel-cards-container.slick-slider {
    margin-bottom: 30px;
}

.hotel-cards-container .slick-list {
    margin: 0 -10px;
}

.hotel-cards-container .slick-track {
    display: flex;
    padding-bottom: 10px;
    align-items: stretch;
}

.hotel-cards-container .slick-slide {
    display: flex !important;
    height: auto;

}

.hotel-cards-container .slick-slide > div {
    width: 100%;
    height: 100%;
}

.hotel-cards-container .slick-slide:focus {
    outline: none;
}

.hotel-cards-container .slick-dots {
    text-align: center;
}

.hotel-cards-container .slick-dots li button:before {
    color: #EA6B1F;
    font-size: 12px;
}

.hotel-cards-container .slick-dots li.slick-active button:before {
    color: #0168A4;
}

.hotel-cards-container .slick-prev,
.hotel-cards-container .slick-next {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #EA6B1F;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    user-select: none;
}

.hotel-cards-container .slick-prev:hover,
.hotel-cards-container .slick-next:hover,
.slick-prev.slick-arrow:focus,
.slick-prev.slick-arrow:active,
.slick-next.slick-arrow:focus,
.slick-next.slick-arrow:active {
    background: #0168A4 !important;
}

.hotel-cards-container .slick-prev {
    left: -50px;
}

.hotel-cards-container .slick-next {
    right: -50px;
}

.hotel-cards-container .slick-prev:before,
.hotel-cards-container .slick-next:before {
    color: white;
    font-size: 18px;
    line-height: 40px;
}

.slick-dots [type=button]:focus,
.slick-dots [type=button]:hover,
.slick-dots [type=submit]:focus,
.slick-dots [type=submit]:hover,
.slick-dots button:focus,
.slick-dots button:hover {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ===================================
   GRID LAYOUT SPECIFIC
   =================================== */

.hotel-grid-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hotel-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.hotel-grid-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.hotel-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* Grid specific - wider button */
.hotel-grid-card .btn-book-hotel {
    width: 100%;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    background: #EA6B1F;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 107, 31, 0.2);
}

.btn-load-more:hover {
    background: #0168A4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 107, 31, 0.3);
}

.btn-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */

@media (max-width: 1024px) {
    .hotel-cards-container .slick-prev {
        left: -30px;
    }
    
    .hotel-cards-container .slick-next {
        right: -30px;
    }
    
    .hotel-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */

@media (max-width: 768px) {
    /* Common Mobile Styles */
    .hotel-image {
        height: 120px !important;
        border-radius: 8px 8px 0 0;
    }
    
    .trending-badge {
        top: 8px;
        right: 8px;
        padding: 3px 10px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 600;
        gap: 4px;
    }
    
    .trending-badge svg {
        width: 14px;
        height: 14px;
    }
    
    .hotel-content {
        padding: 8px;
    }
    
    .hotel-header {
        margin-bottom: 5px;
    }
    
    .hotel-category {
        font-size: 11px;
        gap: 4px;
    }
    
    .hotel-icon {
        width: 10px;
        height: 10px;
    }
    
    .rating-badge {
        padding: 3px 6px;
        font-size: 11px;
        min-width: 28px;
    }
    
    .review-text {
        font-size: 11px;
        margin-left: 4px;
    }
    
    .hotel-title {
        font-size: 13px;
        font-weight: 700;
        margin: 0 0 5px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .location-info {
        gap: 4px;
        margin-bottom: 5px !important;
        font-size: 12px;
    }
    
    .location-icon {
        width: 12px;
        height: 12px;
    }
    
    .price-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .current-price {
        font-size: 13px;
    }
    
    .original-price {
        font-size: 13px;
        margin-left: 6px;
    }
    
    .hotel-details {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom:0px;
    }
    
    .detail-item {
        gap: 4px;
        font-size: 9px;
        font-weight: 500;
        width: calc(50% - 4px);
    }
    
    .detail-icon {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }
    
    .detail-item span {
        font-size: 9px;
    }
    
    .hotel-action {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }
    
    .hotel-book-now-btn {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
    }
    
    /* Carousel Specific Mobile */
    .hotel-cards-container {
        padding: 10px;
        gap: 10px;
    }
    
    .hotel-cards-container .slick-list {
        margin: 0 -6px;
    }
    
    .hotel-cards-container .slick-slide {
        padding: 0px;
    }
    
    .hotel-cards-container .slick-dots {
        bottom: -30px;
    }
    
    .hotel-cards-container .slick-dots li button:before {
        font-size: 10px;
    }
    
    .hotel-cards-container .slick-prev,
    .hotel-cards-container .slick-next {
        display: none !important;
    }
    
    .hotel-card {
        border-radius: 8px;
        margin: 0 4px;
        max-width: none;
        width: calc(50% - 6px);
    }
    
    /* Grid Specific Mobile */
    .hotel-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hotel-grid-wrapper {
        padding: 15px;
    }
    
    .hotel-grid-card .hotel-image {
        height: 200px;
    }
}