/* Polish layer (New Visions, 2026-11). Loaded after style.min.css.
   Keeps the site's own design; only fixes and a white background. */

/* ---------- White background ---------- */
html, html body { background: #fff !important; }
main > section,
.hero.hero-morocco,
html body .contact-section.contact-reference { background: #fff !important; }
.main-header.reference-header { background: rgba(255, 255, 255, .96) !important; }

/* ---------- No scroll reveal: content is always visible ---------- */
html.motion-enabled [data-motion] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- TripAdvisor box: no green outline ---------- */
.tripadvisor-profile { border-color: rgba(24, 30, 75, .1) !important; }

/* ---------- Explore Morocco: readable list instead of cut-off text ---------- */
.explore-panel.is-active {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
}
.explore-link-item {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    align-items: center;
    padding: 16px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(24, 30, 75, .1) !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    text-decoration: none;
}
.explore-link-item::after {
    content: "→";
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--primary-color);
    font-size: 18px;
}
.explore-link-item strong { grid-column: 1; font-size: 17px; }
.explore-link-item span {
    grid-column: 1;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .explore-panel.is-active { grid-template-columns: 1fr; }

    /* Quote button no longer covers the cards: icon only, next to WhatsApp */
    .floating-contact-actions { left: auto !important; right: 16px !important; width: auto !important; gap: 10px; }
    .floating-contact-button--form { width: 52px; height: 52px; padding: 0 !important; justify-content: center; border-radius: 999px !important; }
    .floating-contact-button--form span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

    /* Footer: two even columns, left aligned */
    .footer-content { text-align: left !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 32px 20px !important; }
    .footer-content .footer-links { min-width: 0; text-align: left !important; align-items: flex-start !important; }
    .footer-content .footer-links a { text-align: left !important; }
    .site-footer .footer-links h3 { font-size: 16px !important; }
}

/* ---------- Centered section headers, same on every section ---------- */
.tours-header, .events-header, .google-reviews-header {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 20px !important;
}
.tours-header-content, .events-header-content, .google-reviews-header > div,
.explore-morocco-header, .contact-reference-header {
    text-align: center !important;
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
}
.tours-subtitle, .events-subtitle, .explore-morocco-header p, .contact-subtitle, .google-reviews-header p {
    margin-left: auto !important;
    margin-right: auto !important;
}
.tours-feature-list { justify-content: center !important; }
.explore-morocco-tabs { justify-content: center; }
.google-reviews-controls, .tours-navigation { justify-content: center !important; position: static !important; transform: none !important; margin: 0 auto !important; }

/* TripAdvisor card centered, no green underline */
.tripadvisor-profile { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 18px !important; }
.tripadvisor-copy { display: flex; flex-direction: column; align-items: center; }
.tripadvisor-profile h2 a { text-decoration: none !important; border: 0 !important; box-shadow: none !important; background: none !important; }
.tripadvisor-location { justify-content: center !important; }

/* ---------- Icons ---------- */
/* Sparkle icon on section labels reads AI-made: use a compass */
.fa-wand-magic-sparkles::before { content: "\f14e"; }
.wcu-reference-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    background: rgba(223, 105, 81, .1) !important;
    color: var(--primary-color) !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    box-shadow: none !important;
}
.wcu-reference-icon i { font-size: 22px !important; }
.tours-feature-list span i { color: var(--primary-color) !important; }


@media (max-width: 768px) {
    .explore-morocco-tabs { justify-content: flex-start; }
    .contact-reference-header .section-title { font-size: 34px !important; }
}

/* ---------- Inner pages: same look as the homepage ---------- */
html, body { overflow-x: clip; }
.journal-page-header, .articles-page-wrapper, .events-listing-reference,
.tour-listing-hero, .dest-page-wrapper, .tour-detail-page { background: #fff !important; }

.tour-listing-hero-copy, .journal-listing-header, .events-listing-header {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 760px;
}
.tour-listing-hero-copy p, .journal-listing-header p, .events-listing-header p { margin-left: auto !important; margin-right: auto !important; }
.tour-listing-features { justify-content: center !important; }

/* One label style everywhere (Events used a purple one) */
.events-listing-eyebrow, .journal-listing-eyebrow, .tour-listing-eyebrow {
    display: inline-flex !important; align-items: center; gap: 8px;
    padding: 6px 13px !important; border: 1px solid #f3d3c9 !important; border-radius: 20px !important;
    background: #fff3ef !important; color: #df624e !important;
    font: 700 11px/1.2 var(--font-manrope) !important; letter-spacing: .08em; text-transform: uppercase;
}

@media (max-width: 768px) {
    .contact-reference-header .section-title br { display: none; }
    /* Blog and destination pages had no side margin on phones */
    .articles-layout, .article-detail-layout, .dest-layout { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---------- Tour page FAQ ---------- */
.td-faq { margin-top: 40px; }
.td-faq-item { border-bottom: 1px solid rgba(24, 30, 75, .1); padding: 16px 0; }
.td-faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: #181E4B; font-size: 16px; }
.td-faq-item summary::-webkit-details-marker { display: none; }
.td-faq-item summary::after { content: "+"; color: var(--primary-color); font-size: 22px; line-height: 1; transition: transform .3s ease; }
.td-faq-item[open] summary::after { transform: rotate(45deg); }
.td-faq-item p { margin: 10px 0 0; line-height: 1.65; color: #4a5068; }

/* ---------- Duration hub pages ---------- */
.hub-hero { padding: 40px 0 24px; }
.hub-breadcrumb { font-size: 13px; color: #6b7088; margin-bottom: 18px; }
.hub-breadcrumb a { color: #b05030; }
.hub-hero h1 { margin: 12px 0 14px; }
.hub-lead { font-size: 18px; line-height: 1.6; color: #181E4B; }
.hub-body { line-height: 1.7; color: #4a5068; margin-top: 10px; }
.hub-count { text-align: center; margin: 8px 0 20px; color: #6b7088; }
.hub-tours .tours-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.hub-faq { padding: 48px 0 64px; }
.hub-faq .container { max-width: 820px; }
.hub-faq h2 { text-align: center; margin-bottom: 16px; }
.hub-other-title { margin-top: 48px; }
.hub-other { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hub-other a:not(.btn-primary) { padding: 10px 16px; border: 1px solid rgba(24, 30, 75, .14); border-radius: 999px; color: #181E4B; font-weight: 600; }
.hub-other .btn-primary { padding: 10px 20px; }
.hub-other a { text-decoration: none !important; }

/* ---------- Desert comparison hub ---------- */
.hub-table-wrap { max-width: 980px; margin: 28px auto 0; }
.hub-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid rgba(24, 30, 75, .1); border-radius: 16px; overflow: hidden; font-size: 15px; }
.hub-table th, .hub-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(24, 30, 75, .08); }
.hub-table thead th { background: #fff3ef; color: #b05030; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hub-table tbody th { font-family: var(--font-serif); font-size: 18px; color: #181E4B; }
.hub-desert-group { padding: 32px 0 8px; }
.hub-desert-group h2, .hub-group-intro { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.hub-group-intro { margin-bottom: 22px; }
@media (max-width: 768px) {
    .hub-table thead { display: none; }
    .hub-table, .hub-table tbody, .hub-table tr, .hub-table th, .hub-table td { display: block; width: 100%; }
    .hub-table tr { border-bottom: 1px solid rgba(24, 30, 75, .12); padding: 8px 0; }
    .hub-table tbody th { border: 0; padding-bottom: 4px; }
    .hub-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 16px; }
    .hub-table td::before { content: attr(data-label); color: #6b7088; font-size: 13px; }
}

/* Hero text shows at once (faster first paint, no fade). */
.hero-video .animate-fade-in { animation: none !important; opacity: 1 !important; transform: none !important; }
