/* ==========================================================
   스테이럭스 지역별 호텔 (/stayluxe/hotel/city/) · 도시별 호텔 (/stayluxe/hotel/city/{도시}) · 호텔 찾기 지도 버튼
   - 색은 스테이럭스 기본(stayluxe.css)의 다크 + 블루 톤
   - 지도 그림 : /res/site/img/hotel/map-{대륙}.svg (엔스타일 호텔 첫 화면과 같은 그림, 나라는 <path data-nation="FR">)
   ========================================================== */

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

/* ---------- 1. 지역별 호텔 : 상단 ---------- */
.slm-hero {
  position: relative;
  margin-top: var(--sl-header-h);
  padding: 5.5rem 0 3.2rem;
  background:
    radial-gradient(circle at 18% 30%, rgba(59, 130, 246, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(96, 165, 250, 0.1) 0%, transparent 45%),
    linear-gradient(160deg, #0a0a0a 0%, #0f141d 55%, #0b1018 100%);
  text-align: center;
  overflow: hidden;
}

.slm-hero-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.slm-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #60a5fa;
  margin-bottom: 1rem;
}

.slm-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1.2;
}

.slm-hero-sub {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  word-break: keep-all;
}

/* ---------- 2. 지역별 호텔 : 대륙 탭 + 지도 ---------- */
.slm {
  background: #0b1018;
  padding: 0 0 5rem;
}

.slm-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.slm-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.slm-tab {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 1.1rem 1.7rem;
  border: 0;
  background: none;
  color: #8b97a8;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.slm-tab .en { font-size: 1rem; font-weight: 700; letter-spacing: 0.4px; }
.slm-tab .ko { font-size: 0.82rem; }

.slm-tab::after {
  content: '';
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: -1px;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.slm-tab:hover,
.slm-tab:focus-visible { color: #e2e8f0; }
.slm-tab.is-active { color: var(--white); }
.slm-tab.is-active::after { transform: scaleX(1); }
.slm-tab:focus-visible { outline: 2px solid #60a5fa; outline-offset: -2px; }

.slm-panel { padding-top: 2rem; }

.slm-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 1.5rem;
}

/* 지도 */
.slm-map {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at 50% 40%, #121b29 0%, #0b1018 75%);
  overflow: hidden;
}

.slm-map-img,
.slm-map-svg { display: block; width: 100%; height: auto; }

/* SVG 로 바뀌기 전 그림 (또는 SVG 를 못 불러온 경우) : 어둡게 */
.slm-map-img { filter: grayscale(1) brightness(0.28); }

/* 나라 : 경계선만 살짝 밝게, 스테이럭스 호텔이 있는 나라는 블루 */
.slm-map-svg > g { stroke: #2a3546; stroke-width: 0.8; }
.slm-map-svg g,
.slm-map-svg .m-rg { fill: #182130; }
.slm-map-svg path { transition: fill 0.25s ease; }
.slm-map-svg path.is-on { fill: #1b3456; }
.slm-map-svg path.is-on.is-hover { fill: #234a7a; }
.slm-map-svg path.is-on.is-selected { fill: #275a96; }

/* 도시 점 (호텔 수 : 1곳 / 2~4곳 is-md / 5곳 이상 is-lg) */
.slm-dot {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16), 0 0 10px rgba(96, 165, 250, 0.55);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.slm-dot.is-md { width: 11px; height: 11px; }
.slm-dot.is-lg { width: 13px; height: 13px; }

.slm-dot.is-hover,
.slm-dot.is-selected {
  z-index: 3;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5), 0 0 18px rgba(96, 165, 250, 0.9);
}

/* 고른 도시 : 퍼지는 테두리 */
.slm-dot.is-selected::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(147, 197, 253, 0.8);
  border-radius: 50%;
  animation: slm-ping 1.8s ease-out infinite;
}

@keyframes slm-ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.9); opacity: 0; }
}

.slm-dot-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: var(--radius-md);
  background: rgba(10, 14, 22, 0.94);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.slm-dot-tip em {
  margin-left: 0.35rem;
  color: #93c5fd;
  font-style: normal;
  font-weight: 400;
}

.slm-dot.is-hover .slm-dot-tip,
.slm-dot.is-selected .slm-dot-tip { opacity: 1; transform: translate(-50%, 0); }

/* 오른쪽 : 나라별 도시 / 도시 호텔 미리보기 (높이는 지도에 맞추고 넘치면 스크롤) */
.slm-side {
  height: 0;
  min-height: 100%;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.025);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.slm-side-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.slm-side-head .en {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #60a5fa;
}

.slm-side-head .sub { font-size: 0.85rem; color: #94a3b8; }

.slm-country { margin-top: 1.15rem; }

.slm-country-name {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
  cursor: default;
}

.slm-country-name span {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}

.slm-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.slm-city {
  display: inline-flex;
  align-items: baseline;
  padding: 0.36rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slm-city .n {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  transition: color var(--transition-fast);
}

.slm-city:hover,
.slm-city.is-hover,
.slm-city:focus-visible {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(59, 130, 246, 0.12);
  color: var(--white);
}

.slm-city:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }

.slm-city.is-selected {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}

.slm-city.is-selected .n,
.slm-city:hover .n { color: #bfdbfe; }

/* 도시 호텔 미리보기 */
.slm-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: #93c5fd;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.slm-back:hover { color: var(--white); }

.slm-detail-country {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #64748b;
}

.slm-detail-city {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.7rem;
  margin-top: 0.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
}

.slm-detail-city .name { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; }
.slm-detail-city .fa-arrow-right { font-size: 0.95rem; color: #60a5fa; transition: transform var(--transition-fast); }

.slm-detail-city .en {
  order: 3;
  flex-basis: 100%;
  font-size: 0.74rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #94a3b8;
}

.slm-detail-city:hover .name { color: #93c5fd; }
.slm-detail-city:hover .fa-arrow-right { transform: translateX(4px); }

.slm-hotels {
  margin-top: 0.8rem;
  list-style: none;
}

.slm-hotels-loading,
.slm-hotels-empty {
  padding: 1.5rem 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.slm-hotel {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem;
  margin: 0 -0.6rem;
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.slm-hotel:hover { background: rgba(255, 255, 255, 0.05); }

.slm-hotel .thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1b2738 0%, #111827 100%);
  overflow: hidden;
}

/* 사진이 없을 때 : 작은 STAYLUXE 문구 */
.slm-hotel .thumb::before {
  content: 'STAYLUXE';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: rgba(147, 197, 253, 0.45);
}

.slm-hotel .thumb img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.slm-hotel:hover .thumb img { transform: scale(1.06); }

.slm-hotel .txt { display: flex; flex-direction: column; min-width: 0; }

.slm-hotel .name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f1f5f9;
}

.slm-hotel .en {
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  color: #94a3b8;
}

.slm-hotel .grade {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0 0.4rem;
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 3px;
  font-size: 0.68rem;
  line-height: 1.6;
  color: #93c5fd;
}

.slm-detail-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.slm-detail-more:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35); }

/* 1024px 이하 : 지도 대신 나라별 도시 */
.slm-mlist { display: none; }

.slm-empty {
  padding: 4rem 0;
  text-align: center;
  color: #94a3b8;
}

/* ---------- 3. 도시별 호텔 ---------- */
.slc-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.slc-crumb li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
}

.slc-crumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.slc-crumb a:hover { color: var(--white); }

.slc-en {
  margin: -0.6rem 0 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #93c5fd;
  animation: fadeInUp 1s ease-out;
}

/* 같은 나라의 다른 도시 + 지도에서 찾기 */
.slc-bar {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: -2.2rem auto 0;
  padding: 0 2rem;
}

.slc-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.slc-bar-label {
  flex: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.slc-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  list-style: none;
}

.slc-city {
  display: inline-flex;
  align-items: baseline;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-dark);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.slc-city .n { margin-left: 0.3rem; font-size: 0.72rem; color: var(--text-tertiary); }
.slc-city:hover { border-color: var(--primary-color); color: var(--primary-color); }

.slc-city.is-current {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}

.slc-city.is-current .n { color: rgba(255, 255, 255, 0.8); }

.slc-map-link {
  flex: none;
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-lg);
  background: #0f141d;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.slc-map-link i { color: #60a5fa; }
.slc-map-link:hover { background: var(--primary-dark); }
.slc-map-link:hover i { color: var(--white); }

/* ---------- 4. 호텔 찾기 ↔ 지역별 호텔 이동 버튼 (호텔 찾기 : 지도로, 지역별 호텔 : 키워드 검색으로) ---------- */
.find-region-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all var(--transition-normal);
}

.find-region-link > i:first-child { color: #60a5fa; transition: color var(--transition-normal); }
.find-region-link .fa-arrow-right { font-size: 0.78rem; opacity: 0.7; transition: transform var(--transition-normal); }

.find-region-link:hover {
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(59, 130, 246, 0.16);
  color: var(--white);
}

.find-region-link:hover > i:first-child { color: var(--white); }
.find-region-link:hover .fa-arrow-right { transform: translateX(3px); }

/* ---------- 반응형 ---------- */
@media (max-width: 1280px) {
  .slm-board { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 1024px) {
  .slm-board { display: none; }
  .slm-mlist { display: block; }
  .slm-mlist .slm-country {
    margin-top: 0;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .slm-mlist .slm-country:last-child { border-bottom: 0; }
  .slm-tab { padding: 1rem 1.1rem; }
  .slc-bar-inner { flex-wrap: wrap; }
  .slc-cities { flex-basis: 100%; order: 3; }
}

@media (max-width: 768px) {
  .slm-hero { padding: 3.5rem 0 2.4rem; }
  .slm-hero-title { font-size: 1.9rem; }
  .slm-hero-sub { font-size: 0.95rem; }
  .slm-inner { padding: 0 1rem; }
  .slm-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .slm-tabs::-webkit-scrollbar { display: none; }
  .slm-tab { flex: none; padding: 0.95rem 0.9rem; }
  .slm-tab .ko { display: none; }
  .slm-panel { padding-top: 0.6rem; }
  .slm { padding-bottom: 3rem; }
  .slc-bar { margin-top: -1.6rem; padding: 0 1rem; }
  .slc-bar-inner { padding: 1rem; gap: 0.8rem; }
  .slc-map-link { margin-left: auto; padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .slc-en { letter-spacing: 3px; font-size: 0.78rem; }
  .find-region-link { margin-top: 1.4rem; font-size: 0.86rem; padding: 0.6rem 1.1rem; }
}
