/* Import Tailwind Utilities */
@import url('tailwind-utilities.css');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
    color: #334155;
    background-color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

body.homepage {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Remove any margins from header container */
.homepage #header {
    margin: 0;
    padding: 0;
    width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section - Full Width Edge to Edge */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    height: 85vh;
    margin-top: 0;
    padding: calc(70px + 8rem) 0 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/marokko-rundreise-banner.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Ensure the following section appears after hero */
.tours-section {
    position: relative;
    background: white;
}

/* Remove the extra overlay as we already have gradient in background-image */

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: white;
    box-shadow: 0 4px 14px rgba(251, 146, 60, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tours Section */
.tours-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tour-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.tour-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.tour-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-number {
    font-size: 0.875rem;
    color: #64748b;
}

.tour-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.tour-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.feature-item i {
    color: #fb923c;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tour-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.btn-view-tour {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-view-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
}

/* Add pricing flexibility styles */
.tour-price-replacement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.tour-price-replacement i {
    color: #fb923c;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.cta-button {
    background: white;
    color: #f59e0b;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-tours-all {
    text-align: center;
    margin-top: 3rem;
}

.btn-tours-all a {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-tours-all a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

/* Destinations Showcase Section */
.destinations-showcase {
    padding: 5rem 0;
    background: #f9fafb;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Destination Card Styling */
.destination-card-home {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
    height: 100%;
}

.destination-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Destination Image Container */
.destination-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.destination-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-card-home:hover .destination-card-image img {
    transform: scale(1.1);
}

/* Destination Overlay */
.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    pointer-events: none;
}

.destination-category {
    background: rgba(251, 146, 60, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Destination Content */
.destination-card-content {
    padding: 1.5rem;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.destination-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.destination-card-content p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    flex: 1;
}

/* Arrow Indicator */
.destination-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.destination-card-home:hover .destination-arrow {
    background: #fb923c;
    color: white;
    transform: translateX(4px);
}

/* Special styling for featured cards */
.destination-card-home.featured .destination-card-image {
    height: 250px;
}

.destination-card-home.featured .destination-card-content h3 {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .destination-card-home.featured .destination-card-image {
        height: 200px;
    }
    
    .destination-card-image {
        height: 160px;
    }
    
    .destination-card-content {
        padding: 1rem;
    }
    
    .destination-card-content h3 {
        font-size: 1.125rem;
    }
    
    .destination-arrow {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* CTA Section Styles */
.bg-gradient-to-r {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.from-amber-500 {
    --tw-gradient-from: #f59e0b;
}

.to-orange-600 {
    --tw-gradient-to: #ea580c;
}

.text-white {
    color: white !important;
}

/* CTA Section Additional Styles */
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.font-bold {
    font-weight: 700;
}

.mb-8 {
    margin-bottom: 2rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.bg-white {
    background-color: white;
}

.text-amber-600 {
    color: #d97706;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.bg-transparent {
    background-color: transparent;
}

.border-2 {
    border-width: 2px;
}

.border-white {
    border-color: white;
}

.hover\:bg-white:hover {
    background-color: white;
}

.hover\:text-amber-600:hover {
    color: #d97706;
}

.gap-4 {
    gap: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* Why Choose Us Section - Fix spacing and alignment */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.grid {
    display: grid;
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.text-center {
    text-align: center;
}

.bg-amber-100 {
    background-color: #fef3c7;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-amber-600 {
    color: #d97706;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-600 {
    color: #4b5563;
}