/* 5-Star Reviews & AI Chatbot Styles for Moksha Marg Travels */

/* ==========================================
   1. 5-STAR REVIEW SYSTEM STYLES
   ========================================== */

.reviews_section {
    background-color: #f9f9f9;
    padding: 60px 0;
    font-family: 'Poppins', sans-serif;
}

/* Live Activity Ticker Bar */
.review_ticker_container {
    background: #252525;
    color: #ffffff;
    border-radius: 30px;
    padding: 10px 20px;
    margin-bottom: 25px;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #333333;
    position: relative;
}

.review_ticker_badge {
    background: #f7c621;
    color: #000000;
    font-weight: 800;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-right: 15px;
    text-transform: uppercase;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(247, 198, 33, 0.3);
}

.review_ticker_wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.review_ticker_track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerMove 25s linear infinite;
    font-size: 13px;
    color: #e0e0e0;
}

.review_ticker_container:hover .review_ticker_track {
    animation-play-state: paused;
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker_item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 35px;
}

.ticker_name {
    color: #f7c621;
    font-weight: 700;
}

.ticker_stars {
    color: #f7c621;
    font-size: 11px;
}

/* Show More Reviews Button */
.show_more_reviews_box {
    text-align: center;
    margin-top: 35px;
}

.btn_show_more_reviews {
    background: #252525;
    color: #ffffff;
    border: 2px solid #f7c621;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn_show_more_reviews:hover {
    background: #f7c621;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 198, 33, 0.4);
}

.reviews_header_box {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rating_summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating_score {
    font-size: 48px;
    font-weight: 800;
    color: #252525;
    line-height: 1;
}

.rating_stars_summary {
    color: #f7c621;
    font-size: 22px;
}

.rating_count_text {
    color: #666666;
    font-size: 14px;
    margin-top: 4px;
}

.btn_write_review {
    background: linear-gradient(135deg, #f7c621 0%, #dbc64c 100%);
    color: #000000;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 198, 33, 0.4);
    font-size: 15px;
}

.btn_write_review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 198, 33, 0.6);
}

/* Toast & Error Notifications */
.review_toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #252525;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 10px;
    border-left: 4px solid #25d366;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.review_toast.show {
    opacity: 1;
    transform: translateY(0);
}

.review_toast_icon {
    color: #25d366;
    font-size: 18px;
}

.review_form_error {
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
    font-weight: 500;
}

/* Write Review Form Card */
.review_form_card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.review_form_card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.star_rating_selector {
    display: flex;
    gap: 8px;
    font-size: 28px;
    color: #d1d1d1;
    cursor: pointer;
    margin-bottom: 15px;
}

.star_rating_selector .star {
    transition: color 0.2s ease;
}

.star_rating_selector .star.hover,
.star_rating_selector .star.selected {
    color: #f7c621;
}

.review_form_inputs input,
.review_form_inputs textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border 0.3s ease;
}

.review_form_inputs input:focus,
.review_form_inputs textarea:focus {
    border-color: #f7c621;
}

.review_submit_btn {
    background: #252525;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.review_submit_btn:hover {
    background: #f7c621;
    color: #000000;
}

/* Review Cards Grid */
.reviews_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.review_card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #f7c621;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.review_card:hover {
    transform: translateY(-4px);
}

.review_card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer_name {
    font-weight: 700;
    font-size: 16px;
    color: #252525;
}

.reviewer_stars {
    color: #f7c621;
    font-size: 14px;
}

.review_text {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review_date {
    font-size: 12px;
    color: #999999;
}

/* Auto-reply Box inside Review Card */
.admin_reply_box {
    margin-top: 15px;
    background: #fdf8e6;
    border-left: 3px solid #f7c621;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
}

.admin_reply_header {
    font-weight: 700;
    color: #252525;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.admin_badge {
    background: #252525;
    color: #f7c621;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.admin_reply_text {
    color: #444444;
    line-height: 1.5;
}

/* ==========================================
   2. AI ENQUIRY CHATBOT STYLES
   ========================================== */

/* Floating Chatbot Trigger Button */
.ai_chatbot_container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.ai_chatbot_trigger {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #252525 0%, #111111 100%);
    border: 2px solid #f7c621;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    color: #f7c621;
    position: relative;
}

.ai_chatbot_trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(247, 198, 33, 0.5);
}

.chatbot_badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

/* Chatbot Proactive Preview Tooltip Bubble */
.chatbot_preview_bubble {
    position: absolute;
    bottom: 75px;
    left: 0;
    background: #252525;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    border: 1px solid #f7c621;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    font-size: 12px;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 9998;
    animation: fadeInBubble 0.3s ease;
}

.chatbot_preview_bubble.show {
    display: flex;
}

@keyframes fadeInBubble {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.close_preview_btn {
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}

.close_preview_btn:hover {
    color: #ffffff;
}

/* Chat Window Modal */
.chatbot_window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    animation: slideUp 0.3s ease;
}

.chatbot_window.active {
    display: flex;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.chatbot_header {
    background: #252525;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #f7c621;
}

.chatbot_title_info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot_avatar {
    width: 36px;
    height: 36px;
    background: #f7c621;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-weight: 800;
    font-size: 16px;
}

.chatbot_title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.chatbot_status {
    font-size: 11px;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot_status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
}

.chatbot_close_btn {
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.chatbot_close_btn:hover {
    color: #ffffff;
}

/* Messages Box */
.chatbot_messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
}

.chat_msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.chat_msg.bot {
    align-self: flex-start;
    background: #ffffff;
    color: #252525;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 3px solid #f7c621;
}

.chat_msg.user {
    align-self: flex-end;
    background: #252525;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

/* Quick Suggestion Pills */
.chatbot_suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 15px;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

.suggestion_chip {
    background: #f0f0f0;
    color: #333333;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.suggestion_chip:hover {
    background: #f7c621;
    color: #000000;
    border-color: #f7c621;
}

/* Chat Input Bar */
.chatbot_input_bar {
    padding: 10px 15px;
    background: #ffffff;
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #eeeeee;
}

.chatbot_input_bar input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 13px;
    outline: none;
}

.chatbot_input_bar input:focus {
    border-color: #f7c621;
}

.chatbot_send_btn {
    background: #f7c621;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chatbot_send_btn svg {
    width: 16px;
    height: 16px;
    fill: #000000;
}

.chatbot_send_btn:hover {
    background: #e5b318;
}

/* WhatsApp Booking Card inside Chatbot */
.fare_card {
    background: #fcf8eb;
    border: 1px solid #f7c621;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
}

.fare_title {
    font-weight: 700;
    color: #252525;
    margin-bottom: 6px;
    font-size: 13px;
}

.fare_row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.btn_chat_whatsapp {
    display: block;
    width: 100%;
    text-align: center;
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 12px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.btn_chat_whatsapp:hover {
    background: #1eb956;
    color: #ffffff;
}

.btn_chat_call {
    display: block;
    width: 100%;
    text-align: center;
    background: #252525;
    color: #f7c621;
    border: 1.5px solid #f7c621;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 6px;
    margin-top: 6px;
    font-size: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn_chat_call:hover {
    background: #f7c621;
    color: #000000;
}

.chat_action_btns {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

/* Responsive adjustments for Chatbot & Reviews */
@media (max-width: 768px) {
    .ai_chatbot_container {
        bottom: 20px;
        left: 20px;
    }

    .chatbot_window {
        bottom: 75px;
        left: 0;
        width: 320px;
        height: 420px;
    }

    .reviews_header_box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================
   3. GALLERY CATEGORY FILTER STYLES
   ========================================== */
.gallery_filter_bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.gallery_filter_btn {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    color: #333333;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    outline: none;
}

.gallery_filter_btn:hover,
.gallery_filter_btn.active {
    background: #f7c621;
    border-color: #f7c621;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 198, 33, 0.4);
}

.gallery_item {
    transition: all 0.4s ease;
}

.gallery_item.hide {
    display: none !important;
}
