/* ============================================================================
   global.css — design tokens + base styles (ported from Next.js globals.css)
   No build step. Plain CSS variables. Component styles live in css/components/*.
   ========================================================================== */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

/* @FONTWARNING[{"type": "restricted", "family": "Pretendard-Light", "weight": "300", "style": "normal", "allowsCrossOrigin": true}] */

@font-face {
  font-family: 'Pretendard';
  src: url('/inc/fonts/pretendard/Pretendard-Light.woff2')
    format('opentype'); 
  font-display: swap;
  font-weight: 300;
  font-style: normal;
}
/* @FONTWARNING[{"type": "restricted", "family": "Pretendard-Regular", "weight": "400", "style": "normal", "allowsCrossOrigin": true}] */

@font-face {
  font-family: 'Pretendard';
  src: url('/inc/fonts/pretendard/Pretendard-Regular.woff2')
    format('opentype');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}
/* @FONTWARNING[{"type": "restricted", "family": "Pretendard-Bold", "weight": "700", "style": "normal", "allowsCrossOrigin": true}] */

@font-face {
  font-family: 'Pretendard';
  src: url('/inc/fonts/pretendard/Pretendard-Bold.woff2')
    format('opentype');
  font-display: swap;
  font-weight: 700;
  font-style: normal;
}
/* @FONTWARNING[{"type": "restricted", "family": "Pretendard-SemiBold", "weight": "600", "style": "normal", "allowsCrossOrigin": true}] */

@font-face {
  font-family: 'Pretendard';
  src: url('/inc/fonts/pretendard/Pretendard-SemiBold.woff2')
    format('opentype');
  font-display: swap;
  font-weight: 600;
  font-style: normal;
}
/* @FONTWARNING[{"type": "restricted", "family": "Pretendard-Medium", "weight": "500", "style": "normal", "allowsCrossOrigin": true}] */

@font-face {
  font-family: 'Pretendard';
  src: url('/inc/fonts/pretendard/Pretendard-Medium.woff2')
    format('opentype');
  font-display: swap;
  font-weight: 500;
  font-style: normal;
}
/* @FONTWARNING[{"type": "restricted", "family": "Pretendard-ExtraBold", "weight": "400", "style": "normal", "allowsCrossOrigin": true}] */

@font-face {
  font-family: 'Pretendard';
  src: url('/inc/fonts/pretendard/Pretendard-ExtraBold.woff2')
    format('opentype');
  font-display: swap;
  font-weight: 800;
  font-style: normal;
}


:root {
  /* ── Brand colors ─────────────────────────────────────────────────────── */
  --color-brand-red: #cf655e;
  --color-brand-blue: #2746c2;
  /* Dynamic brand accent — resolved at runtime via --brand-bg inline style */
  --color-brand-accent: var(--brand-bg, var(--color-brand-blue));

  /* ── Neutral scale ────────────────────────────────────────────────────── */
  --color-black: #000000;
  --color-neutral-900: #111827;
  --color-neutral-800: #1f2937;
  --color-neutral-500-warm: #8d8787;
  --color-neutral-500: #6b7280;
  --color-neutral-400: #beb9b9;
  --color-neutral-300-warm: #d7d3d3;
  --color-neutral-300: #d1d5db;
  --color-neutral-200-warm: #e9e7e7;
  --color-neutral-200: #e5e7eb;
  --color-neutral-150: #efefef;
  --color-neutral-100-warm: #f4f3f3;
  --color-neutral-100: #f3f4f6;
  --color-neutral-75: #f7f7f7;
  --color-neutral-50: #f9fafb;
  --color-white: #ffffff;

  /* ── Typography ───────────────────────────────────────────────────────── */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Breakpoints (reference) ──────────────────────────────────────────── */
  --breakpoint-sm: 375px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1440px;
  --breakpoint-2xl: 1920px;

  /* ── Shared animation easing (matches customer CustomEase ".4,.31,.19,1") ─ */
  --ease-brand: cubic-bezier(0.4, 0.31, 0.19, 1);

  /* ── Brand card gradients (BrandCategoriesSection / FeaturedProduct) ────── */
  --color-gradient-panpirin-from: #1e3a8a;
  --color-gradient-panpirin-to: #2746c2;
  --color-gradient-benachivo-from: #1f7a45;
  --color-gradient-benachivo-to: #49a267;
  --color-gradient-champ-from: #b78012;
  --color-gradient-champ-to: #f2b632;
  --color-gradient-noscarna-from: #c95d8a;
  --color-gradient-noscarna-to: #e28dae;
  --color-gradient-melatoning-from: #5b5be0;
  --color-gradient-melatoning-to: #8b8bf5;
  --color-gradient-acnon-from: #0f8a6c;
  --color-gradient-acnon-to: #34c1a1;
  --color-gradient-aclin-from: #2e9e8c;
  --color-gradient-aclin-to: #7cdac8;
  --color-gradient-d-panthenol-from: #1d7e9c;
  --color-gradient-d-panthenol-to: #59b5cf;
  --color-gradient-nodrana-from: #4a67d6;
  --color-gradient-nodrana-to: #87a0ff;
  --color-gradient-turbinu-from: #0c728c;
  --color-gradient-turbinu-to: #28a7c8;
  --color-gradient-itchnon-from: #8a4ab2;
  --color-gradient-itchnon-to: #c57ae8;
  --color-gradient-keranon-from: #756036;
  --color-gradient-keranon-to: #b49859;

  /* Swiper pagination */
  --color-swiper-pagination-active: #555555;
  --color-swiper-pagination-inactive: #bbbbbb;

  /* Video card gradients */
  --color-gradient-video-benachivo-from: #2e7d32;
  --color-gradient-video-benachivo-to: #79c257;
  --color-gradient-video-melatoning-from: #5147d6;
  --color-gradient-video-melatoning-to: #8b83ff;
  --color-gradient-video-panpirin-from: #0f245c;
  --color-gradient-video-panpirin-to: #2746c2;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
.new-body *, .ui-drawer-wrap * {
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
   margin: 0px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* a blue color as a generic focus style */
button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}
a {
  text-decoration: none;
}


.new-body img {
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Layout helpers ───────────────────────────────────────────────────── */
.app-main {
  position: relative;
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* ── Utility ──────────────────────────────────────────────────────────── */
.text-brand-red {
  color: var(--color-brand-red);
}

.text-brand-blue {
  color: var(--color-brand-blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.app-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-neutral-200);
  border-top-color: var(--color-brand-red);
  border-radius: 50%;
  animation: app-spin 0.7s linear infinite;
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading / empty placeholders */
.state-loading,
.state-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--color-neutral-500);
  font-size: 15px;
}

.no-js-fallback {
  opacity: 1;
}

.select-custom-re {
  position: relative;
  width: 100%;
}
.btn-select-custom-re {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-neutral-300-warm);
  background: var(--color-white);
  font-size: 14px;
  text-align: left;
  color: var(--color-black);
  transition:
    color 0.2s var(--ease-brand),
    border-color 0.2s var(--ease-brand);
}
.btn-select-custom-re:hover,
.btn-select-custom-re.on {
  border-color: var(--color-brand-red);
}
.btn-select-custom-re:disabled {
  background: var(--color-neutral-100-warm);
  border-color: var(--color-neutral-300-warm);
  color: var(--color-neutral-500-warm);
  cursor: not-allowed;
}
.select-dropdown-re {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1000;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-300-warm);
  max-height: 260px;
  overflow-y: auto;
}
.select-custom--up .select-dropdown-re {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 12px;
}
.custom-opt-re {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-black);
  cursor: pointer;
  height: 64px;
  transition:
    color 0.2s var(--ease-brand),
    background 0.2s var(--ease-brand);
}
.custom-opt-re:not(:last-child) {
  border-bottom: 1px solid var(--color-neutral-200-warm);
}
.custom-opt-re:hover {
  background: var(--color-neutral-75);
}

/* ── Custom select arrow ───────────────────────────────────────────────────── */
.btn-select-custom-re::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background: url('/inc/renewal/images/arrow-down.svg') center / contain no-repeat;
  flex-shrink: 0;
  transition: background-image 0.2s var(--ease-brand);
}
.btn-select-custom-re.on::after {
  background-image: url('/inc/renewal/images/arrow-up.svg');
}

/* ── Icon system (.ap-icon) ────────────────────────────────────────────────── */
.ap-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.ap-icon--close {
  -webkit-mask-image: url('/inc/renewal/images/close.svg');
  mask-image: url('/inc/renewal/images/close.svg');
}
.ap-icon--menu {
  -webkit-mask-image: url('/inc/renewal/images/menu.svg');
  mask-image: url('/inc/renewal/images/menu.svg');
}
.ap-icon--search {
  -webkit-mask-image: url('/inc/renewal/images/search.svg');
  mask-image: url('/inc/renewal/images/search.svg');
}
.ap-icon--nav-left {
  -webkit-mask-image: url('/inc/renewal/images/nav-left.svg');
  mask-image: url('/inc/renewal/images/nav-left.svg');
}
.ap-icon--nav-right {
  -webkit-mask-image: url('/inc/renewal/images/nav-right.svg');
  mask-image: url('/inc/renewal/images/nav-right.svg');
}
.ap-icon--play {
  -webkit-mask-image: url('/inc/renewal/images/play.svg');
  mask-image: url('/inc/renewal/images/play.svg');
}
.ap-icon--close-circle {
  -webkit-mask-image: url('/inc/renewal/images/close-circle.svg');
  mask-image: url('/inc/renewal/images/close-circle.svg');
}

.text-box-re {
  height: 56px;
  border: 1px solid var(--color-neutral-300-warm);
  padding: 0 19px;
}
.text-box-re::placeholder {
  height: 56px;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-neutral-500-warm);
}
.text-box-re:hover {
  border-color: var(--color-brand-red);
}
.text-box-re:focus-visible {
  outline: 1px solid var(--color-brand-red);
}

.select-box-re {
  position: relative;
  border: 1px solid transparent;
}
.select-box-re:focus-visible,
.select-box-re:focus-within {
  outline: none;
}
.select-box-re .text-box-re {
  display: flex;
  align-items: center;
  gap: 15px;
}
.select-box-re .dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  z-index: 20;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-300-warm);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  max-height: 330px;
  overflow-y: auto;
  width: 100%;
}

/* ── PHARMACY-FINDER CSS ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
/* ============================================================================
   pharmacy-finder.css — pharmacy finder: section, form, region, multiselect,
   result, result card. (Map styles live in components/GoogleMap.)
   The multiselect loading spinner uses the shared .app-spinner (global.css).
   ========================================================================== */
.pf-section {
  padding: 64px 0;
}
.pf-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Mobile banner ────────────────────────────────────────────────────── */
.pf-mo {
  position: relative;
}
.pf-mo__content {
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}
.pf-mo__content .secondary-button {
  margin: 16px 20px 0;
}
.pf-mo__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}
.pf-mo__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-pc {
  display: none;
}

@media (min-width: 768px) {
  .pf-mo {
    display: none;
  }
  .pf-pc {
    display: block;
  }
  .pf-pc__mapwrap {
    position: relative;
    margin-top: 90px;
    overflow: hidden;
    min-height: 800px;
  }
  .pf-pc__map {
    position: absolute;
    inset: 0;
    min-height: 800px;
  }
  .pf-pc__overlay {
    position: absolute;
    padding: 40px 0 40px 12.5dvw;
    z-index: 500;
  }
  .js-pc-form,
  .pf-pc__overlay {
    height: 100%;
    width: 390px;
  }
}

.pf-pc__result-overlay {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 12.5dvw;
  width: 390px;
  background: var(--color-white);
  overflow-y: auto;
}

/* ── Form ─────────────────────────────────────────────────────────────── */
.pf-form {
  background: var(--color-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.pf-form__header {
  padding: 20px 20px 0;
}
.pf-form__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.pf-form__body {
  padding: 30px 20px;
  padding-bottom: 100px;
  overflow-y: auto;
  height: 100%;
}
.pf-form__info {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-neutral-500);
  align-items: center;
}
.pf-form__footer {
  padding: 0 20px 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.pf-form__submit {
  width: 100%;
  height: 52px;
  border: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
}
.pf-form__submit:hover {
  background: var(--color-brand-red);
}
.pf-form__submit:disabled {
  background: var(--color-neutral-300);
  cursor: default;
}

/* ── Product multi-select ─────────────────────────────────────────────── */
.pf-ms {
	margin-bottom: 20px;
}
.pf-ms__labelrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pf-ms__label {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-black);
}
.pf-ms__count {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-brand-red);
}
.pf-ms__inputwrap {
  position: relative;
}
.pf-ms__input.text-box-re {
  width: 100%;
}
.pf-ms__suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: none;
  text-align: left;
}
.pf-ms__suggestion:hover {
  background: var(--color-neutral-75);
}
.pf-ms__suggestion:not(:last-child) {
  border-bottom: 1px solid var(--color-neutral-200);
}
.pf-ms__sug-img,
.pf-ms__card-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-neutral-75);
  overflow: hidden;
}
.pf-ms__sug-img img,
.pf-ms__card-img img {
  max-width: 80%;
  max-height: 80%;
}
.pf-ms__sug-text,
.pf-ms__card-text {
  flex: 1;
  min-width: 0;
}
.pf-ms__sug-name,
.pf-ms__card-name {
  display: block;
  line-height: 1.5;
  color: var(--color-black);
  font-weight: 600;
}
.pf-ms__sug-name {
  font-size: 13px;
}
.pf-ms__card-name {
  font-size: 14px;
}
.pf-ms__sug-desc,
.pf-ms__card-desc {
  display: block;
  line-height: 1.5;
  color: var(--color-neutral-500-warm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-ms__sug-desc {
  font-size: 12px;
}
.pf-ms__card-desc {
  font-size: 13px;
}
.pf-ms__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 14px;
  color: var(--color-neutral-500);
}
.pf-ms__selected {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 255px;
  overflow-y: auto;
}
.pf-ms__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--color-brand-red);
  height: 76px;
}
.pf-ms__remove .ap-icon--close-circle {
  font-size: 16px;
  background: var(--color-neutral-200-warm);
}

/* ── Region select ────────────────────────────────────────────────────── */
.pf-region {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pf-region__town.text-box-re {
  width: 100%;
}

/* ── Result panel ─────────────────────────────────────────────────────── */
.pf-result {
  background: var(--color-white);
}
.pf-result .js-list {height: 400px; overflow-y: auto;}

.pf-result__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-neutral-150);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 1;
}
.pf-result__back {
  border: 0;
  background: none;
  display: inline-flex;
}
.pf-result__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.pf-result__map {
  height: 240px;
}
.pf-result__map > div {
  height: 100%;
}
/* Divider between the inline map and the result body (mobile only — the map
   element is removed on PC). Shown only while the map is visible. */
.pf-result__map:not(.is-hidden) + .pf-result__body::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin: 12px auto;
  background: var(--color-neutral-300-warm);
}
.pf-result__count {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-neutral-200-warm);
  white-space: break-spaces;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}
.pf-result__count .result-address {
  color: var(--color-neutral-500-warm);
  font-size: 12px;
  line-height: 1.5;
}
.pf-result__count .text-brand-red {
  font-weight: 700;
}
.pf-result__empty {
  padding: 40px 0;
  text-align: center;
  color: var(--color-neutral-500);
}



.pf-result__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pf-result__list li:not(:last-child) {
  border-bottom: 1px solid var(--color-neutral-200-warm);
}

/* ── Result card ──────────────────────────────────────────────────────── */
.pf-card {
  padding: 20px;
}
.pf-card__name {
  font-size: 16px;
  line-height: 2;
  font-weight: 600;
}
.pf-card__address {
  font-size: 12px;
  line-height: 2;
  color: var(--color-neutral-500-warm);
}
.pf-card__products {
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-direction: column;
  margin-top: 8px;
}
.pf-card__product {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 2;
  font-weight: 500;
  color: var(--color-brand-red);
}
.pf-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-brand-red);
  flex-shrink: 0;
}
.pf-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.pf-card__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--color-black);
  background: var(--color-white);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.pf-result__more-item {text-align: center;}

.pf-result__more {
	margin-top: 10px;
	text-align: center;
}

.pf-result__more.js-more {
	min-width: 160px;
	height: 48px;
	padding: 0 24px;
	border: 1px solid #222;
	border-radius: 24px;
	background: #fff;
	font-size: 15px;
	cursor: pointer;
}

.pf-result__more.js-more:hover {
	background: #f5f5f5;
}

/* Item 3: the pharmacy finder drawer spans the full viewport width on mobile. */
.pharmacy-drawer-wrap .ui-drawer,
.pharmacy-result-drawer-wrap .ui-drawer {
  width: 100%;
  max-width: 100%;
}

/* Result drawer stacks on top of the form drawer. */
.pharmacy-result-drawer-wrap {
  z-index: 1010;
}
.pharmacy-result-drawer-wrap .ui-drawer {
  z-index: 1011;
}

@media (min-width: 768px) {
  .pf-result .js-list {height: 580px;}
	
  .pf-section {
    padding: 192px 0 0 0;
  }

  .pf-form__header {
    height: 60px;
    padding: 0 24px;
    border-bottom: 1px solid var(--color-neutral-200-warm);
    display: flex;
    align-items: center;
  }

  .pf-form__title {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
  }

  .pf-ms__label {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
  }

  .js-info-text {
    font-size: 11px;
  }

  .pf-result__count {
    font-size: 16px;
  }
  .pf-result__count .result-address {
    font-size: 14px;
  }
}

/* ── FLOATING-MAP-BUTTON CSS ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.floating-map-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-black);
  transition: width 0.3s ease, border-radius 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: fmb-pulse 2s infinite;
  overflow: hidden;
}
/* 스크롤 중 */
.floating-map-btn.is-scrolling {
	width: 162px;
	height: 56px;
	border-radius: 28px;
}

.floating-map-btn img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

/* active 이미지는 162x56 버튼 영역에 맞춤 */
.floating-map-btn.is-scrolling img {
	width: 162px;
	height: 56px;
}

@keyframes fmb-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@media (min-width: 768px) {
  .floating-map-btn {
    display: none;
  }
}

/* ── UNIFIED-SEARCH-PANEL CSS ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.usp {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.usp__inputrow {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 56px;
  padding: 0 19px;
  border: 1px solid var(--color-neutral-300);
  background: var(--color-white);
}
.usp__searchicon {
  font-size: 20px;
  color: var(--color-neutral-500);
  display: inline-flex;
}
.usp__input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 16px;
  background: transparent;
}
.usp__clear {
  border: 0;
  background: none;
  color: var(--color-neutral-400);
  font-size: 18px;
  display: inline-flex;
}
.usp__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.usp__tag {
  display: inline-flex;
  padding: 8px 16px;
  background: var(--color-neutral-100-warm);
  font-size: 12px;
  line-height: 14px;
  color: var(--color-black);
}
.usp__suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
}
.usp__suggestion:not(:last-child) {
  border-bottom: 1px solid var(--color-neutral-200-warm);
}
.usp__suggestion:hover {
  background: var(--color-neutral-100-warm);
}
.usp__sug-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-neutral-100-warm);
  overflow: hidden;
}
.usp__sug-img img {
  max-width: 80%;
  max-height: 80%;
}
.usp__sug-text {
  flex: 1;
  min-width: 0;
}
.usp__sug-name {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-black);
}
.usp__sug-desc {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-neutral-500-warm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usp__sug-open {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}
.usp__loading,
.usp__msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  color: var(--color-neutral-500);
  font-size: 14px;
}
.usp__empty {
  margin-top: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
}
.usp__empty-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
.usp__empty-desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-neutral-500-warm);
  white-space: pre-line;
}
.usp__empty .secondary-button {
  width: fit-content;
  align-self: center;
}

/* ── Desktop ──────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .select-box-re {
    height: 60px;
  }

  .ap-icon--search {
    width: 28px;
    height: 28px;
  }

  .usp__input {
    font-size: 20px;
    line-height: 24px;
    color: var(--color-neutral-500-warm);
  }

  .usp__tags {
    justify-content: center;
  }

  .usp__tag {
    padding: 4px 16px;
    height: 34px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
  }

  .usp__empty-title {
    margin: 100px 0 0 0;
    font-size: 48px;
    line-height: 86px;
    font-weight: 700;
  }
  .usp__empty-desc {
    margin: 26px 0 0 0;
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
  }
  .usp__empty .secondary-button {
    margin: 32px 0 0 0;
    font-size: 16px;
    line-height: 26px;
  }
}

/* ── SEARCH-DRAWER CSS ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.search-drawer-wrap .ui-drawer {
  width: 100%;
  max-width: 100%;
}

/* ── KAKAOMAP CSS ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.kmap-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}