/* ============================================================
   TurPDF — Design System v2
   Apple-inspired · Bold · Mobile-first · Production-grade
   ============================================================ */

:root {
  /* Brand */
  --primary:        #007AFF;
  --primary-hover:  #0066D6;
  --primary-light:  rgba(0,122,255,.09);
  --primary-glow:   rgba(0,122,255,.18);

  /* Semantic */
  --success:        #34C759;
  --success-bg:     #f0fdf4;
  --success-border: #bbf7d0;
  --danger:         #FF3B30;
  --danger-bg:      #fff1f0;
  --danger-border:  #fecaca;
  --warning:        #FF9500;
  --warning-bg:     #fffbeb;
  --info:           #007AFF;
  --info-bg:        #eff6ff;

  /* Neutral */
  --gray-50:   #fafafa;
  --gray-100:  #f5f5f7;
  --gray-200:  #e8e8ed;
  --gray-300:  #d2d2d7;
  --gray-400:  #a1a1aa;
  --gray-500:  #6e6e73;
  --gray-600:  #48484a;
  --gray-700:  #3a3a3c;
  --gray-800:  #1d1d1f;
  --gray-900:  #111113;

  /* Surface */
  --bg:           #F2F2F7;
  --surface:      #ffffff;
  --surface-2:    #fafafa;
  --surface-3:    #F2F2F7;
  --border:       rgba(0,0,0,.1);
  --border-light: rgba(0,0,0,.06);

  /* Text */
  --text-primary:   #1C1C1E;
  --text-secondary: #6e6e73;
  --text-tertiary:  #AEAEB2;
  --text-inverse:   #ffffff;
  --text: #1C1C1E;
  --text-light: #6e6e73;

  /* Sidebar */
  --sidebar-bg:      #1C1C1E;
  --sidebar-text:    rgba(255,255,255,.65);
  --sidebar-active:  rgba(255,255,255,.1);
  --sidebar-accent:  #007AFF;
  --sidebar-width:   260px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.08);

  /* Radius */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   18px;
  --radius-xl:   22px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   120ms;
  --dur-normal: 200ms;

  /* Card = legacy compat */
  --card: #ffffff;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Admin Layout ── */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; z-index: 200;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.05);
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-logo {
  padding: 26px 20px 22px;
  display: flex; align-items: center; gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(145deg, #007AFF 0%, #0055CC 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,122,255,.45);
}
.sidebar-logo-mark svg { width: 17px; height: 17px; fill: #fff; }
.sidebar-logo span { display: block; font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.sidebar-logo small { display: block; font-size: 10.5px; color: rgba(255,255,255,.32); margin-top: 1px; }

.sidebar nav { flex: 1; padding: 14px 10px 0; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; color: var(--sidebar-text);
  text-decoration: none; font-size: 13.5px; font-weight: 450;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  margin-bottom: 2px; position: relative;
}
.sidebar nav a svg { width: 17px; height: 17px; opacity: 0.55; flex-shrink: 0; transition: opacity var(--dur-fast) var(--ease); }
.sidebar nav a:hover   { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a:hover svg { opacity: 0.9; }
.sidebar nav a.active  { background: rgba(255,255,255,.1); color: #fff; }
.sidebar nav a.active svg { opacity: 1; }
.sidebar nav a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; background: var(--sidebar-accent); border-radius: 0 2px 2px 0;
}

.sidebar-bottom {
  padding: 14px 10px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: auto;
}
.sidebar-bottom a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.sidebar-bottom a svg { width: 16px; height: 16px; opacity: 0.6; flex-shrink: 0; }
.sidebar-bottom a:hover { background: rgba(255,59,48,.12); color: #ff6b6b; }

/* ── Main Content ── */
.main-content { margin-left: var(--sidebar-width); flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ── Admin Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 0 32px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar h1 { font-size: 16.5px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.3px; }
.topbar .user {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
  padding: 5px 12px; border-radius: var(--radius-full);
  background: var(--gray-100); font-weight: 500;
}

.content { padding: 28px 32px; flex: 1; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius-md);
  padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; gap: 12px;
}
.card-header h2 { font-size: 15px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.2px; }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius-md); padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease-spring);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-icon.blue   { background: #dbeafe; }
.stat-icon.green  { background: #dcfce7; }
.stat-icon.orange { background: #fef3c7; }
.stat-icon.purple { background: #ede9fe; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 3px; font-weight: 500; }

/* ── Table ── */
.table-wrap { overflow-x: auto; margin: -24px; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--text-tertiary);
  background: var(--gray-50); text-transform: uppercase; letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(0,0,0,.07); white-space: nowrap;
}
thead th:first-child { padding-left: 24px; }
thead th:last-child  { padding-right: 24px; }
tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.04); font-size: 13.5px; color: var(--text-primary); vertical-align: middle; }
tbody td:first-child { padding-left: 24px; }
tbody td:last-child  { padding-right: 24px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--dur-fast) var(--ease); }
tbody tr:hover td { background: var(--gray-50); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: none;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap; letter-spacing: -0.1px;
  outline: none; -webkit-user-select: none; user-select: none;
  font-family: inherit;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 3px rgba(0,122,255,.28); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 2px 10px rgba(0,122,255,.38); transform: translateY(-0.5px); }

.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #e0302a; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #e89000; color: #fff; }

.btn-outline { background: transparent; border: 1px solid rgba(0,0,0,.12); color: var(--text-primary); }
.btn-outline:hover { background: var(--gray-100); border-color: rgba(0,0,0,.18); }

.btn-ghost { background: rgba(0,0,0,.055); color: var(--text-primary); }
.btn-ghost:hover { background: rgba(0,0,0,.09); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="tel"], input[type="url"],
textarea, select {
  width: 100%; padding: 10px 13px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  color: var(--text-primary); background: #fff;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,122,255,.12);
}
input::placeholder, textarea::placeholder { color: var(--text-tertiary); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236e6e73' d='M1.41.58L6 5.17l4.59-4.59L12 2l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-hint  { font-size: 12px; color: var(--text-tertiary); margin-top: 5px; }

/* ── Alerts ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: 13.5px;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.alert-success { background: var(--success-bg); color: #166534; border: 1px solid var(--success-border); }
.alert-error   { background: var(--danger-bg);  color: #991b1b; border: 1px solid var(--danger-border); }
.alert-info    { background: var(--info-bg);    color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fed7aa; }

/* ── Sezon Notice ── */
.sezon-notice {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 14px; margin-bottom: 16px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 10px; color: #166534; font-size: 13px;
}
.sezon-notice-left { display: flex; align-items: center; gap: 9px; flex: 1; }
.sezon-notice-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: sndot 2.5s infinite; }
@keyframes sndot { 0%,100%{opacity:1} 50%{opacity:.4} }
.sezon-notice strong { color: #15803d; font-weight: 700; }
.sezon-notice-close { background: none; border: none; color: #4ade80; font-size: 13px; cursor: pointer; padding: 0 3px; line-height: 1; flex-shrink: 0; transition: color .15s; }
.sezon-notice-close:hover { color: #166534; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-blue    { background: #dbeafe; color: #1e40af; }
.badge-orange  { background: #fef3c7; color: #92400e; }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ── Login ── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); position: relative; overflow: hidden;
}
.login-page::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0,122,255,.07) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0,122,255,.04) 0%, transparent 50%);
}
.login-box {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius-2xl); padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-xl); position: relative;
  animation: loginFadeIn 0.4s cubic-bezier(0,0,0.2,1) both;
}
@keyframes loginFadeIn { from{opacity:0;transform:translateY(16px) scale(0.98)} to{opacity:1;transform:none} }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-icon {
  width: 62px; height: 62px;
  background: linear-gradient(145deg, #007AFF 0%, #0055CC 100%);
  border-radius: 17px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(0,122,255,.35);
}
.login-logo-icon svg { width: 28px; height: 28px; fill: #fff; }
.login-logo .logo-text { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; }
.login-logo .logo-sub  { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.login-box h2 { font-size: 16.5px; font-weight: 600; margin-bottom: 22px; color: var(--text-primary); text-align: center; letter-spacing: -0.3px; }

/* ── PDF / Tour Cards (admin) ── */
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.pdf-card { background: var(--surface); border: 1px solid rgba(0,0,0,.07); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease-spring); box-shadow: var(--shadow-xs); }
.pdf-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pdf-card-img { width: 100%; height: 156px; background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%); display: flex; align-items: center; justify-content: center; font-size: 44px; overflow: hidden; }
.pdf-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pdf-card-body { padding: 16px; }
.pdf-card-title { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; color: var(--text-primary); }
.pdf-card-desc  { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.pdf-card-meta  { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-tertiary); margin-bottom: 12px; flex-wrap: wrap; }
.pdf-card-meta span { display: flex; align-items: center; gap: 3px; }
.pdf-card-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* ── Firm Header ── */
.firm-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: var(--shadow-xs);
}
.firm-logo { width: 42px; height: 42px; border-radius: var(--radius-sm); object-fit: contain; border: 1px solid rgba(0,0,0,.08); }
.firm-name { font-size: 15.5px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.2px; }

/* ── Share Page ── */
.share-page { max-width: 700px; margin: 40px auto; padding: 0 20px; }
.share-card { background: var(--surface); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(0,0,0,.07); }
.share-img  { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.share-body { padding: 32px; }
.share-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); letter-spacing: -0.4px; }
.share-desc  { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 22px; }
.share-meta  { display: flex; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; padding: 16px; background: var(--gray-50); border-radius: var(--radius-sm); }
.share-meta-item  { display: flex; flex-direction: column; gap: 2px; }
.share-meta-label { font-size: 10.5px; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.5px; }
.share-meta-value { font-size: 15px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.1px; }

/* ── Utils ── */
.text-center   { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.font-semibold { font-weight: 600; }
.logo-placeholder {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--gray-100); border: 1px solid rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px; background: var(--gray-100); color: var(--primary);
  padding: 2px 7px; border-radius: var(--radius-xs); border: 1px solid rgba(0,0,0,.07);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ── Responsive (Admin) ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--dur-normal) var(--ease); }
  .main-content { margin-left: 0; }
  .content  { padding: 20px 16px; }
  .topbar   { padding: 0 16px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats    { grid-template-columns: 1fr 1fr; }
  .card     { padding: 16px; }
  .table-wrap { margin: -16px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .login-box { padding: 32px 24px; border-radius: var(--radius-xl); }
}
@media print {
  .sidebar, .topbar { display: none !important; }
  .main-content { margin-left: 0 !important; }
}

/* ════════════════════════════════════════════════════════════
   FIRM DASHBOARD (firm.php) — Mobile-first redesign
   ════════════════════════════════════════════════════════════ */

/* Tour grid → list on all sizes */
.tour-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

/* Tour card — horizontal, bold, readable */
.tour-card {
  background: var(--surface) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.03) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transition: box-shadow .2s, transform .2s !important;
  padding: 0 !important;
}
.tour-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.05) !important;
  transform: translateY(-1px) !important;
}

/* Card top: icon + title + date */
.tour-card-top {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 18px !important;
}
.tour-card-icon {
  width: 46px !important; height: 46px !important;
  border-radius: 12px !important;
  background: #EFF6FF !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 22px !important; flex-shrink: 0 !important;
}
.tour-card-title {
  font-size: 15px !important; font-weight: 700 !important;
  color: var(--text-primary) !important; line-height: 1.3 !important;
}
.tour-card-meta {
  font-size: 12px !important; color: var(--text-tertiary) !important;
  margin-top: 3px !important; font-weight: 500 !important;
}

/* Card actions — full-width row with clear hierarchy */
.tour-card-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 18px 16px !important;
  flex-wrap: wrap !important;
}
.tour-card-actions .btn { flex: 1 !important; min-width: 0 !important; justify-content: center !important; }
.tour-card-actions .btn-danger { flex: 0 0 auto !important; }

/* Page header: hide default, let the page-title show */
.page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 18px !important;
  gap: 12px !important;
}
.page-title {
  font-size: 24px !important; font-weight: 800 !important;
  letter-spacing: -.5px !important; color: var(--text-primary) !important;
}
.page-sub {
  font-size: 13px !important; color: var(--text-secondary) !important;
  margin-top: 2px !important;
}

/* "Yeni Tur Programı" primary CTA — full-width bold on mobile */
.page-header .btn-primary {
  padding: 10px 20px !important;
  font-size: 14px !important; font-weight: 700 !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
}

/* Empty state */
.empty-state {
  text-align: center !important;
  padding: 64px 24px !important;
  background: var(--surface) !important;
  border-radius: 20px !important;
  border: 1.5px dashed rgba(0,0,0,.1) !important;
}
.empty-icon  { font-size: 52px !important; margin-bottom: 14px !important; }
.empty-title { font-size: 18px !important; font-weight: 700 !important; color: var(--text-primary) !important; margin-bottom: 8px !important; }
.empty-desc  { font-size: 14px !important; color: var(--text-tertiary) !important; margin-bottom: 24px !important; line-height: 1.6 !important; }
.empty-state .btn-primary { font-size: 15px !important; padding: 12px 28px !important; font-weight: 700 !important; }

@media (max-width: 600px) {
  /* Stack title + button vertically on tiny screens */
  .page-header { flex-direction: column !important; align-items: stretch !important; }
  .page-header .btn-primary {
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px !important; font-weight: 800 !important;
    border-radius: 14px !important;
  }
  .page-title { font-size: 22px !important; }

  /* Tour card actions: PDF button dominant */
  .tour-card-actions .btn-primary { font-size: 13px !important; }
  .tour-card-actions .btn-outline { font-size: 13px !important; }
  .tour-card-actions .btn-ghost   { display: none !important; }
}

/* ════════════════════════════════════════════════════════════
   TOUR CREATE / EDIT — Mobile form UX
   ════════════════════════════════════════════════════════════ */

/* On mobile ≤900px the right panel (live preview) hides already.
   We only improve the left-panel form readability + the download flow. */

/* Make cards slightly more spacious and bold on mobile */
@media (max-width: 900px) {
  /* Topbar: hide text labels on save button, keep icon */
  .topbar .btn-outline .lbl { display: none; }

  /* Left panel takes full width */
  .left-panel { padding-left: 16px !important; padding-right: 16px !important; }

  /* Download dropdown: make trigger bigger and full-pill */
  .dl-trigger {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
  }

  /* Card headers: slightly bolder on mobile */
  .card-header-text h3 { font-size: 14px !important; font-weight: 800 !important; }

  /* Chips bigger touch targets */
  .chip { padding: 8px 14px !important; font-size: 13px !important; min-height: 36px; }

  /* Color swatches bigger */
  .color-swatch { width: 44px !important; height: 44px !important; }
  .color-swatch-label { font-size: 10px !important; }

  /* Form inputs taller for fingers */
  input[type=text], input[type=number], textarea, select {
    padding: 12px 14px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }

  /* Add buttons taller */
  .add-btn { padding: 12px !important; font-size: 13px !important; border-radius: 10px !important; }

  /* Day cards */
  .day-header { padding: 14px 16px !important; }
  .day-body   { padding: 16px !important; }
  .day-num    { font-size: 11px !important; padding: 4px 10px !important; }
  .day-title-input { font-size: 14px !important; }

  /* Add day button */
  .add-day-btn { padding: 16px !important; font-size: 14px !important; border-radius: 14px !important; }

  /* Preview toggle button */
  .preview-toggle-btn {
    padding: 14px 24px !important;
    font-size: 15px !important; font-weight: 700 !important;
    border-radius: 32px !important;
    bottom: 24px !important; right: 20px !important;
  }

  /* Download menu items: bigger tap targets */
  .dl-item { padding: 14px 16px !important; }
  .dl-icon  { width: 40px !important; height: 40px !important; font-size: 20px !important; }
  .dl-label { font-size: 14px !important; font-weight: 700 !important; }
  .dl-desc  { font-size: 12px !important; }
  .dl-menu  { border-radius: 16px !important; min-width: 240px !important; }

  /* List items / delete buttons */
  .list-item input { padding: 10px 12px !important; }
  .del-btn { width: 36px !important; height: 36px !important; font-size: 16px !important; }

  /* Price cards */
  .price-card { padding: 14px !important; }
  .price-card input { font-size: 15px !important; }

  /* Note items */
  .note-item { padding: 11px 13px !important; }
  .note-text { font-size: 14px !important; }

  /* Toggle rows */
  .toggle-label { font-size: 14px !important; }
  .toggle-track { width: 42px !important; height: 24px !important; border-radius: 12px !important; }
  .toggle-thumb { width: 20px !important; height: 20px !important; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 14px !important; }
  .topbar-title { font-size: 14px !important; }

  /* Download trigger: text + icon, bigger */
  .dl-trigger {
    padding: 9px 18px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  /* Topbar back button: icon only */
  .btn-ghost .lbl { display: none !important; }

  /* dl-menu: position from bottom instead of top on very small screens */
  .dl-menu {
    position: fixed !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    min-width: 0 !important;
    width: auto !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 64px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.1) !important;
  }
  /* Arrow doesn't make sense with bottom sheet positioning */
  .dl-chevron { display: none !important; }

  /* Save bar */
  .save-bar { left: 16px !important; right: 16px !important; width: auto !important; transform: none !important; border-radius: 14px !important; }
}
