/* ============================================
   ModaReal.Club — Phase 1 MVP Styles
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  --c-bg: #ffffff;
  --c-surface: #f8f8f8;
  --c-primary: #ff6b35;
  --c-primary-hover: #e85a28;
  --c-primary-light: rgba(255, 107, 53, 0.1);
  --c-coral: #ff5a5f;
  --c-text: #1a1a1a;
  --c-text-secondary: #666666;
  --c-text-muted: #999999;
  --c-border: #e5e5e5;
  --c-white: #ffffff;
  --c-dark: #111111;

  --font: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Returning to the User's "Standard" Rule (Bottom Image):
     Spacious, Premium Layout with refined typography scaling. */
  --max-w: 1600px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Utility --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  /* Spacious padding */
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
}


.btn--primary:hover {
  background: var(--c-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.btn--primary:disabled,
.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn--full {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

/* ============================================
   GLOBAL HEADER
   ============================================ */
.header {
  position: absolute;
  /* Overlay on Hero */
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: transparent !important;
  /* Transparent initial state */
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: none;
  /* Remove solid border */
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.header.header--scrolled {
  position: absolute;
  /* Do not follow scroll */
  background: transparent !important;
  /* Dark translucent on scroll */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-icon {
  max-height: 48px;
  width: auto;
  display: block;
}

.header__logo-text {
  max-height: 24px;
  width: auto;
  display: block;
}

.header__nav {
  margin-right: 180px;
  /* Shifted left as per mockup */
}

@media (max-width: 991px) {
  .header__nav {
    margin-right: 24px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    margin-right: 16px;
  }
}

@media (max-width: 360px) {
  .header__nav {
    margin-right: 8px;
  }

  .header__logo-text {
    max-height: 18px;
    /* Scale down logo on tiny screens */
  }

  .btn--mypage {
    font-size: 0.65rem;
  }
}

.btn--mypage {
  font-size: 0.7rem;
  /* Reduced 20% from 0.85rem */
  font-weight: 600;
  color: var(--c-white);
  padding: 8px 0;
  background: transparent;
  border: none;
  transition: var(--transition);
  cursor: pointer;
}

/* My Page button stays white on dark header */
.header--scrolled .btn--mypage {
  color: var(--c-white);
}

.btn--mypage:hover {
  color: var(--c-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.45) 100%);
}

.hero__container {
  width: 100%;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  text-align: center;
  padding-top: 80px;
  /* Space for header */
}

@media (min-width: 992px) {
  .hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    /* Center items in their grid cells */
    text-align: left;
    padding-top: 0;
  }

  .hero__text {
    justify-self: start;
    /* Keep text left-aligned in its cell */
  }

  .hero__right {
    justify-self: end;
    /* Align to right edge to match My Page */
    width: 100%;
    margin-left: 0;
  }
}

/* Specific override to center visual content relative to right side if needed, 
   but user asked for "My Page text and Signup Window [Vertical] Center".
   Wait, if justify-self: end, it is right aligned (Right Edge).
   User said "No" to Right Edge?
   User said "Center".
   So justify-self: center?
*/
@media (min-width: 992px) {
  .hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    /* justify-items: center;  Let's allow default stretch or handle individually */
    text-align: left;
    padding-top: 0;
  }

  .hero__text {
    padding-right: 40px;
  }

  .hero__right {
    /* Align to the right edge to match 'My Page' */
    display: flex;
    justify-content: flex-end;
    /* Align content to the right if width < max-width? actually justify-self handles grid item placement */
    margin-left: 0;
    justify-self: end;
    /* Push the entire card to the right edge of the grid cell */
  }
}



/* --- Hero Left Text --- */
.hero__text {
  flex: 1;
  color: var(--c-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.hero__title {
  /* Restoring refined scaling (Standard Rule) */
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  /* Reduced 20% */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  /* Reduced vertical gap to move subtitle closer */
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* Slight shadow added */
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 1.8rem;
    /* Mobile adjustment */
  }
}

@media (max-width: 360px) {
  .hero__title {
    font-size: 1.5rem;
    /* Extra-small mobile adjustment */
  }
}

.hero__subtitle {
  /* Restoring refined subtitle */
  font-size: clamp(0.76rem, 0.8vw, 0.92rem);
  /* Reduced 20% */
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 500;
  max-width: 100%;
  color: #d1d5db;
  /* Gray color */
  /* Changed from 500px to allow single line */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  /* Slight shadow added */
  text-align: inherit;
}

.hero__description-group {
  margin-top: 4px;
  /* Reduced gap to group with main subtitle */
  text-align: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: inherit;
}

.hero__desc-main {
  /* Match .hero__subtitle exactly */
  font-size: clamp(0.76rem, 0.8vw, 0.92rem);
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 500;
  color: #d1d5db;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

.hero__desc-sub {
  /* Match .hero__subtitle exactly */
  font-size: clamp(0.76rem, 0.8vw, 0.92rem);
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 500;
  color: #d1d5db;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- Hero Right Card --- */
.hero__right {
  /* Align to the right edge to match 'My Page' */
  display: flex;
  justify-content: flex-end;
  /* Align content to the right if width < max-width? actually justify-self handles grid item placement */
  margin-left: 0;
  justify-self: end;
  /* Push the entire card to the right edge of the grid cell */
  width: 100%;
  max-width: 400px;
  /* Reduced from 500px */
  align-items: center;
  /* justify-content: center; removed duplicate */
  background: #ffffff;
  border-radius: 20px;
  /* Reduced from 24px */
  padding: 32px;
  /* Reduced from 40px */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* Slightly reduced shadow */
}

@media (max-width: 991px) {
  .hero__content {
    text-align: center;
    gap: 24px;
  }

  .hero__text {
    padding-right: 0;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero__right {
    justify-self: center;
    justify-content: center;
    padding: 24px;
    max-width: 320px;
    /* Reduced for tablet */
    margin: 0 auto;
  }

  .hero__cta-wrap .btn--lg {
    margin-top: 16px;
  }
}

.hero__cta-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.hero__cta-wrap .btn--lg {
  padding: 12px 16px;
  /* Reduced padding */
  font-size: 0.9rem;
  /* Reduced from 1rem */
  width: 100%;
  border-radius: 10px;
  /* Reduced radius */
  margin-top: 20px;
  /* Reduced margin */
}

.hero__badge {
  display: inline-block;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 0.5rem;
  /* Reduced from 0.6rem */
  font-weight: 600;
  padding: 2px 10px;
  /* Reduced padding */
  border-radius: 16px;
  margin-bottom: 6px;
  /* Reduced margin */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.hero__cta-title {
  font-size: 1rem;
  /* Reduced from 1.2rem */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  /* Reduced margin */
  color: var(--c-text);
  text-align: center;
  width: 100%;
}

.hero__cta-desc {
  font-size: 0.65rem;
  /* Reduced from 0.78rem */
  color: var(--c-text-secondary);
  line-height: 1.3;
  margin-bottom: 3px;
  text-align: center;
  width: 100%;
}

.hero__cta-desc:last-of-type {
  margin-bottom: 0;
}

/* ============================================
   DESTINATIONS SECTION
   ============================================ */
.destinations {
  padding: 100px 0;
  background: var(--c-bg);
}

.destinations__header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--c-text-secondary);
}

/* ============================================
   FILTER SYSTEM - SIDEBAR DESIGN
   ============================================ */

/* Chips Bar at Top */
.filter-chips-bar {
  background: var(--c-primary-light);
  padding: 12px 0;
  margin: 0 auto 32px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.filter-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--c-white);
  border: 1px solid var(--c-primary);
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary);
  animation: chipFadeIn 0.2s ease;
}

@keyframes chipFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.filter-chip__label {
  line-height: 1;
}

.filter-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip__remove:hover {
  background: var(--c-primary-hover);
  transform: scale(1.1);
}

/* Floating Filter Button - Arrow Bookmark Tab */
.filter-toggle-btn {
  position: fixed;
  top: 15%;
  /* Moved up by ~1/3 of its height */
  left: 0;
  /* Removed top/transform centering */
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 9px;
  /* Reduced 25% */
  /* Height 4 : Width 1.5 ratio -> Tall and slim */
  min-height: 75px;
  /* Reduced 25% */
  width: 28px;
  /* Reduced 25% */
  background: #000000;
  /* Changed to Black */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.68rem;
  /* Reduced 25% */
  font-weight: 600;
  color: var(--c-white);
  letter-spacing: 0.08em;
  /* Adjusted */
  box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.3);
  /* Shadow adjusted for black bg */
  border-top-right-radius: 9px;
  /* Reduced */
  border-bottom-right-radius: 9px;
  /* Reduced */
  /* Vertical Text */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  /* transform: rotate(180deg); Removed to flip 180 degrees */
}

.filter-toggle-btn:hover {
  box-shadow: 3px 3px 12px rgba(255, 107, 53, 0.4);
  padding-right: 24px;
}

.filter-toggle-btn.is-active {
  box-shadow: 3px 3px 16px rgba(255, 107, 53, 0.5);
}

.filter-toggle-btn__label {
  line-height: 1;
}

/* Filter Sidebar - Slides from Left */
.filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  background: var(--c-white);
  border-right: 1px solid #eee;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.filter-sidebar.is-open {
  transform: translateX(0);
}

.filter-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: var(--c-white);
  z-index: 10;
}

.filter-sidebar__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0;
}

.filter-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--c-surface);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--c-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-sidebar__close:hover {
  background: var(--c-border);
}

.filter-sidebar__content {
  padding: 24px;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 32px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Country Filters - Flag Grid (4 columns) */
.filter-options--countries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.filter-option--country {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  background: var(--c-surface);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-option--country:hover {
  background: var(--c-white);
  border-color: var(--c-primary);
  transform: scale(1.05);
}

.filter-option--country.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.filter-option--country .filter-option__icon {
  font-size: 2rem;
  line-height: 1;
}

/* Attribute Filters */
.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.filter-option:hover {
  background: var(--c-white);
  border-color: var(--c-primary);
}

.filter-option.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

.filter-option__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.filter-option__label {
  flex: 1;
  line-height: 1;
}

/* Filter Overlay - No scroll lock */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.filter-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.destinations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  justify-content: center;
}

/* Limit to max 4 columns on large screens */
@media (min-width: 1800px) {
  .destinations__grid {
    grid-template-columns: repeat(4, minmax(380px, 400px));
  }
}

/* --- City Card (nomads style) --- */
.city-card {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 1 / 2;
  /* Increased height to 3:6 (1:2) as requested */
  position: relative;
}

.city-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.city-card__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.city-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.city-card:hover .city-card__img-wrap img {
  transform: scale(1.05);
}

.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  padding: 20px;
  /* Reduced from 24px */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.city-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.city-card__rank {
  font-size: 1.2rem;
  /* Restored to original */
  font-weight: 800;
  color: var(--c-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.city-card__top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.city-card__time {
  font-size: 0.85rem;
  /* Restored to original */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.city-card__wifi {
  font-size: 0.6rem;
  /* Reduced slightly, icon matched */
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Social UI - Vertical Stack on Right */
.city-card__social {
  position: absolute;
  right: 12px;
  bottom: 24px;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
  padding: 20px 10px;
  /* Higher than hover overlay (20) */
}

.city-card__wifi::before {
  content: '';
  display: inline-block;
  width: 18px;
  /* Reduced by 20% to match text */
  height: 18px;
  background-image: url('../img/wifi.png?v=6');
  /* Fixed path and bumped version */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

/* WiFi Speed Color Coding */
.city-card__wifi.wifi-high {
  color: #00E345;
  /* Vibrant Green */
}

.city-card__wifi.wifi-high::before {
  /* Green: #00E345 */
  filter: brightness(0) saturate(100%) invert(67%) sepia(80%) saturate(2250%) hue-rotate(86deg) brightness(119%) contrast(119%);
}

.city-card__wifi.wifi-mid {
  color: #FFD000;
  /* Vibrant Yellow/Orange */
}

.city-card__wifi.wifi-mid::before {
  /* Yellow: #FFD000 */
  filter: brightness(0) saturate(100%) invert(86%) sepia(28%) saturate(6380%) hue-rotate(357deg) brightness(103%) contrast(105%);
}

.city-card__wifi.wifi-low {
  color: #FF3B30;
  /* Vibrant Red */
}

.city-card__wifi.wifi-low::before {
  /* Red: #FF3B30 */
  filter: brightness(0) saturate(100%) invert(16%) sepia(96%) saturate(7405%) hue-rotate(358deg) brightness(94%) contrast(115%);
}

/* Exchange Rate Styles */
.city-card__exchange {
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  /* Remove full width to allow natural left alignment */
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  line-height: 1.2;
  margin: 0 !important;
  padding: 0 !important;
}

.exchange-updated {
  font-size: 0.61rem;
  /* Reduced 10% from 0.68rem for final adjustment */
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin-top: 2px;
}

.rate-up .currency-value,
.rate-up .exchange-updated {
  color: #ff6b6b !important;
  /* Red for increase */
}

.rate-down .currency-value,
.rate-down .exchange-updated {
  color: #51cf66 !important;
  /* Green for decrease */
}

.city-card__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.city-card__city {
  font-size: clamp(1.4rem, 2.5vw, 1.76rem);
  /* Restored to original */
  font-weight: 800;
  line-height: 1;
  margin-bottom: -2px;
  color: var(--c-white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.city-card__country {
  font-size: 1.1rem;
  /* Restored to original */
  font-weight: 500;
  opacity: 0.9;
  color: #e0e0e0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}

.city-card__stats {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
}

.city-card__stats .city-card__stat {
  margin: 0 !important;
  padding: 0 !important;
}

.city-card__stat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-white);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  /* Reduced gap since emoji is smaller now */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.stat-emoji {
  font-size: 1.1em;
  /* Force emoji to scale relative to the font */
  line-height: 1;
  display: inline-block;
}

.city-card__top-right .city-card__stat {
  font-size: 0.7rem;
  /* Reduced to 0.55rem */
  justify-content: flex-end;
  margin-top: 4px;
  /* Spacing between elements */
}

/* Stacked AQI Layout */
.stat-aqi-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center horizontally */
  justify-content: center;
  line-height: 1.2;
  margin-top: 6px !important;
  /* A bit more space from weather */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.stat-aqi-stacked .stat-emoji {
  font-size: 1em;
  margin-bottom: 2px;
}

.stat-aqi-stacked .aqi-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--c-white);
}

.stat-aqi-stacked .aqi-val {
  font-size: 0.44rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1px;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  /* Prevent layout repaint from affecting parent on mobile */
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
  transform: scale(1.1);
}

/* Prevent card zoom/layout shift on mobile tap */
@media (hover: none) {
  .social-btn:hover {
    transform: none;
  }

  .social-btn:active {
    transform: scale(0.92);
  }
}

.social-btn img,
.social-btn svg {
  width: clamp(24px, 2.5vw, 32px);
  /* Restored to original */
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-btn.comment img {
  width: clamp(28px, 3vw, 38px);
  /* Restored to original */
  height: auto;
  margin-bottom: 2px;
}

.rate-up .currency-value,
.rate-up .exchange-updated {
  color: #ff6b6b !important;
  /* Red for increase */
}

.rate-down .currency-value,
.rate-down .exchange-updated {
  color: #51cf66 !important;
  /* Green for decrease */
}

.social-btn span {
  font-size: clamp(0.45rem, 0.8vw, 0.55rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  margin-top: -2px;
  display: block;
  /* Ensure visibility */
}

/* Hide background text behind CTA and elsewhere */
.cta-bar-bg-text,
[class*="bg-text"],
.footer__logo-bg,
.destinations__bg-text,
.hero__bg-text {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Prevent sticky bar from overlapping footer content */
body {
  padding-bottom: 100px;
}

.city-card__like-count,
.city-card__dislike-count {
  font-size: clamp(0.45rem, 0.8vw, 0.55rem);
  /* Restored to original */
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  margin-top: -6px;
  /* Pull count closer to icon */
  margin-bottom: 4px;
  display: block;
  /* Ensure visibility */
}

/* Restore full opacity when specifically hovering the interaction container */
.city-card .city-card__like-container:hover {
  opacity: 1 !important;
  filter: brightness(1) !important;
}

/* --- Hover Detail Overlay --- */
.city-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: var(--c-white);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  gap: 16px;
}

.city-card:hover:not(.no-overlay) .city-card__hover,
.city-card.is-active .city-card__hover {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

/* Hide default text/stats ONLY when the hover stats bars are showing */
.city-card:hover:not(.no-overlay) .city-card__overlay {
  opacity: 0;
  visibility: hidden;
}

/* 
   THE ULTIMATE FIX (Native CSS :has):
   This detects if the social area is hovered and toggles the entire card's state.
   No JS jitter, no sibling limitations.
*/
.city-card:has(.city-card__social:hover) .city-card__hover,
.city-card:has(.city-card__social:hover) .city-card__hover * {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
  /* Force removal from flow */
}

/* 
   FIX: When social area is hovered, prevent the bottom info from moving up.
   The second image shows that the text should stay at the bottom.
*/
.city-card:has(.city-card__social:hover) .city-card__overlay {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  justify-content: space-between !important;
  /* Keep rank top, info bottom */
  padding: 24px !important;
  /* Restore original padding */
}

.city-card:has(.city-card__social:hover) .city-card__bottom {
  margin-top: auto !important;
  /* Ensure it stays at bottom */
  transform: none !important;
  /* Prevent any animation offset */
}

/* 
   EXCLUSIVE VISIBILITY (Privacy Mode):
   The social container is always present but transparent when stats are out.
   This allows it to "catch" the mouse and swap the view.
*/
.city-card:hover:not(.no-overlay) .city-card__social {
  opacity: 0 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  /* MUST BE VISIBLE to catch pointer events */
  z-index: 1000 !important;
}

/* Ensure icons are visible when actually hovering the social area */
.city-card:has(.city-card__social:hover) .city-card__social {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1000 !important;
}

.city-card.no-overlay .city-card__social {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 1000 !important;
}

.city-card__social {
  position: absolute;
  bottom: 8px;
  /* Offset from bottom edge */
  right: 8px;
  /* Offset from right edge */
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  z-index: 100 !important;
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: auto !important;
  /* Hit area expansion: padding expands the interactive zone inward without visually hugging the edge */
  padding: 10px 12px 12px 25px !important;
}

/* Also ensure manual .no-overlay class wins if JS triggers it */
.city-card.no-overlay .city-card__hover,
.city-card.no-overlay .city-card__hover * {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.city-card__hover-title {
  font-size: 1.2rem;
  /* Reduced 20% from 1.5rem */
  font-weight: 800;
  margin-bottom: 4px;
  text-align: left;
}

.city-card__hover-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.hm__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.6rem, 1.25vw, 0.72rem);
  /* Reduced 20% from 0.9rem */
  font-weight: 600;
  min-width: 110px;
  color: rgba(255, 255, 255, 0.9);
}

.hm__val {
  font-size: 0.8rem;
  /* Reduced 20% from 1rem */
  font-weight: 700;
  color: var(--c-primary);
}

.hm__bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hm__fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  border-radius: 4px;
}

/* Custom gradient for fill based on user pref or brand */
.hm__fill {
  background: linear-gradient(90deg, var(--c-primary), var(--c-coral));
}

.hm__pct {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
  color: var(--c-white);
}

/* When the card is hovered, keep icons visible so they can be interacted with.
   The no-overlay logic in JS/CSS will handle preventing overlap. */
/* Consolidated into the main .city-card__social rule above */

/* Also hide the hover overlay (stats) when moving cursor to icons to prevent collision */
.city-card:has(.city-card__social:hover) .city-card__hover {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}



/* --- Comment Box (Dynamic) --- */
.city-card__comment-box {
  position: absolute;
  bottom: 12px;
  right: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 100;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.city-card__comment-box.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.city-card__comment-input {
  background: none;
  border: none;
  color: white;
  font-size: 13px;
  width: 140px;
  outline: none;
}

.city-card__comment-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.city-card__comment-submit {
  background: white;
  color: black;
  border: none;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.city-card__comment-submit:hover {
  opacity: 0.8;
}

.city-card__hover-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.city-card__hover-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 20px;
  /* Extra room for safety */
}

.hm {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
}

.hm__label {
  flex: 0 0 clamp(90px, 10vw, 120px);
  /* Increased to fit emojis and larger text */
  font-weight: 500;
  opacity: 0.9;
}

.hm__val {
  font-weight: 700;
  font-size: 0.9rem;
}

.hm__bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.hm__fill {
  height: 100%;
  /* Fixed gradient relative to 100% width of parent */
  background: linear-gradient(to right, #ff4d4d, #f97316, #fbbf24, #a8ff78, #34d399);
  background-size: var(--gradient-base-width, 180px) 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hm__pct {
  flex: 0 0 40px;
  text-align: right;
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* --- City Detail Modal (Moved for specificity) --- */
.modal__container--city {
  width: 1000px !important;
  max-width: 95vw !important;
  height: 70vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.city-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.city-detail__hero {
  position: relative;
  height: 350px;
  flex-shrink: 0;
  overflow: hidden;
}

.city-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-detail__hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: var(--c-white);
}

.city-detail__name {
  font-size: 1.8rem;
  font-weight: 800;
}

.city-detail__country {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 2px;
}

.city-detail__body {
  padding: 40px;
  overflow-y: auto;
  flex: 1;
}

.city-detail__desc {
  font-size: 0.95rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.city-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.city-detail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  text-align: center;
}

.city-detail__icon {
  font-size: 1.2rem;
}

.city-detail__label {
  font-size: 0.7rem;
  color: var(--c-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.city-detail__val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text);
}

.city-detail__sub {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.city-detail__reasons {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.city-detail__reasons li {
  font-size: 0.88rem;
  color: var(--c-text-secondary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.city-detail__reasons li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}


/* ============================================
   STICKY CTA BAR
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--c-primary);
  padding: 16px 0;
  color: var(--c-white);
  z-index: 999;
  /* Lowered from 4000 to be below modal (1001/1002) */
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  /* Stronger shadow to hide things behind */
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta__inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  width: 100%;
}

.sticky-cta__text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-white);
  letter-spacing: -0.02em;
}

.btn--cta-bar {
  background: var(--c-white) !important;
  color: #ff6b35 !important;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn--cta-bar:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__container {
  background: var(--c-white);
  width: 1000px;
  max-width: 95vw;
  height: 600px;
  border-radius: 24px;
  position: absolute;
  /* Switched to absolute against fixed modal wrapper */
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /* Full cover for margin: auto centering */
  margin: auto;
  z-index: 1002;
  display: flex;
  box-shadow: 0 12px 64px rgba(0, 0, 0, 0.25);
}

/* Mobile Responsive Override */
@media (max-width: 1024px) {
  .modal__container {
    width: 92%;
    height: auto;
    min-height: auto;
    max-height: 90vh;
    overflow-y: auto;
    flex-direction: column;
    /* Push from top so overlay area is visible at bottom for tap-to-close */
    margin-top: 5vh;
    margin-bottom: 5vh;
  }

  /* Fix MyPage modal: --md container ignores general responsive rules due to !important */
  .modal__container--md {
    width: 92vw !important;
    max-width: 92vw !important;
    flex: 0 0 92vw !important;
  }

  /* On mobile, close button needs to be visible against white background */
  .modal__close {
    color: #1a1a2e !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    top: 12px !important;
    left: 12px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem !important;
    /* Minimum tap target for mobile */
    min-width: 44px;
    min-height: 44px;
    text-shadow: none !important;
  }

  .modal__close:active {
    background: rgba(0, 0, 0, 0.15) !important;
    transform: scale(0.96);
  }
}

.modal__container--sm {
  width: 90%;
  max-width: 400px;
  min-height: auto;
  height: auto;
}

.modal__container--md {
  width: min(540px, 95vw);
  /* Responsive: caps at 540px on desktop, respects screen on mobile */
  max-width: min(540px, 95vw);
  min-height: auto;
  height: auto;
  flex: 0 0 min(540px, 95vw);
}

/* Ensure City Detail modal overrides general container */
.modal__container.modal__container--city {
  height: 70vh;
  width: 1000px;
}


.modal__close {
  position: absolute;
  top: 16px;
  right: auto;
  left: 16px;
  z-index: 10;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.modal__close:hover {
  transform: scale(1.1);
  color: var(--c-white);
}

.modal__body {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  .modal__body {
    flex-direction: column;
  }
}

.modal__left {
  flex: 0 0 500px;
  /* FIXED WIDTH 50% of 1000px */
  background: linear-gradient(135deg, var(--c-primary), var(--c-coral));
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  text-align: center;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  /* Ensure Close button color is white if it overlays this side - but it's on right usually */
}

@media (max-width: 1024px) {
  .modal__left {
    flex: 0 0 auto;
    width: 100%;
    padding: 24px 20px;
    min-height: 140px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-bottom-left-radius: 0;
  }
}

.slideshow {
  text-align: center;
  width: 100%;
}

.slideshow__track {
  position: relative;
  min-height: 140px;
}

.slideshow__slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.5s ease;
}

.slideshow__slide--active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-headline {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.slide-sub {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.5;
  text-align: center;
  max-width: 260px;
}

.slideshow__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: var(--transition);
}

.slideshow__dot--active {
  background: var(--c-white);
  width: 24px;
  border-radius: 4px;
}

.modal__right {
  flex: 1;
  padding: 24px 24px;
  /* Reduced padding to give more space for text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.modal__form-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal__form-desc {
  font-size: 0.6rem;
  /* Reduced to 0.6rem to prevent wrapping */
  /* Matched to terms label size */
  color: var(--c-text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* --- Form --- */
.join-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
  padding: 7px 10px;
  /* Reduced further */
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  /* Reduced to 0.75rem */
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  background: var(--c-white);
  color: var(--c-text);
  width: 100%;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
  border-color: var(--c-primary);
}

.form-group input.is-invalid {
  border-color: #e53e3e;
}

.form-group--check {
  flex-direction: row;
  flex-wrap: wrap;
  /* Changed to wrap to allow error message on new line */
  align-items: center;
  gap: 6px;
}

/* Custom Checkbox for White V Mark */
.form-group--check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  /* Reduced to standard size */
  height: 16px;
  /* Ensuring square aspect ratio */
  border: 1.5px solid #ddd;
  border-radius: 2px;
  /* Sharper corners for "square" look */
  cursor: pointer;
  position: relative;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.form-group--check input[type="checkbox"]:checked {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
}

.form-group--check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-group--check label {
  font-size: 0.6rem;
  /* Reduced to match description */
  font-weight: 400;
  color: var(--c-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
}

.form-group--check .form-error {
  flex-basis: 100%;
}

.form-error {
  display: none;
  font-size: 0.55rem;
  color: #e53e3e;
}

.form-error.is-visible {
  display: block;
}


/* ============================================
   RESPONSIVE — Tablet (768–1199px)
   ============================================ */
@media (max-width: 1199px) {
  .hero__text {
    left: 28%;
  }

  .hero__right {
    left: 72%;
    width: 340px;
    min-height: 280px;
    padding: 24px 28px;
  }

  .destinations__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — Mobile (≤767px)
   ============================================ */
@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero__left {
    min-height: 70vh;
  }

  .hero__text {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    padding: 24px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__right {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    min-height: auto;
    margin: -40px 20px 20px;
    border-radius: 16px;
    z-index: 10;
  }

  .hero__cta-title {
    font-size: 1.15rem;
  }

  .destinations {
    padding: 60px 0;
  }

  .destinations__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .city-card {
    aspect-ratio: 4/7 !important;
  }

  .city-card__img-wrap {
    width: 100%;
    height: 100%;
  }

  .city-detail__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sticky-cta__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .sticky-cta__text {
    font-size: 0.85rem;
  }

  /* Filter System Responsive */
  .filter-toggle-btn {
    top: 40%;
    padding: 14px 10px;
    font-size: 0.85rem;
  }

  .filter-sidebar {
    width: 100%;
    max-width: 280px;
  }

  .filter-options--countries {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .filter-option--country {
    padding: 12px 6px;
  }

  .filter-option--country .filter-option__icon {
    font-size: 1.5rem;
  }

  .filter-chips-bar {
    margin: 0 auto 24px;
    padding: 10px 0;
  }

  .filter-chips-container {
    padding: 0 12px;
  }

  .container {
    padding: 0 20px;
  }

  .filter-chip {
    font-size: 0.8rem;
    padding: 5px 10px;
  }


  /* Modal — stack vertically on mobile */



  /* Modal — stack vertically on mobile */

  /* Modal — stack vertically on mobile */
  .modal__body {
    flex-direction: column;
    min-height: auto;
  }

  .modal__left {
    flex: none;
    padding: 32px 24px;
  }

  .modal__right {
    padding: 32px 24px;
  }

  .modal__container {
    width: 95%;
  }

  .slide-headline {
    font-size: 1.2rem;
  }

  @media (max-width: 360px) {
    .slide-headline {
      font-size: 1rem;
    }
  }

  /* Local Experience Responsive */
  .experience-subcategory {
    padding-left: 12px;
  }

  .experience-category__title {
    font-size: 0.95rem;
  }

  .experience-subcategory__title {
    font-size: 0.85rem;
  }

  .tag-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .experience-desc {
    font-size: 0.8rem;
  }
}

/* --- My Page v2 (React Inspired) --- */
/* --- My Page v2 (React Inspired) --- */
.mypage-v2 {
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  overflow-y: auto;
  /* Restored scroll */
  max-height: 85vh;
  /* Restored scroll height limit */
  border-radius: 24px;
  /* Native rounding without overflow hidden */
}

.mypage-v2__header {
  padding: 18px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mypage-v2__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
}

.mypage-v2__close-icon {
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  background: rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
}

.mypage-v2__close-icon:hover,
.mypage-v2__close-icon:active {
  background: #f0f0f0;
  color: #111;
}

.mypage-v2__profile {
  padding: 0 20px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f9f9f9;
}

.mypage-v2__avatar {
  width: 36px !important;
  height: 36px !important;
  background: #ea580c !important;
  /* Forced Orange */
  color: white !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3) !important;
}

.mypage-v2__avatar svg {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.mypage-v2__user-info {
  display: flex;
  flex-direction: column;
}

.mypage-v2__greeting {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #a3a3a3 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 4px !important;
  line-height: 1 !important;
}

.mypage-v2__user-email {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #111 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  word-break: break-all !important;
}

.mypage-v2__card-wrap {
  padding: 12px 36px;
}

.mypage-v2__sub-card {
  background: linear-gradient(135deg, #ff5a1f 0%, #ea580c 100%);
  border-radius: 16px;
  padding: 14px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(255, 90, 31, 0.3);
}

.mypage-v2__sub-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.badge-text {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mypage-v2__billing-info {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.billing-label {
  font-size: 0.68rem;
  color: #000;
  margin-bottom: 4px;
}

.billing-date {
  font-size: 1.25rem;
  /* Increased by additional 10% */
  font-weight: 800;
}

.mypage-v2__manage-wrap {
  position: relative;
  z-index: 10;
}

.btn--manage-billing {
  width: 100%;
  background: white;
  color: #ff5a1f;
  /* Standardized Orange */
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn--manage-billing:hover {
  background: #fff8f5;
  transform: translateY(-1px);
}

.mypage-v2__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
  z-index: 20;
}

.mypage-v2__dropdown.is-active {
  display: block;
}

.dropdown-item {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #f9f9f9;
}

.dropdown-item--danger {
  color: #ef4444;
}

.dropdown-item--danger:hover {
  background: #fef2f2;
}

.mypage-v2__card-accent {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 128px;
  height: 128px;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(32px);
}

.mypage-v2__menu-wrap {
  padding: 0 36px 14px;
}

.mypage-v2__menu-label {
  font-size: 0.65rem;
  color: #a3a3a3;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.menu-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  transition: all 0.2s;
}

.menu-btn--discord {
  background: white;
  border: 1px solid #f3f4f6;
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  align-items: flex-start;
  /* Align to top for better multi-line handling */
  flex-direction: column;
  gap: 16px;
}

.menu-btn--discord:hover {
  background: #fffafa;
  border-color: #ffedd5;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 90, 31, 0.08);
}

.menu-btn__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn__icon-wrap {
  width: 48px;
  height: 48px;
  background: #ff5a1f;
  /* Standardized Key Orange */
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.2);
  flex-shrink: 0;
}

.menu-btn__text {
  text-align: left;
}

.menu-btn__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.menu-btn__title {
  font-weight: 800;
  color: #171717;
  font-size: 0.95rem;
}

/* Premium Comment Badge (Matches MEMBERSHIP ACTIVE pill) */
.badge-premium {
  display: inline-block;
  background: #fff1eb;
  color: #ff5a1f;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
  vertical-align: middle;
}

.menu-btn__status {
  font-size: 0.6rem;
  font-weight: 700;
  color: #ff5a1f;
  /* Standardized Orange */
  background: #fff1eb;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}

.menu-btn__sub {
  font-size: 0.72rem;
  color: #737373;
  line-height: 1.4;
}

.menu-btn__action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a3a3a3;
  transition: all 0.2s;
}

.menu-btn--discord:hover .menu-btn__action {
  color: #ff5a1f;
}

.mypage-v2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.grid-btn {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: background 0.2s;
}

.grid-btn:hover {
  background: #f5f5f5;
}

.grid-btn__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #404040;
}

.mypage-v2__footer {
  padding: 0 32px 32px;
}

.mypage-v2__notice {
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 12px;
}

.mypage-v2__notice p {
  font-size: 0.625rem;
  line-height: 1.5;
  color: #a3a3a3;
}

.mypage-v2__notice strong {
  color: #737373;
}

.btn--signout {
  width: 100%;
  padding: 16px;
  font-size: 0.7rem;
  font-weight: 900;
  color: #a3a3a3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.2s;
  opacity: 0.8;
}

.btn--signout:hover {
  color: #111;
  opacity: 1;
  transform: translateY(-1px);
}

.btn--signout svg {
  margin-top: -1px;
}

/* SVG Icon Replacements */
.icon-shield::before {
  content: '🛡️';
}

.icon-chevron::after {
  content: ' ›';
}

.icon-discord::before {
  content: '💬';
}

.icon-external::after {
  content: ' ↗';
}

.icon-settings::before {
  content: '⚙️';
}

.icon-bell::before {
  content: '🔔';
}

.icon-logout::before {
  content: '🚪';
}

.icon-user::before {
  content: '';
}

.icon-close::before {
  content: '✕';
}

.text-muted {
  color: #d4d4d4;
}

/* --- Body scroll lock --- */
body.modal-open {
  overflow: hidden;
}

/* ============================================
   SPLIT COMMENT MODAL (Instagram Web Style)
   ============================================ */

/* Modal Container: Wide & Split */
.modal__container--split {
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  max-height: 900px;
  display: flex !important;
  /* Force flex */
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 16px;
  /* Increased from 4px */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Left Side: Media (Image) */
.modal__media {
  flex: 1.5;
  /* 60% approx */
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover the area */
  display: block;
}

/* Right Side: Content (Comments) */
.modal__content {
  flex: 1;
  /* 40% approx */
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #efefef;
  position: relative;
  width: 100%;
  /* Ensure width in flex */
}

/* Header */
.comment-modal__header {
  padding: 16px;
  border-bottom: 1px solid #efefef;
  display: flex;
  align-items: center;
  /* justify-content: space-between; inside main.js/html structure */
  height: 60px;
  flex-shrink: 0;
}

.comment-modal__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #262626;
}

/* Body: Scrollable Comments */
.comment-modal__body {
  flex: 1;
  min-height: 0;
  /* Critical for flex-child overflow-y to work */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  /* Smooth scroll on iOS */
}

/* Footer: Input Area */
.comment-modal__footer {
  padding: 12px 16px;
  border-top: 1px solid #efefef;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  /* Anchor for emoji picker */
}

/* Emoji Bar */
.emoji-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.emoji-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: transform 0.2s, background 0.2s;
}

.emoji-btn:hover {
  background: #f8f8f8;
  transform: scale(1.2);
}

.comment-form-modal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-form-modal input,
.comment-form-modal textarea {
  flex: 1;
  border: none;
  font-size: 0.9rem;
  padding: 8px 0;
  outline: none;
  font-family: inherit;
}

.comment-form-modal textarea {
  min-height: 40px;
  resize: none;
  padding-top: 10px;
}

.comment-form-modal .btn-post {
  color: #0095f6;
  /* Insta Blue */
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.comment-form-modal .btn-post:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Close Button - Overlay on Top Right or Outside? 
   Insta web usually has it outside top right, let's put it absolute top right of container */
.modal__close--split {
  position: absolute;
  top: 15px;
  left: 20px;
  color: #ffffff !important;
  font-size: 2.2rem;
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
  touch-action: manipulation;
}

.modal__close--split:hover {
  transform: scale(1.1);
}

/* Responsive: Stack on Mobile */
@media (max-width: 768px) {
  .modal__container--split {
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-width: none;
    max-height: none;
  }

  /* Comment modal close button: image is at top, button overlaps it — keep white with shadow */
  /* But add a solid circular bg so it's always visible */
  .modal__close--split {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border-radius: 50% !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.4rem !important;
    top: 12px !important;
    left: 12px !important;
    text-shadow: none !important;
  }

  /* Comment modal on mobile: make layout fill screen with sticky footer */
  .modal__media {
    flex: none;
    height: 35vh;
    /* Image takes top part */
  }

  .modal__content {
    flex: 1;
    min-height: 0;
    border-left: none;
    display: flex;
    flex-direction: column;
    /* Fill remaining space after image */
    height: calc(65vh);
  }

  /* Sticky comment input at bottom, Instagram-style */
  .comment-modal__footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #efefef;
    z-index: 10;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  /* Fix iOS focus zoom on textarea */
  #split-comment-input {
    font-size: 16px !important;
  }
}

/* =============================================
   ADVANCED EMOJI PICKER (iPhone Style)
   ============================================= */
.btn-emoji-plus {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  font-weight: 300;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-emoji-plus:hover {
  background: #e0e0e0;
  transform: scale(1.1);
}

.emoji-picker-popup {
  position: absolute;
  bottom: 100%;
  left: 16px;
  width: 300px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  /* Toggle via JS */
  flex-direction: column;
  z-index: 100;
  margin-bottom: 12px;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.emoji-picker-popup[aria-hidden="false"] {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.emoji-picker__header {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#emoji-search-input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

.emoji-picker__list {
  height: 250px;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.emoji-item-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: transform 0.1s;
}

.emoji-item-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.2);
}

.emoji-picker__categories {
  display: flex;
  justify-content: space-around;
  padding: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.02);
}

.emoji-cat-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 4px 8px;
}

.emoji-cat-btn.active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

/* =============================================
   REFINED COMMENT UI (Instagram Style)
   ============================================= */
.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.comment-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.comment-content {
  flex: 1;
}

.comment-header {
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 6px;
  color: #262626;
}

.comment-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #262626;
  margin-bottom: 8px;
  white-space: pre-wrap;
  /* Preserve newlines from textarea */
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #8e8e8e;
}

.btn-comment-action {
  background: none;
  border: none;
  color: #8e8e8e;
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.btn-comment-action:hover {
  color: #262626;
  text-decoration: underline;
}

.comment-heart-wrap {
  position: absolute;
  right: 0;
  top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.btn-comment-heart {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-comment-heart:hover {
  transform: scale(1.2);
}

.btn-comment-heart img {
  width: 22px;
  height: 22px;
  display: block;
}

.comment-like-count {
  font-size: 0.7rem;
  color: #8e8e8e;
  min-width: 10px;
  text-align: center;
}

/* Replies Area */
.comment-replies-toggle {
  margin-left: 44px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #8e8e8e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-replies-toggle::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #dbdbdb;
}

.comment-replies-toggle:hover {
  color: #262626;
}

/* Nested Replies Indentation */
.comment-item--reply {
  margin-left: 44px;
  border-left: 1px solid #efefef;
  padding-left: 12px;
  margin-top: 8px;
}

/* Gated Input Form Style */
.comment-form-modal.is-disabled {
  background: #fafafa;
  position: relative;
}

.comment-form-modal.is-disabled input {
  pointer-events: none;
  background: #fafafa;
  color: transparent;
  /* Hide text if any */
}

.comment-form-modal.is-disabled input,
.comment-form-modal.is-disabled textarea {
  pointer-events: none;
  background-color: #fafafa;
}

.comment-form-modal.is-disabled .btn-post,
.comment-form-modal.is-disabled .btn-emoji-plus {
  display: none;
}

.comment-form-modal__gate-msg {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #0095f6;
  font-weight: 600;
  cursor: pointer;
}

/* --- Hover Detail Overlay --- */
.city-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  gap: 16px;
}

.city-card:hover:not(.no-overlay) .city-card__hover,
.city-card.is-active .city-card__hover {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

/* Hide default text/stats ONLY when the hover stats bars are showing */
.city-card:hover:not(.no-overlay) .city-card__overlay {
  opacity: 0;
  visibility: hidden;
}

.city-card:has(.city-card__social:hover) .city-card__hover,
.city-card:has(.city-card__social:hover) .city-card__hover * {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.city-card:has(.city-card__social:hover) .city-card__overlay {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 24px !important;
}

.city-card:has(.city-card__social:hover) .city-card__bottom {
  margin-top: auto !important;
  transform: none !important;
}

.city-card:hover:not(.no-overlay) .city-card__social {
  opacity: 0 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  z-index: 1000 !important;
}

.city-card:has(.city-card__social:hover) .city-card__social {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1000 !important;
}

.city-card__hover-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* End of Styles */
/* --- Discord Card (New Layout) --- */
.discord-card {
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 16px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.discord-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.discord-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-card__icon {
  width: 36px;
  height: 36px;
  background: #ff5a1f;
  /* Primary Orange */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.25);
  flex-shrink: 0;
}

.discord-card__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.discord-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  white-space: nowrap;
  /* Prevent wrapping at all costs */
}

.discord-card__desc {
  font-size: 0.7rem;
  color: #525252;
  line-height: 1.4;
}

.btn--discord-join {
  width: 100%;
  background: #ff5a1f;
  /* Primary Orange */
  color: white;
  font-weight: 800;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  font-size: 1rem;
}

.btn--discord-join:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.3);
}

.menu-btn__status {
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 4px;
  color: #ff5a1f;
  background: transparent;
  padding: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}

/* --- Billing Management Modal Styles (Reused for standalone page) --- */
.billing-modal-container {
  background: #f8f9fa;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .billing-modal-container {
  transform: translateY(0);
}

.billing-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.billing-header {
  margin-bottom: 24px;
}

.billing-back-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 0;
  font-weight: 500;
}

.billing-back-btn:hover {
  color: #ff5a1f;
}

.billing-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}

.billing-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.billing-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.billing-row:last-child {
  border-bottom: none;
}

.billing-label {
  font-size: 0.95rem;
  color: #000;
  font-weight: 500;
}

.billing-value {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 600;
}

.billing-status-badge {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.billing-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-method-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 44px;
  height: 30px;
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-number {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 600;
}

.card-expiry {
  font-size: 0.8rem;
  color: #999;
}

.btn-secondary {
  background: #f5f5f5;
  color: #666;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-cancel-sub {
  width: 100%;
  background: white;
  color: #d32f2f;
  border: 1px solid #d32f2f;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.btn-cancel-sub:hover {
  background: #d32f2f;
  color: white;
}

.billing-notice-box {
  background: #FFF9E6;
  border-left: 4px solid #FFA000;
  padding: 16px;
  border-radius: 8px;
}

.notice-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.notice-text {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 4px;
}

.notice-text:last-child {
  margin-bottom: 0;
}

/* Billing Modal Responsive */
@media (max-width: 768px) {
  .billing-modal-container {
    padding: 24px;
    width: 95%;
    max-height: 85vh;
  }

  .billing-header h1 {
    font-size: 1.5rem;
  }
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-dashboard {
  padding: 0;
  max-width: 1000px;
  width: 100%;
}

.admin-dashboard__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.admin-dashboard__content {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-surface);
}

.admin-table th {
  font-weight: 600;
  color: var(--c-text-secondary);
  background: var(--c-surface);
}

.admin-city-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  background: #eef2ff;
  color: #4f46e5;
  text-transform: capitalize;
}

.admin-report-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--c-coral);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.btn-admin {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin--dismiss {
  background: var(--c-surface);
  color: var(--c-text-secondary);
}

.btn-admin--dismiss:hover {
  background: #e5e5e5;
}

.admin-empty-msg {
  text-align: center;
  color: var(--c-text-muted);
  padding: 40px 0;
  font-style: italic;
  display: none;
  /* Toggled via JS */
}

/* --- Currency Trend Indicators --- */
.trend-up {
  color: #ff4d4d;
  /* Red */
}

.trend-down {
  color: #4d79ff;
  /* Blue */
}

.trend-flat {
  color: #888;
  /* Gray */
}

/* My Page Activity List */
.mypage-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.activity-item {
  background: rgba(0, 0, 0, 0.03);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-date {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 4px;
}

.activity-city {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: bold;
  background: #eee;
  color: #666;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.activity-content {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
}

.empty-msg {
  text-align: center;
  color: #999;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Guest Mode Gating */
.guest-hidden {
  display: none !important;
}

/* Disable Discord Link in Guest Mode */
.btn--disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}
/* --- Report Popup (User Custom) --- */
.report-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100; /* Higher than .modal (1000) */
}

/* Hide by default, will be toggled by JS */
.report-overlay[aria-hidden="true"] {
  display: none;
}

.report-popup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  width: 280px; /* Slightly wider than user request for better fit */
  padding: 20px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.report-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--c-text);
}

.report-header .close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
}

.report-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.report-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.report-options label:hover {
  background: #f8f8f8;
}

.report-options input {
  margin-right: 12px;
  accent-color: var(--c-primary);
}

.report-options span {
  font-size: 14px;
  color: #444;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--c-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: var(--c-primary-hover);
}
