{"id":467,"date":"2025-11-23T16:53:41","date_gmt":"2025-11-23T16:53:41","guid":{"rendered":"https:\/\/marrakechtrekking.com\/?page_id=467"},"modified":"2025-11-27T12:31:40","modified_gmt":"2025-11-27T12:31:40","slug":"5-day-visit-to-the-most-beautiful-cities-of-morocco-tour","status":"publish","type":"page","link":"https:\/\/marrakechtrekking.com\/fr\/5-day-visit-to-the-most-beautiful-cities-of-morocco-tour\/","title":{"rendered":"5-Day Visit to the Most Beautiful Cities of Morocco Tour"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"467\" class=\"elementor elementor-467\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-732feee e-flex e-con-boxed e-con e-parent\" data-id=\"732feee\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-caa7536 elementor-widget elementor-widget-html\" data-id=\"caa7536\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <title>5-Day Visit to the Most Beautiful Cities of Morocco Tour | Imperial Cities & Sahara<\/title>\r\n    <meta name=\"description\" content=\"5-day tour visiting the most beautiful cities of Morocco including Fes, Chefchaouen, Sahara Desert, and imperial cities. Experience Morocco's diverse landscapes and culture.\">\r\n    \r\n    <!-- Fonts & Icons -->\r\n    <link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\">\r\n    <link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin>\r\n    <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700;800&display=swap\" rel=\"stylesheet\">\r\n    <link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.5.1\/css\/all.min.css\">\r\n    \r\n    <style>\r\n        \/* CSS RESET FOR OUR COMPONENT ONLY *\/\r\n        #morocco-beautiful-cities-wrapper * {\r\n            box-sizing: border-box !important;\r\n            margin: 0 !important;\r\n            padding: 0 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper {\r\n            \/* ISOLATION CONTAINER *\/\r\n            --primary-bg: #ffffff !important;\r\n            --card-bg: #ffffff !important;\r\n            --accent-color: #f97316 !important;\r\n            --accent-light: #fed7aa !important;\r\n            --accent-dark: #dc2626 !important;\r\n            --accent-gradient: linear-gradient(135deg, #f97316, #dc2626) !important;\r\n            --text-primary: #0f172a !important;\r\n            --text-secondary: #6b7280 !important;\r\n            --border-color: rgba(148, 163, 184, 0.35) !important;\r\n            --radius-large: 22px !important;\r\n            --radius-medium: 14px !important;\r\n            --shadow-large: 0 20px 55px rgba(15, 23, 42, 0.18) !important;\r\n            --shadow-small: 0 10px 25px rgba(15, 23, 42, 0.12) !important;\r\n\r\n            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif !important;\r\n            background: #ffffff !important;\r\n            color: var(--text-primary) !important;\r\n            line-height: 1.6 !important;\r\n            isolation: isolate !important;\r\n            position: relative !important;\r\n            z-index: 1 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .container {\r\n            max-width: 1180px !important;\r\n            margin: 0 auto !important;\r\n            padding: 20px 18px 80px !important;\r\n        }\r\n\r\n        \/* FORCE GALLERY STYLES *\/\r\n        #morocco-beautiful-cities-wrapper .gallery-section img,\r\n        #morocco-beautiful-cities-wrapper .thumbnail img,\r\n        #morocco-beautiful-cities-wrapper .photo-gallery img,\r\n        #morocco-beautiful-cities-wrapper .main-gallery img {\r\n            border: none !important;\r\n            background: transparent !important;\r\n            padding: 0 !important;\r\n            box-shadow: none !important;\r\n            display: block !important;\r\n        }\r\n\r\n        \/* Hero Section *\/\r\n        #morocco-beautiful-cities-wrapper .hero-section {\r\n            display: grid !important;\r\n            grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr) !important;\r\n            gap: 24px !important;\r\n            align-items: stretch !important;\r\n            margin-bottom: 26px !important;\r\n        }\r\n\r\n        @media (max-width: 960px) {\r\n            #morocco-beautiful-cities-wrapper .hero-section {\r\n                grid-template-columns: 1fr !important;\r\n            }\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .hero-content {\r\n            position: relative !important;\r\n            padding: 22px 24px 20px !important;\r\n            border-radius: var(--radius-large) !important;\r\n            background: radial-gradient(circle at top left, #fff7ed 0, #fef2f2 30%, #ffffff 90%) !important;\r\n            box-shadow: var(--shadow-large) !important;\r\n            overflow: hidden !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .hero-content::after {\r\n            content: \"\" !important;\r\n            position: absolute !important;\r\n            width: 260px !important;\r\n            height: 260px !important;\r\n            border-radius: 999px !important;\r\n            background: radial-gradient(circle at center, rgba(251, 146, 60, 0.24), transparent 70%) !important;\r\n            top: -80px !important;\r\n            right: -120px !important;\r\n            opacity: 0.7 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .region-badge {\r\n            display: inline-flex !important;\r\n            align-items: center !important;\r\n            gap: 8px !important;\r\n            padding: 4px 11px !important;\r\n            border-radius: 999px !important;\r\n            background: rgba(15, 23, 42, 0.75) !important;\r\n            color: #e5e7eb !important;\r\n            font-size: 0.75rem !important;\r\n            text-transform: uppercase !important;\r\n            letter-spacing: 0.16em !important;\r\n            margin-bottom: 10px !important;\r\n            position: relative !important;\r\n            z-index: 1 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .region-badge i {\r\n            color: #fed7aa !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .hero-content h1 {\r\n            margin: 0 0 6px !important;\r\n            font-size: clamp(1.9rem, 3vw, 2.4rem) !important;\r\n            font-weight: 800 !important;\r\n            letter-spacing: 0.01em !important;\r\n            position: relative !important;\r\n            z-index: 1 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .hero-description {\r\n            margin: 0 0 14px !important;\r\n            color: #1f2933 !important;\r\n            font-size: 0.97rem !important;\r\n            max-width: 38rem !important;\r\n            position: relative !important;\r\n            z-index: 1 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .trek-details {\r\n            display: flex !important;\r\n            flex-wrap: wrap !important;\r\n            gap: 8px !important;\r\n            position: relative !important;\r\n            z-index: 1 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .detail-pill {\r\n            display: inline-flex !important;\r\n            align-items: center !important;\r\n            gap: 6px !important;\r\n            font-size: 0.8rem !important;\r\n            padding: 6px 10px !important;\r\n            border-radius: 999px !important;\r\n            background: rgba(15, 23, 42, 0.85) !important;\r\n            color: #e5e7eb !important;\r\n            border: 1px solid rgba(148, 163, 184, 0.5) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .detail-pill i {\r\n            color: #fed7aa !important;\r\n        }\r\n\r\n        \/* Gallery Section *\/\r\n        #morocco-beautiful-cities-wrapper .gallery-section {\r\n            display: grid !important;\r\n            gap: 10px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .main-gallery {\r\n            position: relative !important;\r\n            border-radius: var(--radius-large) !important;\r\n            overflow: hidden !important;\r\n            height: 340px !important;\r\n            background: #000 !important;\r\n            box-shadow: var(--shadow-large) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .main-gallery img {\r\n            width: 100% !important;\r\n            height: 100% !important;\r\n            object-fit: cover !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .gallery-overlay {\r\n            position: absolute !important;\r\n            inset: 0 !important;\r\n            background: linear-gradient(to top, rgba(15, 23, 42, 0.65), transparent 55%) !important;\r\n            pointer-events: none !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .gallery-caption {\r\n            position: absolute !important;\r\n            left: 14px !important;\r\n            bottom: 14px !important;\r\n            padding: 6px 10px !important;\r\n            border-radius: 999px !important;\r\n            font-size: 0.78rem !important;\r\n            background: rgba(15, 23, 42, 0.85) !important;\r\n            color: #e5e7eb !important;\r\n            display: inline-flex !important;\r\n            align-items: center !important;\r\n            gap: 7px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thumbnail-grid {\r\n            display: grid !important;\r\n            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;\r\n            gap: 6px !important;\r\n            margin-top: 6px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thumbnail {\r\n            border-radius: 14px !important;\r\n            overflow: hidden !important;\r\n            position: relative !important;\r\n            border: 2px solid transparent !important;\r\n            cursor: pointer !important;\r\n            min-height: 70px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thumbnail img {\r\n            width: 100% !important;\r\n            height: 100% !important;\r\n            object-fit: cover !important;\r\n            display: block !important;\r\n            transform: scale(1.04) !important;\r\n            transition: transform 0.2s !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thumbnail:hover img {\r\n            transform: scale(1.08) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thumbnail::after {\r\n            content: \"\" !important;\r\n            position: absolute !important;\r\n            inset: 0 !important;\r\n            background: linear-gradient(to top, rgba(15, 23, 42, 0.5), transparent 75%) !important;\r\n            opacity: 0 !important;\r\n            transition: opacity 0.2s !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thumbnail:hover::after {\r\n            opacity: 1 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thumbnail.active {\r\n            border-color: var(--accent-color) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .info-cards {\r\n            display: flex !important;\r\n            gap: 10px !important;\r\n            margin-top: 6px !important;\r\n            flex-wrap: wrap !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .info-card {\r\n            flex: 1 1 0 !important;\r\n            min-width: 0 !important;\r\n            border-radius: var(--radius-medium) !important;\r\n            background: var(--card-bg) !important;\r\n            border: 1px solid var(--border-color) !important;\r\n            padding: 10px 12px !important;\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            gap: 10px !important;\r\n            box-shadow: var(--shadow-small) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .info-icon {\r\n            width: 36px !important;\r\n            height: 36px !important;\r\n            border-radius: 999px !important;\r\n            display: grid !important;\r\n            place-items: center !important;\r\n            background: var(--accent-gradient) !important;\r\n            color: #ecfdf5 !important;\r\n            font-size: 1rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .info-text span {\r\n            display: block !important;\r\n            font-size: 0.75rem !important;\r\n            text-transform: uppercase !important;\r\n            letter-spacing: 0.08em !important;\r\n            color: var(--text-secondary) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .info-text strong {\r\n            font-size: 0.94rem !important;\r\n        }\r\n\r\n        \/* Main Layout *\/\r\n        #morocco-beautiful-cities-wrapper .main-layout {\r\n            display: grid !important;\r\n            grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr) !important;\r\n            gap: 26px !important;\r\n            align-items: flex-start !important;\r\n        }\r\n\r\n        @media (max-width: 980px) {\r\n            #morocco-beautiful-cities-wrapper .main-layout {\r\n                grid-template-columns: 1fr !important;\r\n            }\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .content-section {\r\n            border-radius: var(--radius-large) !important;\r\n            background: var(--card-bg) !important;\r\n            border: 1px solid var(--border-color) !important;\r\n            padding: 20px 20px 18px !important;\r\n            margin-bottom: 18px !important;\r\n            box-shadow: var(--shadow-small) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .section-header {\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            gap: 9px !important;\r\n            margin-bottom: 12px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .section-header i {\r\n            width: 28px !important;\r\n            height: 28px !important;\r\n            border-radius: 999px !important;\r\n            display: grid !important;\r\n            place-items: center !important;\r\n            background: var(--accent-light) !important;\r\n            color: var(--accent-dark) !important;\r\n            font-size: 0.9rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .section-header h2 {\r\n            margin: 0 !important;\r\n            font-size: 1.1rem !important;\r\n            letter-spacing: 0.03em !important;\r\n            text-transform: uppercase !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .section-header small {\r\n            display: block !important;\r\n            font-size: 0.75rem !important;\r\n            color: var(--text-secondary) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .highlight-box {\r\n            padding: 11px 13px !important;\r\n            border-radius: 14px !important;\r\n            background: #fff7ed !important;\r\n            border: 1px solid rgba(234, 88, 12, 0.18) !important;\r\n            font-size: 0.95rem !important;\r\n            margin-bottom: 10px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .highlight-box strong {\r\n            color: var(--accent-dark) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .content-section p {\r\n            color: var(--text-secondary) !important;\r\n            font-size: 0.97rem !important;\r\n            margin: 0 0 8px !important;\r\n        }\r\n\r\n        \/* Feature Grid (still used in Practical Details) *\/\r\n        #morocco-beautiful-cities-wrapper .feature-grid {\r\n            display: grid !important;\r\n            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;\r\n            gap: 10px !important;\r\n            margin-top: 12px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .feature-card {\r\n            border-radius: var(--radius-medium) !important;\r\n            background: #f9fafb !important;\r\n            border: 1px dashed var(--border-color) !important;\r\n            padding: 10px 12px !important;\r\n            font-size: 0.88rem !important;\r\n            display: flex !important;\r\n            align-items: flex-start !important;\r\n            gap: 8px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .feature-card i {\r\n            color: var(--accent-color) !important;\r\n            margin-top: 3px !important;\r\n            font-size: 0.9rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .feature-card strong {\r\n            display: block !important;\r\n            font-size: 0.9rem !important;\r\n        }\r\n\r\n        \/* Itinerary *\/\r\n        #morocco-beautiful-cities-wrapper .itinerary-day {\r\n            display: grid !important;\r\n            grid-template-columns: 100px minmax(0, 1fr) !important;\r\n            gap: 14px !important;\r\n            padding: 13px 0 !important;\r\n            border-bottom: 1px dashed var(--border-color) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .itinerary-day:last-child {\r\n            border-bottom: none !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .day-label {\r\n            font-size: 0.8rem !important;\r\n            text-transform: uppercase !important;\r\n            letter-spacing: 0.14em !important;\r\n            font-weight: 700 !important;\r\n            color: var(--accent-dark) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .day-content h3 {\r\n            margin: 0 0 3px !important;\r\n            font-size: 0.98rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .day-content p {\r\n            margin: 0 !important;\r\n            color: var(--text-secondary) !important;\r\n            font-size: 0.95rem !important;\r\n        }\r\n\r\n        \/* Inclusions *\/\r\n        #morocco-beautiful-cities-wrapper .two-column {\r\n            display: grid !important;\r\n            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;\r\n            gap: 18px !important;\r\n        }\r\n\r\n        @media (max-width: 720px) {\r\n            #morocco-beautiful-cities-wrapper .two-column {\r\n                grid-template-columns: 1fr !important;\r\n            }\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .list-title {\r\n            font-size: 0.96rem !important;\r\n            font-weight: 700 !important;\r\n            margin-bottom: 6px !important;\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            gap: 6px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .list-title i {\r\n            background: none !important;\r\n            width: auto !important;\r\n            height: auto !important;\r\n            color: var(--accent-color) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .bullet-list {\r\n            list-style: none !important;\r\n            padding: 0 !important;\r\n            margin: 0 !important;\r\n            font-size: 0.95rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .bullet-list li {\r\n            display: flex !important;\r\n            gap: 8px !important;\r\n            margin-bottom: 7px !important;\r\n            color: var(--text-secondary) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .bullet-list li i {\r\n            margin-top: 3px !important;\r\n            font-size: 0.85rem !important;\r\n            min-width: 14px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .bullet-list.included li i {\r\n            color: var(--accent-dark) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .bullet-list.excluded li i {\r\n            color: #e11d48 !important;\r\n        }\r\n\r\n        \/* FAQ *\/\r\n        #morocco-beautiful-cities-wrapper .faq-item {\r\n            border-radius: var(--radius-medium) !important;\r\n            border: 1px solid var(--border-color) !important;\r\n            margin-bottom: 10px !important;\r\n            background: #f9fafb !important;\r\n            overflow: hidden !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .faq-question {\r\n            padding: 12px 14px !important;\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            justify-content: space-between !important;\r\n            gap: 12px !important;\r\n            cursor: pointer !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .faq-question span {\r\n            font-size: 0.95rem !important;\r\n            font-weight: 600 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .faq-question i {\r\n            color: var(--accent-dark) !important;\r\n            transition: transform 0.2s !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .faq-item.open .faq-question i {\r\n            transform: rotate(180deg) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .faq-answer {\r\n            max-height: 0 !important;\r\n            overflow: hidden !important;\r\n            padding: 0 14px !important;\r\n            font-size: 0.92rem !important;\r\n            color: var(--text-secondary) !important;\r\n            transition: max-height 0.25s ease, padding 0.25s ease !important;\r\n            background: #ffffff !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .faq-item.open .faq-answer {\r\n            padding: 0 14px 12px !important;\r\n            max-height: 180px !important;\r\n        }\r\n\r\n        \/* Photo Gallery - REDESIGNED *\/\r\n        #morocco-beautiful-cities-wrapper .photo-gallery {\r\n            display: grid !important;\r\n            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;\r\n            gap: 12px !important;\r\n            margin-top: 12px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-item {\r\n            position: relative !important;\r\n            border-radius: 16px !important;\r\n            overflow: hidden !important;\r\n            cursor: zoom-in !important;\r\n            box-shadow: var(--shadow-small) !important;\r\n            transition: transform 0.3s ease, box-shadow 0.3s ease !important;\r\n            background: #f9fafb !important;\r\n            border: 1px solid var(--border-color) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-item:hover {\r\n            transform: translateY(-5px) !important;\r\n            box-shadow: var(--shadow-large) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-item img {\r\n            width: 100% !important;\r\n            height: 140px !important;\r\n            object-fit: cover !important;\r\n            transition: transform 0.3s ease !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-item:hover img {\r\n            transform: scale(1.05) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-item::after {\r\n            content: \"\" !important;\r\n            position: absolute !important;\r\n            inset: 0 !important;\r\n            background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent 70%) !important;\r\n            opacity: 0 !important;\r\n            transition: opacity 0.3s ease !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-item:hover::after {\r\n            opacity: 1 !important;\r\n        }\r\n\r\n        \/* VIEW ICON ON PHOTO ITEMS *\/\r\n        #morocco-beautiful-cities-wrapper .photo-view-icon {\r\n            position: absolute !important;\r\n            inset: 0 !important;\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            justify-content: center !important;\r\n            pointer-events: none !important;\r\n            opacity: 0 !important;\r\n            transition: opacity 0.3s ease !important;\r\n            z-index: 2 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-view-icon span {\r\n            display: inline-flex !important;\r\n            align-items: center !important;\r\n            justify-content: center !important;\r\n            padding: 8px 14px !important;\r\n            border-radius: 999px !important;\r\n            background: rgba(15, 23, 42, 0.85) !important;\r\n            color: #fef2f2 !important;\r\n            font-size: 0.8rem !important;\r\n            gap: 6px !important;\r\n            transform: translateY(10px) !important;\r\n            transition: transform 0.3s ease !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-view-icon i {\r\n            font-size: 0.9rem !important;\r\n            color: #fed7aa !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-item:hover .photo-view-icon {\r\n            opacity: 1 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .photo-item:hover .photo-view-icon span {\r\n            transform: translateY(0) !important;\r\n        }\r\n\r\n        \/* Map Section *\/\r\n        #morocco-beautiful-cities-wrapper .map-section {\r\n            border-radius: var(--radius-large) !important;\r\n            background: var(--card-bg) !important;\r\n            border: 1px solid var(--border-color) !important;\r\n            padding: 20px 20px 18px !important;\r\n            margin-bottom: 18px !important;\r\n            box-shadow: var(--shadow-small) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .map-container {\r\n            position: relative !important;\r\n            border-radius: 14px !important;\r\n            overflow: hidden !important;\r\n            margin-top: 12px !important;\r\n            box-shadow: var(--shadow-small) !important;\r\n            height: 400px !important;\r\n            background: #f9fafb !important;\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            justify-content: center !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .map-container iframe {\r\n            width: 100% !important;\r\n            height: 100% !important;\r\n            border: none !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .map-placeholder {\r\n            display: flex !important;\r\n            flex-direction: column !important;\r\n            align-items: center !important;\r\n            justify-content: center !important;\r\n            gap: 12px !important;\r\n            color: var(--text-secondary) !important;\r\n            height: 100% !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .map-placeholder i {\r\n            font-size: 2.5rem !important;\r\n            color: var(--accent-color) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .map-placeholder p {\r\n            font-size: 0.95rem !important;\r\n            text-align: center !important;\r\n            max-width: 300px !important;\r\n        }\r\n\r\n        \/* Sidebar *\/\r\n        #morocco-beautiful-cities-wrapper .sidebar {\r\n            position: sticky !important;\r\n            top: 16px !important;\r\n            align-self: flex-start !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-card {\r\n            border-radius: var(--radius-large) !important;\r\n            padding: 18px !important;\r\n            margin-bottom: 14px !important;\r\n            background: var(--accent-gradient) !important;\r\n            box-shadow: var(--shadow-large) !important;\r\n            color: #ecfdf5 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-card h2 {\r\n            margin: 0 0 8px !important;\r\n            font-size: 1.05rem !important;\r\n            text-transform: uppercase !important;\r\n            letter-spacing: 0.14em !important;\r\n            font-weight: 700 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-main {\r\n            display: flex !important;\r\n            align-items: baseline !important;\r\n            gap: 10px !important;\r\n            margin-bottom: 6px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-amount {\r\n            font-size: 1.7rem !important;\r\n            font-weight: 800 !important;\r\n            letter-spacing: 0.04em !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-tag {\r\n            padding: 3px 9px !important;\r\n            border-radius: 999px !important;\r\n            background: rgba(15, 23, 42, 0.2) !important;\r\n            font-size: 0.8rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-note {\r\n            font-size: 0.85rem !important;\r\n            color: #fee2e2 !important;\r\n            margin: 0 0 6px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-details {\r\n            font-size: 0.86rem !important;\r\n            opacity: 0.95 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-details p {\r\n            margin: 2px 0 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .price-details i {\r\n            margin-right: 6px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .booking-form {\r\n            border-radius: var(--radius-large) !important;\r\n            background: var(--card-bg) !important;\r\n            border: 1px solid var(--border-color) !important;\r\n            padding: 18px 18px 16px !important;\r\n            box-shadow: var(--shadow-small) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .booking-form h3 {\r\n            margin: 0 0 4px !important;\r\n            font-size: 1.02rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .booking-form p {\r\n            margin: 0 0 12px !important;\r\n            font-size: 0.86rem !important;\r\n            color: var(--text-secondary) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .form-row {\r\n            display: grid !important;\r\n            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;\r\n            gap: 10px !important;\r\n        }\r\n\r\n        @media (max-width: 720px) {\r\n            #morocco-beautiful-cities-wrapper .sidebar {\r\n                display: none !important;\r\n            }\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .form-group {\r\n            margin-bottom: 10px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper label {\r\n            display: block !important;\r\n            font-size: 0.85rem !important;\r\n            font-weight: 600 !important;\r\n            margin-bottom: 4px !important;\r\n            color: #111827 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .form-input,\r\n        #morocco-beautiful-cities-wrapper textarea {\r\n            width: 100% !important;\r\n            border-radius: 11px !important;\r\n            border: 1px solid var(--border-color) !important;\r\n            padding: 9px 11px !important;\r\n            font: inherit !important;\r\n            font-size: 0.9rem !important;\r\n            background: #f9fafb !important;\r\n            outline: none !important;\r\n            transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .form-input:focus,\r\n        #morocco-beautiful-cities-wrapper textarea:focus {\r\n            border-color: rgba(249, 115, 22, 0.7) !important;\r\n            box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2) !important;\r\n            background: #ffffff !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .form-input.error,\r\n        #morocco-beautiful-cities-wrapper textarea.error {\r\n            border-color: #e11d48 !important;\r\n            background: #fef2f2 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .error-message {\r\n            display: none !important;\r\n            font-size: 0.78rem !important;\r\n            color: #e11d48 !important;\r\n            margin-top: 3px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .btn-primary {\r\n            width: 100% !important;\r\n            border-radius: 999px !important;\r\n            border: none !important;\r\n            padding: 11px 14px !important;\r\n            background: var(--accent-gradient) !important;\r\n            color: #ecfdf5 !important;\r\n            font-weight: 700 !important;\r\n            font-size: 0.95rem !important;\r\n            display: inline-flex !important;\r\n            align-items: center !important;\r\n            justify-content: center !important;\r\n            gap: 7px !important;\r\n            cursor: pointer !important;\r\n            box-shadow: var(--shadow-large) !important;\r\n            transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .btn-primary:hover {\r\n            transform: translateY(-1px) !important;\r\n            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .btn-primary:disabled {\r\n            opacity: 0.6 !important;\r\n            cursor: not-allowed !important;\r\n            transform: none !important;\r\n            box-shadow: none !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .btn-primary i {\r\n            font-size: 0.9rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .form-note {\r\n            font-size: 0.78rem !important;\r\n            color: var(--text-secondary) !important;\r\n            margin-top: 7px !important;\r\n            text-align: center !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper input[type=\"date\"].form-input {\r\n            -webkit-appearance: none !important;\r\n            appearance: none !important;\r\n        }\r\n\r\n        \/* Mobile Booking Bar *\/\r\n        #morocco-beautiful-cities-wrapper .mobile-booking {\r\n            display: none !important;\r\n        }\r\n\r\n        @media (max-width: 720px) {\r\n            #morocco-beautiful-cities-wrapper .mobile-booking {\r\n                display: block !important;\r\n                position: fixed !important;\r\n                left: 0 !important;\r\n                right: 0 !important;\r\n                bottom: 0 !important;\r\n                z-index: 999 !important;\r\n                background: rgba(15, 23, 42, 0.96) !important;\r\n                backdrop-filter: blur(12px) !important;\r\n                padding: 10px 14px !important;\r\n                border-top: 1px solid rgba(148, 163, 184, 0.4) !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .mobile-booking-inner {\r\n                max-width: 1180px !important;\r\n                margin: 0 auto !important;\r\n                display: flex !important;\r\n                align-items: center !important;\r\n                justify-content: space-between !important;\r\n                gap: 12px !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .mobile-booking-info {\r\n                color: #e5e7eb !important;\r\n                font-size: 0.82rem !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .mobile-booking-info strong {\r\n                display: block !important;\r\n                font-size: 1rem !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .mobile-booking-btn {\r\n                border-radius: 999px !important;\r\n                border: none !important;\r\n                padding: 9px 15px !important;\r\n                background: var(--accent-gradient) !important;\r\n                color: #ecfdf5 !important;\r\n                font-weight: 700 !important;\r\n                font-size: 0.9rem !important;\r\n                display: inline-flex !important;\r\n                align-items: center !important;\r\n                gap: 7px !important;\r\n                cursor: pointer !important;\r\n                box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5) !important;\r\n            }\r\n        }\r\n\r\n        \/* Mobile Form Section (NEW) *\/\r\n        #morocco-beautiful-cities-wrapper .mobile-form-section {\r\n            display: none !important;\r\n        }\r\n\r\n        @media (max-width: 720px) {\r\n            #morocco-beautiful-cities-wrapper .mobile-form-section {\r\n                display: block !important;\r\n            }\r\n        }\r\n\r\n        \/* Toast & Overlay *\/\r\n        #morocco-beautiful-cities-wrapper .toast {\r\n            position: fixed !important;\r\n            left: 50% !important;\r\n            transform: translateX(-50%) !important;\r\n            bottom: 18px !important;\r\n            padding: 9px 14px !important;\r\n            border-radius: 999px !important;\r\n            background: #0f172a !important;\r\n            color: #e5e7eb !important;\r\n            font-size: 0.86rem !important;\r\n            box-shadow: var(--shadow-large) !important;\r\n            display: none !important;\r\n            z-index: 1050 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .toast.show {\r\n            display: block !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .toast.success {\r\n            background: #16a34a !important; \/* success green *\/\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .toast.error {\r\n            background: #b91c1c !important;\r\n        }\r\n\r\n        \/* NEW THANK YOU OVERLAY (like second code) *\/\r\n        #morocco-beautiful-cities-wrapper .thankyou-overlay {\r\n            display: none !important;\r\n            position: fixed !important;\r\n            top: 0 !important;\r\n            left: 0 !important;\r\n            width: 100% !important;\r\n            height: 100% !important;\r\n            background: rgba(15, 23, 42, 0.86) !important;\r\n            z-index: 1100 !important;\r\n            backdrop-filter: blur(6px) !important;\r\n            overflow-y: auto !important;\r\n            padding: 20px !important;\r\n            box-sizing: border-box !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thankyou-card {\r\n            position: absolute !important;\r\n            top: 50% !important;\r\n            left: 50% !important;\r\n            transform: translate(-50%, -50%) !important;\r\n            background: #ffffff !important;\r\n            border-radius: 20px !important;\r\n            padding: 32px 26px !important;\r\n            max-width: 430px !important;\r\n            width: 90% !important;\r\n            text-align: center !important;\r\n            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.6) !important;\r\n            border: 1px solid var(--border-color) !important;\r\n            animation: thankYouSlideIn 0.45s ease-out !important;\r\n        }\r\n\r\n        @keyframes thankYouSlideIn {\r\n            0% { opacity: 0; transform: translate(-50%, -40%); }\r\n            100% { opacity: 1; transform: translate(-50%, -50%); }\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thankyou-card .icon {\r\n            width: 84px !important;\r\n            height: 84px !important;\r\n            background: var(--accent-gradient) !important;\r\n            border-radius: 50% !important;\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            justify-content: center !important;\r\n            margin: 0 auto 24px !important;\r\n            color: white !important;\r\n            font-size: 2.2rem !important;\r\n            box-shadow: 0 12px 30px rgba(248, 113, 22, 0.55) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thankyou-card h3 {\r\n            font-size: 1.9rem !important;\r\n            margin-bottom: 16px !important;\r\n            color: var(--text-primary) !important;\r\n            font-weight: 800 !important;\r\n            line-height: 1.2 !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thankyou-card p {\r\n            color: var(--text-secondary) !important;\r\n            margin-bottom: 0 !important;\r\n            line-height: 1.6 !important;\r\n            font-size: 1.02rem !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thankyou-card .btn-row {\r\n            display: flex !important;\r\n            justify-content: center !important;\r\n            gap: 14px !important;\r\n            margin-top: 26px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .thankyou-card .btn-row button {\r\n            border-radius: 999px !important;\r\n            border: none !important;\r\n            padding: 11px 22px !important;\r\n            font-size: 0.98rem !important;\r\n            font-weight: 600 !important;\r\n            cursor: pointer !important;\r\n            background: var(--accent-gradient) !important;\r\n            color: #fefce8 !important;\r\n            display: inline-flex !important;\r\n            align-items: center !important;\r\n            gap: 6px !important;\r\n            box-shadow: var(--shadow-small) !important;\r\n        }\r\n\r\n        @media (max-width: 600px) {\r\n            #morocco-beautiful-cities-wrapper .thankyou-card {\r\n                padding: 28px 20px !important;\r\n                width: 95% !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .thankyou-card .icon {\r\n                width: 78px !important;\r\n                height: 78px !important;\r\n                font-size: 2.1rem !important;\r\n                margin-bottom: 22px !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .thankyou-card h3 {\r\n                font-size: 1.7rem !important;\r\n                margin-bottom: 12px !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .thankyou-card p {\r\n                font-size: 1rem !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .thankyou-card .btn-row {\r\n                flex-direction: column !important;\r\n                gap: 10px !important;\r\n                margin-top: 22px !important;\r\n            }\r\n\r\n            #morocco-beautiful-cities-wrapper .thankyou-card .btn-row button {\r\n                width: 100% !important;\r\n                padding: 11px 16px !important;\r\n            }\r\n        }\r\n\r\n        \/* LIGHTBOX FOR IMAGE ZOOM *\/\r\n        #morocco-beautiful-cities-wrapper .image-lightbox {\r\n            position: fixed !important;\r\n            inset: 0 !important;\r\n            background: rgba(15, 23, 42, 0.9) !important;\r\n            display: none !important;\r\n            align-items: center !important;\r\n            justify-content: center !important;\r\n            z-index: 1200 !important;\r\n            padding: 20px !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .image-lightbox-inner {\r\n            max-width: 1000px !important;\r\n            width: 100% !important;\r\n            max-height: 90vh !important;\r\n            position: relative !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .image-lightbox-inner img {\r\n            width: 100% !important;\r\n            height: auto !important;\r\n            max-height: 90vh !important;\r\n            object-fit: contain !important;\r\n            border-radius: 16px !important;\r\n            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9) !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .image-lightbox-close {\r\n            position: absolute !important;\r\n            top: -14px !important;\r\n            right: 0 !important;\r\n            border: none !important;\r\n            border-radius: 999px !important;\r\n            width: 34px !important;\r\n            height: 34px !important;\r\n            display: grid !important;\r\n            place-items: center !important;\r\n            background: #ffffff !important;\r\n            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;\r\n            cursor: pointer !important;\r\n        }\r\n\r\n        #morocco-beautiful-cities-wrapper .image-lightbox-close i {\r\n            color: #0f172a !important;\r\n        }\r\n\r\n        \/* Mobile Optimization *\/\r\n        @media (max-width: 768px) {\r\n            #morocco-beautiful-cities-wrapper .container {\r\n                padding: 15px 12px 100px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .hero-section {\r\n                margin-bottom: 20px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .hero-content {\r\n                padding: 18px 16px !important;\r\n                order: 2 !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .gallery-section {\r\n                order: 1 !important;\r\n                margin-bottom: 16px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .trek-details {\r\n                flex-direction: column !important;\r\n                gap: 6px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .detail-pill {\r\n                width: 100% !important;\r\n                justify-content: center !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .content-section {\r\n                padding: 16px 14px !important;\r\n                margin-bottom: 16px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .itinerary-day {\r\n                grid-template-columns: 1fr !important;\r\n                gap: 8px !important;\r\n                padding: 12px 0 !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .day-label {\r\n                font-size: 0.9rem !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .photo-gallery {\r\n                grid-template-columns: repeat(2, 1fr) !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .photo-item img {\r\n                height: 120px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .feature-grid {\r\n                grid-template-columns: 1fr !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .highlight-box {\r\n                padding: 10px 12px !important;\r\n                font-size: 0.9rem !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .map-container {\r\n                height: 300px !important;\r\n            }\r\n        }\r\n        \r\n        @media (max-width: 480px) {\r\n            #morocco-beautiful-cities-wrapper .container {\r\n                padding: 12px 10px 100px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .hero-content {\r\n                padding: 16px 14px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .main-gallery {\r\n                height: 260px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .thumbnail-grid {\r\n                grid-template-columns: repeat(3, 1fr) !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .thumbnail {\r\n                min-height: 60px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .content-section {\r\n                padding: 14px 12px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .photo-gallery {\r\n                grid-template-columns: 1fr !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .photo-item img {\r\n                height: 140px !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .info-cards {\r\n                flex-direction: column !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .info-card {\r\n                width: 100% !important;\r\n            }\r\n            \r\n            #morocco-beautiful-cities-wrapper .map-container {\r\n                height: 250px !important;\r\n            }\r\n        }\r\n    <\/style>\r\n<\/head>\r\n<body>\r\n    <!-- WRAPPER WITH UNIQUE ID FOR CSS ISOLATION -->\r\n    <div id=\"morocco-beautiful-cities-wrapper\">\r\n        <div class=\"container\">\r\n            <!-- Hero Section -->\r\n            <header class=\"hero-section\">\r\n                <!-- Gallery first on mobile -->\r\n                <div class=\"gallery-section\">\r\n                    <!-- Main gallery image + thumbnails -->\r\n                    <div class=\"main-gallery\">\r\n                        <img decoding=\"async\"\r\n                            id=\"main-gallery-img\"\r\n                            src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/image_processing20181024-4-1fvakno.jpg\"\r\n                            alt=\"5-Day Visit to the Most Beautiful Cities of Morocco Tour - Imperial Cities & Sahara\"\r\n                        \/>\r\n                        <div class=\"gallery-overlay\"><\/div>\r\n                        <div class=\"gallery-caption\">\r\n                            <i class=\"fa-solid fa-image\"><\/i> Most Beautiful Cities of Morocco Tour\r\n                        <\/div>\r\n                    <\/div>\r\n\r\n                    <div class=\"thumbnail-grid\">\r\n                        <button\r\n                            class=\"thumbnail active\"\r\n                            data-src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/image_processing20181024-4-1fvakno.jpg\"\r\n                        >\r\n                            <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/image_processing20181024-4-1fvakno.jpg\" alt=\"Moroccan Cityscape\" \/>\r\n                        <\/button>\r\n\r\n                        <button\r\n                            class=\"thumbnail\"\r\n                            data-src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Cities_in_Morocco_-_Agadir.webp\"\r\n                        >\r\n                            <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Cities_in_Morocco_-_Agadir.webp\" alt=\"Agadir City\" \/>\r\n                        <\/button>\r\n\r\n                        <button\r\n                            class=\"thumbnail\"\r\n                            data-src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/most-visited-cities-in-Morocco-Rabat-1280x853-1.webp\"\r\n                        >\r\n                            <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/most-visited-cities-in-Morocco-Rabat-1280x853-1.webp\" alt=\"Rabat City\" \/>\r\n                        <\/button>\r\n                    <\/div>\r\n\r\n                    <div class=\"info-cards\">\r\n                        <div class=\"info-card\">\r\n                            <div class=\"info-icon\"><i class=\"fa-solid fa-sun\"><\/i><\/div>\r\n                            <div class=\"info-text\">\r\n                                <span>Best Season<\/span>\r\n                                <strong>All Year Round<\/strong>\r\n                            <\/div>\r\n                        <\/div>\r\n                        <div class=\"info-card\">\r\n                            <div class=\"info-icon\"><i class=\"fa-solid fa-route\"><\/i><\/div>\r\n                            <div class=\"info-text\">\r\n                                <span>Tour Type<\/span>\r\n                                <strong>Cultural & Adventure<\/strong>\r\n                            <\/div>\r\n                        <\/div>\r\n                    <\/div>\r\n                <\/div>\r\n\r\n                <!-- Text content after gallery on mobile -->\r\n                <div class=\"hero-content\">\r\n                    <div class=\"region-badge\">\r\n                        <i class=\"fa-solid fa-city\"><\/i>\r\n                        <span style=\"font-weight: 600;\">Imperial Cities<\/span> \u00b7 <span style=\"font-weight: 600;\">Sahara Desert<\/span> \u00b7 <span style=\"font-weight: 600;\">Blue City<\/span>\r\n                    <\/div>\r\n                    <h1>5-Day Visit to the <span style=\"color: #f97316;\">Most Beautiful Cities of Morocco<\/span> Tour - Imperial Cities & Sahara Adventure<\/h1>\r\n                    <p class=\"hero-description\">\r\n                        Experience our unforgettable <strong>5-day visit to the most beautiful cities of Morocco<\/strong> featuring the imperial cities, Sahara Desert, and the famous Blue City. This <strong>5-day Morocco itinerary<\/strong> combines cultural immersion in historic cities with desert adventure and mountain exploration. Discover why this journey showcases the <strong>most beautiful city of Morocco<\/strong> and its diverse landscapes.\r\n                    <\/p>\r\n                    <div class=\"trek-details\">\r\n                        <div class=\"detail-pill\"><i class=\"fa-solid fa-calendar-alt\"><\/i> 5 days \/ 4 nights<\/div>\r\n                        <div class=\"detail-pill\"><i class=\"fa-solid fa-person-hiking\"><\/i> Easy to Moderate<\/div>\r\n                        <div class=\"detail-pill\"><i class=\"fa-solid fa-people-group\"><\/i> From 2 people<\/div>\r\n                        <div class=\"detail-pill\"><i class=\"fa-solid fa-location-dot\"><\/i> <span style=\"font-weight: 600;\">Fes<\/span>, <span style=\"font-weight: 600;\">Chefchaouen<\/span>, <span style=\"font-weight: 600;\">Sahara<\/span><\/div>\r\n                    <\/div>\r\n                <\/div>\r\n            <\/header>\r\n\r\n            <!-- Main Content -->\r\n            <main class=\"main-layout\">\r\n                <!-- Left Column -->\r\n                <article>\r\n                    <!-- Description -->\r\n                    <section class=\"content-section\" id=\"description\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-circle-info\"><\/i>\r\n                            <div>\r\n                                <h2>Tour Overview<\/h2>\r\n                                <small><span style=\"font-weight: 600;\">Most Beautiful Cities of Morocco<\/span> \u00b7 <span style=\"font-weight: 600;\">Imperial Cities Tour<\/span> \u00b7 Sahara Desert<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n                        <div class=\"highlight-box\">\r\n                            <strong>An unforgettable 5-day journey through Morocco's most beautiful cities including imperial cities, Sahara Desert, and the famous Blue City<\/strong><br \/>\r\n                            This <strong>5-day visit to the most beautiful cities of Morocco<\/strong> takes you from Marrakech through the High Atlas Mountains to the Sahara Desert, then to the imperial city of Fes and the magical Blue City of Chefchaouen. Experience the perfect blend of cultural immersion, desert adventure, and mountain exploration in one comprehensive tour.\r\n                        <\/div>\r\n                        <p>\r\n                            Our <strong>5-day visit to the most beautiful cities of Morocco tour<\/strong> offers the ultimate Moroccan experience, combining historic imperial cities with natural wonders and cultural treasures. This journey takes you through diverse landscapes from the bustling energy of Marrakech to the serene Sahara Desert, the ancient medina of Fes, and the picturesque Blue City of Chefchaouen.\r\n                        <\/p>\r\n                        <p>\r\n                            The <strong>Morocco beautiful cities tour<\/strong> begins with a scenic drive through the High Atlas Mountains to the Sahara Desert, where you'll experience camel trekking and overnight in a luxury desert camp. Continue to Fes, one of Morocco's imperial cities, before heading to Chefchaouen, the famous Blue City nestled in the Rif Mountains. This tour showcases why Morocco is home to some of the <strong>most beautiful cities<\/strong> in North Africa.\r\n                        <\/p>\r\n                        <p>\r\n                            This <strong>5 days in Morocco's beautiful cities<\/strong> package is perfect for travelers seeking comprehensive cultural discovery and diverse landscapes. With comfortable transportation, well-planned itinerary, and opportunities to experience authentic Moroccan culture, historic sites, and stunning natural landscapes, this tour offers exceptional value and unforgettable experiences showcasing the best of Morocco.\r\n                        <\/p>\r\n                    <\/section>\r\n\r\n                    <!-- Highlights -->\r\n                    <section class=\"content-section\" id=\"highlights\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-star\"><\/i>\r\n                            <div>\r\n                                <h2>Tour Highlights<\/h2>\r\n                                <small>What makes this <span style=\"font-weight: 600;\">Morocco beautiful cities<\/span> tour special<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <ul class=\"bullet-list included\">\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> Explore the UNESCO-listed <strong>Ait Benhaddou Kasbah<\/strong> - famous film location<\/li>\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> Experience camel trekking and overnight in <strong>luxury Sahara Desert camp<\/strong><\/li>\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> Discover the magnificent <strong>Todra Gorges<\/strong> - climber's paradise<\/li>\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> Visit the imperial city of <strong>Fes<\/strong> with its ancient Medina<\/li>\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> Explore the famous <strong>Blue City of Chefchaouen<\/strong> in the Rif Mountains<\/li>\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> Drive through scenic <strong>High Atlas Mountains<\/strong> and Ziz Valley<\/li>\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> See the <strong>Cedar Forest<\/strong> and wild Barbary macaques<\/li>\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> Visit <strong>Ouarzazate<\/strong> - the \"Gateway to the Sahara\"<\/li>\r\n                            <li><i class=\"fa-solid fa-check\"><\/i> Experience traditional <strong>Berber culture<\/strong> and hospitality<\/li>\r\n                        <\/ul>\r\n                    <\/section>\r\n\r\n                    <!-- Itinerary -->\r\n                    <section class=\"content-section\" id=\"itineraire\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-route\"><\/i>\r\n                            <div>\r\n                                <h2>Detailed Itinerary \u2013 5 Days<\/h2>\r\n                                <small>Daily program for visiting the most beautiful cities of Morocco<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"itinerary-day\">\r\n                            <div class=\"day-label\">Day 1<\/div>\r\n                            <div class=\"day-content\">\r\n                                <h3>Marrakech \u2013 Ait Benhaddou \u2013 Ouarzazate \u2013 Dades Valley<\/h3>\r\n                                <p>\r\n                                    Your journey begins with a morning departure from your Riad in Marrakech, heading towards the High Atlas Mountains. Enjoy breathtaking views and multiple photo stops along the winding Tizi n'Tichka Pass (2,200m). Arrive at the UNESCO-listed Ait Benhaddou Kasbah, a stunning example of traditional Moroccan earthen architecture, known for its appearances in numerous Hollywood films. After exploring the fortified village, continue to Ouarzazate, often called the \"Gateway to the Sahara.\" Visit the historic Taourirt Kasbah, and if time permits, explore the nearby Roses Valley, famous for its fragrant rose fields and beauty products. The journey then takes you through the dramatic Dades Valley, where you'll check into a Riad in Dades Gorges for dinner and an overnight stay.\r\n                                <\/p>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"itinerary-day\">\r\n                            <div class=\"day-label\">Day 2<\/div>\r\n                            <div class=\"day-content\">\r\n                                <h3>Dades Gorges \u2013 Todra Gorges \u2013 Merzouga (Sahara Desert)<\/h3>\r\n                                <p>\r\n                                    After breakfast, set out towards Merzouga, passing through traditional Berber villages along the way. Stop at the magnificent Todra Gorges, a paradise for climbers and nature lovers, where the canyon walls reach heights of 300 meters. Continue to Erfoud, a town known for its date markets and fossil workshops, marking the transition into the Sahara Desert. Arriving in Merzouga, your camels will be waiting to take you on an unforgettable ride across the golden Erg Chebbi dunes. Enjoy a mesmerizing Sahara sunset before arriving at your desert camp. Take some time to explore the surroundings before a traditional Moroccan dinner under the stars. Later, experience live music and drumming around the campfire, immersing yourself in the magic of the desert. Overnight in a luxury tent with ensuite facilities.\r\n                                <\/p>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"itinerary-day\">\r\n                            <div class=\"day-label\">Day 3<\/div>\r\n                            <div class=\"day-content\">\r\n                                <h3>Merzouga \u2013 Ziz Valley \u2013 Cedar Forest \u2013 Fes<\/h3>\r\n                                <p>\r\n                                    Wake up early to witness a breathtaking sunrise over the dunes, followed by breakfast at the camp. Ride your camel back to Merzouga, where your driver awaits. Depart for Fes, passing through the scenic Ziz Valley, famous for its lush palm groves and oases. Stop for panoramic views before continuing to the Cedar Forest of the Middle Atlas, home to wild Barbary macaques. Pass through Ifrane, often called the \"Switzerland of Morocco\" for its alpine-style architecture and status as a winter ski destination. Arrive in Fes in the evening, where you'll check into a Riad in the Medina for an overnight stay.\r\n                                <\/p>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"itinerary-day\">\r\n                            <div class=\"day-label\">Day 4<\/div>\r\n                            <div class=\"day-content\">\r\n                                <h3>Fes \u2013 Chefchaouen (The Blue City)<\/h3>\r\n                                <p>\r\n                                    After breakfast, depart for Chefchaouen, a picturesque town nestled in the Rif Mountains. Enjoy a scenic drive through charming villages and rolling hills before arriving in the famous \"Blue City\". Unlike Morocco's larger imperial cities, Chefchaouen's Medina is small and easy to navigate without a guide. Stroll through its narrow blue-washed streets, soak in the peaceful atmosphere, and admire the Spanish and Moorish-inspired architecture. Spend the day at your own pace\u2014relax in Outa el Hammam Square, visit the Kasbah Museum, or simply enjoy the town's tranquil vibe. Overnight at a Riad in the heart of Chefchaouen.\r\n                                <\/p>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"itinerary-day\">\r\n                            <div class=\"day-label\">Day 5<\/div>\r\n                            <div class=\"day-content\">\r\n                                <h3>Chefchaouen \u2013 Fes or Tangier (Tour Ends)<\/h3>\r\n                                <p>\r\n                                    After breakfast, bid farewell to Chefchaouen and begin your journey back to Fes or continue onward to Tangier. If returning to Fes, enjoy a guided city tour visiting key sites such as: The Royal Palace and its golden gates, Borj Sud for a panoramic view of the Medina, Bab Boujloud, the famous blue gate, and the winding streets of the Fes el-Bali Medina, a UNESCO World Heritage Site. If heading to Tangier, enjoy scenic views of the Rif Mountains along the way before concluding your unforgettable 5-day journey through Morocco. Tour Ends \u2013 Taking with you unforgettable memories of Morocco's desert, mountains, and beautiful cities!\r\n                                <\/p>\r\n                            <\/div>\r\n                        <\/div>\r\n                    <\/section>\r\n\r\n                    <!-- Inclusions -->\r\n                    <section class=\"content-section\" id=\"inclus\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-clipboard-list\"><\/i>\r\n                            <div>\r\n                                <h2>What's Included \/ Not Included<\/h2>\r\n                                <small>To prepare your budget comfortably<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"two-column\">\r\n                            <div>\r\n                                <div class=\"list-title\">\r\n                                    <i class=\"fa-solid fa-circle-check\"><\/i>\r\n                                    Included in Price\r\n                                <\/div>\r\n                                <ul class=\"bullet-list included\">\r\n                                    <li><i class=\"fa-solid fa-check\"><\/i> All transportation in comfortable air-conditioned vehicle<\/li>\r\n                                    <li><i class=\"fa-solid fa-check\"><\/i> 4 nights accommodation in Riads\/hotels<\/li>\r\n                                    <li><i class=\"fa-solid fa-check\"><\/i> Professional driver\/guide throughout the tour<\/li>\r\n                                    <li><i class=\"fa-solid fa-check\"><\/i> Breakfasts during your stay<\/li>\r\n                                    <li><i class=\"fa-solid fa-check\"><\/i> Hotel pickup and drop-off in Marrakech<\/li>\r\n                                    <li><i class=\"fa-solid fa-check\"><\/i> Camel trek in Sahara Desert<\/li>\r\n                                    <li><i class=\"fa-solid fa-check\"><\/i> Overnight in luxury desert camp with dinner<\/li>\r\n                                    <li><i class=\"fa-solid fa-check\"><\/i> All applicable taxes and service charges<\/li>\r\n                                <\/ul>\r\n                            <\/div>\r\n\r\n                            <div>\r\n                                <div class=\"list-title\">\r\n                                    <i class=\"fa-solid fa-circle-xmark\" style=\"color:#e11d48\"><\/i>\r\n                                    Not Included\r\n                                <\/div>\r\n                                <ul class=\"bullet-list excluded\">\r\n                                    <li><i class=\"fa-solid fa-xmark\"><\/i> Lunches and dinners during the tour<\/li>\r\n                                    <li><i class=\"fa-solid fa-xmark\"><\/i> Entrance fees to monuments and attractions<\/li>\r\n                                    <li><i class=\"fa-solid fa-xmark\"><\/i> Travel insurance<\/li>\r\n                                    <li><i class=\"fa-solid fa-xmark\"><\/i> Tips for guides and drivers<\/li>\r\n                                    <li><i class=\"fa-solid fa-xmark\"><\/i> Personal expenses and souvenirs<\/li>\r\n                                <\/ul>\r\n                            <\/div>\r\n                        <\/div>\r\n                    <\/section>\r\n\r\n                    <!-- Details -->\r\n                    <section class=\"content-section\" id=\"details\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-list-ul\"><\/i>\r\n                            <div>\r\n                                <h2>Practical Details<\/h2>\r\n                                <small>Duration, level, seasons & participants<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"feature-grid\">\r\n                            <div class=\"feature-card\">\r\n                                <i class=\"fa-solid fa-calendar-days\"><\/i>\r\n                                <div>\r\n                                    <strong>Duration<\/strong>\r\n                                    5 days \/ 4 nights\r\n                                <\/div>\r\n                            <\/div>\r\n                            <div class=\"feature-card\">\r\n                                <i class=\"fa-solid fa-person-hiking\"><\/i>\r\n                                <div>\r\n                                    <strong>Level<\/strong>\r\n                                    Easy to Moderate\r\n                                <\/div>\r\n                            <\/div>\r\n                            <div class=\"feature-card\">\r\n                                <i class=\"fa-solid fa-sun-plant-wilt\"><\/i>\r\n                                <div>\r\n                                    <strong>Best Season<\/strong>\r\n                                    All Year Round\r\n                                <\/div>\r\n                            <\/div>\r\n                            <div class=\"feature-card\">\r\n                                <i class=\"fa-solid fa-users\"><\/i>\r\n                                <div>\r\n                                    <strong>Participants<\/strong>\r\n                                    From 2 people\r\n                                <\/div>\r\n                            <\/div>\r\n                            <div class=\"feature-card\">\r\n                                <i class=\"fa-solid fa-location-dot\"><\/i>\r\n                                <div>\r\n                                    <strong>Region<\/strong>\r\n                                    <span style=\"font-weight: 600;\">Multiple Regions<\/span>\r\n                                <\/div>\r\n                            <\/div>\r\n                            <div class=\"feature-card\">\r\n                                <i class=\"fa-solid fa-dollar-sign\"><\/i>\r\n                                <div>\r\n                                    <strong>Price<\/strong>\r\n                                    On request\r\n                                <\/div>\r\n                            <\/div>\r\n                        <\/div>\r\n                    <\/section>\r\n\r\n                    <!-- Map Section (moved under Practical Details) -->\r\n                    <section class=\"map-section\" id=\"map\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-map-location-dot\"><\/i>\r\n                            <div>\r\n                                <h2>Tour Route Map<\/h2>\r\n                                <small>Explore the <span style=\"font-weight: 600;\">5-day Morocco beautiful cities<\/span> tour route<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n                        <div class=\"map-container\">\r\n                            <iframe src=\"https:\/\/www.google.com\/maps\/d\/embed?mid=1a0tc_R4OXASgTKt6MwhlN17gPEUPuuk&ehbc=2E312F&noprof=1\" width=\"640\" height=\"480\"><\/iframe>\r\n                        <\/div>\r\n                    <\/section>\r\n\r\n                    <!-- FAQ -->\r\n                    <section class=\"content-section\" id=\"faq\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-circle-question\"><\/i>\r\n                            <div>\r\n                                <h2>Frequently Asked Questions<\/h2>\r\n                                <small>Some answers before you go<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"faq\">\r\n                            <div class=\"faq-item\">\r\n                                <div class=\"faq-question\">\r\n                                    <span>What is the difficulty level of this <span style=\"font-weight: 600;\">Morocco beautiful cities tour<\/span>?<\/span>\r\n                                    <i class=\"fa-solid fa-chevron-down\"><\/i>\r\n                                <\/div>\r\n                                <div class=\"faq-answer\">\r\n                                    <p>\r\n                                        This <strong>5-day tour<\/strong> is rated as <strong>easy to moderate<\/strong>. The tour involves comfortable driving between destinations with regular stops. The camel trek in the Sahara is gentle and suitable for all fitness levels. Walking in the cities involves exploring medinas and historic sites at a comfortable pace. It's suitable for most travelers, but comfortable walking shoes are recommended for exploring the cities and gorges.<a href=\"https:\/\/marrakechtrekking.com\/a-complete-guide-to-traveling-and-exploring-morocco\/\" target=\"_blank\" rel=\"dofollow\">Complete Guide to Traveling and Exploring Morocco<\/a>.\r\n                                    <\/p>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"faq-item\">\r\n                                <div class=\"faq-question\">\r\n                                    <span>What should I pack for the <span style=\"font-weight: 600;\">Morocco beautiful cities<\/span> tour?<\/span>\r\n                                    <i class=\"fa-solid fa-chevron-down\"><\/i>\r\n                                <\/div>\r\n                                <div class=\"faq-answer\">\r\n                                    <p>\r\n                                        Essential items include: comfortable walking shoes, light clothing for daytime, warm layers for cool desert evenings, swimsuit (for hotel pools), sun protection, camera, daypack, and personal toiletries. For the Sahara Desert, bring a scarf for sand protection and warm clothing for chilly nights. The desert can be cold in winter months, so pack accordingly.<a href=\"https:\/\/fr.wikipedia.org\/wiki\/Morocco\" target=\"_blank\" rel=\"dofollow noopener\"> Morocco<\/a>.\r\n                                    <\/p>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"faq-item\">\r\n                                <div class=\"faq-question\">\r\n                                    <span>What type of accommodation is provided during the tour?<\/span>\r\n                                    <i class=\"fa-solid fa-chevron-down\"><\/i>\r\n                                <\/div>\r\n                                <div class=\"faq-answer\">\r\n                                    <p>\r\n                                        Accommodation includes 4 nights in carefully selected Riads and hotels, plus one night in a luxury desert camp in the Sahara. The Riads feature traditional Moroccan architecture with comfortable rooms and private bathrooms. The desert camp offers luxury tents with ensuite facilities. All accommodations include breakfast, and the desert camp includes dinner.\r\n                                    <\/p>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"faq-item\">\r\n                                <div class=\"faq-question\">\r\n                                    <span>Is this tour suitable for children and elderly travelers?<\/span>\r\n                                    <i class=\"fa-solid fa-chevron-down\"><\/i>\r\n                                <\/div>\r\n                                <div class=\"faq-answer\">\r\n                                    <p>\r\n                                        Yes, this <strong>Morocco beautiful cities tour<\/strong> is generally suitable for children and elderly travelers with reasonable mobility. The driving distances are broken up with regular stops, and activities can be adapted to different fitness levels. The camel trek is gentle, and walking in the cities can be managed at your own pace. The tour offers a good balance of activity and relaxation.\r\n                                    <\/p>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"faq-item\">\r\n                                <div class=\"faq-question\">\r\n                                    <span>What makes this tour different from other Morocco tours?<\/span>\r\n                                    <i class=\"fa-solid fa-chevron-down\"><\/i>\r\n                                <\/div>\r\n                                <div class=\"faq-answer\">\r\n                                    <p>\r\n                                        This <strong>5-day tour<\/strong> offers a comprehensive overview of Morocco's diverse landscapes and cultures in a relatively short time. It combines the imperial cities, Sahara Desert, and the famous Blue City of Chefchaouen, providing a well-rounded experience. The itinerary is carefully planned to minimize long driving days while maximizing experiences, making it ideal for travelers with limited time who want to see the highlights of Morocco.\r\n                                    <\/p>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"faq-item\">\r\n                                <div class=\"faq-question\">\r\n                                    <span>What is the best time of year for this tour?<\/span>\r\n                                    <i class=\"fa-solid fa-chevron-down\"><\/i>\r\n                                <\/div>\r\n                                <div class=\"faq-answer\">\r\n                                    <p>\r\n                                        The ideal times for this <strong>Morocco beautiful cities tour<\/strong> are spring (March-May) and autumn (September-November) when temperatures are pleasant throughout the country. Summer can be hot, especially in the desert, but is still enjoyable with proper preparation. Winter offers cooler temperatures, with potential for rain in the north but beautiful clear skies in the desert. The tour operates year-round, with each season offering unique advantages.\r\n                                    <\/p>\r\n                                <\/div>\r\n                            <\/div>\r\n                        <\/div>\r\n                    <\/section>\r\n\r\n                    <!-- Mobile Form Section (NEW) - Shows only on mobile after FAQ -->\r\n                    <section class=\"mobile-form-section content-section\" id=\"mobile-booking-form-section\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-calendar-plus\"><\/i>\r\n                            <div>\r\n                                <h2>Book This Tour<\/h2>\r\n                                <small>Tell us your preferences<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n                        \r\n                        <form id=\"mobile-booking-form\" novalidate>\r\n                            <div class=\"form-row\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"m-start\">Start Date<\/label>\r\n                                    <input type=\"date\" id=\"m-start\" class=\"form-input\" \/>\r\n                                    <div class=\"error-message\" id=\"m-start-error\">Please choose a date.<\/div>\r\n                                <\/div>\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"m-end\">End Date<\/label>\r\n                                    <input type=\"date\" id=\"m-end\" class=\"form-input\" \/>\r\n                                    <div class=\"error-message\" id=\"m-end-error\">Please choose a date.<\/div>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"form-group\">\r\n                                <label for=\"m-people\">Number of Participants<\/label>\r\n                                <input type=\"number\" id=\"m-people\" class=\"form-input\" min=\"1\" max=\"16\" value=\"2\" \/>\r\n                                <div class=\"error-message\" id=\"m-people-error\">Please enter a number between 1 and 16.<\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"form-row\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"m-first\">First Name<\/label>\r\n                                    <input type=\"text\" id=\"m-first\" class=\"form-input\" placeholder=\"ex. John\" \/>\r\n                                    <div class=\"error-message\" id=\"m-first-error\">Please enter your first name.<\/div>\r\n                                <\/div>\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"m-last\">Last Name<\/label>\r\n                                    <input type=\"text\" id=\"m-last\" class=\"form-input\" placeholder=\"ex. Smith\" \/>\r\n                                    <div class=\"error-message\" id=\"m-last-error\">Please enter your last name.<\/div>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"form-row\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"m-email\">Email<\/label>\r\n                                    <input type=\"email\" id=\"m-email\" class=\"form-input\" placeholder=\"ex. john@example.com\" \/>\r\n                                    <div class=\"error-message\" id=\"m-email-error\">Please enter a valid email.<\/div>\r\n                                <\/div>\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"m-phone\">Phone<\/label>\r\n                                    <input type=\"tel\" id=\"m-phone\" class=\"form-input\" placeholder=\"ex. +212612345678\" \/>\r\n                                    <div class=\"error-message\" id=\"m-phone-error\">Invalid number (min. 10 digits).<\/div>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"form-group\">\r\n                                <label for=\"m-notes\">Special Requests<\/label>\r\n                                <textarea id=\"m-notes\" rows=\"3\" class=\"form-input\" placeholder=\"Dietary requirements, accommodation preferences, etc.\"><\/textarea>\r\n                            <\/div>\r\n\r\n                            <button type=\"submit\" class=\"btn-primary\" id=\"mobile-submit\">\r\n                                <i class=\"fa-solid fa-paper-plane\"><\/i>\r\n                                Book Now\r\n                            <\/button>\r\n                            <div class=\"form-note\">\r\n                                Personalized response within 24-48h (working days).\r\n                            <\/div>\r\n                        <\/form>\r\n                    <\/section>\r\n\r\n                    <!-- Photo Gallery -->\r\n                    <section class=\"content-section\" id=\"galerie\">\r\n                        <div class=\"section-header\">\r\n                            <i class=\"fa-solid fa-images\"><\/i>\r\n                            <div>\r\n                                <h2>Photo Gallery \u2013 <span style=\"font-weight: 600;\">Morocco Beautiful Cities<\/span> Tour<\/h2>\r\n                                <small>Some images from this <span style=\"font-weight: 600;\">5-day Morocco<\/span> adventure<\/small>\r\n                            <\/div>\r\n                        <\/div>\r\n\r\n                        <div class=\"photo-gallery\">\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Ifrane-Morocco-\ud83c\uddf2\ud83c\udde6-1.jpeg\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Ifrane-Morocco-\ud83c\uddf2\ud83c\udde6-1.jpeg\" alt=\"Ifrane Morocco\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Djanet-\ud83c\udde9\ud83c\uddff.jpeg\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Djanet-\ud83c\udde9\ud83c\uddff.jpeg\" alt=\"Djanet Algeria\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Ifrane-Morocco-\ud83c\uddf2\ud83c\udde6.jpeg\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Ifrane-Morocco-\ud83c\uddf2\ud83c\udde6.jpeg\" alt=\"Ifrane City\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Camping-in-Morocco_-Experience-a-Sahara-Desert-Luxury-Camp-This-Darling-World.jpeg\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Camping-in-Morocco_-Experience-a-Sahara-Desert-Luxury-Camp-This-Darling-World.jpeg\" alt=\"Sahara Desert Camp\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Morocco_-Essaouira-Rabat-Fes-Chefchaouen-Tangier.jpeg\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Morocco_-Essaouira-Rabat-Fes-Chefchaouen-Tangier.jpeg\" alt=\"Morocco Cities\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/most-visited-cities-in-Morocco-Rabat-1280x853-1.webp\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/most-visited-cities-in-Morocco-Rabat-1280x853-1.webp\" alt=\"Rabat City\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Cities_in_Morocco_-_Agadir.webp\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/Cities_in_Morocco_-_Agadir.webp\" alt=\"Agadir City\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/image_processing20190703-4-47qk1s.jpg\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/image_processing20190703-4-47qk1s.jpg\" alt=\"Moroccan Architecture\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            <button class=\"photo-item\" data-full=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/image_processing20181024-4-1fvakno.jpg\">\r\n                                <img decoding=\"async\" src=\"https:\/\/marrakechtrekking.com\/wp-content\/uploads\/2025\/11\/image_processing20181024-4-1fvakno.jpg\" alt=\"Moroccan City\" \/>\r\n                                <div class=\"photo-view-icon\">\r\n                                    <span><i class=\"fa-solid fa-eye\"><\/i> View<\/span>\r\n                                <\/div>\r\n                            <\/button>\r\n                            \r\n                        <\/div>\r\n                    <\/section>\r\n                <\/article>\r\n\r\n                <!-- Right Column \u2013 Sidebar -->\r\n                <aside class=\"sidebar\">\r\n                    <section class=\"price-card\">\r\n                        <h2>Tour Price<\/h2>\r\n                        <div class=\"price-main\">\r\n                            <div class=\"price-amount\">On Request<\/div>\r\n                            <span class=\"price-tag\"><i class=\"fa-solid fa-circle-info\"><\/i> Custom Quote<\/span>\r\n                        <\/div>\r\n                        <p class=\"price-note\">\r\n                            Price depends on season, number of participants, and accommodation type.\r\n                        <\/p>\r\n                        <div class=\"price-details\">\r\n                            <p><i class=\"fa-solid fa-calendar-alt\"><\/i> 5 days cultural & adventure tour<\/p>\r\n                            <p><i class=\"fa-solid fa-location-dot\"><\/i> <span style=\"font-weight: 600;\">Multiple Cities<\/span>, Morocco<\/p>\r\n                            <p><i class=\"fa-solid fa-users\"><\/i> From 2 people<\/p>\r\n                        <\/div>\r\n                    <\/section>\r\n\r\n                    <section class=\"booking-form\">\r\n                        <h3>Book This Tour<\/h3>\r\n                        <p>Tell us your preferences, we'll adapt the program and pricing.<\/p>\r\n\r\n                        <form id=\"desktop-form\" novalidate>\r\n                            <div class=\"form-row\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"d-start\">Preferred Start Date<\/label>\r\n                                    <input type=\"date\" id=\"d-start\" class=\"form-input\" \/>\r\n                                    <div class=\"error-message\" id=\"d-start-error\">Please choose a start date.<\/div>\r\n                                <\/div>\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"d-end\">End Date<\/label>\r\n                                    <input type=\"date\" id=\"d-end\" class=\"form-input\" \/>\r\n                                    <div class=\"error-message\" id=\"d-end-error\">Please choose an end date.<\/div>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"form-group\">\r\n                                <label for=\"d-people\">Number of Participants<\/label>\r\n                                <input type=\"number\" id=\"d-people\" class=\"form-input\" min=\"1\" max=\"16\" value=\"2\" \/>\r\n                                <div class=\"error-message\" id=\"d-people-error\">Please enter a number between 1 and 16.<\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"form-row\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"d-first\">First Name<\/label>\r\n                                    <input type=\"text\" id=\"d-first\" class=\"form-input\" placeholder=\"ex. John\" \/>\r\n                                    <div class=\"error-message\" id=\"d-first-error\">Please enter your first name.<\/div>\r\n                                <\/div>\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"d-last\">Last Name<\/label>\r\n                                    <input type=\"text\" id=\"d-last\" class=\"form-input\" placeholder=\"ex. Smith\" \/>\r\n                                    <div class=\"error-message\" id=\"d-last-error\">Please enter your last name.<\/div>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"form-row\">\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"d-email\">Email<\/label>\r\n                                    <input type=\"email\" id=\"d-email\" class=\"form-input\" placeholder=\"ex. john@example.com\" \/>\r\n                                    <div class=\"error-message\" id=\"d-email-error\">Please enter a valid email.<\/div>\r\n                                <\/div>\r\n                                <div class=\"form-group\">\r\n                                    <label for=\"d-phone\">Phone<\/label>\r\n                                    <input type=\"tel\" id=\"d-phone\" class=\"form-input\" placeholder=\"ex. +212612345678\" \/>\r\n                                    <div class=\"error-message\" id=\"d-phone-error\">Invalid number (min. 10 digits).<\/div>\r\n                                <\/div>\r\n                            <\/div>\r\n\r\n                            <div class=\"form-group\">\r\n                                <label for=\"d-notes\">Special Requests<\/label>\r\n                                <textarea id=\"d-notes\" rows=\"3\" class=\"form-input\" placeholder=\"Dietary requirements, accommodation preferences, etc.\"><\/textarea>\r\n                            <\/div>\r\n\r\n                            <button type=\"submit\" class=\"btn-primary\" id=\"d-submit\">\r\n                                <i class=\"fa-solid fa-paper-plane\"><\/i>\r\n                                Book Now\r\n                            <\/button>\r\n                            <div class=\"form-note\">\r\n                                Personalized response within 24-48h (working days).\r\n                            <\/div>\r\n                        <\/form>\r\n                    <\/section>\r\n                <\/aside>\r\n            <\/main>\r\n        <\/div>\r\n\r\n        <!-- Mobile Booking Bar -->\r\n        <div class=\"mobile-booking\">\r\n            <div class=\"mobile-booking-inner\">\r\n                <div class=\"mobile-booking-info\">\r\n                    <span><span style=\"font-weight: 600;\">Morocco Beautiful Cities<\/span> Tour \u2013 5 days<\/span>\r\n                    <strong>Price on request<\/strong>\r\n                <\/div>\r\n                <button class=\"mobile-booking-btn\" id=\"scroll-to-form-btn\">\r\n                    <i class=\"fa-solid fa-calendar-plus\"><\/i>\r\n                    Book Now\r\n                <\/button>\r\n            <\/div>\r\n        <\/div>\r\n\r\n        <!-- NEW Thank You Overlay (with same message style as 4-day code) -->\r\n        <div class=\"thankyou-overlay\" id=\"thankyou\">\r\n            <div class=\"thankyou-card\">\r\n                <div class=\"icon\"><i class=\"fa-solid fa-check\"><\/i><\/div>\r\n                <h3>Thank You For Your Booking Request!<\/h3>\r\n                <p>\r\n                    We have received your message for the 5-Day Visit to the Most Beautiful Cities of Morocco Tour.\r\n                    A consultant will contact you shortly with a detailed quote.\r\n                <\/p>\r\n                <div class=\"btn-row\">\r\n                    <button id=\"ty-close\">\r\n                        <i class=\"fa-solid fa-xmark\"><\/i>\r\n                        Close\r\n                    <\/button>\r\n                <\/div>\r\n            <\/div>\r\n        <\/div>\r\n\r\n        <!-- IMAGE LIGHTBOX FOR ZOOM -->\r\n        <div class=\"image-lightbox\" id=\"image-lightbox\">\r\n            <div class=\"image-lightbox-inner\">\r\n                <button class=\"image-lightbox-close\" id=\"image-lightbox-close\" aria-label=\"Close image\">\r\n                    <i class=\"fa-solid fa-xmark\"><\/i>\r\n                <\/button>\r\n                <img decoding=\"async\" src=\"\" alt=\"Enlarged image\" id=\"image-lightbox-img\">\r\n            <\/div>\r\n        <\/div>\r\n\r\n        <!-- Toast -->\r\n        <div class=\"toast\" id=\"toast\"><\/div>\r\n    <\/div>\r\n\r\n    <!-- EmailJS SDK v4 -->\r\n    <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/@emailjs\/browser@4\/dist\/email.min.js\"><\/script>\r\n    <script>\r\n        \/\/ === EMAILJS CONFIG ===\r\n        const EMAILJS_PUBLIC_KEY   = '2VKm08QxMx86NZIq-';   \/\/ with the dash at the end\r\n        const EMAILJS_SERVICE_ID   = 'service_x45ovee';\r\n        const EMAILJS_TEMPLATE_ID  = 'template_3bggdfm';\r\n\r\n        \/\/ Initialize EmailJS (v4 syntax)\r\n        (function () {\r\n            emailjs.init({\r\n                publicKey: EMAILJS_PUBLIC_KEY,\r\n            });\r\n        })();\r\n\r\n        \/\/ Gallery functionality\r\n        const mainGalleryImg = document.getElementById('main-gallery-img');\r\n        const thumbnails = document.querySelectorAll('.thumbnail');\r\n        \r\n        thumbnails.forEach(thumb => {\r\n            thumb.addEventListener('click', () => {\r\n                const src = thumb.getAttribute('data-src');\r\n                if (src) mainGalleryImg.src = src;\r\n                thumbnails.forEach(t => t.classList.remove('active'));\r\n                thumb.classList.add('active');\r\n            });\r\n        });\r\n\r\n        \/\/ FAQ accordion\r\n        document.querySelectorAll('.faq-item').forEach(item => {\r\n            const question = item.querySelector('.faq-question');\r\n            question.addEventListener('click', () => {\r\n                const isOpen = item.classList.contains('open');\r\n                document.querySelectorAll('.faq-item').forEach(i => i.classList.remove('open'));\r\n                if (!isOpen) item.classList.add('open');\r\n            });\r\n        });\r\n\r\n        \/\/ Toast functionality\r\n        function showToast(message, type = 'success') {\r\n            const toast = document.getElementById('toast');\r\n            toast.textContent = message;\r\n            toast.className = 'toast show ' + type;\r\n            setTimeout(() => {\r\n                toast.classList.remove('show');\r\n            }, 4000);\r\n        }\r\n\r\n        \/\/ Lightbox elements\r\n        const photoItems = document.querySelectorAll('.photo-item');\r\n        const imageLightbox = document.getElementById('image-lightbox');\r\n        const imageLightboxImg = document.getElementById('image-lightbox-img');\r\n        const imageLightboxClose = document.getElementById('image-lightbox-close');\r\n\r\n        \/\/ Photo gallery zoom (open lightbox AND update big header image)\r\n        photoItems.forEach(item => {\r\n            item.addEventListener('click', () => {\r\n                const full = item.getAttribute('data-full');\r\n                if (!full) return;\r\n                \/\/ Update main hero image\r\n                mainGalleryImg.src = full;\r\n                \/\/ Open lightbox\r\n                imageLightboxImg.src = full;\r\n                imageLightbox.style.display = 'flex';\r\n            });\r\n        });\r\n\r\n        \/\/ Close lightbox on button click\r\n        imageLightboxClose.addEventListener('click', () => {\r\n            imageLightbox.style.display = 'none';\r\n        });\r\n\r\n        \/\/ Close lightbox on backdrop click\r\n        imageLightbox.addEventListener('click', (e) => {\r\n            if (e.target === imageLightbox) {\r\n                imageLightbox.style.display = 'none';\r\n            }\r\n        });\r\n\r\n        \/\/ Close lightbox on ESC\r\n        document.addEventListener('keydown', (e) => {\r\n            if (e.key === 'Escape' && imageLightbox.style.display === 'flex') {\r\n                imageLightbox.style.display = 'none';\r\n            }\r\n        });\r\n\r\n        \/* Validation Functions *\/\r\n        function validateEmail(email) {\r\n            const emailRegex = \/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$\/;\r\n            return emailRegex.test(email);\r\n        }\r\n\r\n        function validatePhone(phone) {\r\n            const cleanPhone = phone.replace(\/\\D\/g, '');\r\n            return cleanPhone.length >= 10;\r\n        }\r\n\r\n        function showError(inputId, errorId, message) {\r\n            document.getElementById(inputId).classList.add('error');\r\n            document.getElementById(errorId).textContent = message;\r\n            document.getElementById(errorId).style.display = 'block';\r\n        }\r\n\r\n        function hideError(inputId, errorId) {\r\n            document.getElementById(inputId).classList.remove('error');\r\n            document.getElementById(errorId).style.display = 'none';\r\n        }\r\n\r\n        function validateForm(formType = 'desktop') {\r\n            let isValid = true;\r\n            const prefix = formType === 'mobile' ? 'm-' : 'd-';\r\n\r\n            const email = document.getElementById(`${prefix}email`).value.trim();\r\n            if (!validateEmail(email)) {\r\n                showError(`${prefix}email`, `${prefix}email-error`, 'Please enter a valid email address');\r\n                isValid = false;\r\n            } else {\r\n                hideError(`${prefix}email`, `${prefix}email-error`);\r\n            }\r\n\r\n            const phone = document.getElementById(`${prefix}phone`).value.trim();\r\n            if (!validatePhone(phone)) {\r\n                showError(`${prefix}phone`, `${prefix}phone-error`, 'Please enter a valid phone number (min. 10 digits)');\r\n                isValid = false;\r\n            } else {\r\n                hideError(`${prefix}phone`, `${prefix}phone-error`);\r\n            }\r\n\r\n            const requiredFields = [\r\n                { id: `${prefix}start`, errorId: `${prefix}start-error`, message: 'Please choose a start date' },\r\n                { id: `${prefix}end`, errorId: `${prefix}end-error`, message: 'Please choose an end date' },\r\n                { id: `${prefix}people`, errorId: `${prefix}people-error`, message: 'Please enter number of participants' },\r\n                { id: `${prefix}first`, errorId: `${prefix}first-error`, message: 'Please enter your first name' },\r\n                { id: `${prefix}last`, errorId: `${prefix}last-error`, message: 'Please enter your last name' }\r\n            ];\r\n\r\n            requiredFields.forEach(field => {\r\n                const value = document.getElementById(field.id).value.trim();\r\n                if (!value) {\r\n                    showError(field.id, field.errorId, field.message);\r\n                    isValid = false;\r\n                } else {\r\n                    hideError(field.id, field.errorId);\r\n                }\r\n            });\r\n\r\n            return isValid;\r\n        }\r\n\r\n        \/\/ Scroll to form functionality\r\n        const scrollToFormBtn = document.getElementById('scroll-to-form-btn');\r\n        const mobileFormSection = document.getElementById('mobile-booking-form-section');\r\n        \r\n        if (scrollToFormBtn && mobileFormSection) {\r\n            scrollToFormBtn.addEventListener('click', () => {\r\n                mobileFormSection.scrollIntoView({ \r\n                    behavior: 'smooth',\r\n                    block: 'start'\r\n                });\r\n            });\r\n        }\r\n\r\n        \/\/ === EMAILJS SEND HELPERS ===\r\n        async function sendEmailJS(formType = 'desktop') {\r\n            const prefix = formType === 'mobile' ? 'm-' : 'd-';\r\n\r\n            const pax = parseInt(document.getElementById(`${prefix}people`).value || '2', 10);\r\n\r\n            const formData = {\r\n                tour_date:        document.getElementById(`${prefix}start`).value,\r\n                tour_end_date:    document.getElementById(`${prefix}end`).value,\r\n                participants:     pax,\r\n                first_name:       document.getElementById(`${prefix}first`).value,\r\n                last_name:        document.getElementById(`${prefix}last`).value,\r\n                email:            document.getElementById(`${prefix}email`).value,\r\n                phone:            document.getElementById(`${prefix}phone`).value,\r\n                special_requests: document.getElementById(`${prefix}notes`).value,\r\n                tour_name:        '5-Day Visit to the Most Beautiful Cities of Morocco Tour - Imperial Cities & Sahara',\r\n                total_price:      'On Request'\r\n            };\r\n\r\n            console.log('Sending to EmailJS:', formData);\r\n\r\n            \/\/ EmailJS v4 send (uses global init)\r\n            return emailjs.send(\r\n                EMAILJS_SERVICE_ID,\r\n                EMAILJS_TEMPLATE_ID,\r\n                formData\r\n            );\r\n        }\r\n\r\n        \/\/ NEW: Thank You overlay logic\r\n        const TY = document.getElementById('thankyou');\r\n        const TY_CLOSE = document.getElementById('ty-close');\r\n\r\n        function showThankYou() {\r\n            if (TY) {\r\n                TY.style.display = 'block';\r\n                document.body.style.overflow = 'hidden';\r\n            }\r\n        }\r\n\r\n        function hideThankYou() {\r\n            if (TY) {\r\n                TY.style.display = 'none';\r\n                document.body.style.overflow = '';\r\n            }\r\n        }\r\n\r\n        if (TY_CLOSE) {\r\n            TY_CLOSE.addEventListener('click', hideThankYou);\r\n        }\r\n\r\n        if (TY) {\r\n            TY.addEventListener('click', (e) => {\r\n                if (e.target === TY) {\r\n                    hideThankYou();\r\n                }\r\n            });\r\n        }\r\n\r\n        document.addEventListener('keydown', (e) => {\r\n            if (e.key === 'Escape' && TY && TY.style.display === 'block') {\r\n                hideThankYou();\r\n            }\r\n        });\r\n\r\n        \/\/ Mobile form submission\r\n        const mobileForm = document.getElementById('mobile-booking-form');\r\n        const mobileSubmitBtn = document.getElementById('mobile-submit');\r\n        \r\n        if (mobileForm) {\r\n            mobileForm.addEventListener('submit', async (e) => {\r\n                e.preventDefault();\r\n                \r\n                if (!validateForm('mobile')) {\r\n                    showToast('Please correct the errors in the form', 'error');\r\n                    return;\r\n                }\r\n                \r\n                mobileSubmitBtn.disabled = true;\r\n                mobileSubmitBtn.innerHTML = '<i class=\"fas fa-spinner fa-spin\"><\/i> Sending...';\r\n                \r\n                try {\r\n                    const result = await sendEmailJS('mobile');\r\n                    console.log('EmailJS SUCCESS (mobile):', result);\r\n                    showThankYou();\r\n                    mobileForm.reset();\r\n                    showToast('Your booking request has been submitted successfully!', 'success');\r\n                } catch (err) { \r\n                    console.error('EmailJS Error (mobile):', err);\r\n                    showToast('Sorry, an error occurred: ' + (err.text || 'Please check your EmailJS keys\/domain.'), 'error'); \r\n                } finally {\r\n                    mobileSubmitBtn.disabled = false;\r\n                    mobileSubmitBtn.innerHTML = '<i class=\"fa-solid fa-paper-plane\"><\/i> Book Now';\r\n                }\r\n            });\r\n        }\r\n\r\n        \/\/ Desktop form submission\r\n        const desktopForm = document.getElementById('desktop-form');\r\n        const desktopSubmitBtn = document.getElementById('d-submit');\r\n        \r\n        if (desktopForm) {\r\n            desktopForm.addEventListener('submit', async (e) => {\r\n                e.preventDefault();\r\n                \r\n                if (!validateForm('desktop')) {\r\n                    showToast('Please correct the errors in the form', 'error');\r\n                    return;\r\n                }\r\n                \r\n                desktopSubmitBtn.disabled = true;\r\n                desktopSubmitBtn.innerHTML = '<i class=\"fas fa-spinner fa-spin\"><\/i> Sending...';\r\n                \r\n                try {\r\n                    const result = await sendEmailJS('desktop');\r\n                    console.log('EmailJS SUCCESS (desktop):', result);\r\n                    showThankYou();\r\n                    desktopForm.reset();\r\n                    showToast('Your booking request has been submitted successfully!', 'success');\r\n                } catch (err) { \r\n                    console.error('EmailJS Error (desktop):', err);\r\n                    showToast('Sorry, an error occurred: ' + (err.text || 'Please check your EmailJS keys\/domain.'), 'error'); \r\n                } finally {\r\n                    desktopSubmitBtn.disabled = false;\r\n                    desktopSubmitBtn.innerHTML = '<i class=\"fa-solid fa-paper-plane\"><\/i> Book Now';\r\n                }\r\n            });\r\n        }\r\n\r\n        \/\/ Set minimum date to tomorrow\r\n        (function() {\r\n            const d = new Date();\r\n            d.setDate(d.getDate() + 1);\r\n            const min = `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`;\r\n            \r\n            ['d-start', 'm-start', 'd-end', 'm-end'].forEach(id => {\r\n                const el = document.getElementById(id);\r\n                if (el) el.min = min;\r\n            });\r\n        })();\r\n\r\n        \/\/ Real-time validation\r\n        document.addEventListener('DOMContentLoaded', function() {\r\n            const emailInput = document.getElementById('d-email');\r\n            const phoneInput = document.getElementById('d-phone');\r\n            if (emailInput) {\r\n                emailInput.addEventListener('blur', function() {\r\n                    if (this.value.trim() && !validateEmail(this.value.trim())) {\r\n                        showError('d-email', 'd-email-error', 'Please enter a valid email address');\r\n                    } else {\r\n                        hideError('d-email', 'd-email-error');\r\n                    }\r\n                });\r\n            }\r\n            if (phoneInput) {\r\n                phoneInput.addEventListener('blur', function() {\r\n                    if (this.value.trim() && !validatePhone(this.value.trim())) {\r\n                        showError('d-phone', 'd-phone-error', 'Please enter a valid phone number (min. 10 digits)');\r\n                    } else {\r\n                        hideError('d-phone', 'd-phone-error');\r\n                    }\r\n                });\r\n            }\r\n\r\n            const mEmailInput = document.getElementById('m-email');\r\n            const mPhoneInput = document.getElementById('m-phone');\r\n            if (mEmailInput) {\r\n                mEmailInput.addEventListener('blur', function() {\r\n                    if (this.value.trim() && !validateEmail(this.value.trim())) {\r\n                        showError('m-email', 'm-email-error', 'Please enter a valid email address');\r\n                    } else {\r\n                        hideError('m-email', 'm-email-error');\r\n                    }\r\n                });\r\n            }\r\n            if (mPhoneInput) {\r\n                mPhoneInput.addEventListener('blur', function() {\r\n                    if (this.value.trim() && !validatePhone(this.value.trim())) {\r\n                        showError('m-phone', 'm-phone-error', 'Please enter a valid phone number (min. 10 digits)');\r\n                    } else {\r\n                        hideError('m-phone', 'm-phone-error');\r\n                    }\r\n                });\r\n            }\r\n        });\r\n    <\/script>\r\n\r\n<\/body>\r\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>5-Day Visit to the Most Beautiful Cities of Morocco Tour | &#8230; <\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-467","page","type-page","status-publish","hentry"],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"_links":{"self":[{"href":"https:\/\/marrakechtrekking.com\/fr\/wp-json\/wp\/v2\/pages\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marrakechtrekking.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marrakechtrekking.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marrakechtrekking.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marrakechtrekking.com\/fr\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":10,"href":"https:\/\/marrakechtrekking.com\/fr\/wp-json\/wp\/v2\/pages\/467\/revisions"}],"predecessor-version":[{"id":884,"href":"https:\/\/marrakechtrekking.com\/fr\/wp-json\/wp\/v2\/pages\/467\/revisions\/884"}],"wp:attachment":[{"href":"https:\/\/marrakechtrekking.com\/fr\/wp-json\/wp\/v2\/media?parent=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}