/* ==========================================
   RIAD DAR EL HANA - STYLES
   Traditional Moroccan Riad Website
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #8b6914;
    --primary-light: #c8a876;
    --primary-dark: #5a4510;
    --secondary-color: #1a472a;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #fff;
    --bg-light: #f8f5f0;
    --bg-cream: #faf7f2;
    --bg-dark: #1a1a1a;
    --border-color: #e5e5e5;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --moroccan-gold: #c9a84c;
    --moroccan-green: #1a472a;
    --moroccan-red: #8b0000;
    --moroccan-blue: #1a3a5c;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* ==========================================
   PRELOADER
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.moroccan-pattern-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#header.scrolled {
    background: rgba(255,255,255,0.98);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--primary-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-book {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-book::after {
    display: none !important;
}

.btn-book:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero.jpg') center/cover no-repeat;
    padding: 120px 20px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.6) 50%, rgba(139,105,20,0.4) 100%);
}

.moroccan-border-top,
.moroccan-border-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(90deg,
        transparent 0px,
        transparent 20px,
        var(--moroccan-gold) 20px,
        var(--moroccan-gold) 22px
    );
    opacity: 0.5;
}

.moroccan-border-top {
    top: 0;
}

.moroccan-border-bottom {
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.2);
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-badge span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.2s both;
}

.welcome-text {
    display: block;
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    color: var(--primary-light);
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.riad-name {
    display: block;
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.tagline {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.feature i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.feature span {
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139,105,20,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.booking-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1s both;
}

.booking-platforms span {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.platform-badge:hover {
    background: rgba(255,255,255,0.25);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@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);
    }
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light h2,
.section-header.light p {
    color: white;
}

.moroccan-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.moroccan-divider::before,
.moroccan-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.divider-star {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text .lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.highlight-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.highlight-item p {
    font-size: 0.9rem;
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-images {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.main-img {
    grid-column: span 2;
}

.main-img img {
    height: 300px;
}

/* Hosts Section */
.hosts-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.hosts-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.hosts-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hosts-avatar i {
    font-size: 2.5rem;
    color: white;
}

.hosts-text h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.hosts-text h4 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.hosts-text p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.host-languages {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.host-languages span:first-child {
    color: var(--text-light);
    font-size: 0.9rem;
}

.lang-badge {
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    padding: 100px 0;
    background: white;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-desc {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.gallery-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
}

.gallery-zoom:hover {
    background: var(--primary-color);
}

.large-item {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-cta {
    text-align: center;
    margin-top: 40px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

/* ==========================================
   AMENITIES SECTION
   ========================================== */
.amenities-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

.amenities-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.overview-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.overview-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-icon i {
    font-size: 1.5rem;
    color: white;
}

.overview-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.overview-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.amenity-category {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1rem;
    color: var(--primary-dark);
}

.amenity-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--bg-light);
}

.amenity-list li:last-child {
    border-bottom: none;
}

.amenity-list i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 0.8rem;
}

.features-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-highlight {
    text-align: center;
    padding: 40px 25px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-highlight:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-large i {
    font-size: 2rem;
    color: white;
}

.feature-highlight h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.feature-highlight p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================
   ROOMS SECTION
   ========================================== */
.rooms-section {
    padding: 100px 0;
    background: white;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.room-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.room-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.room-content {
    padding: 25px;
}

.room-content h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.room-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.room-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.room-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 15px;
}

.room-features i {
    color: var(--primary-color);
}

.room-config {
    background: var(--bg-cream);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.room-config h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.config-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.config-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.config-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */
.reviews-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

.reviews-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.overall-rating {
    text-align: center;
    padding-right: 40px;
    border-right: 1px solid var(--border-color);
}

.rating-score {
    margin-bottom: 15px;
}

.score {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.score-label {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 5px;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
}

.rating-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-item {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 15px;
}

.rating-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.rating-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease;
}

.rating-value {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.reviewer-info {
    flex: 1;
}

.reviewer-info h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.reviewer-country {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.reviewer-country img {
    width: 20px;
    height: auto;
}

.review-score {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 10px;
}

.review-translation {
    display: block;
    font-size: 0.85rem;
    color: var(--text-lighter);
    font-style: italic;
}

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

/* ==========================================
   LOCATION SECTION
   ========================================== */
.location-section {
    padding: 100px 0;
    background: white;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.address-card {
    background: var(--bg-cream);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.address-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.address-card h3 i {
    color: var(--primary-color);
}

.address-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.location-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
}

.location-score {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.nearby-places {
    margin-bottom: 30px;
}

.nearby-places h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.nearby-places ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nearby-places li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
}

.nearby-places i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.nearby-places div {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nearby-places strong {
    color: var(--text-color);
}

.nearby-places span:last-child {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.transport-info {
    background: var(--bg-cream);
    padding: 25px;
    border-radius: 15px;
}

.transport-info h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.transport-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.transport-info i {
    color: var(--primary-color);
}

.location-map {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-map iframe {
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================
   BOOKING SECTION
   ========================================== */
.booking-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--moroccan-dark) 0%, #2a1f0e 100%);
    background: url('images/courtyard3.jpg') center/cover no-repeat;
    position: relative;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(42,31,14,0.9) 100%);
}

.booking-section .container {
    position: relative;
    z-index: 2;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.booking-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.booking-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 25px;
}

.booking-card h3 i {
    color: var(--accent-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.info-item strong {
    display: block;
    color: white;
    margin-bottom: 3px;
}

.info-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.special-offer {
    background: rgba(212,175,55,0.2);
    border-color: var(--accent-color);
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: var(--bg-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.included-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.included-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
}

.included-list i {
    color: var(--accent-color);
}

.booking-form-container {
    position: relative;
}

.booking-form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.booking-form-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group label i {
    color: var(--primary-color);
    width: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,105,20,0.1);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1.1rem;
}

.booking-platforms-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.booking-platforms-links p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.platforms-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.platform-link.booking {
    background: #003580;
    color: white;
}

.platform-link.airbnb {
    background: #FF5A5F;
    color: white;
}

.platform-link.direct {
    background: var(--primary-color);
    color: white;
}

.platform-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card .small {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139,105,20,0.1);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.moroccan-pattern-footer {
    height: 10px;
    background: repeating-linear-gradient(90deg,
        var(--moroccan-gold) 0px,
        var(--moroccan-gold) 20px,
        transparent 20px,
        transparent 40px,
        var(--moroccan-green) 40px,
        var(--moroccan-green) 60px,
        transparent 60px,
        transparent 80px
    );
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
}

.footer-logo .logo-title {
    color: white;
}

.footer-logo .logo-subtitle {
    color: var(--primary-light);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-booking-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-booking-links p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-booking-links a {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.footer-booking-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-payment span {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-payment i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
}

/* ==========================================
   BACK TO TOP & WHATSAPP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .navbar {
        padding: 15px 30px;
    }
    
    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .about-grid,
    .rooms-grid,
    .booking-grid,
    .contact-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .reviews-header {
        grid-template-columns: 1fr;
    }
    
    .overall-rating {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .riad-name {
        font-size: 3rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .riad-name {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .large-item {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .booking-platforms {
        flex-direction: column;
    }
    
    .hosts-content {
        flex-direction: column;
        text-align: center;
    }
    
    .host-languages {
        justify-content: center;
    }
    
    .reviews-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .riad-name {
        font-size: 2rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .amenities-overview {
        grid-template-columns: 1fr;
    }
    
    .features-highlights {
        grid-template-columns: 1fr;
    }
    
    .gallery-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .config-items {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Moroccan Pattern Backgrounds */
.moroccan-bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a876' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Print Styles */
@media print {
    #header,
    .back-to-top,
    .whatsapp-btn,
    #lightbox {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .hero {
        min-height: auto;
        padding: 20px;
    }
}
