/* ======================================================
   SENSE OF AFRICA DESTINATIONS STYLE + AI CHAT
   ====================================================== */

/* Hero */
.jps-dest-hero {
    position: relative;
    height: 70vh;
    min-height: 550px;
    overflow: hidden;
}

.jps-dest-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jps-dest-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 70%);
    z-index: 1;
}

.jps-dest-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 50px 40px;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
}

.jps-dest-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.jps-dest-breadcrumb a {
    color: white;
    text-decoration: none;
}

.jps-dest-breadcrumb span {
    margin: 0 10px;
}

.jps-dest-title {
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.2;
}

.jps-dest-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 16px;
}

.jps-dest-meta .jps-icon {
    margin-right: 5px;
}

.jps-dest-price {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Container */
.jps-dest-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.jps-dest-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    margin: 60px 0;
}

/* Main Content */
.jps-dest-main {
    min-width: 0;
}

.jps-dest-section {
    margin-bottom: 60px;
}

.jps-dest-intro {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.jps-dest-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #1a1a1a;
}

/* Quick Facts */
.jps-quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.jps-fact {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.jps-fact-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.jps-fact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 5px;
}

.jps-fact-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Interactive Tabs */
.jps-tabs-modern {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.jps-tabs-nav-sticky {
    display: flex;
    background: #f8f8f8;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.jps-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.jps-tab-btn:hover {
    background: #fff;
    color: #2c5f2d;
}

.jps-tab-btn.active {
    background: white;
    color: #2c5f2d;
    border-bottom-color: #2c5f2d;
}

.jps-tabs-content {
    padding: 40px;
}

.jps-tab-pane {
    display: none;
    animation: fadeIn 0.4s;
}

.jps-tab-pane.active {
    display: block;
}

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

/* Highlights Grid */
.jps-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.jps-highlight-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #2c5f2d;
    animation: slideInUp 0.5s;
}

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

.jps-highlight-icon {
    width: 30px;
    height: 30px;
    background: #2c5f2d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.jps-highlight-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Itinerary */
.jps-itinerary-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* Includes/Excludes */
.jps-inc-exc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.jps-inc-box {
    padding: 30px;
    border-radius: 10px;
}

.jps-included {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-left: 4px solid #2c5f2d;
}

.jps-excluded {
    background: linear-gradient(135deg, #ffebee, #fce4ec);
    border-left: 4px solid #d32f2f;
}

.jps-inc-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jps-inc-icon {
    font-size: 22px;
}

.jps-inc-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jps-inc-box li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.jps-inc-box li:last-child {
    border-bottom: none;
}

/* Map */
.jps-map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Gallery */
.jps-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.jps-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.jps-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.jps-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.jps-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.jps-gallery-item:hover img {
    transform: scale(1.1);
}

.jps-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.jps-gallery-item:hover .jps-gallery-overlay {
    opacity: 1;
}

.jps-zoom-icon {
    font-size: 32px;
}

/* Lightbox */
.jps-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jps-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.jps-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.jps-lightbox-prev,
.jps-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 20px 30px;
    cursor: pointer;
    z-index: 10000;
}

.jps-lightbox-prev {
    left: 20px;
}

.jps-lightbox-next {
    right: 20px;
}

/* FAQ */
.jps-faq-list {
    max-width: 800px;
}

.jps-faq-item {
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.jps-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.jps-faq-question:hover {
    background: #f8f8f8;
}

.jps-faq-icon {
    font-size: 24px;
    color: #2c5f2d;
}

.jps-faq-answer {
    display: none;
    padding: 0 20px 20px;
}

.jps-faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: #666;
}

/* Sidebar */
.jps-dest-sidebar {
    position: relative;
}

.jps-sidebar-sticky {
    position: sticky;
    top: 20px;
}

/* AI Chat Widget */
.jps-ai-chat-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-bottom: 25px;
}

.jps-chat-header {
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
    padding: 20px;
}

.jps-chat-header h3 {
    font-size: 18px;
    margin: 0 0 5px;
}

.jps-chat-header p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.jps-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.jps-chat-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: messageIn 0.3s;
}

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

.jps-msg-user {
    flex-direction: row-reverse;
}

.jps-msg-avatar {
    width: 36px;
    height: 36px;
    background: #2c5f2d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.jps-msg-user .jps-msg-avatar {
    background: #d4af37;
}

.jps-msg-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.jps-msg-user .jps-msg-bubble {
    background: #2c5f2d;
    color: white;
}

.jps-msg-bubble p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.jps-typing-dots {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.jps-typing-dots span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.jps-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.jps-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Tour Suggestions */
.jps-tour-suggestions {
    padding: 0 20px 20px;
}

.jps-suggested-tour {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.jps-suggested-tour img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.jps-tour-info {
    padding: 15px;
}

.jps-tour-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.jps-tour-info p {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
}

.jps-tour-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.jps-tour-btn {
    display: inline-block;
    background: #2c5f2d;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.jps-tour-btn:hover {
    background: #1f4420;
    transform: translateY(-2px);
}

/* Chat Input */
.jps-chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.jps-chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.jps-chat-input button {
    background: #2c5f2d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.jps-chat-input button:hover {
    background: #1f4420;
}

/* Quick Contact */
.jps-quick-contact {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

.jps-quick-contact h4 {
    font-size: 16px;
    margin: 0 0 15px;
}

.jps-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.jps-contact-item span {
    font-size: 18px;
}

.jps-contact-item a {
    color: #2c5f2d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .jps-dest-grid {
        grid-template-columns: 1fr;
    }
    
    .jps-sidebar-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .jps-dest-container {
        padding: 0 20px;
    }
    
    .jps-dest-title {
        font-size: 36px;
    }
    
    .jps-tabs-nav-sticky {
        flex-direction: column;
    }
    
    .jps-tab-btn {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }
    
    .jps-tab-btn.active {
        border-left-color: #2c5f2d;
        border-bottom-color: #e0e0e0;
    }
    
    .jps-tabs-content {
        padding: 20px;
    }
    
    .jps-highlights-grid,
    .jps-inc-exc-grid,
    .jps-gallery-masonry {
        grid-template-columns: 1fr;
    }
}
