/* ==========================================================================
   TRAWELL AMIGOS - ENTERPRISE TOUR CMS & CRM DASHBOARD
   Styled identically to Mumbai Trekizens CMS & Trouvaille Travel ERP
   ========================================================================== */

:root {
  --admin-primary: #0f766e;
  --admin-primary-dark: #115e59;
  --admin-primary-light: #ccfbf1;
  --admin-gold: #f59e0b;
  --admin-gold-light: #fef3c7;
  --admin-accent: #ea580c;
  --admin-red: #b91c1c;
  --admin-bg: #f8fafc;
  --admin-card: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text-main: #0f172a;
  --admin-text-muted: #64748b;
  --admin-text-light: #94a3b8;
  --admin-sidebar-width: 255px;
  --admin-header-height: 72px;
}

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

html {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  overflow: hidden;
}

body.admin-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  line-height: 1.5;
  display: flex;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   SIDEBAR (FROZEN / FIXED ON DESKTOP)
   ========================================================================== */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  min-width: var(--admin-sidebar-width);
  max-width: var(--admin-sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
  max-height: 100vh;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.sidebar-brand-text h2 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--admin-text-main);
  line-height: 1.2;
}

.sidebar-brand-text h2 span {
  color: var(--admin-red);
}

.sidebar-brand-text span {
  font-size: 0.72rem;
  color: var(--admin-text-muted);
  font-weight: 700;
}

.sidebar-section {
  padding: 1.25rem 0.85rem;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-light);
  padding: 0 0.75rem 0.5rem;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link .nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link:hover {
  background: #f1f5f9;
  color: var(--admin-text-main);
}

.nav-link.active {
  background: var(--admin-primary-light);
  color: var(--admin-primary-dark);
  font-weight: 800;
}

.nav-badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
}

.nav-link.active .nav-badge {
  background: var(--admin-primary);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.user-info h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--admin-text-main);
}

.user-info p {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================== */
.admin-main {
  margin-left: 0;
  flex: 1 1 0%;
  min-width: 0;
  width: calc(100% - var(--admin-sidebar-width));
  max-width: calc(100% - var(--admin-sidebar-width));
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* Header (FROZEN / FIXED AT TOP) */
.admin-header {
  min-height: var(--admin-header-height);
  max-height: var(--admin-header-height);
  height: var(--admin-header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 90;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.admin-search-box {
  position: relative;
  flex: 1 1 200px;
  max-width: 360px;
  min-width: 120px;
}

.admin-search-box input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.25rem;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--admin-text-main);
  box-sizing: border-box;
}

.admin-search-box input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.admin-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--admin-text-light);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cloud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.cloud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-admin {
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

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

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

.btn-admin-outline {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  color: var(--admin-text-main);
}

.btn-admin-outline:hover {
  background: #f8fafc;
}

/* Page Content Body (INDEPENDENT SCROLL CONTAINER) */
.admin-content {
  padding: 1.5rem;
  flex: 1 1 0%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* KPI Overview Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.kpi-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--admin-text-muted);
}

.kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.kpi-icon.green { background: #dcfce7; color: #16a34a; }
.kpi-icon.orange { background: #ffedd5; color: #ea580c; }
.kpi-icon.blue { background: #e0f2fe; color: #0284c7; }
.kpi-icon.purple { background: #f3e8ff; color: #9333ea; }

.kpi-value {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--admin-text-main);
  line-height: 1.1;
}

/* Section Cards */
.admin-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  overflow: hidden;
}

.admin-card-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--admin-text-main);
}

/* ==========================================================================
   FROZEN / PINNED PANES & HEADERS
   ========================================================================== */

/* 1. Events & Treks Pane */
#eventsPane .admin-card,
#bookingsPane .admin-card,
#inquiriesPane .admin-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--admin-header-height) - 3rem);
  max-height: calc(100vh - var(--admin-header-height) - 3rem);
  margin-bottom: 0;
}

#eventsPane .admin-card-head,
#bookingsPane .admin-card-head,
#inquiriesPane .admin-card-head {
  flex-shrink: 0;
  background: #ffffff;
  z-index: 30;
}

#eventsPane .data-table-wrap,
#bookingsPane .data-table-wrap,
#inquiriesPane .data-table-wrap {
  flex: 1 1 0%;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

#eventsPane .admin-table thead th,
#bookingsPane .admin-table thead th,
#inquiriesPane .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* 2. Site Pages CMS Pane */
#contentPane .admin-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--admin-header-height) - 3rem);
  max-height: calc(100vh - var(--admin-header-height) - 3rem);
  margin-bottom: 0;
}

#contentPane .admin-card-head {
  flex-shrink: 0;
  background: #ffffff;
  z-index: 35;
  border-bottom: 1px solid var(--admin-border);
}

#contentPane .cms-tabs-bar {
  flex-shrink: 0;
  background: #f8fafc;
  z-index: 30;
  border-bottom: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

#contentPane .admin-card > div:last-child {
  flex: 1 1 0%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

/* 3. SEO Health Pane */
#seoPane .admin-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--admin-header-height) - 3rem);
  max-height: calc(100vh - var(--admin-header-height) - 3rem);
  margin-bottom: 0;
}

#seoPane .admin-card-head {
  flex-shrink: 0;
  background: #ffffff;
  z-index: 30;
  border-bottom: 1px solid var(--admin-border);
}

#seoPane .admin-card > div:last-child {
  flex: 1 1 0%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Data Table */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.admin-table th {
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

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

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: capitalize;
}

.status-confirmed { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

/* SEO Health Card */
.seo-health-box {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.seo-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.seo-health-head h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--admin-text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-badge-100 {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.seo-desc {
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  margin-bottom: 1.5rem;
}

.seo-progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.progress-item label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

/* ==========================================================================
   ENTERPRISE EVENT STUDIO (ADD / EDIT TOUR MODAL)
   ========================================================================== */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

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

.studio-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 1140px;
  width: 100%;
  height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.studio-modal-head {
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.studio-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.studio-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.15);
}

.studio-badge {
  background: var(--admin-gold-light);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.studio-modal-head h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--admin-text-main);
  letter-spacing: -0.01em;
}

.studio-workspace {
  display: grid;
  grid-template-columns: 250px 1fr;
  flex-grow: 1;
  overflow: hidden;
  background: #f8fafc;
}

/* Studio Left Nav */
.studio-nav {
  background: #ffffff;
  border-right: 1px solid var(--admin-border);
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.studio-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--admin-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.studio-nav-btn i {
  font-size: 1.2rem;
  color: #94a3b8;
  transition: color 0.18s ease;
}

.studio-nav-btn:hover {
  background: #f1f5f9;
  color: var(--admin-text-main);
}

.studio-nav-btn:hover i {
  color: #0f766e;
}

.studio-nav-btn.active {
  background: #f0fdfa;
  border-color: #ccfbf1;
  color: #0f766e;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.08);
}

.studio-nav-btn.active i {
  color: #0f766e;
}

/* Studio Right Content */
.studio-content-pane {
  padding: 2rem 2.25rem;
  overflow-y: auto;
  background: #f8fafc;
}

.studio-section-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  margin-bottom: 2rem;
}

.studio-card-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.studio-section-card h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--admin-text-main);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.studio-section-card h4 i {
  color: #0f766e;
}

.studio-section-card p.hint {
  font-size: 0.86rem;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   FORM CONTROLS & MODERN INPUTS SYSTEM
   ========================================================================== */
.form-group {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: #ef4444;
  font-weight: 800;
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Base Form Control */
.form-control {
  display: block;
  width: 100%;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.5;
  color: #0f172a;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.form-control:hover {
  border-color: #94a3b8;
  background-color: #fcfdfe;
}

.form-control:focus {
  color: #0f172a;
  background-color: #ffffff;
  border-color: #0f766e;
  outline: 0;
  box-shadow: 0 0 0 3.5px rgba(15, 118, 110, 0.14);
}

.form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
  font-weight: 400;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
  cursor: not-allowed;
  box-shadow: none;
}

/* Custom Select Dropdowns */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
  padding-right: 2.75rem;
  cursor: pointer;
  font-weight: 600;
}

/* Modern Textareas */
textarea.form-control {
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 95px;
}

/* Input Groups with Addons */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.input-group .input-group-addon {
  display: flex;
  align-items: center;
  padding: 0.72rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-right: none;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  user-select: none;
  white-space: nowrap;
}

.input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: none;
}

.input-group .form-control:focus {
  z-index: 2;
}

/* Input with Leading Icon */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .input-lead-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.2rem;
  color: #64748b;
  pointer-events: none;
  z-index: 2;
}

.input-with-icon .form-control.with-icon {
  padding-left: 2.75rem;
}

/* Form Layout Grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.form-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

/* Modern Toggle Cards (Homepage Feature & Batches Checkboxes) */
.toggle-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.toggle-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.toggle-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.toggle-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-card-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.toggle-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.toggle-card-icon.star {
  background: #fef3c7;
  color: #d97706;
}

.toggle-card-icon.calendar {
  background: #dcfce7;
  color: #16a34a;
}

.toggle-card-text {
  display: flex;
  flex-direction: column;
}

.toggle-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.toggle-card-desc {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Switch Pill inside Toggle Card */
.toggle-switch-pill {
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
  margin-left: 1rem;
}

.toggle-switch-pill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-card:has(.toggle-checkbox:checked) {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
}

.toggle-card:has(.toggle-checkbox:checked) .toggle-switch-pill {
  background: #0f766e;
}

.toggle-card:has(.toggle-checkbox:checked) .toggle-switch-pill::after {
  transform: translateX(20px);
}

/* Quick Add Chips */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.chips-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.chip {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.chip:hover {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #0f766e;
  transform: translateY(-1px);
}

.chip:active {
  transform: translateY(0);
}

.studio-modal-foot {
  padding: 1.1rem 2rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  flex-shrink: 0;
}

/* SERP Simulator */
.serp-preview-box {
  background: #ffffff;
  border: 1px solid #dfe1e5;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.serp-url {
  font-size: 0.85rem;
  color: #202124;
  margin-bottom: 0.25rem;
}

.serp-title {
  font-size: 1.25rem;
  color: #1a0dab;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.serp-snippet {
  font-size: 0.9rem;
  color: #4d5156;
  line-height: 1.45;
}

.admin-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--admin-border);
  font-size: 1.25rem;
  color: var(--admin-text-main);
  cursor: pointer;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.admin-mobile-toggle:active {
  transform: scale(0.92);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE STYLES (TABLET & MOBILE)
   ========================================================================== */

/* Tablets and Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    min-width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

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

  .admin-main {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    flex: 1 1 100%;
  }

  .admin-mobile-toggle {
    display: inline-flex !important;
  }

  #eventsPane .admin-card,
  #bookingsPane .admin-card,
  #inquiriesPane .admin-card,
  #contentPane .admin-card,
  #seoPane .admin-card {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  #eventsPane .data-table-wrap,
  #bookingsPane .data-table-wrap,
  #inquiriesPane .data-table-wrap {
    max-height: 65vh;
  }

  #contentPane .admin-card > div:last-child,
  #seoPane .admin-card > div:last-child {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .studio-workspace {
    grid-template-columns: 1fr;
  }

  .studio-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--admin-border);
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem;
  }

  .studio-nav-btn {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
  }

  .studio-content-pane {
    padding: 1.25rem 1rem;
  }

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

/* Desktop Only (>= 1025px) */
@media (min-width: 1025px) {
  .admin-sidebar-backdrop {
    display: none !important;
  }
  .admin-mobile-toggle {
    display: none !important;
  }
  .admin-sidebar {
    transform: none !important;
  }
}

/* Medium Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  .admin-content {
    padding: 1rem 0.75rem;
  }

  .admin-header {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  .cloud-badge {
    display: none !important;
  }

  .form-grid-2,
  .form-grid-3,
  .form-grid-2-1,
  .toggle-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .admin-card-head {
    padding: 1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-card-head > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .kpi-card {
    padding: 1rem;
  }

  .kpi-value {
    font-size: 1.3rem;
  }

  .studio-modal-card {
    height: 96vh;
    border-radius: 14px;
  }

  .studio-modal-head {
    padding: 0.85rem 1rem;
  }

  .studio-modal-foot {
    padding: 0.85rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .studio-modal-foot > div {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  .admin-header-actions .btn-admin .btn-text {
    display: none;
  }

  .admin-header-actions .btn-admin {
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
  }

  .admin-search-box {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

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

/* Upload Dropzone & WebP Media Studio */
.upload-dropzone {
  border: 2px dashed var(--admin-primary);
  background: var(--admin-primary-light);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
  user-select: none;
}

.upload-dropzone:hover {
  background: #ccfbf1;
  border-color: var(--admin-primary-dark);
}

.compress-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dcfce7;
  color: #15803d;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.gallery-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.gallery-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 85px;
  border: 1px solid #cbd5e1;
  background: #0f172a;
}

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

.gallery-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.gallery-delete-btn:hover {
  transform: scale(1.15);
  background: #b91c1c;
}

/* ==========================================================================
   SITE PAGES CMS STYLING
   ========================================================================== */
.cms-tabs-bar {
  background: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.cms-tabs-bar::-webkit-scrollbar {
  height: 5px;
}

.cms-tabs-bar::-webkit-scrollbar-track {
  background: transparent;
}

.cms-tabs-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.btn-cms-page {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: var(--admin-text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
  user-select: none;
}

.btn-cms-page:hover {
  background: #f1f5f9;
  color: var(--admin-text-main);
  border-color: #cbd5e1;
}

.btn-cms-page.active {
  background: var(--admin-primary);
  color: #ffffff;
  border-color: var(--admin-primary);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.cms-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cms-section-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.cms-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cms-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cms-key-badge {
  font-family: monospace;
  font-size: 0.76rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.cms-updated-tag {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   PICKUP & BOARDING POINTS DYNAMIC MANAGER
   ========================================================================== */
.pickup-point-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: grid;
  grid-template-columns: 2fr 2.5fr 1.4fr auto;
  gap: 0.85rem;
  align-items: center;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.pickup-point-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.pickup-point-card .form-group {
  margin-bottom: 0;
}
.pickup-point-card .pickup-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
  display: block;
}
.pickup-actions-group {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding-top: 1.25rem;
}
.pickup-actions-group .btn-icon-sm {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: var(--admin-text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pickup-actions-group .btn-icon-sm:hover:not(:disabled) {
  background: var(--admin-bg);
  border-color: #94a3b8;
}
.pickup-actions-group .btn-icon-sm.delete-btn {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}
.pickup-actions-group .btn-icon-sm.delete-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
}

@media (max-width: 900px) {
  .pickup-point-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .pickup-actions-group {
    padding-top: 0.25rem;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   IMAGE CROPPER & RATIO OPTIMIZER MODAL
   ========================================================================== */
.crop-ratio-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: var(--admin-text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}
.crop-ratio-btn:hover {
  background: var(--admin-bg);
  border-color: #94a3b8;
}
.crop-ratio-btn.active {
  background: var(--admin-primary);
  color: #ffffff;
  border-color: var(--admin-primary);
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.gallery-crop-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 118, 110, 0.95);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.gallery-crop-btn:hover {
  background: #115e59;
  transform: scale(1.1);
}




