/* ============================================
   TripPlanner — Design System v2
   Ocean / Coral / Sand Theme
   (Matches landing page aesthetic)
   ============================================ */

/* === Variables === */
:root {
  --ocean: #0B4F6C;
  --ocean-deep: #062C3E;
  --sky: #3DA5D9;
  --sky-light: #E8F4FD;
  --coral: #F26430;
  --coral-soft: #FF8C61;
  --sand: #FAF0E6;
  --sand-dark: #E8DDD0;
  --forest: #2E8B57;
  --forest-light: #A8E6CF;
  --ink: #1A1A2E;
  --ink-soft: #4A4A5A;
  --white: #FFFFFF;
  --danger: #E53935;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

/* === Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--sky); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ocean); text-decoration: none; }

/* === Navbar (Dark Ocean Glass) === */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 44, 62, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 24px;
}
.nav-top {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 44px;
}
.logo {
  font-size: 18px; font-weight: 800;
  color: #fff; text-decoration: none;
  letter-spacing: -.02em;
}
.logo:hover { color: #fff; }
.nav-auth { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.nav-auth a {
  color: rgba(255,255,255,.65); text-decoration: none;
  font-weight: 500; transition: color .2s;
}
.nav-auth a:hover { color: #fff; }
.nav-user { color: rgba(255,255,255,.45); font-size: 13px; font-weight: 500; }
.nav-menus {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 36px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}
.nav-menus a {
  color: rgba(255,255,255,.55); text-decoration: none;
  font-weight: 500; transition: color .2s;
}
.nav-menus a:hover { color: #fff; }

/* === Container === */
.container { max-width: 980px; margin: 0 auto; padding: 32px 24px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 980px;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  border: none; cursor: pointer; text-decoration: none;
  font-family: inherit;
  transition: all .3s cubic-bezier(.25,.1,.25,1);
}
.btn-primary {
  background: var(--coral); color: #fff;
  box-shadow: 0 2px 12px rgba(242, 100, 48, 0.25);
}
.btn-primary:hover {
  background: #e55a28; color: #fff; text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(242, 100, 48, 0.35);
}
.btn-outline {
  background: transparent; border: 1.5px solid var(--sand-dark); color: var(--ink);
}
.btn-outline:hover { border-color: var(--ocean); color: var(--ocean); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 2px 12px rgba(229,57,53,0.2); }
.btn-danger:hover { background: #c62828; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 17px; letter-spacing: -.02em; }
.btn-full { width: 100%; text-align: center; }
.btn-icon {
  background: none; border: none; cursor: pointer;
  font-size: 18px; padding: 6px 10px; border-radius: 50%;
  color: var(--ink-soft); transition: all .2s;
}
.btn-icon:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.btn-icon.btn-danger { color: var(--danger); background: none; box-shadow: none; }
.btn-icon.btn-danger:hover { background: rgba(229,57,53,.08); }

/* Buttons on dark backgrounds (page-header, share-header) */
.page-header .btn-primary,
.share-header .btn-primary {
  background: var(--white); color: var(--ocean);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.page-header .btn-primary:hover,
.share-header .btn-primary:hover {
  background: rgba(255,255,255,0.9); transform: translateY(-1px); color: var(--ocean);
}
.page-header .btn-sm,
.share-header .btn-sm {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,0.18);
}
.page-header .btn-sm:hover,
.share-header .btn-sm:hover {
  background: rgba(255,255,255,0.22); color: #fff;
}
.page-header .btn-outline,
.share-header .btn-outline {
  border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,.85);
}
.page-header .btn-outline:hover,
.share-header .btn-outline:hover {
  border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); color: #fff;
}

/* === Page Header (Gradient Banner) === */
.page-header {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 50%, var(--sky) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 300px 200px at 90% 20%, rgba(242,100,48,0.08), transparent),
    radial-gradient(ellipse 200px 200px at 10% 80%, rgba(61,165,217,0.1), transparent);
  pointer-events: none;
}
.page-header h1 {
  font-size: 28px; font-weight: 800; color: white;
  letter-spacing: -.03em; position: relative; z-index: 1;
}
.page-header .trip-meta {
  color: rgba(255,255,255,0.6); font-size: 14px;
  margin-top: 4px; position: relative; z-index: 1;
}
.header-actions { display: flex; gap: 10px; position: relative; z-index: 1; }

/* === Share Header (Gradient Banner — centered) === */
.share-header {
  text-align: center;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 50%, var(--sky) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 32px 36px;
  margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.share-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 400px 300px at 50% 100%, rgba(61,165,217,0.12), transparent),
    radial-gradient(ellipse 300px 200px at 20% 30%, rgba(242,100,48,0.06), transparent);
  pointer-events: none;
}
.share-header h1 {
  font-size: 32px; font-weight: 800; color: white;
  letter-spacing: -.03em; position: relative; z-index: 1;
}
.share-header .trip-meta {
  color: rgba(255,255,255,0.6); font-size: 15px;
  margin-top: 8px; position: relative; z-index: 1;
}
.share-header .trip-description {
  color: rgba(255,255,255,0.5); font-size: 15px;
  margin-bottom: 0; position: relative; z-index: 1;
}

.trip-meta { font-size: 15px; color: var(--ink-soft); }
.trip-description { font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.6; }

/* === Auth Pages (Full Gradient BG) === */
.auth-page {
  display: flex; justify-content: center; align-items: center;
  min-height: calc(100vh - 120px);
  margin: -32px -24px;
  padding: 48px 24px;
  background: linear-gradient(165deg, var(--ocean-deep) 0%, var(--ocean) 50%, var(--sky) 100%);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 20% 80%, rgba(242,100,48,0.08), transparent),
    radial-gradient(ellipse 600px 500px at 80% 20%, rgba(61,165,217,0.12), transparent);
  pointer-events: none;
}
.auth-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg); padding: 44px 36px;
  width: 100%; max-width: 420px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
  animation: fadeInUp .6s ease both;
}
.auth-card h2 {
  text-align: center; margin-bottom: 28px;
  font-size: 26px; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink);
}
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.auth-footer a { color: var(--coral); font-weight: 600; }
.auth-footer a:hover { color: #e55a28; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--sand-dark); }
.auth-divider span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

.btn-kakao {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: #FEE500; color: #000000; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-kakao:hover { background: #F0D900; }
.btn-kakao svg { flex-shrink: 0; }

/* === Forms === */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--sand-dark); border-radius: var(--radius-sm);
  font-size: 16px; font-family: inherit;
  background: var(--white);
  transition: all .3s ease;
  appearance: none; -webkit-appearance: none;
  color: var(--ink);
}
.form-group input[type="date"],
.form-group input[type="time"] {
  min-height: 44px; color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(61,165,217,.15);
  background: var(--white);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A5A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: var(--shadow-sm);
}
.form-row { display: flex; gap: 14px; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }

/* Toggle switch */
.checkbox-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; cursor: pointer; color: var(--ink);
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 51px; height: 31px; min-width: 51px;
  background: var(--sand-dark); border-radius: 980px;
  position: relative; cursor: pointer;
  transition: background .3s;
  border: none; padding: 0;
}
.checkbox-label input[type="checkbox"]::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .3s cubic-bezier(.25,.1,.25,1);
}
.checkbox-label input[type="checkbox"]:checked { background: var(--forest); }
.checkbox-label input[type="checkbox"]:checked::after { transform: translateX(20px); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert-error { background: rgba(229,57,53,.08); color: var(--danger); }

/* === Badges === */
.badge {
  background: rgba(61,165,217,.1); color: var(--sky);
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 980px; letter-spacing: .02em;
}
.badge-ok {
  background: rgba(46,139,87,.1); color: var(--forest);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 980px;
}

/* === Trip List (my-trips) === */
.trip-list-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.trip-list-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--sky), var(--ocean));
  border-radius: 4px 0 0 4px;
  opacity: 0; transition: opacity .3s;
}
.trip-list-item:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.trip-list-item:hover::before { opacity: 1; }
.trip-list-item h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.trip-list-item h3 a { color: var(--ink); transition: color .2s; }
.trip-list-item h3 a:hover { color: var(--ocean); }
.trip-list-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.trip-list-actions { display: flex; gap: 8px; }

/* === Trip Grid === */
.recent-section { margin-top: 24px; }
.recent-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.03em; }
.trip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trip-card {
  display: block; background: var(--white);
  border: 1px solid rgba(0,0,0,.04); border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  text-decoration: none; color: var(--ink);
}
.trip-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); text-decoration: none; color: var(--ink); }
.trip-card-date { font-size: 12px; color: var(--coral); margin-bottom: 8px; font-weight: 700; letter-spacing: .02em; }
.trip-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.02em; }
.trip-card-meta { font-size: 13px; color: var(--ink-soft); }

/* === Places (edit) === */
.place-item {
  display: flex; align-items: center;
  background: var(--white); border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 10px; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.place-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.place-grip { color: var(--sand-dark); cursor: grab; font-size: 18px; }
.place-info { flex: 1; }
.place-time { font-size: 12px; color: var(--coral); font-weight: 700; letter-spacing: .02em; }
.place-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.place-address { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.add-place-card {
  background: var(--white); border: 2px dashed var(--sand-dark);
  border-radius: var(--radius-lg); padding: 28px; margin-top: 18px;
  transition: border-color .3s;
}
.add-place-card:hover { border-color: var(--sky); }
.add-place-card h3 { margin-bottom: 18px; font-size: 17px; font-weight: 700; }

/* Search */
.search-wrapper { position: relative; }
.search-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius-sm);
  max-height: 220px; overflow-y: auto; z-index: 50;
  box-shadow: var(--shadow-md);
}
.search-item {
  padding: 12px 16px; font-size: 14px; cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.04); transition: background .15s;
}
.search-item:hover { background: var(--sky-light); }
.search-item:last-child { border-bottom: none; }
.selected-address { font-size: 13px; color: var(--forest); margin-top: 8px; font-weight: 600; }

/* === Day Section === */
.day-section { margin-bottom: 36px; animation: fadeInUp .5s ease both; }
.day-section:nth-child(2) { animation-delay: .1s; }
.day-section:nth-child(3) { animation-delay: .2s; }
.day-section:nth-child(4) { animation-delay: .3s; }
.day-header {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--sand-dark);
}
.day-header h2 { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.day-date { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* === Timeline === */
.timeline { position: relative; padding-left: 32px; margin: 28px 0; }
.timeline::before {
  content: ''; position: absolute;
  left: 8px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(to bottom, var(--sky), var(--forest), var(--coral), var(--ocean));
  border-radius: 1px;
}
.tl-item { position: relative; margin-bottom: 20px; animation: fadeInUp .4s ease both; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item:nth-child(1) { animation-delay: .05s; }
.tl-item:nth-child(2) { animation-delay: .1s; }
.tl-item:nth-child(3) { animation-delay: .15s; }
.tl-item:nth-child(4) { animation-delay: .2s; }
.tl-item:nth-child(5) { animation-delay: .25s; }
.tl-dot {
  position: absolute; left: -30px; top: 0;
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--dot-color, var(--sky)); background: var(--sand);
  box-shadow: 0 0 0 4px rgba(61,165,217,.1);
}
.tl-card {
  background: var(--white); border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-md); padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.tl-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--dot-color, var(--sky)), transparent);
  opacity: 0; transition: opacity .3s;
}
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tl-card:hover::after { opacity: 1; }
.tl-time { font-size: 12px; font-weight: 800; color: var(--ocean); letter-spacing: .02em; }
.tl-title { font-size: 17px; font-weight: 800; margin: 4px 0; letter-spacing: -.02em; }
.tl-address { font-size: 13px; color: var(--ink-soft); }
.tl-memo { font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

/* Nav buttons (TMAP/Kakao/Naver) */
.tl-nav-buttons { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 980px;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  color: #fff; text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-btn:hover {
  transform: translateY(-2px); text-decoration: none; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.nav-btn.tmap { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.nav-btn.kakao { background: linear-gradient(135deg, #FEE500, #FFD000); color: var(--ink); }
.nav-btn.kakao:hover { color: var(--ink); }
.nav-btn.naver { background: linear-gradient(135deg, #03c75a, #06d66e); }

/* === Comments === */
.comments-section { margin-top: 48px; }
.comments-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.02em; }
.comment-item {
  background: var(--white); border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.comment-item:hover { transform: translateY(-1px); }
.comment-author { font-size: 14px; font-weight: 700; color: var(--ink); }
.comment-content { font-size: 15px; margin: 6px 0; color: var(--ink); line-height: 1.6; }
.comment-date { font-size: 12px; color: var(--ink-soft); }
.comment-form {
  margin-top: 20px; background: var(--white);
  border: 1px solid rgba(0,0,0,.04); border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.comment-form input[type="text"] {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--sand-dark); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit;
  background: var(--sand);
  transition: all .3s ease;
}
.comment-form input[type="text"]:focus {
  outline: none; border-color: var(--sky); background: var(--white);
  box-shadow: 0 0 0 3px rgba(61,165,217,.15);
}
.comment-form input#guest-name { margin-bottom: 10px; }
.comment-input-row { display: flex; gap: 10px; align-items: center; }
.comment-input-row input { flex: 1; }

/* Photo attach */
.photo-attach-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px;
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--ink-soft); background: var(--sand);
  transition: all .2s;
}
.photo-attach-btn:hover { background: var(--sand-dark); color: var(--ink); }

/* Image preview */
.image-preview {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; position: relative;
}
.image-preview img {
  max-width: 120px; max-height: 120px;
  border-radius: var(--radius-sm); object-fit: cover;
  border: 1px solid rgba(0,0,0,.06);
}
.preview-remove {
  position: absolute; top: -6px; left: 108px;
  width: 24px; height: 24px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.preview-remove:hover { background: rgba(0,0,0,.7); }

/* Comment image */
.comment-image { margin-top: 8px; }
.comment-image img {
  max-width: 280px; max-height: 280px;
  border-radius: var(--radius-sm); object-fit: cover;
  cursor: pointer; transition: transform .2s;
  border: 1px solid rgba(0,0,0,.04);
}
.comment-image img:hover { transform: scale(1.02); }

/* Image modal (full screen) */
.image-modal {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.image-modal img {
  max-width: 92vw; max-height: 92vh;
  border-radius: 12px; object-fit: contain;
}

/* === Empty State === */
.empty-state {
  text-align: center; padding: 80px 24px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px dashed var(--sand-dark);
}
.empty-state p { margin-bottom: 20px; font-size: 17px; color: var(--ink-soft); font-weight: 400; }

/* === Footer === */
.footer {
  text-align: center; padding: 32px;
  font-size: 13px; color: var(--ink-soft);
  border-top: 1px solid var(--sand-dark);
  margin-top: 24px;
}

/* === For AI Page === */
.for-ai-page { max-width: 720px; margin: 0 auto; }
.for-ai-hero { text-align: center; padding: 40px 0 32px; }
.for-ai-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; color: var(--ink); }
.for-ai-hero p { font-size: 17px; color: var(--ink-soft); line-height: 1.6; }

.for-ai-section { margin-bottom: 40px; }
.for-ai-section h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px;
}
.section-desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }

/* Steps */
.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 40px; height: 40px; line-height: 40px;
  border-radius: 14px; color: #fff;
  font-size: 16px; font-weight: 800;
  margin: 0 auto 14px;
}
.step-card:nth-child(1) .step-num { background: linear-gradient(135deg, var(--sky), var(--ocean)); }
.step-card:nth-child(2) .step-num { background: linear-gradient(135deg, var(--forest), var(--forest-light)); }
.step-card:nth-child(3) .step-num { background: linear-gradient(135deg, var(--coral), var(--coral-soft)); }
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--ink-soft); }

/* Prompt box */
.prompt-box {
  background: var(--ocean-deep); border-radius: var(--radius-md); overflow: hidden;
}
.prompt-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.prompt-header span { color: rgba(255,255,255,.5); font-size: 13px; font-weight: 600; }
.prompt-header .btn { color: #fff; border-color: rgba(255,255,255,.2); font-size: 12px; }
.prompt-header .btn:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.prompt-box pre {
  padding: 20px; margin: 0;
  color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.7;
  font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
  white-space: pre-wrap; word-break: break-word;
  max-height: 480px; overflow-y: auto;
}

/* Example */
.example-box {
  background: var(--white); border-radius: var(--radius-md); padding: 24px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: transform .2s;
}
.example-box:hover { transform: translateY(-2px); }
.example-label {
  font-size: 12px; font-weight: 700; color: var(--coral);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.example-content { font-size: 15px; line-height: 1.7; color: var(--ink); }

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 768px) {
  body { font-size: 16px; }

  /* Nav */
  .nav-top { height: 44px; }
  .logo { font-size: 17px; }
  .nav-auth { gap: 14px; font-size: 13px; }
  .nav-menus { gap: 0; font-size: 14px; height: 42px; }
  .nav-menus a { padding: 0 14px; height: 42px; display: flex; align-items: center; }
  .nav-user { font-size: 12px; }

  /* Layout */
  .container { padding: 20px 16px; }

  /* Page header */
  .page-header {
    flex-direction: column; gap: 14px; align-items: flex-start;
    padding: 28px 22px; border-radius: var(--radius-md);
  }
  .page-header h1 { font-size: 22px; }
  .header-actions { width: 100%; }

  .share-header { padding: 32px 22px 24px; border-radius: var(--radius-md); }
  .share-header h1 { font-size: 24px; }
  .share-header .trip-meta { font-size: 14px; }

  /* Auth */
  .auth-page { padding: 32px 16px; margin: -20px -16px; }
  .auth-card { padding: 28px 22px; }
  .auth-card h2 { font-size: 22px; }

  /* Grids */
  .feature-grid, .trip-grid { grid-template-columns: 1fr; }

  /* Forms */
  .form-row { flex-direction: column; gap: 0; }
  .form-card { padding: 20px 16px; border-radius: var(--radius-md); }
  .form-group label { font-size: 13px; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; padding: 12px 14px; }

  /* Trip list */
  .trip-list-item {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 18px 20px; border-radius: var(--radius-sm);
  }
  .trip-list-item h3 { font-size: 16px; }
  .trip-list-meta { font-size: 14px; }
  .trip-list-actions { width: 100%; display: flex; }
  .trip-list-actions .btn { flex: 1; text-align: center; }

  /* Day / Timeline */
  .day-header h2 { font-size: 20px; }
  .day-date { font-size: 14px; }
  .tl-title { font-size: 17px; }
  .tl-address { font-size: 13px; }
  .tl-memo { font-size: 14px; }
  .tl-time { font-size: 13px; }
  .tl-card { padding: 16px 18px; }
  .tl-nav-buttons { gap: 6px; }
  .nav-btn { padding: 9px 18px; font-size: 13px; flex: 1; text-align: center; }

  /* Places edit */
  .place-item { padding: 14px 16px; }
  .place-title { font-size: 16px; }
  .place-time { font-size: 13px; }
  .place-address { font-size: 13px; }
  .add-place-card { padding: 20px 16px; border-radius: var(--radius-md); }
  .btn { font-size: 15px; padding: 12px 22px; }
  .btn-sm { font-size: 14px; padding: 9px 18px; }

  /* Comments */
  .comments-section h2 { font-size: 20px; }
  .comment-author { font-size: 14px; }
  .comment-content { font-size: 16px; }
  .comment-date { font-size: 12px; }
  .comment-form { padding: 16px; }
  .comment-form input[type="text"] { font-size: 16px; padding: 12px 14px; }
  .comment-input-row { flex-direction: row; flex-wrap: wrap; }
  .comment-input-row input { flex: 1; min-width: 0; }
  .comment-input-row .btn { flex-shrink: 0; }
  .comment-image img { max-width: 100%; max-height: 240px; }

  /* Empty state */
  .empty-state { padding: 48px 16px; }
  .empty-state p { font-size: 16px; }

  /* For AI */
  .for-ai-hero h1 { font-size: 24px; }
  .for-ai-hero p { font-size: 15px; }
  .step-cards { grid-template-columns: 1fr; }
  .prompt-box pre { font-size: 12px; max-height: 360px; }
}
