/* 
   Ritesh Travels Varanasi — Admin Panel Stylesheet
   Modern, Clean & Fully Responsive
   */
:root {
  --primary: #1849D6;
  --primary-dk: #1038b5;
  --primary-lt: #EEF2FF;
  --accent: #F5A800;
  --accent-lt: #FFF8E7;
  --dark: #0F172A;
  --dark-card: #1E293B;
  --text: #334155;
  --text-lt: #64748B;
  --text-muted: #94A3B8;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --border-dk: #CBD5E1;
  --green: #16A34A;
  --green-lt: #DCFCE7;
  --red: #DC2626;
  --red-lt: #FEE2E2;
  --yellow: #D97706;
  --yellow-lt: #FEF3C7;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .05);
  --shadow: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .1);
  --tr: .25s ease;
  --font: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--tr);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

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

/* ═══ Sidebar ═══ */
.admin-sidebar {
  width: 260px;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--tr);
}

.sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.brand-text h2 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.brand-text span {
  font-size: .72rem;
  color: var(--accent);
  font-weight: 600;
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-category {
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 12px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, .75);
  font-size: .88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--tr);
}

.nav-link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.nav-link:hover i {
  color: var(--accent);
}

.nav-link.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(24, 73, 214, .3);
}

.nav-link.active i {
  color: #fff;
}

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

.user-name {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
}

.user-role {
  font-size: .7rem;
  color: var(--text-muted);
}

.btn-logout-icon {
  color: rgba(255, 255, 255, .6);
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 6px;
}

.btn-logout-icon:hover {
  color: var(--red);
  background: rgba(220, 38, 38, .1);
}

/* ═══ Main Content Area ═══ */
.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  height: 70px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sidebar-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--dark);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--tr);
  flex-shrink: 0;
}

.btn-sidebar-toggle:hover {
  background: var(--primary-lt);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-sidebar-close {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: var(--tr);
}

.btn-sidebar-close:hover {
  background: rgba(220, 38, 38, 0.3);
  color: #fff;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.topbar-title h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.topbar-title span {
  font-size: .78rem;
  color: var(--text-lt);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-site-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.btn-site-preview:hover {
  background: var(--primary-lt);
  color: var(--primary);
  border-color: var(--primary);
}

.admin-body {
  padding: 30px;
  flex: 1;
}

/* ═══ Alerts ═══ */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: var(--green-lt);
  color: var(--green);
  border: 1px solid #bbf7d0;
}

.alert-danger {
  background: var(--red-lt);
  color: var(--red);
  border: 1px solid #fecaca;
}

/* ═══ Stats Cards ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--tr);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: var(--primary-lt);
  color: var(--primary);
}

.stat-icon.yellow {
  background: var(--accent-lt);
  color: var(--accent);
}

.stat-icon.green {
  background: var(--green-lt);
  color: var(--green);
}

.stat-icon.dark {
  background: #F1F5F9;
  color: var(--dark);
}

.stat-info h4 {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-lt);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-top: 2px;
}

/* ═══ Content Cards & Tables ═══ */
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: .84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--tr);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dk);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background: #d99400;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg);
  border-color: var(--border-dk);
}

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

.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  padding: 6px 11px;
  font-size: .78rem;
  border-radius: 6px;
}

/* ═══ Table ═══ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .86rem;
}

.admin-table th {
  background: #F8FAFC;
  padding: 13px 18px;
  font-weight: 700;
  color: var(--text-lt);
  border-bottom: 1px solid var(--border);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #F8FAFC;
}

.table-img {
  width: 54px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ═══ Status Badges ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-active,
.badge-confirmed {
  background: var(--green-lt);
  color: var(--green);
}

.badge-inactive,
.badge-cancelled {
  background: var(--red-lt);
  color: var(--red);
}

.badge-new {
  background: var(--primary-lt);
  color: var(--primary);
}

.badge-contacted {
  background: var(--yellow-lt);
  color: var(--yellow);
}

.action-btns {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: var(--tr);
}

.btn-icon:hover {
  background: var(--primary-lt);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-icon.delete:hover {
  background: var(--red-lt);
  color: var(--red);
  border-color: var(--red);
}

/* ═══ Modal & Forms ═══ */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal.open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalScale .25s ease;
}

@keyframes modalScale {
  from {
    transform: scale(.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-close-modal:hover {
  color: var(--dark);
}

.modal-body {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text);
  background: var(--white);
  transition: var(--tr);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 73, 214, .12);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ═══ Login Page ═══ */
.login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  width: 100%;
  max-width: 420px;
  padding: 36px 30px;
  text-align: center;
}

.login-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(24, 73, 214, .3);
}

.login-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

.login-box p {
  font-size: .84rem;
  color: var(--text-lt);
  margin-bottom: 24px;
}

.login-box .form-group {
  text-align: left;
}

.btn-login {
  width: 100%;
  padding: 12px;
  font-size: .92rem;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .btn-sidebar-toggle {
    display: inline-flex;
  }

  .btn-sidebar-close {
    display: inline-flex;
  }

  .admin-sidebar {
    width: 280px;
    max-width: 85vw;
    z-index: 999;
    transform: translateX(-100%);
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  }

  .admin-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 45px rgba(0, 0, 0, 0.5);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-topbar {
    height: auto;
    min-height: 62px;
    padding: 10px 16px;
    gap: 10px;
  }

  .topbar-title h1 {
    font-size: 1.05rem;
  }

  .topbar-title span {
    font-size: 0.72rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .btn-site-preview {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .admin-body {
    padding: 16px 12px;
  }

  .card-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .stat-card {
    padding: 14px 12px;
    gap: 10px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-info h4 {
    font-size: 0.72rem;
  }

  .photo-sort-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.col-span-2 {
    grid-column: span 1;
  }

  .modal-dialog {
    max-width: 96% !important;
    margin: 10px auto;
    max-height: 94vh;
  }

  .modal-header,
  .modal-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .topbar-title span {
    display: none;
  }

  .btn-site-preview .btn-text {
    display: none;
  }

  .btn-site-preview {
    padding: 8px 10px;
  }

  .sort-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ═══ Bulk Image Uploader & Destination Media Styles ═══ */
.bulk-dropzone {
  border: 2px dashed #CBD5E1;
  background: #F8FAFC;
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--tr);
  position: relative;
}

.bulk-dropzone:hover,
.bulk-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-lt);
}

.bulk-dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.dropzone-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.dropzone-text p {
  font-size: 0.8rem;
  color: var(--text-lt);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-item .remove-preview-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--tr);
}

.preview-item .remove-preview-btn:hover {
  background: var(--red);
  transform: scale(1.1);
}

.preview-item .cover-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #F5A800;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.gallery-thumbs-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-thumb-mini {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.gallery-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-lt);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
}

.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding: 6px;
}

.media-card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--tr);
  position: relative;
}

.media-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.media-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}

.media-card-body {
  padding: 10px;
}

.media-card-name {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.media-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ═══ Photo Sorting & Auto-Reordering Cards ═══ */
.sort-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F1F5F9;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sort-toolbar-info {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.photo-sort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.photo-sort-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s, border-color 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.photo-sort-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(24, 73, 214, 0.12);
}

.photo-sort-card.is-cover {
  border-color: #F5A800;
  box-shadow: 0 0 0 1px #F5A800;
}

.photo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.pos-badge {
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pos-badge.cover {
  background: #F5A800;
  color: #0F172A;
}

.pos-select-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pos-select-wrap label {
  font-size: 0.72rem;
  color: var(--text-lt);
  font-weight: 600;
}

.pos-select {
  padding: 3px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1.5px solid var(--border-dk);
  background: #fff;
  color: var(--dark);
  cursor: pointer;
  transition: var(--tr);
}

.pos-select:focus {
  border-color: var(--primary);
  outline: none;
}

.photo-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0F172A;
  overflow: hidden;
  cursor: grab;
}

.photo-card-img-wrap:active {
  cursor: grabbing;
}

.photo-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #fff;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.btn-arrow-move {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--tr);
}

.btn-arrow-move:hover:not(:disabled) {
  background: var(--primary-lt);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-arrow-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-cover-set {
  background: #FFF8E7;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--tr);
}

.btn-cover-set:hover {
  background: #F5A800;
  color: #0F172A;
}

.btn-photo-del {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  color: var(--red);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--tr);
}

.btn-photo-del:hover {
  background: var(--red);
  color: #fff;
}

.quick-order-input {
  width: 55px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ═══ Cab Currency Wise Pricing & Show/Hide Controls ═══ */
.pricing-tabs-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cur-tab-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-lt);
  cursor: pointer;
  transition: var(--tr);
}

.cur-tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.rate-dual-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cur-price-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  line-height: 1.25;
}

.cur-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
}

.cur-tag.inr {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}

.cur-tag.usd {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #D1FAE5;
}

.rate-val-inr {
  font-weight: 700;
  color: var(--dark);
}

.rate-val-usd {
  font-weight: 600;
  color: #047857;
}

/* Show / Hide Toggle Buttons */
.btn-toggle-cab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-toggle-cab.btn-hide {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.btn-toggle-cab.btn-hide:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.btn-toggle-cab.btn-show {
  background: #ECFDF5;
  color: #059669;
  border-color: #A7F3D0;
}

.btn-toggle-cab.btn-show:hover {
  background: #059669;
  color: #FFFFFF;
}

/* Modal Pricing Cards */
.currency-modal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.currency-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.currency-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.cur-flag-tag {
  font-size: 1.05rem;
}

/* ═══ Cab Edit Page & Dynamic Destination Pricing ═══ */
.cab-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-lt);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--tr);
}

.btn-back-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.cab-edit-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .cab-edit-layout {
    grid-template-columns: 1fr;
  }
}

.route-repeater-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.route-repeater-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.route-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.route-table th {
  background: var(--bg);
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-lt);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.route-table th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-left: 1px solid var(--border);
}

.route-table th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-right: 1px solid var(--border);
}

.route-row {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--tr);
}

.route-row td {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.route-row td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-left: 1px solid var(--border);
}

.route-row td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-right: 1px solid var(--border);
}

.route-row:hover {
  background: #F8FAFC;
}

.route-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--tr);
}

.route-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 73, 214, 0.12);
}

.route-input-inr {
  color: #C2410C;
  font-weight: 700;
}

.route-input-usd {
  color: #047857;
  font-weight: 700;
}

.btn-remove-route {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--tr);
}

.btn-remove-route:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.route-presets-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-dk);
}

.preset-pill {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.preset-pill:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.cab-photo-preview {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cab-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic Routes Display in Admin Fleet Table */
.admin-routes-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 260px;
  max-width: 340px;
}

.admin-route-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  font-size: 0.76rem;
  line-height: 1.2;
}

.route-item-lbl {
  font-weight: 600;
  color: var(--dark);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-route-prices {
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-routes-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: #EFF6FF;
  border: 1px dashed #BFDBFE;
  padding: 3px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--tr);
}

.edit-routes-badge:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.cab-name-link {
  color: var(--dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cab-name-link:hover {
  color: var(--primary);
  text-decoration: underline;
}