/* 건마나라 V49.4 | 모바일 7개 현장 제보 보정
 * 새 디자인은 1024px 이하에서만 유효. PC V48 색상/레이아웃 비변경.
 * 서버 액션, 제휴점 권한, 게시글/쪽지 저장, DB 스키마는 수정하지 않음.
 */
@media screen and (max-width:1024px) {
  /* 1. 히어로: 사진 원본을 100% 보여주고 텍스트는 이미지 위 그라데이션에 통합. */
  html.gm49-mobile .gm49-hero {height:auto!important;background:#39304b!important;overflow:hidden!important;}
  html.gm49-mobile .gm49-hero-track {display:block!important;height:auto!important;}
  html.gm49-mobile .gm49-hero-slide {display:block!important;position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;aspect-ratio:1600 / 686;overflow:hidden!important;background:#3b304c;}
  html.gm49-mobile .gm49-hero-slide[hidden] {display:none!important;}
  html.gm49-mobile .gm49-hero-slide>picture {display:block!important;width:100%!important;height:auto!important;aspect-ratio:1600 / 686;position:relative!important;inset:auto!important;background:#3b304c!important;}
  html.gm49-mobile .gm49-hero-slide>picture>img {display:block!important;width:100%!important;height:auto!important;aspect-ratio:1600 / 686;object-fit:contain!important;object-position:center!important;}
  html.gm49-mobile .gm49-hero-slide::before {content:"";display:block!important;position:absolute!important;inset:0;z-index:2;pointer-events:none;background:linear-gradient(0deg,rgba(24,16,36,.86) 0%,rgba(24,16,36,.61) 36%,rgba(24,16,36,.04) 81%);}
  html.gm49-mobile .gm49-hero-copy {display:flex!important;position:absolute!important;z-index:3!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;grid-row:auto!important;grid-column:auto!important;min-height:0!important;height:auto!important;max-height:100%!important;justify-content:flex-end!important;align-items:flex-start!important;gap:2px!important;padding:15px 62px 14px 17px!important;background:transparent!important;color:#fff!important;pointer-events:none;}
  html.gm49-mobile .gm49-hero-copy>span {display:block!important;margin:0 0 3px!important;color:#efe0ff!important;font-size:12px!important;font-weight:750!important;line-height:1.3!important;}
  html.gm49-mobile .gm49-hero-copy h1 {color:#fff!important;white-space:normal!important;font-size:clamp(17px,4.8vw,23px)!important;line-height:1.26!important;font-weight:850!important;letter-spacing:-.85px!important;margin:0!important;text-shadow:0 2px 7px rgba(0,0,0,.4)!important;}
  html.gm49-mobile .gm49-hero-copy h1 strong {color:#f0d3ff!important;}
  html.gm49-mobile .gm49-hero-copy p {display:none!important;}
  html.gm49-mobile .gm49-hero-dots {left:auto!important;right:13px!important;bottom:13px!important;z-index:5!important;}
  html.gm49-mobile .gm49-hero-dots button {background:rgba(255,255,255,.55)!important;}
  html.gm49-mobile .gm49-hero-dots button.is-active {background:#fff!important;}
  html.gm49-mobile .gm49-search-box {margin-top:10px!important;}

  /* 3. 햄버거: 기존 회원 메뉴와 분리된 관리자 전용 진입 카드. 권한은 기존 PHP 조건 그대로. */
  html.gm49-mobile .gm49-drawer-account .gm494-partner-entry {display:flex!important;align-items:center!important;gap:11px!important;min-height:72px!important;margin:16px 0 0!important;padding:12px 13px!important;border:1px solid #9660d4!important;border-radius:13px!important;background:linear-gradient(115deg,#7650b4,#6239a3)!important;color:#fff!important;box-shadow:0 6px 18px rgba(75,36,139,.17)!important;text-decoration:none!important;}
  html.gm49-mobile .gm494-partner-entry-icon {display:flex;align-items:center;justify-content:center;flex:0 0 41px;width:41px;height:41px;border-radius:11px;background:rgba(255,255,255,.2);font-size:19px;}
  html.gm49-mobile .gm494-partner-entry-copy {display:flex;flex-direction:column;min-width:0;flex:1;gap:2px;line-height:1.35;}
  html.gm49-mobile .gm494-partner-entry-copy strong {color:#fff!important;font-size:16px!important;font-weight:850!important;}
  html.gm49-mobile .gm494-partner-entry-copy small {color:#eee3ff!important;font-size:11.5px!important;font-weight:600!important;overflow-wrap:break-word;}
  html.gm49-mobile .gm494-partner-entry-arrow {font-size:12px;opacity:.9;flex-shrink:0;}

  /* 6. 커뮤니티: 새 5종 탭만 남기고 bbs.php에서 중복 출력한 구형 게시판 메뉴 숨김.
     #bbslist 내부의 카테고리 필터 .ca_list는 건드리지 않는다. */
  html.gm49-mobile .gm493-board .bbs-wrap > ul.type-list,
  html.gm49-mobile .gm493-board .bbs-wrap > .type-list,
  html.gm49-mobile .gm493-board .gm37-board-tabs {display:none!important;}
  html.gm49-mobile .gm493-board .gm493-tabstrip {position:relative;z-index:1;}

  /* 4. 제휴점: JS에서 검증한 원본 4개 탭만 숨기고, 실제 업체별 '통계' 액션은 유지. */
  html.gm49-mobile .gm493-cpinfo .gm494-legacy-partner-nav {display:none!important;}
  html.gm49-mobile .gm493-cpinfo .gm494-partner-source {display:none!important;}
  html.gm49-mobile .gm493-cpinfo .gm494-partner-source-item {display:none!important;}
  html.gm49-mobile .gm493-cpinfo .gm494-partner-tabs,
  html.gm49-mobile .gm493-cpinfo .gm40-partner-tabs {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0 0 16px!important;padding:0!important;background:transparent!important;border:0!important;overflow:visible!important;}
  html.gm49-mobile .gm493-cpinfo .gm494-partner-tabs .gm494-tab,
  html.gm49-mobile .gm493-cpinfo .gm40-partner-tabs .gm40-tab {display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:49px!important;width:100%!important;min-width:0!important;padding:10px 7px!important;color:#684e8d!important;background:#f5effc!important;border:1px solid #e5d8f3!important;border-radius:12px!important;font-size:14px!important;line-height:1.25!important;font-weight:800!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer;}
  html.gm49-mobile .gm493-cpinfo .gm494-partner-tabs .gm494-tab i,
  html.gm49-mobile .gm493-cpinfo .gm40-partner-tabs .gm40-tab i {font-size:16px!important;color:#8965b9!important;}
  html.gm49-mobile .gm493-cpinfo .gm494-partner-tabs .gm494-tab.is-current,
  html.gm49-mobile .gm493-cpinfo .gm40-partner-tabs .gm40-tab.is-current {background:#754ab6!important;border-color:#754ab6!important;color:#fff!important;box-shadow:0 5px 13px rgba(72,40,127,.14)!important;}
  html.gm49-mobile .gm493-cpinfo .gm494-partner-tabs .gm494-tab.is-current i,
  html.gm49-mobile .gm493-cpinfo .gm40-partner-tabs .gm40-tab.is-current i {color:#fff!important;}
  html.gm49-mobile .gm493-cpinfo .gm40-legacy-tabs,
  html.gm49-mobile .gm493-cpinfo .gm40-legacy-tab-link,
  html.gm49-mobile .gm493-cpinfo .gm40-legacy-tab-item {display:none!important;}
  html.gm49-mobile .gm493-cpinfo .content .gm40-legacy-tabs {display:none!important;}
  html.gm49-mobile .gm493-cpinfo .content .gm40-shop-table {overflow-x:auto!important;}
  html.gm49-mobile .gm493-cpinfo .gm40-shop-table td {overflow-wrap:anywhere;}
  html.gm49-mobile .gm493-cpinfo .gm40-shop-actions :is(a,button,input[type="button"],input[type="submit"]) {min-height:39px!important;border-radius:9px!important;}

  /* 5. 업소등록: list_area/write.php의 실제 .writeTable 및 동적 코스 입력을 재배열. */
  html.gm49-mobile .gm493-write .bbs-wrap,
  html.gm49-mobile .gm493-write #bbswrite,
  html.gm49-mobile .gm493-write #bbswrite > form {display:block!important;float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;box-sizing:border-box!important;}
  html.gm49-mobile .gm493-write #bbswrite {margin:0!important;padding:13px 11px 18px!important;background:#fff!important;border:1px solid #e9dff3;border-radius:16px!important;}
  html.gm49-mobile .gm493-write #bbswrite .bbs_title {width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0 0 12px!important;padding:6px 2px 13px!important;color:#352645!important;font-size:19px!important;line-height:1.35!important;font-weight:850!important;border-bottom:1px solid #ede4f5;}
  html.gm49-mobile .gm493-write #bbswrite table.writeTable {display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;border:0!important;table-layout:auto!important;}
  html.gm49-mobile .gm493-write #bbswrite .writeTable tbody {display:block!important;width:100%!important;max-width:100%!important;}
  html.gm49-mobile .gm493-write #bbswrite .writeTable tbody > tr {display:block!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0!important;padding:12px 0!important;border-bottom:1px solid #f0eaf5!important;background:transparent!important;}
  html.gm49-mobile .gm493-write #bbswrite .writeTable tbody > tr[style*="display:none"],
  html.gm49-mobile .gm493-write #bbswrite .writeTable tbody > tr[style*="display: none"] {display:none!important;}
  html.gm49-mobile .gm493-write #bbswrite .writeTable tbody > tr > td {display:block!important;box-sizing:border-box!important;float:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;margin:0!important;padding:4px 1px!important;text-align:left!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere!important;}
  html.gm49-mobile .gm493-write #bbswrite .writeTable tbody > tr > td.title {display:block!important;margin:0 0 3px!important;color:#624a79!important;font-size:14px!important;font-weight:850!important;}
  html.gm49-mobile .gm493-write #bbswrite .writeTable :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea) {box-sizing:border-box!important;max-width:100%!important;min-width:0!important;min-height:45px!important;font-size:15px!important;}
  html.gm49-mobile .gm493-write #bbswrite .writeTable td:not(.title)>input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  html.gm49-mobile .gm493-write #bbswrite .writeTable td:not(.title)>select {width:100%!important;height:auto!important;min-height:45px!important;border-radius:10px!important;border:1px solid #e2d7ed!important;padding:10px!important;background:#faf9fd;}
  html.gm49-mobile .gm493-write #bbswrite .hint {height:auto!important;max-width:100%!important;font-size:13px!important;line-height:1.55!important;white-space:normal!important;margin:5px 0!important;}
  html.gm49-mobile .gm493-write #bbswrite .uio__address {display:flex!important;flex-direction:column!important;gap:9px!important;width:100%!important;max-width:100%!important;}
  html.gm49-mobile .gm493-write #bbswrite .uio__address .address-row {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:stretch!important;width:100%!important;}
  html.gm49-mobile .gm493-write #bbswrite .uio__address .address-row input {width:100%!important;min-width:0!important;}
  html.gm49-mobile .gm493-write #bbswrite .uio__address .address-row button {min-height:44px!important;white-space:nowrap!important;padding:8px 11px!important;}
  html.gm49-mobile .gm493-write #bbswrite :is(.uio__address,.editbox,#courseContainer,#coursePreview) {max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer {display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row {max-width:100%!important;min-width:0!important;margin:0!important;padding:12px 10px!important;border:1px solid #e8def0!important;border-radius:11px!important;background:#faf8fc!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row>div:first-child {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row>div:first-child [name="course_desc[]"] {grid-column:1/-1!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row>div:first-child .removeCourse {grid-column:1/-1!important;min-height:42px!important;border-radius:9px!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row>div:nth-child(2) {display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:center!important;margin:12px 0 0!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row>div:nth-child(2)>span:first-child {width:100%!important;color:#694d81!important;font-weight:780!important;font-size:14px!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row>div:nth-child(2)>select {flex:1 1 35%!important;width:auto!important;min-width:0!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row>div:nth-child(2)>input {flex:1 1 100%!important;width:100%!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row input {width:100%!important;min-width:0!important;max-width:100%!important;padding:8px!important;border:1px solid #e3d7ef!important;border-radius:8px!important;background:#fff!important;}
  html.gm49-mobile .gm493-write #bbswrite #courseContainer .course-row select {max-width:100%!important;min-width:0!important;padding:8px 5px!important;border-radius:8px!important;background:#fff!important;}
  html.gm49-mobile .gm493-write #bbswrite :is(#coursePreview,.editbox) {width:100%!important;overflow-wrap:anywhere!important;}
  html.gm49-mobile .gm493-write #bbswrite :is(iframe,object,video,canvas,table) {max-width:100%!important;}
  html.gm49-mobile .gm493-write #bbswrite .editbox textarea {max-width:100%!important;box-sizing:border-box!important;}
  html.gm49-mobile .gm493-write #bbswrite .bottombox {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:14px 0 4px!important;}
  html.gm49-mobile .gm493-write #bbswrite .bottombox input {width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;border-radius:11px!important;font-size:15px!important;}
  html.gm49-mobile .gm493-write #bbswrite .bottombox input.btn-submit {background:#7547b8!important;color:#fff!important;border-color:#7547b8!important;}

  /* 7. 프리미엄 지역: 목록의 좌우 사진 배지 + 홈 프리미엄 카드 우상단 배지. */
  html.gm49-mobile .gm49-shop-photo .gm494-shop-region {position:absolute!important;z-index:5!important;top:9px!important;right:9px!important;left:auto!important;display:flex!important;align-items:center!important;gap:4px!important;max-width:49%!important;min-height:26px!important;padding:5px 7px!important;border-radius:8px!important;background:rgba(27,22,37,.84)!important;color:#fff!important;font-size:11px!important;line-height:1.25!important;font-weight:850!important;white-space:normal!important;text-align:right!important;overflow-wrap:anywhere;box-shadow:0 2px 6px rgba(0,0,0,.16)!important;}
  html.gm49-mobile .gm49-shop-photo .gm494-shop-region i {font-size:10px;}
  html.gm49-mobile .gm492-premium-photo .gm494-photo-region {display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;position:absolute!important;z-index:10!important;top:7px!important;right:7px!important;left:auto!important;max-width:50%!important;min-height:25px!important;border-radius:8px!important;padding:5px 7px!important;background:rgba(27,22,37,.85)!important;color:#fff!important;font-size:11px!important;line-height:1.25!important;font-weight:850!important;white-space:normal!important;text-align:right!important;box-shadow:0 2px 6px rgba(0,0,0,.16)!important;}
  html.gm49-mobile .gm492-premium-photo .gm494-photo-region span {min-width:0;overflow-wrap:anywhere;}
  html.gm49-mobile .gm492-premium-meta .gm494-meta-pin {font-size:11px;color:#9262bb;margin-right:3px;}
}
@media screen and (max-width:359px) {
  html.gm49-mobile .gm49-hero-copy {padding:10px 48px 11px 11px!important;}
  html.gm49-mobile .gm49-hero-copy h1 {font-size:16.5px!important;}
  html.gm49-mobile .gm49-hero-copy>span {font-size:11px!important;}
  html.gm49-mobile .gm492-premium-photo .gm494-photo-region,
  html.gm49-mobile .gm49-shop-photo .gm494-shop-region {font-size:10px!important;padding:4px 5px!important;}
  html.gm49-mobile .gm494-partner-entry-copy small {font-size:11px!important;}
}
