/* assets/css/style.css */
/* Custom Styles for Travel Website */

:root {
    --primary-red: #DC2626;
    --primary-red-light: #EF4444;
    --primary-red-dark: #991B1B;
    --gray-light: #F3F4F6;
    --gray-medium: #9CA3AF;
    --gray-dark: #374151;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section - Full Width Immersive */
.hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 32px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Tablet */
@media (min-width: 768px) {
    .hero {
        height: 600px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-content p {
        font-size: 20px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        height: 700px;
    }
    
    .hero-content {
        padding: 48px 40px;
    }
    
    .hero-content h1 {
        font-size: 56px;
        margin-bottom: 24px;
    }
    
    .hero-content p {
        font-size: 22px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 640px) {
    .btn {
        width: 100%;
        padding: 12px 16px;
    }
}

/* Cards - Hover Scale Effect */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(-6px) scale(1.02);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 16px;
}

/* Testimonial Card - White Box with Shadow */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    border: 3px solid var(--primary-red);
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-style: italic;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.testimonial-rating {
    color: var(--primary-red);
    font-size: 14px;
}

/* New Testimonial Cards */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff5f5 100%);
}

.testimonial-card-new {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border-top: 4px solid var(--primary-red);
}

.testimonial-card-new:hover {
    box-shadow: 0 12px 36px rgba(220,38,38,0.15);
    transform: translateY(-4px);
}

.testimonial-quote-icon {
    color: var(--primary-red);
    font-size: 28px;
    opacity: 0.2;
    margin-bottom: 12px;
}

.testimonial-stars {
    font-size: 16px;
}

.testimonial-message {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
    margin-top: auto;
}

.testimonial-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author-info strong {
    font-size: 15px;
    color: var(--text-primary);
}

.testimonial-tour-badge {
    font-size: 12px;
    color: var(--primary-red);
    background: #fff5f5;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary-red);
    width: 28px;
    border-radius: 5px;
}

/* Section Spacing - Compact */
section {
    padding: 10px 20px;
}

@media (min-width: 768px) {
    section {
        padding: 10px 20px;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 10px 20px;
    }
}

/* Section Title */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
}

/* Grid Responsive */
.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ribbon / Badge */
.ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-red);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

[dir="rtl"] .ribbon {
    right: auto;
    left: 12px;
}

/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-item {
    min-width: 100%;
    flex-shrink: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-red);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-nav.prev {
    left: 12px;
}

.slider-nav.next {
    right: 12px;
}

[dir="rtl"] .slider-nav.prev {
    left: auto;
    right: 12px;
}

[dir="rtl"] .slider-nav.next {
    right: auto;
    left: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(220, 38, 38, 0.3);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.gap-4 {
    gap: 16px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Tour Details Hero Gallery */
.tour-hero-gallery {
    margin-bottom: 32px;
}

.tour-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 20px;
}

.tour-main-image:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transform: scale(1.01);
}

.tour-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tour-gallery-thumb {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.tour-gallery-thumb:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .tour-main-image {
        height: 350px;
    }
    
    .tour-gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tour-gallery-thumb {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .tour-main-image {
        height: 250px;
    }
    
    .tour-gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tour-gallery-thumb {
        height: 140px;
    }
}

/* Image Modal */
#imageModal {
    animation: fadeIn 0.3s ease;
}

#imageModal img {
    max-height: 90vh;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    #imageModal img {
        max-height: 80vh;
    }
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
    overflow: visible;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

/* Truncate the text part of nav items */
.nav-dropdown-item > span:first-child,
.nav-dropdown-item:not(:has(i)) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* For items that are just text links (sub-menu items) */
.nav-dropdown-sub-menu .nav-dropdown-item {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    white-space: nowrap;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.nav-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.nav-dropdown-item:only-child {
    border-radius: 8px;
}

.nav-dropdown-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Sub-dropdown */
.nav-dropdown-sub {
    position: relative;
}

.nav-dropdown-sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 4px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 101;
}

.nav-dropdown-sub:hover .nav-dropdown-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile menu fix — hidden divs with flex don't work in Tailwind when hidden */
#mobileMenu .mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
}

#mobileMenu .mobile-submenu.open {
    display: flex;
}

/* ===== STAR RATING ===== */
.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.star-rating i {
    font-size: 13px;
    color: #f59e0b;
}

.star-rating .far.fa-star {
    color: #d1d5db;
}

.star-count {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
    font-weight: 500;
}

/* Social icon image — white by default, red on hover */
.social-icon-img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-icon:hover .social-icon-img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(90%) saturate(700%) hue-rotate(340deg);
}

/* Contact page social icon image */
.contact-social-icon-img {
    filter: brightness(0) saturate(0);
    transition: filter 0.2s ease;
}

.group:hover .contact-social-icon-img {
    filter: brightness(0) invert(1);
}

/* CTA outline button — overrides !important color rules on hover */
.cta-outline-btn {
    color: var(--primary-red) !important;
    background-color: transparent;
    transition: background-color 0.25s, color 0.25s;
}
.cta-outline-btn:hover {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
}
.cta-outline-btn:hover i,
.cta-outline-btn:hover span {
    color: #ffffff !important;
}

/* ── Policy Pages Content Styling ─────────────────────────────── */
.prose h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}
.prose h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--primary-red, #dc2626);
}
.prose h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.prose p {
    color: #4b5563;
    line-height: 1.85;
    margin-bottom: 1.1rem;
    font-size: 0.975rem;
}
.prose ul, .prose ol {
    margin: 1rem 0 1.25rem 1.5rem;
    color: #4b5563;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    font-size: 0.975rem;
}
.prose a {
    color: var(--primary-red, #dc2626);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover { opacity: 0.8; }
.prose strong { color: #1f2937; font-weight: 600; }
.prose em { font-style: italic; color: #6b7280; }
.prose blockquote {
    border-left: 4px solid var(--primary-red, #dc2626);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: #fef2f2;
    border-radius: 0 6px 6px 0;
    color: #374151;
    font-style: italic;
}
.prose hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.prose th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    color: #374151;
}
.prose td {
    padding: 0.65rem 1rem;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}
.prose tr:nth-child(even) td { background: #f9fafb; }
