/* ================================================
   Travel Site Design - Warm Modern
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2D2D2D;
  --primary-light: #4A4A4A;
  --primary-dark: #1A1A1A;
  --accent: #C97D60;
  --accent-light: #DF9E82;
  --accent-dark: #B06448;
  --bg: #FFFFFF;
  --bg-alt: #F8F6F4;
  --text: #2D2D2D;
  --text-secondary: #6B6B6B;
  --text-muted: #9E9E9E;
  --border: #E8E2DC;
  --border-light: #F0ECE8;
  --shadow: 0 2px 12px rgba(45,45,45,0.06);
  --shadow-lg: 0 8px 40px rgba(45,45,45,0.1);
  --font: 'Inter', -apple-system, 'Microsoft YaHei', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Noto Serif SC', serif;
  --t: 0.3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: color var(--t); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--t);
}
.topbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 0 6px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 26px; color: var(--primary); font-family: var(--font-serif); }
.brand-mark { width: 48px; height: 48px; background: var(--accent); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-family: var(--font-serif); font-style: italic; }
.brand-logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a { padding: 10px 22px; font-size: 16px; font-weight: 600; color: var(--text-secondary); border-radius: 8px; transition: all var(--t); }
.nav-list a:hover { color: var(--primary); background: var(--bg-alt); }
.nav-list a.active { color: var(--accent-dark); background: rgba(201,125,96,0.1); }
.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--bg-alt); border-radius: 8px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
/* ====== HERO - Pure Image Carousel ====== */
.hero {
  position: relative; overflow: hidden;
  margin-top: 72px; width: 100%;
}
.carousel { position: relative; width: 100%; overflow: hidden; }
.carousel-inner { display: flex; transition: transform 0.6s ease; }
.carousel-item { min-width: 100%; flex-shrink: 0; }
.carousel-item img { width: 100%; height: 600px; object-fit: cover; display: block; }
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.25); color: white; border: none;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 28px; cursor: pointer; transition: all var(--t);
  z-index: 3; line-height: 50px; text-align: center;
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.5); transform: translateY(-50%) scale(1.1); }
.carousel-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3; align-items: center;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all var(--t); }
.dot.active { background: white; width: 28px; border-radius: 5px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; font-size: 14px; font-weight: 700; border-radius: 6px; transition: all var(--t); cursor: pointer; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* Section */
.sec { padding: 80px 0; }
.sec-header { text-align: center; margin-bottom: 48px; }
.sec-header.left { text-align: left; }
.sec-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 8px; }
.sec-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; color: var(--text); margin-bottom: 10px; }
.sec-desc { font-size: 15px; color: var(--text-secondary); max-width: 580px; margin: 0 auto; line-height: 1.7; }
.sec-header.left .sec-desc { margin: 0; }

/* About / Service */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.about-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 400px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { font-size: 15px; color: var(--text-secondary); line-height: 1.9; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.service-item { padding: 20px; border: 1px solid var(--border); border-radius: 12px; transition: all var(--t); }
.service-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.service-icon { width: 48px; height: 48px; background: rgba(201,125,96,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.service-icon svg { width: 24px; height: 24px; color: var(--accent); }
.service-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.service-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Cards */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-item { background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: all var(--t); }
.card-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; font-weight: 700; font-family: var(--font-serif); margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Contact */
.c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.c-info, .c-form { background: white; border-radius: 12px; padding: 32px; border: 1px solid var(--border); }
.c-info h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.c-items { display: grid; gap: 10px; }
.c-item { display: flex; gap: 12px; padding: 12px; background: var(--bg-alt); border-radius: 8px; align-items: center; }
.c-ico { width: 38px; height: 38px; background: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.c-item .cl { font-size: 12px; color: var(--text-muted); }
.c-item .cv { font-size: 14px; font-weight: 600; }
.f-grid { display: grid; gap: 16px; }
.f-group label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; }
.f-group input, .f-group textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--text); background: var(--bg-alt); }
.f-group input:focus, .f-group textarea:focus { outline: none; border-color: var(--accent); }
.f-group textarea { min-height: 100px; resize: vertical; }
.ok-note { padding: 12px; background: #F0F0F0; border-radius: 8px; font-weight: 600; text-align: center; }

/* Article */
.art-cover { position: relative; min-height: 380px; }
.art-cover img { width: 100%; height: 380px; object-fit: cover; }
.art-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.85), transparent); }
.art-cover-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; z-index: 2; max-width: 800px; margin: 0 auto; }
.art-cover-text h1 { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 38px); color: white; }
.art-body { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.art-body .summary { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.art-body .content { font-size: 16px; line-height: 1.9; }
.art-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* Page Banner */
.page-banner { background: linear-gradient(135deg, #3D3D3D, #2D2D2D); padding: 120px 24px 56px; text-align: center; }
.page-banner h1 { font-family: var(--font-serif); font-size: clamp(28px, 3.5vw, 42px); color: white; margin-bottom: 8px; }
.page-banner p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto; }

/* 404 */
.page-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; }
.page-404 h1 { font-family: var(--font-serif); font-size: 100px; font-weight: 800; color: var(--primary); line-height: 1; opacity: 0.08; margin-bottom: 10px; }
.page-404 h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.page-404 p { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }
.page-404 .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: #1A1A1A; color: white; padding: 56px 24px 24px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; margin-top: 10px; }
.fcol h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
.fcol a { display: block; font-size: 14px; color: rgba(255,255,255,0.55); padding: 4px 0; }
.fcol a:hover { color: var(--accent-light); }
.footer-bar { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.3); text-align: center; }

/* Responsive */
@media(max-width:1024px){
  .about-row { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .c-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px){
  .nav-list { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; }
  .carousel-item img { height: 320px; }
  .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 20px; line-height: 36px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .hero h1 { font-size: 32px; }
  .sec { padding: 48px 0; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 100px 16px 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; gap: 8px; text-align: center; }
}
@media(max-width:480px){
  .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ================================================
   Admin / Backend Styles
   ================================================ */
.admin-body {
  margin: 0; padding: 0; display: flex; min-height: 100vh;
  background: #F0F2F5; color: #333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; line-height: 1.6;
}
.admin-body * { box-sizing: border-box; }
.admin-body a { color: #2398E0; text-decoration: none; }
.admin-body a:hover { color: #1A7AC0; text-decoration: underline; }
.admin-body h1, .admin-body h2, .admin-body h3, .admin-body h4 { margin: 0 0 8px; color: #1A1A1A; }

.admin-sidebar {
  width: 220px; min-height: 100vh; background: #001529;
  padding: 0; flex-shrink: 0; position: sticky; top: 0; align-self: flex-start;
}
.admin-brand {
  display: block; padding: 20px 16px; font-size: 16px; font-weight: 700;
  color: white !important; border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none !important;
}
.admin-sidebar a {
  display: block; padding: 12px 20px; color: rgba(255,255,255,0.65) !important;
  font-size: 13px; transition: all 0.2s; border-left: 3px solid transparent;
  text-decoration: none !important;
}
.admin-sidebar a:hover { color: white !important; background: rgba(255,255,255,0.06); border-left-color: #2398E0; }
.admin-sidebar a.active { color: white !important; background: #1890FF; border-left-color: #1890FF; }

.admin-main { flex: 1; padding: 24px; max-width: 100%; overflow-x: auto; }

.admin-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; gap: 16px;
}
.admin-header h1 { font-size: 24px; font-weight: 700; margin: 4px 0; }
.admin-header span { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.admin-header p { font-size: 13px; color: #888; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
}
.stat-card span { display: block; font-size: 12px; color: #888; margin-bottom: 8px; }
.stat-card b { font-size: 28px; color: #2398E0; }

.admin-card {
  background: white; border-radius: 8px; padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 24px;
}
.admin-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #F0F0F0; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 8px; }
.quick-grid a {
  display: block; padding: 12px 16px; background: #F6F8FA; border-radius: 6px;
  font-size: 13px; color: #333 !important; text-decoration: none !important; text-align: center;
}
.quick-grid a:hover { background: #E6F0FF; color: #2398E0 !important; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 12px; text-align: left; border-bottom: 1px solid #F0F0F0; font-size: 13px;
}
.admin-table th { font-weight: 600; color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.admin-table td img { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; }
.admin-table td b { display: block; font-size: 14px; color: #1A1A1A; }
.admin-table td small { display: block; font-size: 12px; color: #999; margin-top: 2px; }
.admin-table tr:hover td { background: #F6F8FA; }
.admin-table .actions { white-space: nowrap; }
.admin-table .actions a, .admin-table .actions button {
  display: inline-block; padding: 4px 12px; font-size: 12px; border-radius: 4px;
  border: 1px solid #D9D9D9; background: white; cursor: pointer; color: #333 !important;
  text-decoration: none !important; margin: 0 2px;
}
.admin-table .actions a:hover, .admin-table .actions button:hover { border-color: #2398E0; color: #2398E0 !important; background: #E6F0FF; }

.empty { text-align: center; padding: 48px 16px; color: #999; font-size: 14px; }

.form-grid { display: grid; gap: 16px; }
.field-card {
  display: block; padding: 16px; border: 1px solid #F0F0F0; border-radius: 8px;
}
.field-card > span { display: block; font-size: 12px; font-weight: 600; color: #666; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.field-card input, .field-card textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #D9D9D9; border-radius: 6px;
  font-size: 14px; font-family: inherit; transition: border-color 0.2s;
}
.field-card input:focus, .field-card textarea:focus { outline: none; border-color: #2398E0; box-shadow: 0 0 0 2px rgba(35,152,224,0.15); }
.field-card small { display: block; font-size: 12px; color: #999; margin-top: 6px; }
.image-field .upload-preview { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; display: block; }

/* Banner multi-image upload */
.banner-list { display: flex; flex-direction: column; gap: 12px; }
.banner-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: #F8F9FA; border-radius: 8px; border: 1px solid #F0F0F0;
}
.banner-item .upload-preview { width: 90px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.banner-item .banner-url { flex: 1; }
.banner-item input[type="file"] { font-size: 12px; max-width: 180px; }

.admin-body .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; font-size: 13px; font-weight: 600; border-radius: 6px; border: none; cursor: pointer; transition: all 0.2s; text-decoration: none !important; }
.admin-body .btn.sm { padding: 4px 10px; font-size: 12px; }
.admin-body .btn.primary { background: #2398E0; color: white !important; }
.admin-body .btn.primary:hover { background: #1A7AC0; }
.admin-body .btn.ghost { background: transparent; border: 1px solid #D9D9D9; color: #333 !important; }
.admin-body .btn.ghost:hover { border-color: #2398E0; color: #2398E0 !important; }
.admin-body .btn.dark { background: #333; color: white !important; }
.admin-body .btn.dark:hover { background: #555; }

.login-page {
  display: flex; align-items: center; justify-content: center;
  width: 100vw; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-card {
  background: white; border-radius: 16px; padding: 48px 40px; width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); text-align: center;
}
.login-card .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #2398E0, #667eea);
  color: white; font-size: 20px; font-weight: 900; margin-bottom: 16px;
}
.login-card h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-card p { font-size: 13px; color: #999; margin-bottom: 20px; }
.login-card label { display: block; text-align: left; font-size: 12px; font-weight: 600; color: #666; margin-bottom: 12px; }
.login-card label input { width: 100%; padding: 10px 14px; border: 1px solid #D9D9D9; border-radius: 8px; font-size: 14px; margin-top: 4px; }
.login-card label input:focus { outline: none; border-color: #2398E0; box-shadow: 0 0 0 2px rgba(35,152,224,0.15); }
.login-card .error { background: #FFF2F0; border: 1px solid #FFCCC7; color: #CF1322; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.login-card .btn.primary { width: 100%; justify-content: center; padding: 12px; }
