/* ─── Admin Panel Styles ───────────────────────────────────── */

/* ── Panel ───────────────────────────────────────────────────── */
.admin-panel {
  position: fixed;
  top: 0; right: 0;
  width: 860px;
  max-width: 95vw;
  height: 100vh;
  background: #0f1117;
  color: #e8eaf0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
  box-shadow: -12px 0 50px rgba(0,0,0,0.55);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.admin-panel.open { transform: translateX(0); }
.admin-panel.is-expanded {
  width: min(1200px, 98vw);
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}
.admin-overlay.hidden { display: none; }

/* ── Header ──────────────────────────────────────────────────── */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #1f2433;
  background: #141722;
  flex-shrink: 0;
}
.admin-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-header-title h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #45A17C;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.admin-badge-version {
  font-size: 0.7rem;
  background: rgba(69, 161, 124, 0.15);
  color: #45A17C;
  border: 1px solid rgba(69, 161, 124, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-header-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #1c202d;
  border: 1px solid #2b3145;
  color: #9ca3af;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}
.admin-header-btn:hover {
  background: #2b3145;
  color: #ffffff;
  border-color: #45A17C;
}
.admin-close-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: #1c202d;
  border: 1px solid #2b3145;
  color: #9ca3af;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.admin-close-btn:hover { background: #3b1f1f; color: #f87171; border-color: #f87171; }

/* ── Tabs ────────────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #2b3145 transparent;
  border-bottom: 1px solid #1f2433;
  background: #12151f;
  flex-shrink: 0;
  padding: 4px 12px 0;
  gap: 4px;
}
.admin-tabs::-webkit-scrollbar { height: 3px; }
.admin-tabs::-webkit-scrollbar-thumb { background: #2b3145; border-radius: 3px; }
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b92a5;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.admin-tab:hover { color: #e5e7eb; background: rgba(255,255,255,0.03); }
.admin-tab.active {
  color: #45A17C;
  background: rgba(69, 161, 124, 0.08);
  border-bottom-color: #45A17C;
}

/* ── Content area ────────────────────────────────────────────── */
.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px;
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
}
.admin-content::-webkit-scrollbar { width: 6px; }
.admin-content::-webkit-scrollbar-track { background: transparent; }
.admin-content::-webkit-scrollbar-thumb { background: #2b3145; border-radius: 3px; }

/* ── Section title ───────────────────────────────────────────── */
.admin-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4b5563;
  margin: 16px 0 10px;
}

/* ── Cards ───────────────────────────────────────────────────── */
.admin-card {
  background: #1a1d27;
  border: 1px solid #252836;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.admin-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1d5db;
}
.admin-card-actions { display: flex; gap: 6px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.btn-delete { background: #3b1f1f; color: #f87171; }
.btn-delete:hover { background: #7f1d1d; }
.btn-move { background: #1e2130; color: #9ca3af; cursor: grab; }
.btn-move:hover { background: #374151; }
.btn-collapse { background: #1e2130; color: #9ca3af; }
.btn-collapse:hover { background: #374151; }

.btn-add {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed #374151;
  background: transparent;
  color: #45A17C;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 0.2s, background 0.2s;
  margin-top: 8px;
}
.btn-add:hover { border-color: #45A17C; background: #45A17C11; }

.btn-primary {
  padding: 10px 18px;
  border-radius: 8px;
  background: #45A17C;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #347A5D; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  padding: 10px 18px;
  border-radius: 8px;
  background: #1e2130;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #374151;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #374151; color: white; }

/* ── Form fields ─────────────────────────────────────────────── */
.admin-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.admin-input, .admin-textarea, .admin-select {
  width: 100%;
  background: #0f1117;
  border: 1px solid #252836;
  border-radius: 8px;
  color: #e8eaf0;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  padding: 8px 10px;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}
.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
  outline: none;
  border-color: #45A17C;
}
.admin-textarea { resize: vertical; min-height: 72px; }
.admin-select option { background: #1a1d27; }

/* ── Image upload ────────────────────────────────────────────── */
.img-upload-zone {
  display: block;
  border: 1px dashed #374151;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 10px;
  position: relative;
}
.img-upload-zone:hover { border-color: #45A17C; background: #45A17C08; cursor: pointer; }

.img-preview {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
  display: none;
}
.img-preview.visible { display: block; }
.img-upload-hint { font-size: 0.72rem; color: #6b7280; }
.img-upload-hint span { color: #45A17C; }

/* ── Checkbox / tags ─────────────────────────────────────────── */
.admin-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.admin-tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid #374151;
  background: #1e2130;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.admin-tag.selected { border-color: #45A17C; background: #45A17C22; color: #45A17C; }

/* ── Collapsible ─────────────────────────────────────────────── */
.admin-collapsible { overflow: hidden; transition: max-height 0.3s ease; }
.admin-collapsible.collapsed { max-height: 0 !important; }

/* ── Footer actions ──────────────────────────────────────────── */
.admin-footer {
  padding: 14px 16px;
  border-top: 1px solid #1e2130;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-footer-row { display: flex; gap: 8px; }
.admin-footer-row .btn-primary,
.admin-footer-row .btn-secondary { flex: 1; text-align: center; }

/* ── Save feedback ───────────────────────────────────────────── */
.admin-toast {
  position: fixed;
  bottom: 90px; right: 20px;
  background: #45A17C;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.admin-toast.show { transform: translateY(0); opacity: 1; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .admin-panel { width: 100vw; }
}

/* ── Device preview bar (Left vertical stack on desktop only) ── */
#device-preview-bar {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  z-index: 900 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

#device-preview-bar .device-preview-bar-divider {
  width: 28px !important;
  height: 1px !important;
  background: rgba(0, 0, 0, 0.15) !important;
  margin: 4px 0 !important;
}

/* Hide in mobile version / screen widths <= 1023px and inside preview iframes */
@media (max-width: 1023px) {
  #device-preview-bar {
    display: none !important;
  }
}

.is-preview-iframe #device-preview-bar,
.is-preview-iframe #admin-panel,
.is-preview-iframe #admin-overlay {
  display: none !important;
}

/* ── Device preview (iframe-based, old CSS rules removed) ───── */

#device-frame {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  pointer-events: none;
}
.device-frame-label {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Click-to-edit mode ──────────────────────────────────────── */
body.click-to-edit-mode section,
body.click-to-edit-mode footer,
body.click-to-edit-mode #monolithic-menu-container {
  cursor: pointer !important;
  outline: 2px dashed transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s ease;
}
body.click-to-edit-mode section:hover,
body.click-to-edit-mode footer:hover,
body.click-to-edit-mode #monolithic-menu-container:hover {
  outline-color: rgba(69,161,124,0.6) !important;
}

#btn-click-to-edit.active {
  background: #45A17C !important;
  color: white !important;
}

/* ── Popup Admin Section Override ───────────────────────────── */
.admin-popup-section {
  background: #ffffff;
  color: #000000;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.admin-popup-section .admin-section-title {
  color: #000000;
  margin-top: 0 !important;
}
.admin-popup-section .admin-label {
  color: #374151;
}
.admin-popup-section .admin-input,
.admin-popup-section .admin-textarea,
.admin-popup-section select.admin-select {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #000000;
}
.admin-popup-section .admin-input:focus,
.admin-popup-section .admin-textarea:focus {
  background: #ffffff;
  border-color: #45A17C;
}
.admin-popup-section .btn-collapse {
  background: #f3f4f6;
  color: #374151;
}
.admin-popup-section .btn-collapse:hover {
  background: #e5e7eb;
}
.admin-popup-section .admin-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.admin-popup-section .admin-card-title {
  color: #111827;
}
.admin-popup-section .img-upload-hint {
  color: #374151;
}

/* ── Products Architecture & Type Modals ─────────────────────── */
.prod-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 8px;
  vertical-align: middle;
}
.prod-type-excursion {
  background: rgba(69, 161, 124, 0.15);
  color: #45A17C;
  border: 1px solid rgba(69, 161, 124, 0.3);
}
.prod-type-combo {
  background: rgba(147, 51, 234, 0.15);
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.3);
}
.prod-type-quest {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.prod-filters-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.prod-filter-btn {
  background: #1a1d27;
  border: 1px solid #252836;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.prod-filter-btn:hover {
  background: #252836;
  color: #ffffff;
}
.prod-filter-btn.active {
  background: #45A17C;
  border-color: #45A17C;
  color: #ffffff;
}

/* Modal for Category Choice */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pmFadeIn 0.2s ease-out;
}
@keyframes pmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-modal-dialog {
  background: #131620;
  border: 1px solid #282d3f;
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  padding: 24px;
  color: #e8eaf0;
  animation: pmScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pmScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.product-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.product-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}
.product-modal-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}
.product-modal-close {
  background: #1e2130;
  border: none;
  color: #9ca3af;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
.product-modal-close:hover {
  background: #374151;
  color: #ffffff;
}

.category-choice-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.category-choice-card {
  background: #1a1d27;
  border: 1px solid #2a2f42;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.category-choice-card:hover {
  background: #202433;
  border-color: #3b425b;
  transform: translateY(-1px);
}
.category-choice-card.active-type {
  border-color: #45A17C;
  background: rgba(69, 161, 124, 0.05);
}
.category-choice-card.active-type:hover {
  border-color: #55c497;
  background: rgba(69, 161, 124, 0.1);
}
.cat-choice-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cat-choice-icon.icon-exc {
  background: rgba(69, 161, 124, 0.15);
  color: #45A17C;
}
.cat-choice-icon.icon-combo {
  background: rgba(147, 51, 234, 0.15);
  color: #c084fc;
}
.cat-choice-icon.icon-quest {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.cat-choice-body {
  flex: 1;
  min-width: 0;
}
.cat-choice-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cat-choice-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}
.cat-choice-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}
.cat-choice-badge.badge-ready {
  background: rgba(69, 161, 124, 0.2);
  color: #45A17C;
}
.cat-choice-badge.badge-soon {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}
.cat-choice-desc {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.4;
  margin: 0;
}
.cat-choice-action {
  flex-shrink: 0;
}
.cat-choice-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-choice-btn.btn-ready {
  background: #45A17C;
  color: #ffffff;
}
.cat-choice-btn.btn-ready:hover {
  background: #398565;
}
.cat-choice-btn.btn-preview {
  background: #282d3f;
  color: #d1d5db;
}
.cat-choice-btn.btn-preview:hover {
  background: #373e57;
  color: #ffffff;
}

/* Template Preview Specifics */
.tpl-preview-box {
  background: #1a1d27;
  border: 1px dashed #374151;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}
.tpl-mockup-field {
  margin-bottom: 12px;
}
.tpl-mockup-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
}
.tpl-mockup-input {
  background: #12151e;
  border: 1px solid #252836;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: #9ca3af;
  width: 100%;
  box-sizing: border-box;
}
.tpl-notice-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #fbbf24;
  line-height: 1.4;
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ── Product Card Sub-tabs ─────────────────────────────────────── */
.prod-subtabs-nav {
  display: flex;
  background: #11141e;
  border: 1px solid #232838;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}
.prod-subtab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.prod-subtab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}
.prod-subtab-btn.active {
  background: #1e2434;
  border-color: #3b4560;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ── Tour Card Modern Hierarchy ────────────────────────────────── */
.admin-tour-card {
  background: #151824;
  border: 1px solid #2d3448;
  border-left: 4px solid #45A17C;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.tour-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(69, 161, 124, 0.15);
  border: 1px solid rgba(69, 161, 124, 0.35);
  color: #45A17C;
}
.admin-subcard {
  background: #1c2130;
  border: 1px solid #2e374e;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.admin-subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #283044;
}
.admin-section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin: 16px 0 8px;
}
.admin-goto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  margin-top: 14px;
  background: rgba(69, 161, 124, 0.1);
  border: 1px solid rgba(69, 161, 124, 0.3);
  border-radius: 8px;
  color: #45A17C;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.admin-goto-btn:hover {
  background: rgba(69, 161, 124, 0.2);
  border-color: #45A17C;
}

/* ── Modern Horizontal Gallery Strip in CRM ──────────────────── */
.admin-gallery-carousel-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}
.admin-gallery-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.admin-gallery-carousel-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px 2px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #3b4252 #181d2a;
  -webkit-overflow-scrolling: touch;
}
.admin-gallery-carousel-track::-webkit-scrollbar {
  height: 6px;
}
.admin-gallery-carousel-track::-webkit-scrollbar-track {
  background: #181d2a;
  border-radius: 4px;
}
.admin-gallery-carousel-track::-webkit-scrollbar-thumb {
  background: #3b4252;
  border-radius: 4px;
}
.admin-gallery-carousel-track::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

.admin-gallery-card-item {
  flex: 0 0 170px;
  width: 170px;
  background: #181d2a;
  border: 1px solid #283044;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: border-color 0.2s, transform 0.2s;
}
.admin-gallery-card-item:hover {
  border-color: #3b455b;
}

.admin-gallery-card-item.landscape {
  flex: 0 0 220px;
  width: 220px;
}

.admin-gallery-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #232b3e;
}
.admin-gallery-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #45A17C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-gallery-card-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}
.admin-gallery-card-actions .btn-icon {
  width: 22px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Portrait / Mobile cards upload zone & preview */
.admin-gallery-card-item.portrait .img-upload-zone {
  margin-bottom: 0;
  padding: 4px;
  background: #111520;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.admin-gallery-card-item.portrait .img-preview {
  max-height: 220px;
  height: 220px;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 4px;
}

/* Landscape / Tour cards upload zone & preview */
.admin-gallery-card-item.landscape .img-upload-zone {
  margin-bottom: 0;
  padding: 4px;
  background: #111520;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.admin-gallery-card-item.landscape .img-preview {
  max-height: 110px;
  height: 110px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 4px;
}
.admin-gallery-card-item.landscape video.img-preview {
  max-height: 110px;
  height: 110px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 4px;
}

.admin-gallery-add-card {
  flex: 0 0 130px;
  width: 130px;
  min-height: 180px;
  border: 2px dashed #2d3748;
  border-radius: 12px;
  background: rgba(24, 29, 42, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
  text-align: center;
  padding: 12px;
  margin-left: 2px;
}
.admin-gallery-add-card:hover {
  border-color: #45A17C;
  color: #45A17C;
  background: rgba(69, 161, 124, 0.08);
  transform: translateY(-2px);
}
.admin-gallery-add-card.landscape {
  min-height: 120px;
}



