/**
 * Hotel Suggestions Shortcode Styles
 * Custom CSS for the hotel suggestions shortcode
 */

.st-hotel-suggestions-wrapper {
    margin-bottom: 40px;
}

.st-hotel-suggestions-header {
    margin-bottom: 30px;
}

.st-hotel-suggestions-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.st-hotel-suggestions-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

/* Cart Page Hotel Suggestions */
.st-cart-hotel-suggestions {
    margin-top: 30px;
    padding: 20px 0;
}

.st-cart-hotel-suggestions .st-hotel-suggestions-wrapper {
    margin-bottom: 20px;
}

.st-cart-hotel-suggestions .st-hotel-suggestions-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.st-cart-hotel-suggestions .st-hotel-suggestions-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Hotel Card Styles */
/* Hotel suggestion card styles */
.hotel-suggestion-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

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

.hotel-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.hotel-card-content {
    padding: 20px;
}

.hotel-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.hotel-card-title a {
    color: #333;
    text-decoration: none;
}

.hotel-card-title a:hover {
    color: #007cba;
}

.hotel-card-rating {
    margin-bottom: 10px;
}

.hotel-card-rating .head-rating {
    color: #ffa500;
    margin-right: 5px;
}

.hotel-card-rating .text-rating {
    color: #666;
    font-size: 14px;
}

.hotel-card-excerpt {
    margin-bottom: 15px;
}

.hotel-card-excerpt p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.hotel-card-price {
    margin-bottom: 10px;
    font-weight: 600;
}

.hotel-card-price .price {
    color: #007cba;
    font-size: 18px;
}

.hotel-card-price .unit {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

.hotel-card-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

.hotel-card-location i {
    margin-right: 5px;
    color: #007cba;
}

/* Header styles */
.st-hotel-suggestions-header {
    margin-bottom: 30px;
    text-align: center;
}

.st-hotel-suggestions-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.st-hotel-suggestions-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Grid layout */
.st-hotel-suggestions-cards {
    margin: 0 -10px;
}

.st-hotel-suggestions-cards > div {
    padding: 0 10px;
}

/* Slider styles */
.st-hotel-suggestions-slider.owl-carousel {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
}

.st-hotel-suggestions-slider .owl-item {
    padding: 0 10px;
    float: left;
}

.st-hotel-suggestions-slider .hotel-suggestion-item {
    width: 100%;
}

/* Fallback grid when owl carousel is not available */
.st-hotel-suggestions-slider.fallback-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.st-hotel-suggestions-slider.fallback-grid .hotel-suggestion-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 10px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .st-hotel-suggestions-slider.fallback-grid .hotel-suggestion-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .st-hotel-suggestions-slider.fallback-grid .hotel-suggestion-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Ensure cards don't stack vertically in slider */
.st-hotel-suggestions-slider:not(.fallback-grid) .hotel-suggestion-item {
    display: inline-block;
    vertical-align: top;
}

.st-hotel-suggestions-slider .owl-nav {
    margin-top: 30px;
    text-align: center;
}

.st-hotel-suggestions-slider .owl-nav button {
    background: #007cba !important;
    color: white !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
    margin: 0 10px !important;
    border: none !important;
    outline: none !important;
}

.st-hotel-suggestions-slider .owl-nav button:hover {
    background: #005a87 !important;
}

.st-hotel-suggestions-slider .owl-nav button.owl-prev,
.st-hotel-suggestions-slider .owl-nav button.owl-next {
    font-family: Arial, sans-serif;
    line-height: 50px;
}

.st-hotel-suggestions-slider .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.st-hotel-suggestions-slider .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.st-hotel-suggestions-slider .owl-dot span {
    background: #ddd;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.st-hotel-suggestions-slider .owl-dot.active span,
.st-hotel-suggestions-slider .owl-dot:hover span {
    background: #007cba;
}

/* Empty cart message */
.cart-hotel-suggestions.empty-cart {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

.cart-hotel-suggestions.empty-cart h3 {
    color: #666;
    margin-bottom: 15px;
}

.cart-hotel-suggestions.empty-cart p {
    color: #999;
    margin: 0;
}

/* No results message */
.st-hotel-suggestions-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Featured badge */
.hotel-suggestion-card .featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Responsive design */
@media (max-width: 768px) {
    .st-hotel-suggestions-title {
        font-size: 24px;
    }
    
    .hotel-card-content {
        padding: 15px;
    }
    
    .hotel-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .st-hotel-suggestions-title {
        font-size: 20px;
    }
    
    .hotel-card-image {
        height: 150px;
    }
    
    .hotel-card-content {
        padding: 12px;
    }
    
    .hotel-card-title {
        font-size: 16px;
    }
}

/* Slider Specific Styles */
.st-hotel-suggestions-slider .owl-nav {
    margin-top: 20px;
}

.st-hotel-suggestions-slider .owl-nav button {
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    margin: 0 5px !important;
    transition: background 0.3s ease !important;
}

.st-hotel-suggestions-slider .owl-nav button:hover {
    background: #c0392b !important;
}

.st-hotel-suggestions-slider .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.st-hotel-suggestions-slider .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.st-hotel-suggestions-slider .owl-dot span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    display: block;
    transition: background 0.3s ease;
}

.st-hotel-suggestions-slider .owl-dot.active span,
.st-hotel-suggestions-slider .owl-dot:hover span {
    background: #e74c3c;
}

/* Cards Grid Layout */
.st-hotel-suggestions-cards {
    margin-left: -15px;
    margin-right: -15px;
}

.st-hotel-suggestions-cards [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* No Results Message */
.st-hotel-suggestions-no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .st-hotel-suggestions-title {
        font-size: 24px;
    }
    
    .hotel-card-image {
        height: 180px;
    }
    
    .hotel-card-content {
        padding: 15px;
    }
    
    .hotel-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .st-hotel-suggestions-title {
        font-size: 20px;
    }
    
    .hotel-card-image {
        height: 160px;
    }
    
    .hotel-card-content {
        padding: 12px;
    }
    
    .st-hotel-suggestions-slider .owl-nav button {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
}

/* Integration with theme featured badges */
.hotel-suggestion-card .st-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Cart page specific responsive styles */
@media (max-width: 767px) {
    .st-cart-hotel-suggestions .st-hotel-suggestions-cards .col-md-6 {
        margin-bottom: 20px;
    }
    
    .st-cart-hotel-suggestions .st-hotel-suggestions-title {
        font-size: 20px;
    }
    
    .st-cart-hotel-suggestions .hotel-card-image {
        height: 180px;
    }
}

/* No results message styling */
.st-cart-hotel-suggestions-no-items {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.hotel-suggestion-card .featured {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Sale badge styles */
.hotel-suggestion-card .sale-bg {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
