.buyback-guarantee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: clamp(48px, 6vw, 88px) clamp(18px, 5vw, 90px);
  background: #fff;
  color: #252525;
  overflow: hidden;
  text-align: center;
}
.buyback-guarantee-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}
.buyback-guarantee-eyebrow {
  margin: 0 0 17px !important;
  padding: 7px 13px;
  border: 1px solid #bababa;
  border-radius: 99px;
  color: #555 !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.buyback-guarantee h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.05em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.buyback-guarantee-details {
  max-width: 740px;
}
.buyback-guarantee-details > p {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.65;
  color: #5b5b5b;
  word-break: keep-all;
}
.buyback-guarantee a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
  padding: 15px 20px;
  border-radius: 8px;
  background: #303030;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition:
    transform 0.25s,
    background 0.25s;
}
.buyback-guarantee a:hover {
  background: #1c1c1c;
  color: #fff;
  transform: translateY(-3px);
}
.buyback-guarantee-image {
  display: block;
  flex: none;
  width: min(100%, 580px);
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.buyback-guarantee-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.location-banner {
  padding: clamp(44px, 6vw, 90px) clamp(16px, 4vw, 70px) clamp(50px, 6vw, 95px);
  background: #fff;
}
.location-banner-button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 34%);
  align-items: stretch;
  width: min(100%, 1600px);
  min-height: 270px;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #efefef;
  color: #222;
  text-align: start;
  box-shadow: 0 16px 40px #0000000a;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.location-banner-button:hover {
  box-shadow: 0 22px 50px #28578b22;
  transform: translateY(-4px);
  color: #222;
}
.location-banner-button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 5px;
}
.location-banner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
  min-width: 0;
  padding: 38px clamp(24px, 5vw, 76px);
}
.location-banner-eyebrow {
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 700;
  color: #666;
}
.location-banner-copy strong {
  display: block;
  font-size: clamp(30px, 3.5vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.location-banner-address {
  font-size: clamp(14px, 1.35vw, 20px);
  line-height: 1.5;
  color: #606060;
  overflow-wrap: anywhere;
}
.location-banner-preview {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: #d6d6d6;
}
.location-banner-preview picture,
.location-banner-preview img {
  display: block;
  width: 100%;
  height: 100%;
}
.location-banner-preview img {
  object-fit: cover;
  object-position: 52% center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.location-banner-button:hover .location-banner-preview img {
  transform: scale(1.055);
}
.location-banner-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #efefef 0%, transparent 28%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .buyback-guarantee.is-reveal-ready,
  .location-banner.is-reveal-ready {
    opacity: 0;
    transform: translate3d(0, 56px, 0);
    transition:
      opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
      transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .buyback-guarantee.is-revealed,
  .location-banner.is-revealed {
    opacity: 1;
    transform: none;
  }
}

body.location-explorer-open {
  overflow: hidden;
}
dialog.location-explorer {
  box-sizing: border-box;
  width: min(1680px, calc(100vw - 32px));
  height: fit-content;
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 18px;
  background: #fff;
  color: #222;
  box-shadow: 0 25px 95px #0005;
}
dialog.location-explorer::backdrop {
  background: #121820bf;
  backdrop-filter: blur(7px);
}
.location-explorer-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 34px);
  min-height: 0;
  min-width: 0;
}
.location-explorer-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px 12px;
  border-bottom: 1px solid #eee;
}
.location-explorer-header h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.3;
}
.location-explorer-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 28px;
  line-height: 1;
}
.location-explorer-close:hover {
  background: #f2f2f2;
  color: #111;
}
.location-explorer-tabs {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 12px 26px;
  border-bottom: 1px solid #eee;
}
.location-explorer-tabs::-webkit-scrollbar {
  display: none;
}
.location-explorer-tabs button {
  flex: none;
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: 99px;
  background: #fff;
  color: #353535;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.location-explorer-tabs button[aria-pressed='true'] {
  background: #252525;
  color: #fff;
}
.location-explorer-tabs button[hidden] {
  display: none;
}
.location-explorer-tabs button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.location-explorer-stage {
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.location-explorer-stage .location-hero {
  padding: 0;
  background: #fff;
}
.location-explorer-stage .location-hero .hero-map-switch {
  display: none;
}
.location-explorer-stage .location-hero-footer {
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 20px 24px;
}
.location-explorer-address {
  display: contents;
}
.location-explorer-stage .hero-address-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  direction: ltr;
}
.location-explorer-stage .location-explorer-address {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.location-explorer-stage .location-hero-footer p {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.location-explorer-stage .location-explorer-address :is(#shop-address, .hero-shop-address) {
  flex: 0 1 auto;
}
html[dir='rtl'] .location-explorer-stage .location-explorer-address {
  direction: rtl;
}
.location-explorer-stage .location-hero-footer p span {
  font-size: 16px;
}
.location-explorer-stage .hero-google,
.location-explorer-stage .hero-roadview {
  height: min(650px, max(240px, calc(100dvh - 240px)));
  aspect-ratio: auto;
}
.location-explorer-actions {
  display: none;
}
.location-hero-footer .location-explorer-action {
  display: none;
}
.location-explorer-stage .location-explorer-actions {
  display: grid;
  flex: none;
  grid-template-columns: repeat(2, 60px);
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}
.location-explorer-stage .location-hero-footer .hero-address-copy,
.location-explorer-stage .location-hero-footer .location-explorer-action {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: none;
  width: 42px;
  height: 42px;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.location-explorer-stage .location-hero-footer .location-explorer-action {
  width: 60px;
  height: 60px;
}
.location-explorer-stage .location-explorer-action svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.location-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.location-explorer-stage .location-hero-footer .location-explorer-action[hidden] {
  display: none;
}
.location-explorer-stage .location-explorer-kakao svg {
  stroke: none;
}
.location-explorer-stage .location-hero-footer .location-explorer-phone {
  background: #303030;
  color: #fff;
}
.location-explorer-stage .location-hero-footer .location-explorer-phone:hover {
  background: #171717;
  color: #fff;
}
.location-explorer-stage .location-hero-footer .location-explorer-kakao {
  background: #fee500;
  color: #251d00;
}
.location-explorer-stage .location-hero-footer .location-explorer-kakao:hover {
  background: #f0d800;
  color: #251d00;
}
.location-explorer-action:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.return-sell-panel {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(500px, calc(100vw - 190px));
  min-height: 72px;
  padding: 10px 11px 10px 24px;
  border: 1px solid #d8d8d8;
  border-radius: 18px;
  background: #fffffff2;
  color: #242424;
  box-shadow: 0 14px 45px #0003;
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, calc(100% + 40px), 0);
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.6s;
}
.return-sell-panel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}
.return-sell-panel > span {
  min-width: 0;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.return-sell-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: none;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 11px;
  background: #292929;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}
.return-sell-panel a:hover {
  background: #111;
  color: #fff;
}
.return-sell-panel a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .buyback-guarantee {
    gap: 18px;
    padding: 44px 20px;
  }
  .buyback-guarantee h2 {
    font-size: clamp(32px, 8.2vw, 48px);
  }
  .buyback-guarantee a {
    margin-top: 20px;
  }
  .buyback-guarantee-image {
    width: min(calc(100vw - 24px), 400px);
  }
  .location-banner {
    padding: 20px 16px 24px;
  }
  .location-banner-button {
    grid-template-columns: minmax(0, 1fr) 29%;
    min-height: 148px;
    border-radius: 16px;
  }
  .location-banner-copy {
    padding: 18px 12px 18px 18px;
    gap: 6px;
  }
  .location-banner-copy strong {
    font-size: clamp(24px, 6.3vw, 34px);
    line-height: 1.28;
  }
  .location-banner-address {
    font-size: 12px;
  }
  .location-banner-preview::after {
    background: linear-gradient(90deg, #efefef 0%, transparent 20%);
  }
  dialog.location-explorer {
    width: calc(100vw - 8px);
    height: fit-content;
    max-height: calc(100dvh - 8px);
    margin: auto;
    border-radius: 12px;
  }
  .location-explorer-shell {
    max-height: calc(100dvh - 10px);
  }
  .location-explorer-header {
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px
      max(12px, env(safe-area-inset-left));
  }
  .location-explorer-header h2 {
    min-width: 0;
    font-size: 21px;
    overflow-wrap: anywhere;
  }
  .location-explorer-tabs {
    padding: 10px 14px;
    gap: 6px;
  }
  .location-explorer-tabs button {
    font-size: 13px;
    min-height: 38px;
    padding: 7px 13px;
  }
  .location-explorer-stage .location-hero-footer {
    padding: 15px;
  }
  .location-explorer-stage .hero-address-row {
    gap: 10px;
  }
  .location-explorer-stage .location-hero-footer p {
    font-size: 14px;
  }
  .location-explorer-stage .location-hero-footer p span {
    font-size: 12px;
  }
  /* Trim only the portrait artwork's blank top/bottom inside this dialog. */
  .location-explorer-stage .schematic-viewport {
    height: auto;
    overflow: hidden;
  }
  .location-explorer-stage .schematic-viewport #hero-schematic {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    margin: -16cqw 0 -20cqw;
    transform: none;
  }
  .location-explorer-stage #hero-schematic .schematic-art {
    object-fit: contain;
  }
  .location-explorer-stage .schematic-viewport > .schematic-note {
    position: relative;
    inset: auto;
    z-index: 3;
  }
  .location-explorer-stage .hero-google,
  .location-explorer-stage .hero-roadview {
    height: min(460px, max(220px, calc(100dvh - 250px)));
    aspect-ratio: auto;
  }
  .location-explorer-stage .location-explorer-actions {
    grid-template-columns: repeat(2, 48px);
    gap: 6px;
  }
  .location-explorer-stage .location-hero-footer .hero-address-copy,
  .location-explorer-stage .location-hero-footer .location-explorer-action {
    width: 36px;
    height: 36px;
    padding: 7px;
  }
  .location-explorer-stage .location-hero-footer .location-explorer-action {
    width: 48px;
    height: 48px;
  }
  .location-explorer-stage .location-explorer-action svg {
    width: 24px;
    height: 24px;
  }
  .return-sell-panel {
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100vw - 80px);
    min-height: 58px;
    gap: 8px;
    padding: 7px 7px 7px 13px;
    border-radius: 13px;
    transform: translate3d(0, calc(100% + 40px), 0);
  }
  .return-sell-panel.is-visible {
    transform: none;
  }
  .return-sell-panel > span {
    font-size: 14px;
  }
  .return-sell-panel a {
    min-height: 43px;
    padding: 7px 9px;
    font-size: 12px;
    max-width: 54%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .buyback-guarantee a,
  .location-banner-button,
  .location-banner-preview img,
  .return-sell-panel {
    transition: none !important;
  }
}
