/* ===================================
   EXPERIENCES PAGE STYLES
   Jassistays - Authentic Moroccan Hospitality
   =================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    background-image: url('../../assets/images/experiences/hero-exper.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(193, 121, 86, 0.75) 0%, rgba(139, 115, 85, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Filter Section */
.filter-section {
    padding: 1.25rem 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #C17956;
    color: #C17956;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    border-color: #C17956;
    color: white;
    box-shadow: 0 4px 15px rgba(193, 121, 86, 0.3);
}

.filter-btn i {
    font-size: 0.875rem;
}

/* Experiences Section */
.experiences-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.experiences-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

/* Experience Cards - Artistic Asymmetric Layout */
.experience-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Varying card widths for artistic layout */
.experience-card:nth-child(1) {
    grid-column: span 7;
}

.experience-card:nth-child(2) {
    grid-column: span 5;
}

.experience-card:nth-child(3) {
    grid-column: span 5;
}

.experience-card:nth-child(4) {
    grid-column: span 7;
}

.experience-card:nth-child(5) {
    grid-column: span 6;
}

.experience-card:nth-child(6) {
    grid-column: span 6;
}

.experience-card:nth-child(7) {
    grid-column: span 4;
}

.experience-card:nth-child(8) {
    grid-column: span 8;
}

.experience-card:nth-child(9) {
    grid-column: span 7;
}

.experience-card:nth-child(10) {
    grid-column: span 5;
}

/* Default for remaining cards */
.experience-card:nth-child(n+11) {
    grid-column: span 6;
}

.experience-card .experience-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.experience-card .experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.experience-card:hover .experience-image img {
    transform: scale(1.1);
}

.experience-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #C17956;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.experience-category {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, rgba(193, 121, 86, 0.1) 0%, rgba(139, 115, 85, 0.1) 100%);
    color: #C17956;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.experience-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.experience-content p {
    display: none;
}

.experience-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.8rem;
}

.meta-item i {
    color: #C17956;
    font-size: 0.85rem;
}

.experience-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #C17956;
}

.price-label {
    color: #999;
    font-size: 0.8rem;
}

.experience-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-book {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 121, 86, 0.3);
}

.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: white;
    color: #C17956;
    text-decoration: none;
    border: 2px solid #C17956;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: #C17956;
    color: white;
}

/* Why Choose Section */
.why-choose-section {
    padding: 6rem 0;
    background: white;
}

.why-choose-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.why-choose-section .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.why-choose-section .section-header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #C17956 0%, #8B7355 100%);
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: white;
    color: #C17956;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #C17956;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .experiences-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .experience-card:nth-child(odd) {
        grid-column: span 6;
    }

    .experience-card:nth-child(even) {
        grid-column: span 6;
    }

    .experience-card:nth-child(n+1) {
        grid-column: span 6;
    }

    .filter-bar {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-background {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .filter-section {
        padding: 1rem 0;
        position: relative;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-btn[data-category="all"] {
        grid-column: 1 / -1;
    }

    .filter-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 12px;
        justify-content: center;
        gap: 0.4rem;
    }
    
    .filter-btn i {
        font-size: 0.85rem;
    }
    
    .filter-btn span {
        font-size: 0.8rem;
    }

    .experiences-section {
        padding: 3rem 0;
    }

    .experiences-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .experience-card {
        grid-column: span 1 !important;
    }

    .experience-card .experience-image {
        height: 140px;
    }
    
    .experience-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }

    .experience-content {
        padding: 1rem;
    }
    
    .experience-category {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .experience-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .experience-content p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .experience-meta {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .meta-item {
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    
    .meta-item i {
        font-size: 0.75rem;
    }
    
    .experience-price {
        margin-bottom: 0.75rem;
    }
    
    .price-amount {
        font-size: 1.25rem;
    }
    
    .price-label {
        font-size: 0.7rem;
    }
    
    .experience-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-book,
    .btn-details {
        padding: 0.6rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .btn-details {
        padding: 0.6rem 0.75rem;
    }

    .experience-footer {
        flex-direction: column;
    }

    .why-choose-section {
        padding: 4rem 0;
    }

    .why-choose-section .section-header h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .feature-icon i {
        font-size: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        display: none;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .experience-content h3 {
        font-size: 1.35rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 1.75rem;
    }
}
