/* Custom CSS for Dynamic Slider */
.single_slider {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.single_slider.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.single_slider .container {
    position: relative;
    z-index: 2;
}

.slider_text h3 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider_text p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Default slider backgrounds for fallback */
.slider_bg_1 {
    background-image: url('../img/banner/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider_bg_2 {
    background-image: url('../img/banner/banner2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider_bg_3 {
    background-image: url('../img/banner/banner3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Book Card Styling */
.book-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.book-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.book-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.book-price {
    color: #ff6b35;
    font-weight: bold;
    font-size: 18px;
}

/* Fix untuk Themify Icons yang tidak terload */
.ti-angle-left:before,
.ti-angle-right:before,
.ti-angle-down:before,
.ti-angle-up:before {
    font-family: 'themify', Arial, sans-serif !important;
}

/* Fallback untuk icon navigation jika Themify Icons gagal load */
.owl-nav .owl-prev:before,
.owl-nav .owl-next:before {
    content: none !important;
}

/* Styling untuk navigation buttons */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8) !important;
    color: #333 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;
    transition: all 0.3s ease;
}

.owl-nav button:hover {
    background: rgba(255,255,255,1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.owl-nav .owl-prev {
    left: 20px;
}

.owl-nav .owl-next {
    right: 20px;
}

/* Book card styling */
.single_place {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single_place:hover {
    transform: translateY(-5px);
}

.single_place .thumb {
    position: relative;
    overflow: hidden;
}

.single_place .thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single_place:hover .thumb img {
    transform: scale(1.05);
}

.single_place .prise {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b35;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.place_info {
    padding: 20px;
}

.place_info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #001D38;
}

.place_info h3 a {
    color: inherit;
    text-decoration: none;
}

.place_info h3 a:hover {
    color: #ff6b35;
}

.place_info > p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.rating_days {
    align-items: center;
}

.rating_days .fa-star {
    color: #ffc107;
    font-size: 12px;
}

.rating_days a {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    margin-left: 5px;
}

.days {
    font-size: 12px;
    color: #666;
}

.days i {
    margin-right: 5px;
}

/* Search form styling */
.search_form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search_form .input_field input,
.search_form .input_field select {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 14px;
}

.search_form .input_field input:focus,
.search_form .input_field select:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

/* Override: pastikan teks input pencarian terlihat (bukan putih) */
.search_form .input_field input {
    color: #222 !important;
    background-color: #ffffff !important;
}
.search_form .input_field input::placeholder {
    color: #888 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider_text h3 {
        font-size: 24px;
    }
    
    .slider_text p {
        font-size: 14px;
    }
    
    .single_slider {
        min-height: 400px;
    }
    
    .single_place .thumb img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .slider_text h3 {
        font-size: 24px;
    }
    
    .slider_text p {
        font-size: 14px;
    }
    
    .single_slider {
        min-height: 300px;
    }
}

/* Mobile Cart Button Styles - Positioned next to search */
.mobile_cart_icon {
    position: absolute;
    right: 50px; /* Position to the left of search icon */
    top: 0;
    bottom: 0;
    z-index: 9;
    background: linear-gradient(135deg, #007bff, #0056b3);
    width: 50px; /* Same width as search icon on mobile */
}

@media (max-width: 767px) {
    .mobile_cart_icon {
        width: 50px;
        right: 110px; /* Adjust for mobile - left of search icon */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .mobile_cart_icon {
        width: 80px;
        right: 185px; /* Adjust for tablet - left of search icon */
    }
}

@media (min-width: 992px) {
    .mobile_cart_icon {
        display: none !important; /* Hide on desktop */
    }
}

.mobile_cart_icon a {
    text-align: center;
    color: #fff;
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    text-decoration: none;
}

.mobile_cart_icon a:hover,
.mobile_cart_icon a:focus {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #0056b3, #004085);
}

.mobile_cart_icon a i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

.mobile_cart_icon .cart-count-mobile {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    background: #ffffff;
    color: #ee5a52;
    border: 1px solid #ee5a52;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hide mobile cart button on desktop */
@media (min-width: 992px) {
    .mobile_cart_icon {
        display: none !important;
    }
}