/* ─── CSS VARIABLES ─── */
:root {
  --yp-gold: #F5A623;
  --yp-gold-dark: #D4881A;
  --yp-gold-light: #FDF0D5;
  --yp-red: #E63946;
  --yp-dark: #1A1A2E;
  --yp-darker: #0F0F1E;
  --yp-navy: #16213E;
  --yp-blue: #0F3460;
  --yp-blue-light: #E8F4FD;
  --yp-gray: #6C757D;
  --yp-light: #F8F9FA;
  --yp-white: #FFFFFF;
  --yp-border: #E9ECEF;
  --yp-success: #28A745;
  --yp-danger: #DC3545;
  --yp-warning: #FFC107;
  --yp-info: #17A2B8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--yp-light);
  color: var(--yp-dark);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ─── LOADING SCREEN ─── */
#loading-screen {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--yp-dark) 0%, var(--yp-navy) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.5s, visibility 0.5s;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }
.loader-wrap { text-align: center; }
.loader-logo { font-size: 4rem; animation: pulse 1s infinite; }
.loader-text { color: var(--yp-gold); font-size: 1.5rem; font-weight: 700; margin: 1rem 0; letter-spacing: 2px; }
.loader-bar { width: 200px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; margin: auto; }
.loader-fill { height: 100%; background: var(--yp-gold); border-radius: 2px; animation: loadBar 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
@keyframes loadBar { 0%{width:0;margin-left:0} 50%{width:100%;margin-left:0} 100%{width:0;margin-left:100%} }

/* ─── NAVBAR ─── */
#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--yp-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0 1.5rem;
}
.navbar-inner {
  max-width: 1300px; margin: auto;
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.3rem; font-weight: 800;
  color: var(--yp-gold); white-space: nowrap;
}
.nav-logo span { color: white; }
.brand-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
}
.nav-search {
  flex: 1; max-width: 500px;
  display: flex; gap: 0;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.15);
}
.nav-search input {
  flex: 1; background: none; border: none; outline: none;
  padding: 0.5rem 1rem; color: white; font-size: 0.9rem;
  font-family: inherit;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search button {
  background: var(--yp-gold); border: none; padding: 0.5rem 1rem;
  color: var(--yp-dark); cursor: pointer; font-weight: 600;
  transition: var(--transition);
}
.nav-search button:hover { background: var(--yp-gold-dark); }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; margin-left: auto;
}
.nav-link {
  color: rgba(255,255,255,0.8); padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm); transition: var(--transition);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  border: none; background: none; font-family: inherit;
}
.nav-link:hover { color: var(--yp-gold); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--yp-gold); }
.btn-nav-cta {
  background: var(--yp-gold); color: var(--yp-dark); padding: 0.4rem 1rem;
  border-radius: var(--radius-xl); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; border: none; transition: var(--transition); font-family: inherit;
}
.btn-nav-cta:hover { background: var(--yp-gold-dark); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* ─── TOP BAR ─── */
#topbar {
  background: var(--yp-gold); padding: 0.4rem 1.5rem;
  font-size: 0.8rem; font-weight: 500; color: var(--yp-dark);
}
.topbar-inner {
  max-width: 1300px; margin: auto;
  display: flex; justify-content: space-between; align-items: center;
}

/* ─── HERO ─── */
#hero {
  background: linear-gradient(135deg, var(--yp-dark) 0%, var(--yp-navy) 40%, var(--yp-blue) 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
  transition: background 1s ease-in-out, background-image 1s ease-in-out;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F5A623' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 1300px; margin: auto; position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-block; background: rgba(245,166,35,0.2); color: var(--yp-gold);
  padding: 0.3rem 1rem; border-radius: var(--radius-xl); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.5rem;
  border: 1px solid rgba(245,166,35,0.3);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; color: white; line-height: 1.1;
  margin-bottom: 1rem;
}
.hero-title span { color: var(--yp-gold); }
.hero-subtitle { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem; }
.hero-search {
  background: white; border-radius: var(--radius-lg);
  padding: 0.5rem; display: flex; gap: 0.5rem; max-width: 700px; margin: 0 auto 2rem;
  box-shadow: var(--shadow-lg);
}
.hero-search input, .hero-search select {
  flex: 1; border: none; outline: none; padding: 0.75rem 1rem;
  font-size: 0.95rem; font-family: inherit; background: transparent;
  color: var(--yp-dark);
}
.hero-search select { max-width: 180px; border-left: 1px solid var(--yp-border); }
.hero-search-btn {
  background: var(--yp-gold); color: var(--yp-dark); border: none;
  padding: 0.75rem 2rem; border-radius: var(--radius-md);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: var(--transition); font-family: inherit; white-space: nowrap;
}
.hero-search-btn:hover { background: var(--yp-gold-dark); transform: translateY(-1px); }
.hero-stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.hero-stat { color: rgba(255,255,255,0.8); font-size: 0.875rem; }
.hero-stat strong { color: var(--yp-gold); font-size: 1.5rem; display: block; font-weight: 800; }

/* ─── SECTIONS ─── */
.section { padding: 4rem 1.5rem; }
.section-alt { background: white; }
.section-dark { background: var(--yp-dark); color: white; }
.section-inner { max-width: 1300px; margin: auto; }
.section-head { margin-bottom: 2.5rem; }
.section-head.centered { text-align: center; }
.section-badge {
  display: inline-block; background: var(--yp-gold-light); color: var(--yp-gold-dark);
  padding: 0.25rem 0.75rem; border-radius: var(--radius-xl); font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--yp-gray); font-size: 0.95rem; }

/* ─── GRID LAYOUTS ─── */
.grid-6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
@media (min-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}
.grid-6 .listing-card { font-size: 0.85rem; }
.grid-6 .listing-card-img { height: 120px; font-size: 2rem; }
.grid-6 .listing-card-body { padding: 0.75rem; }
.grid-6 .listing-title { font-size: 0.9rem; margin-bottom: 0.35rem; }
.grid-6 .listing-card-footer { padding: 0.5rem 0.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 1.5rem; }

/* ─── CATEGORY CARDS ─── */
.cat-card {
  background: white; border-radius: var(--radius-md);
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: var(--transition); border: 2px solid var(--yp-border);
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--yp-gold-light), transparent);
  opacity: 0; transition: var(--transition);
}
.cat-card:hover { border-color: var(--yp-gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card:hover::before { opacity: 1; }
.cat-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.cat-image {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  border: 1px solid var(--yp-border);
}
.cat-card:has(.cat-image) .cat-icon { display: none; }
.cat-name { font-weight: 700; font-size: 0.95rem; color: var(--yp-dark); margin-bottom: 0.25rem; }
.cat-count { font-size: 0.8rem; color: var(--yp-gray); }

/* ─── LISTING CARDS ─── */
.listing-card {
  background: white; border-radius: var(--radius-md);
  overflow: hidden; transition: var(--transition);
  border: 1px solid var(--yp-border); cursor: pointer;
  position: relative;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--yp-gold); }
.listing-card-img {
  height: 180px; background: linear-gradient(135deg, var(--yp-gold-light), var(--yp-blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.listing-card-img:has(img) > span { display: none; }
.listing-featured-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--yp-gold); color: var(--yp-dark);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-xl);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.listing-card-body { padding: 1.25rem; }
.listing-cat-tag {
  background: var(--yp-gold-light); color: var(--yp-gold-dark);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-xl);
  font-size: 0.7rem; font-weight: 600; display: inline-block; margin-bottom: 0.5rem;
}
.listing-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; color: var(--yp-dark); }
.listing-meta { color: var(--yp-gray); font-size: 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; }
.listing-meta i { width: 16px; color: var(--yp-gold); }
.listing-card-footer {
  padding: 0.75rem 1.25rem; border-top: 1px solid var(--yp-border);
  display: flex; justify-content: space-between; align-items: center;
}
.listing-views { font-size: 0.75rem; color: var(--yp-gray); }
.btn-view { background: var(--yp-gold); color: var(--yp-dark); padding: 0.3rem 0.75rem; border-radius: var(--radius-xl); font-size: 0.8rem; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); }
.btn-view:hover { background: var(--yp-gold-dark); }

/* ─── BANNERS ─── */
.banner-strip {
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--yp-border);
}
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.banner-card {
  min-height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--yp-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--yp-border);
}
.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-card span {
  position: relative;
  z-index: 1;
  background: rgba(15,15,30,0.62);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.5rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  font-family: inherit; text-decoration: none;
}
.btn-primary { background: var(--yp-gold); color: var(--yp-dark); }
.btn-primary:hover { background: var(--yp-gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary { background: transparent; color: var(--yp-dark); border-color: var(--yp-dark); }
.btn-secondary:hover { background: var(--yp-dark); color: white; }
.btn-danger { background: var(--yp-danger); color: white; }
.btn-danger:hover { background: #c82333; }
.btn-success { background: var(--yp-success); color: white; }
.btn-info { background: var(--yp-info); color: white; }
.btn-outline { background: transparent; border-color: var(--yp-gold); color: var(--yp-gold); }
.btn-outline:hover { background: var(--yp-gold); color: var(--yp-dark); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; color: var(--yp-dark); }
.form-control {
  width: 100%; padding: 0.7rem 1rem; border: 2px solid var(--yp-border);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-family: inherit;
  background: white; color: var(--yp-dark); transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--yp-gold); box-shadow: 0 0 0 3px rgba(245,166,35,0.15); }
.form-control::placeholder { color: #adb5bd; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.775rem; color: var(--yp-gray); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ─── CARDS ─── */
.card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--yp-border); overflow: hidden;
}
.card-header {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--yp-border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--yp-light);
}
.card-title { font-weight: 700; font-size: 1rem; }
.card-body { padding: 1.5rem; }

/* ─── TABLES ─── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--yp-border); }
table { width: 100%; border-collapse: collapse; background: white; }
th { background: var(--yp-dark); color: white; padding: 0.85rem 1rem; text-align: left; font-size: 0.825rem; font-weight: 600; white-space: nowrap; }
td { padding: 0.75rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--yp-border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--yp-light); }
.table-actions { display: flex; gap: 0.5rem; align-items: center; }
td input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--yp-gold); }

/* ─── BADGES ─── */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xl); font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-gray { background: #e9ecef; color: #6c757d; }
.badge-gold { background: var(--yp-gold-light); color: var(--yp-gold-dark); }

/* ─── TOAST ─── */
#toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 10000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: white; padding: 0.85rem 1.25rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; min-width: 280px; border-left: 4px solid var(--yp-gold);
  animation: toastIn 0.3s ease;
}
.toast.success { border-color: var(--yp-success); }
.toast.error { border-color: var(--yp-danger); }
.toast.warning { border-color: var(--yp-warning); }
.toast-icon { font-size: 1.1rem; }
.toast-msg { flex: 1; font-weight: 500; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--yp-gray); font-size: 1rem; padding: 0; line-height: 1; }
@keyframes toastIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 5000; display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn 0.2s ease;
}
.modal-box {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  max-height: 90vh; overflow-y: auto; width: 100%; max-width: 600px;
  animation: slideUp 0.3s ease;
}
.modal-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--yp-border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: white; z-index: 1;
}
.modal-title { font-weight: 800; font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--yp-gray); line-height: 1; padding: 0; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--yp-border); display: flex; gap: 0.75rem; justify-content: flex-end; }
.image-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.image-admin-card {
  border: 1px solid var(--yp-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--yp-light);
}
.image-admin-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.image-admin-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.5rem;
}
.empty-inline {
  color: var(--yp-gray);
  background: var(--yp-light);
  border: 1px dashed var(--yp-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.banner-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--yp-border);
  margin-bottom: 1rem;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

/* ─── ADMIN LAYOUT ─── */
#admin-layout { display: flex; min-height: 100vh; }
#admin-sidebar {
  width: 280px; background: linear-gradient(180deg, #121225 0%, #1A1A2E 58%, #0F0F1E 100%); flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
  transition: var(--transition); z-index: 500;
  display: flex; flex-direction: column;
  box-shadow: 14px 0 36px rgba(15,15,30,0.18);
}
.sidebar-logo {
  padding: 1.35rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 800; font-size: 1.1rem; color: var(--yp-gold);
  background: rgba(255,255,255,0.035);
}
.sidebar-logo span { color: white; }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-section { padding: 0.5rem 1.25rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); margin-top: 0.5rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0.15rem 0.75rem; padding: 0.7rem 0.9rem; color: rgba(255,255,255,0.74);
  cursor: pointer; transition: var(--transition); font-size: 0.875rem;
  border: 1px solid transparent; background: none; width: calc(100% - 1.5rem); text-align: left;
  font-family: inherit; position: relative;
  border-radius: var(--radius-sm);
}
.sidebar-link i { width: 18px; font-size: 0.9rem; }
.sidebar-link:hover { color: white; background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.08); }
.sidebar-link.active { color: var(--yp-dark); background: var(--yp-gold); box-shadow: 0 10px 24px rgba(245,166,35,0.24); }
.sidebar-link.active::before { content: ''; position: absolute; left: -0.75rem; top: 10px; bottom: 10px; width: 3px; background: var(--yp-gold); border-radius: 0 2px 2px 0; }
.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
#admin-main {
  margin-left: 280px; flex: 1; display: flex; flex-direction: column;
  min-height: 100vh; background: #f4f6fa;
}
#admin-topbar {
  background: rgba(255,255,255,0.92); border-bottom: 1px solid var(--yp-border);
  padding: 0 1.75rem; height: 68px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 8px 28px rgba(15,15,30,0.06);
  backdrop-filter: blur(10px);
}
.admin-topbar-title { font-weight: 800; font-size: 1.25rem; }
.admin-topbar-right { display: flex; align-items: center; gap: 1rem; }
#admin-content { padding: 2rem; flex: 1; }
#admin-content > .card, #admin-content .table-wrap {
  box-shadow: 0 14px 40px rgba(15,15,30,0.06);
}

/* ─── STAT CARDS ─── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: white; border-radius: var(--radius-md);
  padding: 1.5rem; border: 1px solid var(--yp-border);
  display: flex; align-items: flex-start; gap: 1rem;
  transition: var(--transition); cursor: default;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.gold { background: var(--yp-gold-light); }
.stat-icon.blue { background: var(--yp-blue-light); }
.stat-icon.green { background: #d4edda; }
.stat-icon.red { background: #f8d7da; }
.stat-icon.purple { background: #e8d5f5; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--yp-dark); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--yp-gray); margin-top: 0.25rem; }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 2px solid var(--yp-border);
  background: white; cursor: pointer; font-size: 0.875rem; font-weight: 600;
  transition: var(--transition); color: var(--yp-dark); font-family: inherit;
}
.page-btn:hover { border-color: var(--yp-gold); color: var(--yp-gold); }
.page-btn.active { background: var(--yp-gold); border-color: var(--yp-gold); color: var(--yp-dark); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── LISTING DETAIL ─── */
.listing-detail-hero {
  background: linear-gradient(135deg, var(--yp-dark), var(--yp-navy));
  padding: 3rem 1.5rem; color: white;
}
.listing-detail-hero div[style*="font-size:4rem"]:has(+ .listing-hero-media) { display: none; }
.listing-hero-media {
  width: 132px;
  height: 104px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.listing-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-hero-media span { display:flex; width:100%; height:100%; align-items:center; justify-content:center; font-size:3rem; }
.listing-detail-inner { max-width: 1100px; margin: auto; }
.listing-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; max-width: 1100px; margin: 2rem auto 0; padding: 0 1.5rem 3rem; }
.listing-detail-main { display: flex; flex-direction: column; gap: 1.5rem; }
.listing-detail-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* ─── TABS ─── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--yp-border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn {
  padding: 0.65rem 1.25rem; border: none; background: none;
  cursor: pointer; font-size: 0.875rem; font-weight: 600;
  color: var(--yp-gray); transition: var(--transition);
  white-space: nowrap; font-family: inherit; border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--yp-gold); }
.tab-btn.active { color: var(--yp-gold); border-bottom-color: var(--yp-gold); }

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--yp-light);
  border: 1px solid var(--yp-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}
.settings-logo-preview img {
  width: 140px;
  max-height: 80px;
  object-fit: contain;
  background: var(--yp-light);
  border: 1px solid var(--yp-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin-bottom: 1rem;
}

/* ─── FOOTER ─── */
#footer {
  background: var(--yp-darker); color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner { max-width: 1300px; margin: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .nav-logo { margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-col-title { color: white; font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a, .footer-links button { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: var(--transition); background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: var(--yp-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }

/* ─── NEWS CARDS ─── */
.news-card { background: white; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--yp-border); cursor: pointer; transition: var(--transition); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-body { padding: 1.25rem; }
.news-date { font-size: 0.75rem; color: var(--yp-gray); margin-bottom: 0.5rem; }
.news-title { font-weight: 700; font-size: 0.95rem; color: var(--yp-dark); margin-bottom: 0.5rem; }
.news-preview { font-size: 0.83rem; color: var(--yp-gray); line-height: 1.6; }

/* ─── QR CODE ─── */
.qr-wrap { text-align: center; padding: 1rem; }
.qr-wrap img { max-width: 160px; border-radius: var(--radius-sm); border: 4px solid var(--yp-gold); }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--yp-gray); }
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--yp-dark); margin-bottom: 0.5rem; }

/* ─── SEARCH RESULTS ─── */
.search-filters {
  background: white; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--yp-border);
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.filter-chip {
  padding: 0.35rem 0.85rem; border-radius: var(--radius-xl);
  border: 2px solid var(--yp-border); background: white; cursor: pointer;
  font-size: 0.8rem; font-weight: 600; transition: var(--transition);
  font-family: inherit; color: var(--yp-dark);
}
.filter-chip:hover, .filter-chip.active { border-color: var(--yp-gold); background: var(--yp-gold-light); color: var(--yp-gold-dark); }

/* ─── IMPORT/EXPORT ─── */
.import-area {
  border: 3px dashed var(--yp-border); border-radius: var(--radius-md);
  padding: 3rem; text-align: center; cursor: pointer; transition: var(--transition);
}
.import-area:hover { border-color: var(--yp-gold); background: var(--yp-gold-light); }

/* ─── THEME BUILDER ─── */
.theme-widget {
  background: var(--yp-light); border-radius: var(--radius-md);
  padding: 1.25rem; border: 1px dashed var(--yp-border); margin-bottom: 1rem;
  cursor: grab;
}
.theme-widget:active { cursor: grabbing; }

/* ─── BREADCRUMB ─── */
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.825rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); cursor: pointer; }
.breadcrumb a:hover { color: var(--yp-gold); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listing-detail-grid { grid-template-columns: 1fr; }
  #admin-sidebar { transform: translateX(-100%); }
  #admin-sidebar.open { transform: translateX(0); }
  #admin-main { margin-left: 0; }
}
@media (max-width: 768px) {
  .hero-search { flex-direction: column; }
  .hero-search select { max-width: none; border-left: none; border-top: 1px solid var(--yp-border); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .hamburger { display: block; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .stat-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .section { padding: 3rem 1rem; }
  #hero { padding: 3rem 1rem 2rem; }
}
@media (max-width: 480px) {
  .nav-logo .long-name { display: none; }
  .hero-stats { gap: 1rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--yp-gold); }
.text-gray { color: var(--yp-gray); }
.text-danger { color: var(--yp-danger); }
.text-success { color: var(--yp-success); }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.hidden { display: none !important; }
.overlay-mobile { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 499; }
.overlay-mobile.active { display: block; }

/* Smooth scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--yp-light); }
::-webkit-scrollbar-thumb { background: var(--yp-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--yp-gray); }

/* Switch toggle */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 24px; transition: var(--transition); }
.slider:before { position: absolute; content: ''; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: var(--transition); }
input:checked + .slider { background: var(--yp-gold); }
input:checked + .slider:before { transform: translateX(20px); }

/* ─── ADDED UPGRADES ─── */
/* Autocomplete Dropdown Styles */
.nav-search {
  position: relative;
}
.hero-search {
  position: relative;
}
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--yp-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  margin-top: 0.5rem;
}
.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--yp-light);
  color: var(--yp-dark);
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover {
  background: var(--yp-light);
}
.autocomplete-item-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.autocomplete-item-sub {
  font-size: 0.75rem;
  color: var(--yp-gray);
  margin-top: 0.15rem;
}
.autocomplete-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--yp-gray);
  font-size: 0.85rem;
}

/* Lightbox Styles */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  z-index: 100000;
}
.lightbox-close:hover {
  color: var(--yp-gold);
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 60px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  transition: var(--transition);
  z-index: 100000;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--yp-gold);
  background: rgba(0, 0, 0, 0.6);
}
.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.lightbox-caption {
  color: white;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Useful Links Home Styles */
.useful-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--yp-gold) !important;
}
