/* Marrakech Guided editorial UI — lightweight blog styles */
.mg-blog-home,.mg-blog-single{background:#fff;color:var(--mg-ink)}
.mg-blog-hero{padding:82px 0 66px;background:linear-gradient(135deg,#f8f2e9 0%,#fff 60%);border-bottom:1px solid var(--mg-line)}
.mg-blog-hero__inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:44px;align-items:end}
.mg-blog-hero h1{max-width:820px;margin:0;font-size:clamp(42px,5.5vw,70px);line-height:1;letter-spacing:-.055em;color:#14221e}
.mg-blog-hero p{max-width:700px;margin:18px 0 0;font-size:19px;line-height:1.65;color:#5b6963}
.mg-blog-hero__links{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.mg-blog-hero__links a{padding:10px 15px;border:1px solid #e4dacd;border-radius:999px;background:#fff;color:#25332e;text-decoration:none;font-size:13px;font-weight:800}.mg-blog-hero__links a:hover{border-color:#c25736;color:#9d3d25}
.mg-blog-list-section{padding:64px 0 84px}.mg-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.mg-blog-card{overflow:hidden;border:1px solid #e9e1d6;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(22,35,30,.06);transition:transform .18s ease,box-shadow .18s ease}.mg-blog-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(22,35,30,.10)}
.mg-blog-card__media{display:block;aspect-ratio:16/10;background:#17302a;overflow:hidden}.mg-blog-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}.mg-blog-card:hover .mg-blog-card__media img{transform:scale(1.025)}.mg-blog-card__placeholder{height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding:24px;background:linear-gradient(145deg,#1d372f,#936340);color:#fff}.mg-blog-card__placeholder span{font-size:11px;text-transform:uppercase;letter-spacing:.13em;font-weight:900;color:#f5d09b}.mg-blog-card__placeholder strong{font-size:28px;letter-spacing:-.03em}
.mg-blog-card__body{padding:20px}.mg-blog-card__meta{display:flex;gap:12px;flex-wrap:wrap;color:#79837e;font-size:11px;font-weight:750}.mg-blog-card h2{margin:8px 0 10px;font-size:23px;line-height:1.18;letter-spacing:-.035em}.mg-blog-card h2 a{color:#17211f;text-decoration:none}.mg-blog-card p{margin:0;color:#5d6964;font-size:14px;line-height:1.65}.mg-blog-card__link{display:inline-flex;margin-top:15px;color:#a9472b;text-decoration:none;font-size:13px;font-weight:900}.mg-blog-pagination{margin-top:34px}.mg-blog-empty{padding:70px 0;text-align:center}.mg-blog-empty h2{font-size:32px;margin:0 0 10px}
.mg-article-head{padding:66px 0 34px;background:#fbf8f3}.mg-article-head__inner{max-width:940px}.mg-blog-breadcrumb{display:flex;gap:9px;align-items:center;margin-bottom:28px;color:#78817d;font-size:13px}.mg-blog-breadcrumb a{color:inherit;text-decoration:none}.mg-article-head h1{max-width:900px;margin:0;color:#14221e;font-size:clamp(45px,6vw,76px);line-height:.98;letter-spacing:-.06em}.mg-article-deck{max-width:820px;margin:20px 0 0;color:#55635d;font-size:20px;line-height:1.62}.mg-article-meta{display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:24px;color:#78817d;font-size:12px;font-weight:700}.mg-article-meta span+span:before{content:'•';margin-right:18px;color:#c4b9aa}
.mg-article-featured{margin-top:26px}.mg-article-featured img{width:100%;max-height:620px;object-fit:cover;border-radius:24px;display:block}.mg-article-layout{display:grid;grid-template-columns:minmax(0,760px) minmax(240px,300px);gap:70px;align-items:start;padding-top:52px;padding-bottom:76px}.mg-article-main{min-width:0}.mg-article-toc{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap;padding:14px 16px;margin-bottom:34px;border:1px solid #e7dfd4;border-radius:14px;background:#fbf8f3;font-size:12px}.mg-article-toc strong{margin-right:4px}.mg-article-toc a{color:#44514c;text-decoration:none;font-weight:750}.mg-article-toc a:hover{color:#a9472b}
.mg-article-content{font-size:18px;line-height:1.82;color:#34413c}.mg-article-content>p,.mg-article-content>ul{max-width:72ch}.mg-article-content .mg-post-lead{font-size:21px;line-height:1.72;color:#293934}.mg-article-content h2{margin:52px 0 14px;color:#14221e;font-size:34px;line-height:1.12;letter-spacing:-.045em}.mg-article-content h3{margin:31px 0 10px;color:#1f302a;font-size:23px;line-height:1.22;letter-spacing:-.03em}.mg-article-content ul{padding-left:1.2em}.mg-article-content li{margin:8px 0}.mg-post-quick{display:grid;gap:5px;margin:28px 0 36px;padding:18px 20px;border-left:4px solid #b7492a;border-radius:0 14px 14px 0;background:#f8f1e8}.mg-post-quick strong{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:#a9472b}.mg-post-quick span{font-weight:800;color:#26352f}.mg-post-callout{margin:42px 0;padding:25px 28px;border:1px solid #e8ded2;border-radius:18px;background:#fbf8f3}.mg-post-callout h2{margin:0 0 12px!important;font-size:26px!important}.mg-post-callout ul{margin-bottom:0}
.mg-article-aside{display:grid;gap:14px;position:sticky;top:96px}.mg-article-aside__card{padding:20px;border:1px solid #e7dfd4;border-radius:17px;background:#fff}.mg-article-aside__card span{display:block;color:#a9472b;font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:900}.mg-article-aside__card h2{margin:6px 0 8px;font-size:20px;line-height:1.18;letter-spacing:-.03em}.mg-article-aside__card p{margin:0;color:#68736e;font-size:13px;line-height:1.55}.mg-article-aside__card a{display:inline-flex;margin-top:12px;color:#a9472b;text-decoration:none;font-size:12px;font-weight:900}
.mg-article-cta{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;margin-top:54px;padding:27px 28px;border-radius:20px;background:#17211f;color:#fff}.mg-article-cta span{color:#f2c58d;font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:900}.mg-article-cta h2{margin:5px 0 8px;color:#fff;font-size:28px;letter-spacing:-.04em}.mg-article-cta p{margin:0;color:rgba(255,255,255,.78);font-size:14px}.mg-article-cta__actions{display:grid;gap:8px;min-width:175px}.mg-btn--wa{background:#168a4e!important}.mg-btn--wa:hover{background:#11703f!important}
.mg-blog-related{padding:62px 0 84px;background:#f7f1e8;border-top:1px solid #e7ded2}.mg-blog-related__head{display:flex;align-items:end;justify-content:space-between;gap:26px;margin-bottom:24px}.mg-blog-related__head h2{margin:0;font-size:36px;line-height:1.08;letter-spacing:-.045em}.mg-blog-related__head p{margin:8px 0 0;color:#66716c}.mg-blog-related__head>a{color:#a9472b;text-decoration:none;font-weight:900}.mg-related-service-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media(max-width:980px){.mg-blog-hero__inner{grid-template-columns:1fr}.mg-blog-hero__links{justify-content:flex-start}.mg-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mg-article-layout{grid-template-columns:1fr;gap:34px}.mg-article-aside{position:static;grid-template-columns:1fr 1fr}.mg-related-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.mg-blog-hero{padding:54px 0 42px}.mg-blog-hero h1{font-size:42px}.mg-blog-hero p{font-size:17px}.mg-blog-list-section{padding:42px 0 62px}.mg-blog-grid{grid-template-columns:1fr}.mg-article-head{padding:46px 0 26px}.mg-blog-breadcrumb{margin-bottom:20px}.mg-article-head h1{font-size:43px;line-height:1.02}.mg-article-deck{font-size:17px}.mg-article-meta span+span:before{display:none}.mg-article-layout{padding-top:32px;padding-bottom:54px;gap:28px}.mg-article-toc{align-items:flex-start}.mg-article-content{font-size:17px;line-height:1.78}.mg-article-content .mg-post-lead{font-size:19px}.mg-article-content h2{margin-top:40px;font-size:29px}.mg-article-content h3{font-size:21px}.mg-post-callout{padding:20px}.mg-article-aside{grid-template-columns:1fr}.mg-article-cta{grid-template-columns:1fr;padding:22px}.mg-article-cta__actions{grid-template-columns:1fr 1fr;min-width:0}.mg-blog-related{padding:46px 0 60px}.mg-blog-related__head{display:block}.mg-blog-related__head h2{font-size:30px}.mg-blog-related__head>a{display:inline-flex;margin-top:12px}.mg-related-service-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:13px;padding:2px 2px 12px;scrollbar-width:none}.mg-related-service-grid>*{flex:0 0 82%;scroll-snap-align:start}.mg-related-service-grid::-webkit-scrollbar{display:none}}
/* Related WP Travel Engine cards inside blog posts */
.mg-blog-related .mg-related-card{overflow:hidden;border:1px solid #e7ded2;border-radius:17px;background:#fff;box-shadow:0 10px 26px rgba(22,35,30,.06);transition:transform .18s ease,box-shadow .18s ease}.mg-blog-related .mg-related-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(22,35,30,.10)}.mg-blog-related .mg-related-card__media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#eadfce}.mg-blog-related .mg-related-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}.mg-blog-related .mg-related-card:hover .mg-related-card__media img{transform:scale(1.025)}.mg-blog-related .mg-related-card__type{position:absolute;left:10px;top:10px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.94);color:#21302b;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.mg-blog-related .mg-related-card__body{padding:13px 14px 14px}.mg-blog-related .mg-related-card__location{color:#7a847f;font-size:10px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mg-blog-related .mg-related-card h3{margin:5px 0 10px;font-size:17px;line-height:1.23;letter-spacing:-.025em}.mg-blog-related .mg-related-card h3 a{color:#17211f;text-decoration:none}.mg-blog-related .mg-related-card__meta{display:flex;justify-content:space-between;gap:8px;padding-top:9px;border-top:1px solid #eee6dc;color:#6f7974;font-size:10px}.mg-blog-related .mg-related-card__link{display:inline-flex;margin-top:10px;color:#a9472b;text-decoration:none;font-size:11px;font-weight:900}


/* v5.1 — premium article planner sidebar */
.mg-article-layout{
  grid-template-columns:minmax(0,760px) minmax(280px,320px);
  gap:54px;
}
.mg-article-aside{
  display:grid;
  gap:12px;
  position:sticky;
  top:96px;
}
.mg-article-aside__panel{
  padding:20px;
  border:1px solid #e7ded2;
  border-radius:20px;
  background:linear-gradient(150deg,#fff 0%,#fbf7f1 100%);
  box-shadow:0 12px 34px rgba(22,35,30,.055);
}
.mg-article-aside__head{
  display:flex;
  align-items:center;
  gap:11px;
  padding-bottom:14px;
  border-bottom:1px solid #ece4da;
}
.mg-article-aside__head-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#f7ebe1;
  color:#a9472b;
}
.mg-article-aside__head-icon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.mg-article-aside__head>div{display:grid;gap:3px;min-width:0}
.mg-article-aside__head>div>span{
  color:#a9472b;
  font-size:9px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-weight:850;
}
.mg-article-aside__head h2{
  margin:0;
  color:#17251f;
  font-size:19px;
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:720;
}
.mg-article-aside__intro{
  margin:13px 0 12px;
  color:#67736d;
  font-size:12.5px;
  line-height:1.55;
}
.mg-article-quicklinks{
  display:grid;
  gap:8px;
}
.mg-article-quicklinks>a{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:64px;
  padding:10px 11px;
  border:1px solid #ebe3d9;
  border-radius:13px;
  background:#fff;
  color:#1f3029;
  text-decoration:none;
  transition:border-color .18s ease,transform .18s ease,background .18s ease;
}
.mg-article-quicklinks>a:hover{
  border-color:#d7c5b4;
  background:#fffdf9;
  transform:translateY(-1px);
}
.mg-article-quicklinks__icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#f8eee5;
  color:#a9472b;
}
.mg-article-quicklinks__icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.mg-article-quicklinks>a>span:nth-child(2){display:grid;gap:2px;min-width:0}
.mg-article-quicklinks strong{
  color:#1d2d27;
  font-size:12.5px;
  line-height:1.25;
  font-weight:780;
}
.mg-article-quicklinks small{
  color:#73807a;
  font-size:10.5px;
  line-height:1.35;
}
.mg-article-quicklinks b{
  color:#a9472b;
  font-size:15px;
  font-weight:800;
}
.mg-article-quicklinks__wa .mg-article-quicklinks__icon{
  background:#eaf8f0;
  color:#12824a;
}
.mg-article-aside__tip{
  padding:15px 16px;
  border:1px solid #e7ded2;
  border-radius:15px;
  background:#17251f;
  color:#fff;
}
.mg-article-aside__tip span{
  display:block;
  margin-bottom:5px;
  color:#f1c58d;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-weight:850;
}
.mg-article-aside__tip p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:12px;
  line-height:1.55;
}
@media(max-width:980px){
  .mg-article-layout{grid-template-columns:1fr;gap:30px}
  .mg-article-aside{position:static;grid-template-columns:minmax(0,1fr) 240px;align-items:start}
}
@media(max-width:680px){
  .mg-article-aside{grid-template-columns:1fr;gap:10px}
  .mg-article-aside__panel{padding:16px;border-radius:17px;box-shadow:none}
  .mg-article-quicklinks>a{min-height:60px}
  .mg-article-aside__tip{border-radius:14px}
}
