/* GM30: PC full-page shop details with same-region mini directory.
   Scoped to CP detail; homepage, search listing, review popups and mobile unchanged. */
@media (min-width:1025px) {
  .gm30-detail-wrap { float:none!important; display:block!important; clear:both!important; width:100%!important; max-width:100%!important; margin:0!important; padding:0!important; background:#f8f9fd!important; position:relative; }
  .gm30-detail-wrap>.wrap { float:none!important; max-width:none!important; width:100%!important; margin:0!important; padding:0!important; display:block!important; }
  .gm30-detail-wrap .side-wrap, .gm30-detail-wrap .side-menu, .gm30-detail-wrap .left-wrap, .gm30-detail-wrap .right-wrap { display:none!important; }
  .gm30-detail-wrap>.wrap>.content { float:none!important; display:block!important; width:100%!important; max-width:none!important; min-width:0!important; margin:0!important; padding:0!important; border:none!important; transform:none!important; box-sizing:border-box!important; }
  .gm30-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 276px; align-items:start; gap:22px; max-width:1240px; width:calc(100% - 64px); padding:26px 0 40px; margin:0 auto; box-sizing:border-box; }
  .gm30-detail-primary { min-width:0; width:100%; max-width:100%; overflow-wrap:anywhere; }
  .gm30-detail-primary .gm20-detail-head, html.gm20-detail-enabled body .gm30-detail-primary .gm20-detail-head { width:100%!important; max-width:none!important; margin:0 0 16px!important; }
  .gm30-detail-primary .bbswrap, html.gm20-detail-enabled body .gm30-detail-primary .bbswrap { width:100%!important; max-width:none!important; min-width:0!important; margin:0!important; float:none!important; box-sizing:border-box!important; }
  .gm30-detail-primary .bbswrap .bbsview .bcontent, .gm30-detail-primary .bbswrap .bbsview .bcontent .body { width:100%!important; max-width:100%!important; box-sizing:border-box!important; }
  .gm30-detail-primary .bbswrap img { max-width:100%; }
  .gm30-detail-primary .greeting-box, .gm30-detail-primary .region-box, html.gm20-detail-enabled body .gm30-detail-primary .greeting-box, html.gm20-detail-enabled body .gm30-detail-primary .region-box { max-width:100%!important; }
  .gm30-detail-primary #coursePreview { max-width:100%!important; }
  .gm30-detail-sidebar { min-width:0; position:sticky; top:18px; align-self:start; }
  .gm30-side-sticky { position:static; background:#fff; border:1px solid #e4e7f3; border-radius:14px; overflow:hidden; box-shadow:0 6px 22px rgba(57,50,104,.06); }
  .gm30-side-title { padding:18px 17px 15px; background:linear-gradient(105deg,#f6f3ff,#fbfcff); border-bottom:1px solid #e9e7f6; }
  .gm30-side-eyebrow { font-size:12px; letter-spacing:.8px; font-weight:800; color:#7769d9; }
  .gm30-side-title h2 { margin:6px 0 5px; font-size:19px; line-height:1.3; letter-spacing:-.5px; color:#252943; font-weight:900; }
  .gm30-side-title p { margin:0; font-size:13px; color:#7e88a0; line-height:1.5; }
  .gm30-side-items { padding:5px 10px; }
  .gm30-side-divider { margin:9px 5px 4px; padding:6px 0 4px; font-size:12px; color:#8c93a8; border-top:1px solid #eef0f8; }
  .gm30-side-shop { display:flex; align-items:center; gap:10px; min-height:74px; padding:9px 4px; text-decoration:none!important; color:inherit!important; border-bottom:1px solid #eef0f5; }
  .gm30-side-shop:last-child { border-bottom:none; }
  .gm30-side-shop:hover { background:#faf9ff; }
  .gm30-side-thumb { flex:0 0 66px; width:66px; height:53px; border-radius:8px; overflow:hidden; background:linear-gradient(125deg,#e6e3f3,#d8d6e7); position:relative; display:flex; align-items:center; justify-content:center; }
  .gm30-side-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
  .gm30-no-photo-text { font-size:11px; color:#817b92; }
  .gm30-side-thumb.gm30-side-no-photo:after { content:'사진 없음'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:#e9e6f0; color:#777089; font-size:11px; }
  .gm30-side-shoptext { min-width:0; flex:1; display:flex; flex-direction:column; gap:5px; }
  .gm30-side-shoptext strong { font-size:15px; color:#272e46; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .gm30-side-shoptext small { font-size:13px; color:#7d869b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .gm30-side-shop:hover .gm30-side-shoptext strong { color:#6a59d8; }
  .gm30-side-chevron { font-size:22px; color:#abb1c0; margin-right:3px; }
  .gm30-all-link { display:flex; align-items:center; justify-content:space-between; margin:6px 14px 10px; padding:11px 13px; color:#5f52d3!important; font-size:14px; font-weight:800; background:#f5f3ff; text-decoration:none!important; border:1px solid #e9e5ff; border-radius:8px; }
  .gm30-all-link:hover { background:#eeeafd; }
  .gm30-side-empty { padding:16px; margin:0; color:#7f889f; font-size:13px; line-height:1.6; }
  .gm30-side-note { margin:0 15px 17px; line-height:1.5; font-size:12px; color:#9aa2b5; }
  /* Keep only the redesigned footer; the existing bottom.php JS still executes. */
  .gm30-detail-wrap ~ .container-wrap { display:none!important; }
  .gm30-detail-wrap ~ .btn-top { display:none!important; }
  .gm30-detail-wrap ~ .gm9-footer { display:block!important; }
}
@media (min-width:1025px) and (max-width:1250px) {
  .gm30-detail-layout { width:calc(100% - 44px); gap:16px; grid-template-columns:minmax(0,1fr) 238px; }
  .gm30-side-title { padding:15px 12px; }
  .gm30-side-items { padding:4px 7px; }
  .gm30-side-shop { gap:7px; }
  .gm30-side-thumb { flex-basis:57px; width:57px; height:48px; }
  .gm30-side-shoptext strong { font-size:14px; }
}
@media (max-width:1024px) {
  .gm30-detail-layout { display:block; }
  .gm30-detail-sidebar { display:none!important; }
}

/* GM31 detailed view repair: V20 disabled the original greeting fade-in
   without restoring opacity from zero. Never hide genuine detail sections. */
@media (min-width:1025px) {
  html.gm20-detail-enabled body .gm30-detail-primary #greetingBox,
  html.gm20-detail-enabled body .gm30-detail-primary .greeting-box,
  html.gm20-detail-enabled body .gm30-detail-primary .course-box,
  .gm30-detail-wrap .gm30-detail-primary #greetingBox,
  .gm30-detail-wrap .gm30-detail-primary .greeting-box,
  .gm30-detail-wrap .gm30-detail-primary .course-box {
    opacity:1!important; visibility:visible!important;
    animation:none!important; transform:none!important;
  }
  .gm30-detail-wrap .gm30-detail-primary .bbswrap,
  .gm30-detail-wrap .gm30-detail-primary .bbsview,
  .gm30-detail-wrap .gm30-detail-primary .bbsview .bcontent,
  .gm30-detail-wrap .gm30-detail-primary .bbsview .bcontent .body {
    max-height:none!important; overflow:visible!important;
  }
  .gm30-detail-wrap .gm30-detail-primary .bbsview .bcontent .body {
    display:block!important; width:100%!important; height:auto!important;
  }
  /* Keep a long two-section sidebar usable without covering page content. */
  .gm30-side-sticky { box-sizing:border-box; }
  .gm31-recent-block { margin-top:9px; border-top:1px solid #e9e9f3; }
  .gm31-recent-heading { padding:17px 17px 10px; background:#fbfaff; }
  .gm31-recent-heading h3 { color:#30324d; margin:0 0 6px; font-size:17px; line-height:1.35; font-weight:850; }
  .gm31-recent-heading p { color:#7f869e; margin:0; font-size:14px; line-height:1.45; }
  .gm31-recent-list { padding:4px 10px 10px; }
  .gm31-recent-empty { font-size:14px; line-height:1.6; padding:10px 8px; margin:0; color:#7a849d; }
  .gm31-recent-shop { display:flex; align-items:center; gap:10px; padding:9px 4px; min-height:65px;
     border-bottom:1px solid #eef0f6; text-decoration:none!important; color:inherit!important; }
  .gm31-recent-shop:last-child { border-bottom:0; }
  .gm31-recent-shop:hover { background:#f7f5ff; }
  .gm31-recent-photo { display:flex; align-items:center; justify-content:center; flex:0 0 58px; width:58px; height:48px; border-radius:7px; background:#eeecf6; overflow:hidden; }
  .gm31-recent-photo img { width:100%; height:100%; object-fit:cover; }
  .gm31-recent-no-photo { color:#807b90; font-size:12px; }
  .gm31-recent-shoptext { display:flex; flex:1; min-width:0; flex-direction:column; gap:5px; }
  .gm31-recent-shoptext strong { font-size:15px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#2c344d; }
  .gm31-recent-shoptext small { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#858da4; }
  .gm31-recent-shop:hover strong { color:#6559da; }
}

/* GM32: full-width text-only PC detail header, scrollable exact-locality directory. */
@media (min-width:1025px) {
  html.gm20-detail-enabled body .gm30-detail-primary .gm20-detail-summary {
    display:block!important; grid-template-columns:none!important; min-height:0!important;
  }
  html.gm20-detail-enabled body .gm30-detail-primary .gm20-detail-summary-text {
    width:100%!important; padding:22px 25px!important;
  }
  .gm30-detail-primary .gm20-detail-image { display:none!important; }
  .gm32-side-scroll { max-height:460px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#c5bfed #f9f8fe; }
  .gm32-side-scroll .gm30-side-shop { min-height:70px; }
  .gm30-side-title p strong { color:#6152d8; font-weight:900; }
}
