:root {
  color-scheme: light dark;
  font-family: "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #0f172a;
  background-color: #f1f5f9;
  letter-spacing: 0.005em;
  --brand-primary: #2563eb;
  --brand-secondary: #0f172a;
  --brand-accent: #38bdf8;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 32px 70px -40px rgba(15, 23, 42, 0.55);
  --display-font: "Manrope", "Noto Sans KR", "Pretendard", sans-serif;
  --bg-primary: #f6f7fb;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: rgba(15, 23, 42, 0.75);
  --text-tertiary: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: rgba(241, 245, 249, 0.85);
  --text-tertiary: rgba(241, 245, 249, 0.65);
  --card-bg: rgba(30, 41, 59, 0.9);
  --border-color: rgba(148, 163, 184, 0.2);
  --card-shadow: 0 32px 70px -40px rgba(0, 0, 0, 0.8);
  color: #f1f5f9;
  background-color: #0f172a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.75rem;
  z-index: 1000;
}

.control-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.15);
}

.control-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.25);
}

.control-button:active {
  transform: translateY(0);
}

.control-button__icon {
  font-size: 1.1rem;
}

[data-theme="dark"] .control-button {
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .control-button:hover {
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.5);
}

.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;
}

.hero {
  padding: clamp(3.5rem, 6vw, 6.5rem) 1.5rem 2rem;
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--brand-secondary);
  letter-spacing: 0.015em;
}

.hero__content {
  max-width: 720px;
  width: 100%;
  background: var(--bg-secondary);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.75);
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .hero__badge {
  background: rgba(241, 245, 249, 0.15);
  border: 1px solid rgba(241, 245, 249, 0.25);
  color: rgba(241, 245, 249, 0.95);
}

.hero__badge-icon {
  font-size: 1rem;
  color: var(--brand-primary);
}

.hero__logo-image {
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: min(420px, 80%);
  height: auto;
  margin: 0 auto 1.75rem;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(15, 76, 129, 0.22));
  position: relative;
  z-index: 1;
}

.hero__logo-image:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.hero__logo-image:active {
  transform: scale(0.98);
}

.hero__tagline,
.hero__subcopy {
  margin: 0.25rem 0;
  color: var(--text-secondary);
  letter-spacing: 0.015em;
  position: relative;
  z-index: 1;
}

.hero__tagline {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero__subcopy {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  margin-bottom: 2.25rem;
}

.hero__hint {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-box {
  margin: 2rem auto 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  backdrop-filter: blur(14px);
  padding: 0.9rem;
  border-radius: 999px;
  background-color: var(--bg-secondary);
  box-shadow: 0 20px 45px -22px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .search-box {
  box-shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.5);
}

.search-box input {
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 1rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  outline: 2px solid transparent;
  outline-offset: 2px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .search-box input {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-box input:focus {
  outline-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.search-box button {
  border: none;
  padding: 0 1.5rem;
  border-radius: 999px;
  background-color: #1d4ed8;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px -16px rgba(29, 78, 216, 0.6);
}

.search-box button:hover {
  transform: translateY(-2px);
  background-color: #1a44bd;
  box-shadow: 0 18px 30px -18px rgba(29, 78, 216, 0.55);
}

.search-box button:active {
  transform: translateY(0);
  background-color: #183ba6;
  box-shadow: 0 10px 18px -16px rgba(29, 78, 216, 0.45);
}

main {
  flex: 1;
  padding: 0 1.5rem 3rem;
  display: flex;
  justify-content: center;
}

.results {
  width: 100%;
  max-width: 1080px;
}

.results__placeholder {
  margin-top: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 32px;
  background-color: var(--bg-secondary);
  text-align: center;
  box-shadow: var(--card-shadow);
  letter-spacing: 0.012em;
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .results__placeholder {
  box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.6);
}

.results__placeholder h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--brand-secondary);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

[data-theme="dark"] .results__placeholder h2 {
  color: #f1f5f9;
}

.results__placeholder p {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

[data-theme="dark"] .results__placeholder p {
  color: rgba(241, 245, 249, 0.9);
}

.destination {
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 36px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  animation: fade-up 0.5s ease forwards;
  transform-origin: center top;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.destination__header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
  color: var(--brand-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  transition: color 0.3s ease;
}

[data-theme="dark"] .destination__header h2 {
  color: #f1f5f9;
}

.destination__summary {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.destination__quick-info {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.quick-info__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.quick-info__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.quick-info__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-info__label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.quick-info__value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.weather-link {
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.weather-link:hover {
  color: var(--brand-accent);
  opacity: 0.9;
}

.weather-link:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.weather-icon {
  font-size: 0.85rem;
  opacity: 0.7;
}

.weather-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.weather-city-name-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.currency-rate-container {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.currency-rate-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.currency-rate {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.currency-rate-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.currency-rate-time__label {
  font-weight: 500;
}

.currency-rate-time__value {
  font-weight: 600;
  color: var(--text-secondary);
}

.currency-rate__label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.currency-rate__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.currency-rate__unit {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.currency-chart-container {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.currency-chart__title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.currency-chart {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

[data-theme="dark"] .currency-chart {
  filter: brightness(1.1);
}

.currency-calculator {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: block;
}

.calculator-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.calculator-input {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calculator-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calculator-currency-code {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 50px;
}

.calculator-equals {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.calculator-result {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary);
  min-width: 100px;
  text-align: right;
}

.calculator-result-unit {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.weather-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.weather-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.weather-section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.weather-time__label {
  font-weight: 500;
}

.weather-time__value {
  font-weight: 600;
  color: var(--text-primary);
}

.weather-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.weather-city-card {
  padding: 1.25rem;
  background-color: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-city-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.weather-city-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.weather-city-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.weather-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.weather-icon-temp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.weather-icon-large {
  font-size: 2.5rem;
  line-height: 1;
}

.weather-temp {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.weather-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.weather-detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.weather-detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

.weather-loading,
.weather-error {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.weather-error {
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .weather-display {
    grid-template-columns: 1fr;
  }
}

.destination__flag {
  font-size: clamp(2rem, 4vw, 2.5rem);
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18));
  transform: translateY(2px);
}

.destination__country {
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

[data-theme="dark"] .destination__country {
  color: #f1f5f9;
}

.destination__info {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 18px 34px -28px rgba(15, 23, 42, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card--products {
  grid-column: 1 / -1;
  padding: 2rem;
}

[data-theme="dark"] .info-card {
  box-shadow: 0 18px 34px -28px rgba(0, 0, 0, 0.5);
}

.info-card::before {
  content: none;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 36px -26px rgba(15, 23, 42, 0.28);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: var(--brand-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.info-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.98rem;
  color: var(--text-secondary);
  letter-spacing: 0.015em;
}

.info-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--brand-primary);
  opacity: 0.9;
}

.info-list li .list-item-title {
  font-weight: 600;
  color: var(--text-primary);
  display: inline-block;
  margin-right: 0.25rem;
}

.info-list li .list-item-description {
  color: var(--text-secondary);
  font-weight: 400;
}

.product-link-wrapper {
  margin-top: 0.5rem;
}

.product-link {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1d4ed8 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  letter-spacing: 0.01em;
}

.product-link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.35);
}

.product-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.affiliate-disclosure {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: var(--bg-primary);
  border-left: 3px solid var(--brand-primary);
  border-radius: 4px;
}

/* 제품 리스트 스타일 */
.info-list--products {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.info-list--products li {
  padding: 0;
  list-style: none;
  flex: 0 1 calc(50% - 0.625rem);
  min-width: 0;
}

.info-list--products li::before {
  display: none;
}

/* 제품 카드 스타일 */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  width: 100%;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.product-iframe-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  align-self: center;
  width: 100%;
  max-width: 140px;
}

[data-theme="dark"] .product-iframe-wrapper {
  background: #1e293b;
  border-color: #334155;
}

.product-iframe-wrapper iframe {
  border-radius: 6px;
}

.product-image-wrapper {
  flex-shrink: 0;
  width: 100%;
  max-width: 120px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  align-self: center;
}

[data-theme="dark"] .product-image-wrapper {
  background: #1e293b;
  border-color: #334155;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.03);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}

.product-card .product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
  order: -1;
  text-align: center;
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.product-card .product-link {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--brand-primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  border: none;
}

.product-card .product-link:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* 데스크톱 최적화 */
@media (min-width: 1024px) {
  .info-list--products li {
    flex: 0 1 calc(33.333% - 0.833rem);
  }
  
  .product-card {
    padding: 1.5rem;
  }
  
  .product-iframe-wrapper {
    max-width: 160px;
  }
  
  .product-image-wrapper {
    max-width: 140px;
    height: 220px;
  }
  
  .product-card .product-title {
    font-size: 1.1rem;
  }
  
  .product-description {
    font-size: 1rem;
  }
}

/* 태블릿 */
@media (min-width: 641px) and (max-width: 1023px) {
  .info-list--products li {
    flex: 0 1 calc(50% - 0.625rem);
  }
}

/* 모바일 반응형 */
@media (max-width: 640px) {
  .info-list--products {
    flex-direction: column;
  }
  
  .info-list--products li {
    flex: 1 1 100%;
  }
  
  .product-card {
    gap: 0.875rem;
    padding: 1.25rem;
  }
  
  .product-iframe-wrapper {
    max-width: 180px;
  }
  
  .product-image-wrapper {
    max-width: 180px;
    height: 200px;
  }
  
  .product-card .product-title {
    font-size: 1.05rem;
  }
  
  .product-description {
    font-size: 0.9rem;
  }
}

.phrase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.phrase-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-left: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
  letter-spacing: 0.015em;
}

.phrase-list li::before {
  content: none;
}

.phrase-list__source {
  font-weight: 600;
  color: var(--brand-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

[data-theme="dark"] .phrase-list__source {
  color: #f1f5f9;
}

.phrase-list__pronunciation {
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

[data-theme="dark"] .phrase-list__pronunciation {
  color: rgba(241, 245, 249, 0.8);
}

.phrase-list__meaning {
  color: var(--text-secondary);
  letter-spacing: 0.015em;
  transition: color 0.3s ease;
}

[data-theme="dark"] .phrase-list__meaning {
  color: rgba(241, 245, 249, 0.9);
}

.phrase-list__speaker {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.phrase-list__speaker:hover {
  background-color: rgba(37, 99, 235, 0.1);
  transform: scale(1.1);
}

.phrase-list__speaker:active {
  transform: scale(0.95);
}

.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .controls {
    top: 0.5rem;
    right: 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .control-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .control-button__text {
    display: none;
  }

  .search-box {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .search-box button {
    padding: 0.85rem 1.25rem;
    width: 100%;
  }

  .destination {
    padding: 1.75rem;
  }

  .hero__content {
    padding: 2rem;
  }

  .destination__quick-info {
    flex-direction: column;
    gap: 1rem;
  }

  .quick-info__item {
    min-width: 100%;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Google AdSense 스타일 */
.ad-container {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-container ins {
  display: block;
  margin: 0 auto;
}

.ad-top {
  margin-top: 0;
}

.ad-bottom {
  margin-bottom: 2rem;
}

/* 모바일에서 광고 최적화 */
@media (max-width: 768px) {
  .ad-container {
    margin: 1rem 0;
    padding: 0.5rem;
    min-height: 50px;
  }
}

