/* MAS Gerai 0.4.1 - katalog bertema oranye merek (selaras Portal Terapis), tombol aksi biru kalem seperti form pemesanan. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body.mas-gerai-page{background:#FFFAF3;color:#1F2933;font-family:'Poppins',system-ui,-apple-system,"Segoe UI",sans-serif}
body.mas-gerai-page .site-header,body.mas-gerai-page .site-footer,body.mas-gerai-page .site-info,body.mas-gerai-page .main-navigation,body.mas-gerai-page .sidebar,body.mas-gerai-page .page-header,body.mas-gerai-page .entry-header,body.mas-gerai-page .entry-footer,body.mas-gerai-page .breadcrumb,body.mas-gerai-page #breadcrumbs,body.mas-gerai-page .mas-footer,body.mas-gerai-page .page-footer,body.mas-gerai-page .footer-widgets,body.mas-gerai-page .footer-bar{display:none!important}
body.mas-gerai-page .site-content,body.mas-gerai-page .content-area,body.mas-gerai-page .site-main,body.mas-gerai-page .inside-article,body.mas-gerai-page .entry-content{width:100%;max-width:none;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
body.mas-gerai-page .grid-container{max-width:none}
body.mas-gerai-page .gb-container:has(h1):not(:has(.mas-gerai)),body.mas-gerai-page .wp-block-cover:has(h1):not(:has(.mas-gerai)),body.mas-gerai-page .page-hero:has(h1):not(:has(.mas-gerai)){display:none!important}

.mas-gerai{--o:#F7941D;--o-text:#9A5200;--o-btn:#B45F00;--o-btn-h:#9A5200;--o-soft:#FFF4E5;--o-bg:#FBD9A8;--b:#004AAD;--b-dark:#00337A;--b-soft:#EAF2FD;--b-line:#B9D2F2;--ink:#1F2933;--muted:#5B6672;--line:#F3E3CF;min-height:100vh;background:#FFFAF3;color:var(--ink);font-family:'Poppins',system-ui,sans-serif}
.mas-gerai *{box-sizing:border-box}
.mas-gerai a{color:inherit;text-decoration:none}
.mas-gerai [hidden]{display:none!important}
.mas-gerai h1,.mas-gerai h2,.mas-gerai h3{font-family:'Poppins',system-ui,sans-serif;letter-spacing:0}

/* Top bar */
.mg-topbar{position:sticky;top:0;z-index:10000;display:flex;align-items:center;gap:18px;width:100%;max-width:none;height:68px;margin:0 auto;padding:0 24px;background:rgba(255,250,243,.96);backdrop-filter:blur(10px);box-shadow:0 1px 0 var(--line)}
body.admin-bar .mg-topbar{top:32px}
.mg-brand{display:flex;align-items:center;gap:9px}
.mg-logo{display:block;flex:0 0 auto;width:46px;height:46px;border-radius:50%;object-fit:contain;background:#fff}
.mg-brand-copy{display:block;white-space:nowrap}
.mg-brand b{display:block;color:var(--b-dark);font-size:12px;letter-spacing:1.2px}
.mg-brand small{display:block;margin-top:2px;color:var(--muted);font-size:10px}
.mg-store-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--o-soft);color:var(--o-text)}
.mg-store-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mg-top-nav{display:flex;gap:26px;margin-left:auto}
.mg-top-nav a{color:var(--b-dark);font-size:13px;font-weight:600}
.mg-top-nav a:hover{color:var(--o-text)}
.mg-top-action{padding:10px 20px;border-radius:999px;background:var(--o-btn);color:#fff!important;font-size:13px;font-weight:700}
.mg-top-action:hover{background:var(--o-btn-h)}
.mg-menu-toggle,.mg-mobile-panel,.mg-panel-backdrop{display:none}

/* Hero */
.mg-hero{position:relative;overflow:hidden;min-height:380px;padding:78px max(7vw,24px) 52px;background:linear-gradient(160deg,#FFF4E5 0%,#FBD9A8 100%)}
.mg-hero>*:not(.mg-hero-art){position:relative;z-index:1}
.mg-hero-art{position:absolute;z-index:0;right:clamp(20px,7vw,100px);top:50%;width:clamp(190px,32vw,360px);height:auto;transform:translateY(-50%);pointer-events:none}
.mg-kicker{margin:0 0 12px;color:var(--o-text);font-size:11px;font-weight:700;letter-spacing:2px}
.mg-hero h1{margin:0;color:var(--b-dark);font-size:clamp(38px,7vw,68px);font-weight:700;line-height:1.1}
.mg-hero h1 em{color:var(--o-btn);font-style:normal}
.mg-hero>p:not(.mg-kicker){max-width:420px;margin:18px 0;color:#4A5561;font-size:14px;line-height:1.8}
.mg-hero-link{display:inline-flex;align-items:center;gap:20px;margin-top:10px;padding-bottom:8px;border-bottom:2px solid var(--o);color:var(--b-dark);font-size:13px;font-weight:700}

/* Seksi */
.mg-category-hub,.mg-catalog,.mg-therapists{max-width:1180px;margin:0 auto}
.mg-category-hub{padding:44px 24px 24px;scroll-margin-top:80px}
.mg-catalog{padding:30px 24px 40px;scroll-margin-top:80px}
.mg-therapists{padding:20px 24px 60px}
.mg-hub-therapists{scroll-margin-top:80px}
.mg-section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px}
.mg-section-head h2{margin:0;color:var(--b-dark);font-size:30px;font-weight:700}
.mg-count{color:var(--o-text);font-size:12px;font-weight:600}
.mg-section-note{max-width:620px;margin:-10px 0 18px;color:var(--muted);font-size:13px;line-height:1.7}
.mg-hub-title{margin:18px 0 10px;color:var(--b-dark);font-size:16px;font-weight:600}
.mg-popular-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mg-popular-item{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--b-dark)}
.mg-popular-item:hover{border-color:var(--o)}
.mg-popular-item b,.mg-popular-item small{display:block}
.mg-popular-item b{font-size:13px}
.mg-popular-item small{margin-top:3px;color:var(--muted);font-size:11px}
.mg-popular-item>span:last-child{color:var(--o-text)}

/* Pencarian & filter */
.mg-search{display:flex;align-items:center;gap:10px;max-width:440px;height:48px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.mg-search span{color:var(--o-text);font-size:22px}
.mg-search input{width:100%;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:var(--ink);font:inherit;font-size:14px}
.mg-filters{display:flex;flex-wrap:wrap;gap:8px}
.mg-filters button{padding:9px 16px;border:1px solid var(--b-line);border-radius:999px;background:#fff;color:var(--b-dark);font:600 12px/1.2 'Poppins',system-ui,sans-serif;cursor:pointer}
.mg-filters button:hover{background:var(--b-soft)}
.mg-filters button.is-active{border-color:var(--o-btn);background:var(--o-btn);color:#fff}
.mg-catalog .mg-search{margin-bottom:22px}
.mg-city-filter{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;margin:12px 0 22px;color:var(--b-dark);font-size:12px;font-weight:600}
.mg-city-filter select{min-width:190px;padding:10px 32px 10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-weight:500}
.mg-therapist-search{margin-bottom:6px}
.mg-gender-filter{margin:12px 0 4px}
.mg-credit{max-width:1132px;margin:0 auto 24px;padding:0 24px;color:var(--muted);font-size:12px;line-height:1.7;text-align:center}
.mg-credit a{color:var(--o-text);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.mg-credit a:hover{color:var(--b-dark)}

/* Kartu */
.mg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mg-therapist-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mg-therapist-grid.is-limited .mg-therapist-extra{display:none}
.mg-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;transition:transform .2s,box-shadow .2s}
.mg-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(154,82,0,.12)}
.mg-card-image{position:relative;display:grid;place-items:center;height:200px;overflow:hidden;background:var(--o-soft)}
.mg-therapist-card .mg-card-image{height:auto;aspect-ratio:4/5;min-height:0;background:#f3efe9}
.mg-therapist-card .mg-card-image img{object-fit:contain;object-position:50% 42%}
.mg-therapist-card h3{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px}
.mg-verified-badge{display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border-radius:999px;background:#e8f5e9;color:#16803c;font-size:10px;font-weight:700;line-height:1.3;white-space:nowrap}
.mg-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.mg-image-placeholder{color:var(--o);font-size:56px}
.mg-category{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);overflow:hidden;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.95);color:var(--o-text);font-size:10px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.mg-card-body{padding:16px 16px 14px}
.mg-card h3{margin:0 0 6px;color:var(--b-dark);font-size:17px;font-weight:600;line-height:1.3}
.mg-card-body>p{min-height:40px;margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.mg-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #F7EBDA;color:var(--o-text);font-size:12px;font-weight:700}
.mg-select-service,.mg-select-therapist{display:inline-flex;align-items:center;gap:5px;padding:9px 14px;border-radius:999px;background:var(--b-soft);color:var(--b-dark)!important;font-size:12px;font-weight:700;white-space:nowrap}
.mg-select-service:hover,.mg-select-therapist:hover{background:var(--b);color:#fff!important}
.mg-empty{padding:34px;text-align:center;color:var(--muted)}
.mg-show-therapists{display:block;margin:18px auto 0;padding:11px 20px;border:1px solid var(--o-bg);border-radius:999px;background:var(--o-soft);color:var(--o-text);font:700 12px/1 'Poppins',system-ui,sans-serif;cursor:pointer}
.mg-exclusive{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;padding:18px 20px;border:1px dashed var(--o);border-radius:14px;background:var(--o-soft)}
.mg-exclusive b{display:block;color:var(--b-dark);font-size:15px}
.mg-exclusive small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.6}
.mg-exclusive a{flex:0 0 auto;padding:11px 18px;border-radius:999px;background:var(--b);color:#fff!important;font-size:12px;font-weight:700}
.mg-exclusive a:hover{background:#0060DA}

/* CTA bawah */
.mg-booking{display:flex;align-items:center;gap:24px;max-width:1132px;margin:0 auto 40px;padding:34px 40px;border-radius:16px;background:linear-gradient(100deg,#F7941D 0%,#C26A00 60%,#9A5200 100%);color:#fff}
.mg-booking-icon{font-size:36px;color:#FFE2B8}
.mg-booking .mg-kicker{color:#FFE2B8}
.mg-booking h2{margin:0;color:#fff;font-size:30px;font-weight:700;line-height:1.2}
.mg-booking>a{margin-left:auto;padding:14px 22px;border-radius:999px;background:#fff;color:var(--o-text)!important;font-size:13px;font-weight:700;white-space:nowrap}
.mas-gerai-notice{padding:20px;border:1px solid #E4D9B7;background:#FFF9E8;color:#554D35}

/* Tablet & ponsel */
@media(max-width:900px){.mg-therapist-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mg-top-nav{gap:16px}}
@media(max-width:800px){.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mg-hero{min-height:340px;padding-top:62px}.mg-hero-art{right:-22px;top:auto;bottom:-36px;width:210px;transform:none;opacity:.88}.mg-booking{margin:0 18px 36px;padding:26px 22px;gap:14px}.mg-booking h2{font-size:25px}}
@media(max-width:700px){
	.mg-topbar{height:64px;padding:0 16px;gap:12px}
	body.admin-bar .mg-topbar{top:46px}
	.mg-top-nav,.mg-topbar .mg-top-action{display:none}
	.mg-menu-toggle{display:grid;place-items:center;width:42px;height:42px;margin-left:auto;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--b-dark);font-size:19px;cursor:pointer}
	.mg-mobile-panel{position:fixed;z-index:10002;top:0;right:0;bottom:0;display:block;width:min(88vw,360px);padding:0 20px 30px;overflow-y:auto;background:#fff;box-shadow:-12px 0 36px rgba(0,30,70,.2);transform:translateX(105%);transition:transform .24s ease;visibility:hidden}
	.mg-mobile-panel.is-open{transform:translateX(0);visibility:visible}
	body.admin-bar .mg-mobile-panel{top:46px}
	.mg-panel-head{display:flex;align-items:center;justify-content:space-between;height:66px;border-bottom:1px solid var(--line);color:var(--b-dark);font-size:16px}
	.mg-panel-close{width:38px;height:38px;border:0;border-radius:50%;background:var(--o-soft);color:var(--o-text);font-size:26px;cursor:pointer}
	.mg-mobile-search{max-width:none;margin:18px 0 12px}
	.mg-panel-nav{display:grid}
	.mg-panel-nav a{padding:16px 2px;border-bottom:1px solid #F5EEE3;color:var(--b-dark);font-size:14px;font-weight:600}
	.mg-panel-nav a:last-child{color:var(--o-text)}
	.mg-panel-backdrop:not([hidden]){position:fixed;z-index:10001;inset:0;display:block;background:rgba(0,30,70,.5)}
	body.mg-panel-open{overflow:hidden}
	.mg-category-hub{padding:32px 16px 20px}
	.mg-catalog{padding:24px 16px 30px}
	.mg-therapists{padding:14px 16px 48px}
	.mg-popular-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
	.mg-popular-item{min-height:60px;padding:10px}
	.mg-category-hub .mg-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
	.mg-filters button{flex:0 0 auto}
	.mg-therapist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.mg-exclusive{flex-direction:column;align-items:stretch;text-align:left}
	.mg-exclusive a{text-align:center}
}
@media(max-width:520px){
	.mg-logo{width:42px;height:42px}
	.mg-brand b{font-size:11px}
	.mg-hero{min-height:330px;padding:56px 22px 42px}
	.mg-hero-art{right:-58px;bottom:-35px;width:175px;opacity:.78}
	.mg-hero h1{font-size:44px}
	.mg-hero>p:not(.mg-kicker){max-width:290px;font-size:13px}
	.mg-section-head h2{font-size:26px}
	.mg-search{max-width:none}
	.mg-grid,.mg-therapist-grid{grid-template-columns:1fr;gap:12px}
	.mg-card{display:grid;grid-template-columns:36% 1fr;min-height:150px}
	.mg-card-image,.mg-therapist-card .mg-card-image{height:100%;min-height:150px}
	.mg-therapist-card .mg-card-image{height:220px;min-height:220px}
	.mg-card-body{display:flex;flex-direction:column;padding:13px 12px 10px}
	.mg-card h3{font-size:15px}
	.mg-card-body>p{display:-webkit-box;min-height:0;overflow:hidden;font-size:11.5px;-webkit-line-clamp:3;-webkit-box-orient:vertical}
	.mg-card-foot{margin-top:auto;padding-top:9px;font-size:11px}
	.mg-category{left:7px;bottom:7px;max-width:calc(100% - 14px);padding:5px 8px;font-size:9px}
	.mg-image-placeholder{font-size:34px}
	.mg-city-filter{width:100%;justify-content:space-between}
	.mg-city-filter select{flex:1;min-width:0}
	.mg-booking{flex-wrap:wrap;align-items:flex-start;margin:0 16px 30px;padding:24px 20px}
	.mg-booking>div{flex:1}
	.mg-booking>a{margin:6px 0 0 0}
}
/* Terapis: foto utuh dan bidang potret yang proporsional di semua ukuran layar. */
.mg-therapist-card .mg-card-image{height:auto;min-height:0;aspect-ratio:4/5}
@media(prefers-reduced-motion:reduce){.mg-mobile-panel,.mg-card{transition:none}}

/* Teks tautan jelas pada kartu + batas gender pelanggan terapis */
.mg-serves{margin:8px 0 0;font-size:12px;color:var(--muted)}
.mg-serves b{color:var(--o-text)}
.mg-card-links{margin-top:10px}
.mg-card-links a{font-size:12px;font-weight:700;color:var(--b);text-decoration:underline;text-underline-offset:3px}
