/* 5DH 1.6 PRO — reference layout, scoped overrides. */
:root{--accent:#e60012;--blue:#245fc5}
body{background:#fbfcfe;color:#111827}.wrap{max-width:1700px;width:calc(100% - 48px)}
header{background:white;border-bottom:1px solid #dce5f2}.topbar{min-height:106px;gap:30px}.topbar .brand{display:flex;flex-direction:column;flex-shrink:0;gap:0;line-height:1}.logo-word{font-size:76px;font-weight:900;font-style:italic;color:#d60000;letter-spacing:-4px}.logo-word span{color:#172235;font-size:38px;letter-spacing:-2px}.brand small{font-size:15px;color:#172235;font-weight:600;letter-spacing:0;line-height:1.5}header nav{flex:1;justify-content:space-evenly;gap:18px}header nav>a{display:flex;align-items:center;gap:7px;white-space:nowrap}header nav svg{width:25px;height:25px}.post-link{min-height:58px;padding:0 25px;border-radius:13px;box-shadow:none;font-size:21px;background:linear-gradient(#ff1515,#cc0000)}
main.wrap{padding-top:22px}.hero-banner{display:flex;min-height:0;aspect-ratio:1678/190;border-radius:28px;border:0;padding:0;background:url('morocco-reference.webp') center/cover no-repeat;box-shadow:none}.hero-banner:before,.hero-banner:after,.hero-scenery,.hero-flag-splash,.hero-brand-mark{display:none}.hero-copy{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[lang=fr] .hero-banner{background-image:url('morocco-reference.webp');min-height:190px}html[lang=fr] .hero-copy{position:relative;width:auto;height:auto;clip-path:none;max-width:78%;margin:auto;padding:24px;background:#fff9f4;border-radius:16px}html[lang=fr] .hero-copy h1{font-size:34px}html[lang=fr] .hero-copy p{font-size:18px}
.search-hub{direction:ltr;grid-template-columns:205px minmax(0,1fr) minmax(200px,.36fr) minmax(230px,.45fr);gap:14px;margin-top:24px}.search-submit{grid-column:1;grid-row:1;min-height:58px;font-size:23px;background:linear-gradient(#ff1515,#cc0000);border-color:#e60012;box-shadow:none;border-radius:13px}.hub-field{min-height:58px;border-radius:14px;padding:0 18px;box-shadow:none;border-color:#bdcde0;direction:rtl}.hub-keywords{grid-column:2;grid-row:1}.hub-city{grid-column:3;grid-row:1}.hub-category{grid-column:4;grid-row:1}.hub-field input,.hub-field select{font-size:20px;font-weight:500;padding-inline-start:30px;width:100%;min-width:0}.hub-field input::placeholder{font-weight:400;color:#71717a}.hub-category select{font-weight:700}.section-title-home{display:none}.home-hero{margin-bottom:34px}.categories-showcase{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;direction:rtl}.category-tile{min-height:132px;padding:16px;border-radius:18px;background:linear-gradient(120deg,#fff,#f2f3f6);border-color:#ced7e4;box-shadow:inset 0 0 0 3px #fff}.category-copy{max-width:57%;gap:8px;padding-bottom:10px}.category-name{font-size:22px!important;color:#101116!important}.category-meta{font-size:13px;background:none;border:0;padding:0;color:#43516a}.category-meta:before{display:none}.category-art{inset-inline-end:0;width:46%!important;height:95%!important;object-position:center!important}.category-tile:after{content:'←';position:absolute;bottom:12px;inset-inline-start:16px;border-radius:50%;background:#f10b12;color:white;width:25px;height:25px;text-align:center;line-height:25px;font-size:18px}.benefits-strip{margin-top:30px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #245fc5;outline-offset:3px}.ad.wide{margin:32px auto;max-width:100%;overflow:visible}.ad:empty{display:none}html[lang=fr] .hub-field{direction:ltr}html[lang=fr] .categories-showcase{direction:ltr}html[lang=fr] .category-name{font-size:18px!important}
@media(max-width:1350px){.topbar{gap:18px}header nav{gap:12px}header nav>a{font-size:13px}.logo-word{font-size:60px}.logo-word span{font-size:30px}.brand small{font-size:11px}.post-link{font-size:16px;padding:0 18px}.category-name{font-size:18px!important}.search-hub{grid-template-columns:140px minmax(0,1fr) 200px 220px}.hub-field input,.hub-field select{font-size:16px}}
@media(max-width:1050px){.categories-showcase{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar{flex-wrap:wrap}.topbar nav{flex-basis:100%;order:4;padding-bottom:12px}.search-hub{grid-template-columns:120px 1fr 180px}.hub-category{grid-column:3;grid-row:2}.hub-city{grid-column:2;grid-row:2}.hub-keywords{grid-column:2/4}.search-submit{grid-row:1/3;height:100%}}
@media(max-width:850px){.wrap{width:calc(100% - 24px)}main.wrap{padding-top:14px}.topbar{min-height:78px;gap:10px}.logo-word{font-size:47px;letter-spacing:-3px}.logo-word span{font-size:25px}.brand small{font-size:10px}.post-link{min-height:44px;font-size:13px;padding:0 12px}.hero-banner{border-radius:16px;min-height:110px;background-size:cover}.home-hero{margin-bottom:20px}.search-hub{grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.hub-keywords{grid-column:1/3;grid-row:1}.hub-city{grid-column:1;grid-row:2}.hub-category{grid-column:2;grid-row:2}.search-submit{grid-column:1/3;grid-row:3;min-height:48px;height:auto;font-size:18px}.hub-field{min-height:52px;padding:0 10px}.hub-field input,.hub-field select{font-size:14px}.categories-showcase{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-tile{min-height:122px;padding:12px}.category-name{font-size:16px!important}.category-meta{font-size:11px}.category-copy{padding-bottom:20px;max-width:55%}.category-tile:after{bottom:9px;inset-inline-start:12px;width:22px;height:22px;line-height:22px}.benefits-strip{margin-top:20px}html[lang=fr] .hero-copy{max-width:95%;padding:12px}html[lang=fr] .hero-copy h1{font-size:24px}html[lang=fr] .hero-copy p{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.category-tile{direction:ltr}.category-copy{direction:rtl;text-align:center}.category-art{left:auto!important;right:0!important}.category-meta{align-self:center}.category-tile:after{left:16px;right:auto}html[lang=fr] .category-copy{direction:ltr}
/* 1.6.1 BALANCED: undo legacy nested width limits and use a consistent type scale. */
body{font-size:14px;line-height:1.7}
.wrap{width:calc(100% - 48px);max-width:1680px}
header .topbar{min-height:94px;gap:24px}
header nav>a{font-size:15px;line-height:1.5}
header nav svg{width:22px;height:22px;flex-basis:22px}
header .brand .logo-word{font-size:58px;font-weight:900;color:#d60000;line-height:1;letter-spacing:-3px}
header .brand .logo-word>span{font-size:30px;color:#172235;letter-spacing:-1.5px}
header .brand small{font-size:12px;line-height:1.6}
header .post-link{min-height:48px;padding:0 22px;font-size:17px;border-radius:11px}
.languages a{font-size:13px;padding:8px 10px}
.home-hero{margin-bottom:24px}
.home-hero .hero-banner{height:auto;min-height:0;aspect-ratio:1678/190;display:block;border-radius:22px}
.search-hub{align-items:stretch;grid-template-columns:160px minmax(0,1fr) minmax(180px,.34fr) minmax(210px,.42fr);margin-top:20px;gap:12px}
.search-hub .hub-field{height:54px;min-height:54px;margin:0;padding:0 14px;border-radius:12px}
.search-hub .hub-field input,.search-hub .hub-field select{height:50px;min-height:0;padding:0;padding-inline-start:29px;margin:0;font-size:16px;line-height:1.5;font-weight:500}
.search-hub .hub-category select{font-weight:600}
.search-hub .hub-field:before{width:22px;height:22px;inset-inline-start:14px}
.search-hub .search-submit{min-height:54px;height:54px;margin:0;padding:0 15px;font-size:18px;gap:10px;line-height:1.5;border-radius:12px;grid-row:1;order:0}
.search-hub .search-submit svg{width:25px;height:25px;flex-basis:25px}
.home-categories .categories-showcase{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:26px}
.categories-showcase a.category-tile{isolation:isolate;display:flex!important;flex-direction:row;justify-content:flex-start;align-items:center;direction:ltr;min-width:0;height:132px;min-height:132px;padding:17px 14px 24px;gap:0;text-align:center}
/* The old rules constrained .category-name to 56% inside a 57% text column.
   That left under a third of a card for Arabic words and caused the broken syllables. */
.categories-showcase .category-copy{display:flex;flex-direction:column;flex:0 0 59%;width:59%;max-width:59%;min-width:0;padding:0 4px 0 0;margin:0;gap:9px;position:relative;z-index:2;direction:rtl;text-align:center}
.categories-showcase .category-copy .category-name{display:block;width:100%;max-width:none!important;min-width:0;margin:0;padding:0;font-size:18px!important;font-weight:750!important;line-height:1.5!important;letter-spacing:0;overflow-wrap:normal;word-break:normal;white-space:normal;text-shadow:none;text-wrap:balance}
.categories-showcase .category-copy .category-meta{display:block;align-self:center;max-width:100%;padding:0;margin:0;border:0;background:transparent;font-size:12px;font-weight:500;line-height:1.6;white-space:normal}
.categories-showcase .category-copy .category-meta:before{display:none}
.categories-showcase .category-art{display:block!important;position:absolute!important;left:auto!important;right:7px!important;top:8px;bottom:8px;width:40%!important;height:calc(100% - 16px)!important;max-width:none;object-fit:contain!important;object-position:center!important;transform:none!important;padding:0;border-radius:9px;z-index:1;pointer-events:none}
.categories-showcase .category-all .category-art{width:34%!important;right:12px!important;top:17px;height:94px!important}
.categories-showcase .category-tile:after{left:14px;right:auto;bottom:10px;width:23px;height:23px;line-height:23px;font-size:16px}
.benefits-strip{margin:24px 0 28px;border-radius:18px}
.benefits-strip article{gap:12px;padding:20px 18px}
.benefits-strip h3{font-size:16px;line-height:1.5;margin:0 0 6px;font-weight:700}
.benefits-strip p{font-size:12px;line-height:1.8;margin:0}
.benefits-strip .benefit-icon{width:44px;height:44px;flex-basis:44px;border-radius:13px}
.benefits-strip .benefit-icon svg{width:23px;height:23px}
.home-shell .section-title h2{font-size:22px;line-height:1.5}
.home-shell .section-title>a{font-size:12px}
.home-shell .card-title{font-size:14px;line-height:1.65}
.home-shell .price{font-size:17px}
html[lang=fr] .categories-showcase .category-copy{direction:ltr}
html[lang=fr] .categories-showcase .category-copy .category-name{font-size:16px!important;line-height:1.5!important;overflow-wrap:normal;hyphens:auto}
html[lang=fr] .hero-copy h1{font-size:30px;line-height:1.3}
html[lang=fr] .hero-copy p{font-size:17px;line-height:1.5}
@media(max-width:1350px){header .topbar{gap:16px}header nav>a{font-size:13px}header .post-link{font-size:15px;padding:0 17px}.categories-showcase .category-copy .category-name{font-size:16px!important}.search-hub{grid-template-columns:130px minmax(0,1fr) 190px 215px}.search-hub .hub-field input,.search-hub .hub-field select{font-size:14px}.benefits-strip h3{font-size:15px}}
@media(max-width:1100px){.home-categories .categories-showcase{grid-template-columns:repeat(3,minmax(0,1fr))}.categories-showcase .category-copy .category-name{font-size:18px!important}.benefits-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.benefits-strip article:nth-child(3){border-inline-start:0;border-top:1px solid #e8eef7}.benefits-strip article:nth-child(4){border-top:1px solid #e8eef7}}
@media(min-width:851px) and (max-width:1050px){.search-hub{grid-template-columns:130px minmax(0,1fr) 210px}.search-hub .hub-keywords{grid-column:2/4;grid-row:1}.search-hub .hub-city{grid-column:2;grid-row:2}.search-hub .hub-category{grid-column:3;grid-row:2}.search-hub .search-submit{grid-column:1;grid-row:1/3;height:auto;min-height:54px}}
@media(max-width:850px){.wrap{width:calc(100% - 24px)}header .topbar{min-height:76px;gap:9px}header .brand .logo-word{font-size:42px}header .brand .logo-word>span{font-size:23px}header .brand small{font-size:9px}header nav>a{font-size:14px}header .post-link{min-height:42px;padding:0 12px;font-size:13px}header .menu-toggle{font-size:11px;min-height:40px}.home-hero .hero-banner{min-height:105px;aspect-ratio:3.5;background-size:auto 100%;background-position:center}.search-hub{grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.search-hub .hub-keywords{grid-column:1/3;grid-row:1}.search-hub .hub-city{grid-column:1;grid-row:2}.search-hub .hub-category{grid-column:2;grid-row:2}.search-hub .search-submit{grid-column:1/3;grid-row:3;min-height:46px;height:46px;font-size:16px}.search-hub .hub-field{height:48px;min-height:48px;padding:0 10px}.search-hub .hub-field input,.search-hub .hub-field select{font-size:13px;height:44px;padding-inline-start:25px}.search-hub .hub-field:before{width:19px;height:19px;inset-inline-start:10px}.search-hub .search-submit svg{width:22px;height:22px;flex-basis:22px}.home-hero{margin-bottom:20px}.home-categories .categories-showcase{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.categories-showcase a.category-tile{height:118px;min-height:118px;padding:12px 8px 24px}.categories-showcase .category-copy{flex-basis:61%;width:61%;max-width:61%;padding:0;gap:7px}.categories-showcase .category-copy .category-name{font-size:15px!important;line-height:1.5!important}.categories-showcase .category-copy .category-meta{font-size:10px}.categories-showcase .category-art{width:36%!important;right:5px!important;top:12px;height:92px!important}.categories-showcase .category-all .category-art{width:30%!important;right:9px!important;height:76px!important;top:18px}.categories-showcase .category-tile:after{left:10px;bottom:9px;width:21px;height:21px;line-height:21px;font-size:15px}.benefits-strip{grid-template-columns:1fr}.benefits-strip article+article{border-inline-start:0;border-top:1px solid #e8eef7}.benefits-strip h3{font-size:14px}.benefits-strip p{font-size:11px}.home-shell .section-title h2{font-size:19px}.home-shell .card-title{font-size:13px}.home-shell .price{font-size:16px}html[lang=fr] .categories-showcase .category-copy .category-name{font-size:13px!important}html[lang=fr] .hero-copy h1{font-size:22px}html[lang=fr] .hero-copy p{font-size:14px}}
@media(max-width:380px){.categories-showcase .category-copy .category-name{font-size:13px!important}.categories-showcase .category-copy .category-meta{font-size:10px}.categories-showcase a.category-tile{height:114px;min-height:114px}.categories-showcase .category-copy{flex-basis:63%;width:63%;max-width:63%}.categories-showcase .category-art{width:33%!important}.search-hub .hub-field input,.search-hub .hub-field select{font-size:12px}}

/* 1.7 — responsive display controls and administration. */
[hidden]{display:none!important}
body.site-public .wrap{max-width:var(--content-width,1680px)}
body.site-public .cards.listing-grid{display:grid;grid-template-columns:repeat(var(--listing-columns,4),minmax(0,1fr));gap:18px}
body.site-public .cards.listing-grid>.card{min-width:0}
body.site-public .cards.listing-grid .card-photo{height:auto;aspect-ratio:4/3;min-height:0;width:100%;overflow:hidden}
body.site-public .cards.listing-grid .card-photo img{width:100%;height:100%;object-fit:var(--listing-fit,cover)}
body.site-public .cards.listing-grid .card-body{padding:14px;min-width:0}
body.site-public .cards.listing-grid .card-title{font-size:14px;line-height:1.6;min-height:44px;overflow-wrap:anywhere}
body.site-public .home-categories .categories-showcase{grid-template-columns:repeat(var(--category-columns,5),minmax(0,1fr))}
body.site-public .categories-showcase .category-copy .category-name{font-size:var(--category-title,18px)!important;width:100%;max-width:none!important;overflow-wrap:normal;word-break:normal}
.category-toggle{display:block;margin:16px auto 24px;min-height:44px}
body.site-public .categories-expanded .category-tile{display:flex!important}
.layout-settings{max-width:1100px}
.layout-device-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.layout-settings fieldset{min-width:0;margin:0 0 20px;padding:22px;border:1px solid #dce5f0;border-radius:14px;background:#fbfcff}
.layout-settings legend{padding:0 10px;font-size:18px;font-weight:700;color:#162d4d}
.layout-settings label{font-size:14px;line-height:1.6}
.layout-settings input[type=number],.layout-settings select{min-height:46px;font-size:16px;max-width:100%}
.layout-settings input[type=number]{direction:ltr;text-align:start}
.layout-settings .layout-total{font-size:14px;padding:12px;border-radius:10px;background:#edf4ff;margin:0;color:#214e8d}
.layout-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px}
.layout-checks .check{margin:0;padding:8px 0;min-height:44px}
.layout-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.layout-actions .button,.layout-actions button{font-size:14px;min-height:46px}
.admin-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0 26px}
.admin-stat{border:1px solid #dbe5f3;background:linear-gradient(135deg,#f0f5ff,#fff);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:8px;min-width:0}
.admin-stat strong{font-size:34px;line-height:1.2;color:#235cbd}
.admin-stat span{font-size:14px;line-height:1.5;color:#24354f}
.admin-stat:hover{border-color:#265fc0}
.admin-quick-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
body.site-admin .admin-panel{overflow-wrap:anywhere}
body.site-admin .tabs{gap:8px;flex-wrap:wrap}
body.site-admin .tabs a{font-size:13px;min-height:42px;display:flex;align-items:center}
body.site-admin .inline input,body.site-admin .inline select{max-width:100%}
@media(min-width:851px) and (max-width:1200px){header .topbar{flex-wrap:wrap;padding:12px 0;gap:16px}header .brand{margin-inline-end:auto}header nav{flex-basis:100%;order:4;justify-content:space-between;padding-bottom:8px;gap:12px;flex-wrap:wrap}}
@media(max-width:850px){
 body.site-public .cards.listing-grid{grid-template-columns:repeat(var(--listing-columns,2),minmax(0,1fr));gap:12px}
 body.site-public .cards.listing-grid .card-body{padding:11px}
 body.site-public .cards.listing-grid .card-title{font-size:13px;min-height:42px}
 body.site-public .cards.listing-grid .price{font-size:16px}
 body.site-public .cards.listing-grid small{font-size:10px}
 header .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;min-height:74px;padding:10px 0}
 header .topbar .brand{grid-column:1;grid-row:1;justify-self:start;align-items:center;min-width:0;margin:0;max-width:160px}
 header .brand .logo-word{font-size:39px;letter-spacing:-2px}
 header .brand .logo-word>span{font-size:21px;letter-spacing:-1px}
 header .brand small{font-size:8px;line-height:1.5;white-space:normal;text-align:center}
 header .topbar .post-link{grid-column:2;grid-row:1;font-size:12px;min-height:42px;min-width:0;padding:0 10px}
 header .topbar .post-link svg{width:17px;height:17px;flex-basis:17px}
 header .topbar .menu-toggle{grid-column:3;grid-row:1;min-height:42px;padding:7px 9px;margin:0;font-size:11px}
 header .topbar nav{grid-column:1/-1;grid-row:2;order:0;min-width:0;padding:8px 0;align-items:stretch;gap:0}
 header nav>a{font-size:14px;padding:12px 4px;white-space:normal;overflow-wrap:anywhere}
 header nav .languages{padding:10px 0;align-self:flex-start}
 body.site-public .home-categories .categories-showcase{grid-template-columns:repeat(var(--category-columns,2),minmax(0,1fr))}
 body.site-public .categories-showcase .category-copy{width:62%;max-width:62%;flex-basis:62%}
 body.site-public .categories-showcase .category-art{width:34%!important}
 body.site-public .categories-showcase .category-all .category-art{width:29%!important}
 body.site-public .categories-showcase .category-copy .category-meta{font-size:10px}
 .layout-device-grid{grid-template-columns:1fr;gap:0}
 .layout-settings fieldset{padding:17px 14px;margin-bottom:16px}
 .layout-settings legend{font-size:16px}
 .layout-checks{grid-template-columns:1fr}
 .layout-settings label{font-size:13px}
 .layout-actions{align-items:stretch}
 .layout-actions>*{flex:1 1 100%}
 .admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .admin-stat{padding:18px 14px}
 .admin-stat strong{font-size:28px}
 .admin-stat span{font-size:12px}
 .admin-quick-links{display:grid;grid-template-columns:1fr;gap:8px}
 body.site-admin .section-title{align-items:flex-start}
 body.site-admin .section-title h1{font-size:22px}
 body.site-admin .admin-panel{padding:16px 12px}
 body.site-admin .tabs a{font-size:12px;padding:7px 10px}
 body.site-admin .inline{align-items:stretch}
 body.site-admin .inline form{flex-wrap:wrap;max-width:100%}
 body.site-admin .admin-row .inline-form{flex:1 1 auto}
 body.site-admin .admin-row .inline-form button{width:100%;min-height:42px}
 .layout-settings input[type=number],.layout-settings select{font-size:16px}
}
@media(max-width:380px){header .topbar{gap:6px}header .brand .logo-word{font-size:34px}header .brand .logo-word>span{font-size:18px}header .brand small{font-size:7px}header .topbar .post-link{padding:0 7px;font-size:11px}header .topbar .menu-toggle{padding:6px;font-size:10px}body.site-public .cards.listing-grid{gap:9px}body.site-public .cards.listing-grid .card-body{padding:9px}body.site-public .cards.listing-grid .card-title{font-size:12px}body.site-public .cards.listing-grid .price{font-size:14px}.admin-stat-grid{grid-template-columns:1fr 1fr}}
.admin-search{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:15px;background:#f5f8fe;border:1px solid #e1e8f2;border-radius:12px;margin-bottom:20px}
.admin-search label{flex:1 1 200px;margin:0;font-size:13px;min-width:0}
.admin-search input,.admin-search select{font-size:15px;min-height:44px}
.admin-search button{min-height:44px}
@media(max-width:580px){.admin-search{display:block;padding:12px}.admin-search label{margin-bottom:12px}.admin-search button{width:100%}.admin-search input,.admin-search select{font-size:16px}}
/* Scale long category words to the card's actual width on small screens. */
@supports(font-size:1cqw){body.site-public .categories-showcase .category-tile{container-type:inline-size}body.site-public .categories-showcase .category-copy .category-name{font-size:clamp(12px,8cqw,var(--category-title,18px))!important}}
