/* ========================================
   JOE SAFARIS - MODERN TOUR PAGE
   Sense of Africa Inspired Design
   ======================================== */

/* Container */
.jps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.jps-hero {
    position: relative;
    height: 65vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.jps-hero-bg {
    position: absolute;
    inset: 0;
}

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

.jps-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
}

.jps-hero-content {
    position: relative;
    z-index: 10;
    color: white;
    padding: 50px 0;
    width: 100%;
}

/* Breadcrumb */
.jps-breadcrumb {
    font-size: 13px;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.jps-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.jps-breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

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

/* Hero Title */
.jps-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 25px;
    letter-spacing: -0.5px;
}

/* Hero Meta */
.jps-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
}

.jps-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jps-meta-item i {
    font-size: 18px;
}

.jps-price-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
}

/* Main Wrapper */
.jps-main-wrapper {
    padding: 60px 0;
    background: #fafafa;
}

/* Content Grid */
.jps-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

/* Main Content */
.jps-main-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Sections */
.jps-section {
    padding: 40px;
    border-bottom: 1px solid #e8e8e8;
}

.jps-section:last-child {
    border-bottom: none;
}

.jps-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.jps-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

/* Tabs */
.jps-tabs {
    background: white;
}

.jps-tabs-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: #f9f9f9;
}

.jps-tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    position: relative;
    top: 2px;
}

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

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

.jps-tabs-content {
    padding: 0;
}

.jps-tab-panel {
    display: none;
    padding: 35px;
    animation: fadeIn 0.4s ease;
}

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

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

/* Highlights List */
.jps-highlights-list {
    display: grid;
    gap: 15px;
}

.jps-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2c5f2d;
    transition: all 0.3s;
}

.jps-highlight-item:hover {
    background: #f0f2f4;
    transform: translateX(5px);
}

.jps-highlight-number {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.jps-highlight-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding-top: 5px;
}

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

.jps-inc-box {
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.jps-included-box {
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    border-left: 5px solid #2c5f2d;
}

.jps-excluded-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 5px solid #d32f2f;
}

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

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

.jps-icon-check {
    color: #2c5f2d;
}

.jps-icon-cross {
    color: #d32f2f;
}

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

.jps-inc-box li {
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.jps-inc-box li:before {
    content: "•";
    margin-right: 10px;
    font-weight: bold;
}

.jps-included-box li:before {
    color: #2c5f2d;
}

.jps-excluded-box li:before {
    color: #d32f2f;
}

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

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

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

.jps-gallery-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #f0f0f0;
}

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

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

.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: 40px;
    color: white;
}

/* FAQ */
.jps-faq-list {
    border-top: 1px solid #e0e0e0;
}

.jps-faq-item {
    border-bottom: 1px solid #e0e0e0;
}

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

.jps-faq-question:hover {
    color: #2c5f2d;
}

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

.jps-faq-answer {
    display: none;
    padding: 0 0 20px;
    color: #555;
    line-height: 1.8;
}

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

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

/* Widgets */
.jps-widget {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

/* Chat Widget */
.jps-chat-header {
    background: linear-gradient(135deg, #2c5f2d 0%, #1f4420 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.jps-chat-header h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

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

.jps-chat-box {
    max-height: 500px;
    overflow-y: auto;
}

.jps-chat-messages {
    padding: 20px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: #f9f9f9;
}

.jps-message {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

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

.jps-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.jps-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.jps-bot-message .jps-bubble {
    background: white;
    border: 1px solid #e0e0e0;
    color: #333;
}

.jps-user-message .jps-bubble {
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
}

.jps-typing {
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Tour Recommendations */
.jps-tour-recs {
    padding: 15px 20px;
    max-height: 250px;
    overflow-y: auto;
}

.jps-tour-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.jps-tour-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

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

.jps-tour-info h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.jps-tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.jps-tour-price {
    font-weight: 700;
    color: #2c5f2d;
}

.jps-tour-actions {
    display: flex;
    gap: 8px;
}

.jps-btn-sm {
    flex: 1;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.jps-btn-outline {
    background: white;
    color: #2c5f2d;
    border: 1px solid #2c5f2d;
}

.jps-btn-outline:hover {
    background: #f5f5f5;
}

.jps-btn-primary {
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
}

.jps-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(44, 95, 45, 0.3);
}

/* Quick Actions */
.jps-chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.jps-quick-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.jps-quick-btn:hover {
    background: #2c5f2d;
    color: white;
    border-color: #2c5f2d;
}

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

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

.jps-chat-form input:focus {
    outline: none;
    border-color: #2c5f2d;
}

.jps-chat-form button {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.jps-chat-form button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

/* Contact Widget */
.jps-contact-widget {
    padding: 25px;
}

.jps-contact-widget h4 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.jps-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jps-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.jps-contact-icon {
    font-size: 20px;
}

.jps-contact-item a {
    color: #2c5f2d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.jps-contact-item a:hover {
    color: #1f4420;
    text-decoration: underline;
}

/* Modal */
.jps-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jps-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.jps-modal-dialog {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.jps-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.jps-modal-close:hover {
    color: #333;
}

.jps-modal-dialog h3 {
    margin: 0 0 25px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Form Styles */
.jps-form-group {
    margin-bottom: 18px;
}

.jps-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.jps-form-group input,
.jps-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.jps-form-group input:focus,
.jps-form-group textarea:focus {
    outline: none;
    border-color: #2c5f2d;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.jps-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.jps-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2c5f2d, #1f4420);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.jps-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.3);
}

.jps-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jps-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.jps-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.jps-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

@media (max-width: 768px) {
    .jps-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .jps-hero-title {
        font-size: 32px;
    }
    
    .jps-tabs-nav {
        flex-wrap: wrap;
    }
    
    .jps-tab-button {
        flex: 1 1 50%;
    }
    
    .jps-section {
        padding: 25px 20px;
    }
    
    .jps-inc-exc-wrapper,
    .jps-photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .jps-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .jps-hero-title {
        font-size: 26px;
    }
    
    .jps-hero-meta {
        font-size: 13px;
    }
    
    .jps-tab-button {
        font-size: 12px;
        padding: 14px 12px;
    }
}
