* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: #f5f7fa;
  color: #2d3748;
  line-height: 1.7;
}

/* Header */
header {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  white-space: nowrap;
}

.logo span {
  font-size: 1.5rem;
}

.search-bar {
  flex: 1;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 24px;
  border: none;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.2);
  color: white;
  outline: none;
  transition: background 0.2s;
}

.search-bar input::placeholder {
  color: rgba(255,255,255,0.7);
}

.search-bar input:focus {
  background: rgba(255,255,255,0.3);
}

.search-bar .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 16px;
  transition: background 0.2s;
  white-space: nowrap;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: white;
  text-align: center;
  padding: 60px 24px 80px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-stats .stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Category Filter */
.category-bar {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  position: sticky;
  top: 56px;
  z-index: 90;
}

.category-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: #4a5568;
}

.cat-btn:hover, .cat-btn.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: white;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Destination Grid */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.dest-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.badge-overseas { background: #e53e3e; }
.badge-domestic { background: #38a169; }

.card-body {
  padding: 18px;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-body .subtitle {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 10px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  padding: 3px 10px;
  background: #ebf4ff;
  color: #2b6cb0;
  border-radius: 12px;
  font-size: 0.78rem;
}

.card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: #718096;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

/* Wiki Article Page */
.wiki-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
}

.wiki-article {
  background: white;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.wiki-article h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a202c;
}

.wiki-article .lead {
  font-size: 1.05rem;
  color: #4a5568;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.wiki-article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 28px 0 14px;
  color: #1a202c;
  padding-left: 12px;
  border-left: 4px solid #1a73e8;
}

.wiki-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: #2d3748;
}

.wiki-article p {
  margin-bottom: 14px;
  color: #4a5568;
}

.wiki-article ul {
  margin: 0 0 16px 20px;
  color: #4a5568;
}

.wiki-article li {
  margin-bottom: 6px;
}

.info-box {
  background: #ebf8ff;
  border: 1px solid #bee3f8;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.info-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2b6cb0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.info-box td {
  padding: 5px 0;
  vertical-align: top;
}

.info-box td:first-child {
  font-weight: 600;
  color: #2d3748;
  width: 100px;
  min-width: 100px;
}

.tip-box {
  background: #fffff0;
  border: 1px solid #fefcbf;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}

.tip-box h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #744210;
  margin-bottom: 8px;
}

/* Sidebar */
.wiki-sidebar > * {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1a202c;
}

.dest-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: #4a5568;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}

.dest-list a:last-child {
  border-bottom: none;
}

.dest-list a:hover {
  color: #1a73e8;
}

.dest-list a.active {
  color: #1a73e8;
  font-weight: 600;
}

/* Hero image for wiki page */
.wiki-hero {
  font-size: 7rem;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
  line-height: 1;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 0.87rem;
  color: #718096;
}

.breadcrumb a {
  color: #1a73e8;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #1a202c;
  color: #a0aec0;
  text-align: center;
  padding: 32px 24px;
  margin-top: 60px;
  font-size: 0.88rem;
}

footer a {
  color: #63b3ed;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }
  .wiki-sidebar {
    display: none;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .destination-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
}
