/*
Theme Name: YouthPlug Rentals UI
Theme URI: https://youthplug.co.za
Author: YouthPlug
Author URI: https://youthplug.co.za
Description: A modern, lightweight, mobile-first UI theme for rental marketplaces. Designed to work with the YouthPlug Rentals custom plugin. Clean Airbnb / Property24 inspired design. AdSense-ready, fast-loading, and free of business logic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youthplug-rentals-ui
Tags: rental, marketplace, property, mobile-first, lightweight, custom-menu, featured-images, responsive-layout
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --yp-primary: #0f766e;
  --yp-primary-hover: #0d9488;
  --yp-primary-light: #ccfbf1;
  --yp-secondary: #1e293b;
  --yp-accent: #f59e0b;
  --yp-success: #10b981;
  --yp-error: #ef4444;
  --yp-warning: #f59e0b;
  --yp-bg: #f8fafc;
  --yp-surface: #ffffff;
  --yp-border: #e2e8f0;
  --yp-text: #0f172a;
  --yp-text-muted: #64748b;
  --yp-text-light: #94a3b8;
  --yp-radius: 12px;
  --yp-radius-sm: 8px;
  --yp-radius-lg: 16px;
  --yp-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --yp-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --yp-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --yp-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --yp-container: 1200px;
  --yp-header-h: 64px;
  --yp-bottom-nav-h: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--yp-font);
  background: var(--yp-bg);
  color: var(--yp-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--yp-text);
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
}

.text-muted { color: var(--yp-text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.yp-container {
  width: 100%;
  max-width: var(--yp-container);
  margin: 0 auto;
  padding: 0 1rem;
}

.yp-main {
  flex: 1;
  padding-bottom: calc(var(--yp-bottom-nav-h) + 1rem);
}

@media (min-width: 768px) {
  .yp-main { padding-bottom: 2rem; }
}

/* ============================================================
   HEADER
   ============================================================ */
.yp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yp-surface);
  border-bottom: 1px solid var(--yp-border);
  height: var(--yp-header-h);
}

.yp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.yp-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--yp-primary);
  flex-shrink: 0;
}

.yp-logo svg { width: 28px; height: 28px; }

.yp-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.yp-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--yp-text-muted);
  transition: color 0.15s;
}

.yp-nav a:hover,
.yp-nav a.active { color: var(--yp-primary); }

.yp-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yp-header__search-toggle,
.yp-header__menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--yp-radius-sm);
  color: var(--yp-text);
  cursor: pointer;
}

.yp-header__search-toggle:hover,
.yp-header__menu-toggle:hover {
  background: var(--yp-bg);
}

@media (min-width: 768px) {
  .yp-nav { display: flex; }
  .yp-header__menu-toggle { display: none; }
}

/* Mobile menu */
.yp-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--yp-surface);
  padding: 1.5rem;
  flex-direction: column;
}

.yp-mobile-menu.is-open { display: flex; }

.yp-mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.yp-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yp-mobile-menu__nav a {
  padding: 0.875rem 1rem;
  border-radius: var(--yp-radius-sm);
  font-weight: 500;
  font-size: 1.0625rem;
}

.yp-mobile-menu__nav a:hover,
.yp-mobile-menu__nav a.active {
  background: var(--yp-primary-light);
  color: var(--yp-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.yp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--yp-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
  min-height: 44px; /* large tap target */
}

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

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

.yp-btn--secondary {
  background: transparent;
  color: var(--yp-primary);
  border-color: var(--yp-primary);
}

.yp-btn--secondary:hover {
  background: var(--yp-primary-light);
}

.yp-btn--ghost {
  background: transparent;
  color: var(--yp-text-muted);
  border-color: transparent;
}

.yp-btn--ghost:hover {
  background: var(--yp-bg);
  color: var(--yp-text);
}

.yp-btn--accent {
  background: var(--yp-accent);
  color: #fff;
  border-color: var(--yp-accent);
}

.yp-btn--accent:hover {
  background: #d97706;
  border-color: #d97706;
}

.yp-btn--whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.yp-btn--whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
}

.yp-btn--block { width: 100%; }
.yp-btn--sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; min-height: 36px; }
.yp-btn--lg { padding: 0.875rem 1.75rem; font-size: 1.0625rem; min-height: 52px; }

/* ============================================================
   FORMS
   ============================================================ */
.yp-form-group {
  margin-bottom: 1.25rem;
}

.yp-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yp-text);
  margin-bottom: 0.375rem;
}

.yp-input,
.yp-select,
.yp-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--yp-border);
  border-radius: var(--yp-radius-sm);
  background: var(--yp-surface);
  color: var(--yp-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 48px;
}

.yp-input:focus,
.yp-select:focus,
.yp-textarea:focus {
  outline: none;
  border-color: var(--yp-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.yp-textarea { min-height: 120px; resize: vertical; }

.yp-input::placeholder { color: var(--yp-text-light); }

.yp-form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .yp-form-row--2 { grid-template-columns: 1fr 1fr; }
  .yp-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   CARDS
   ============================================================ */
.yp-card {
  background: var(--yp-surface);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.yp-card:hover {
  box-shadow: var(--yp-shadow-md);
}

.yp-card--clickable:hover {
  transform: translateY(-2px);
}

.yp-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--yp-border);
}

.yp-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.yp-card:hover .yp-card__image img {
  transform: scale(1.03);
}

.yp-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--yp-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.yp-card__body {
  padding: 1rem;
}

.yp-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--yp-text);
}

.yp-card__price span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--yp-text-muted);
}

.yp-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yp-card__location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--yp-text-muted);
  margin-bottom: 0.5rem;
}

.yp-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.yp-feature-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--yp-text-muted);
  background: var(--yp-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.yp-feature-icon svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================================
   GRID
   ============================================================ */
.yp-grid {
  display: grid;
  gap: 1.25rem;
}

.yp-grid--listings {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .yp-grid--listings { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .yp-grid--listings { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .yp-grid--listings { grid-template-columns: repeat(4, 1fr); }
}

.yp-grid--categories {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .yp-grid--categories { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .yp-grid--categories { grid-template-columns: repeat(4, 1fr); }
}

.yp-grid--marketplace {
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .yp-grid--marketplace { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .yp-grid--marketplace { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .yp-grid--marketplace { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   HERO
   ============================================================ */
.yp-hero {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
  color: #fff;
  padding: 2.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.yp-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='%23ffffff' 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");
  opacity: 0.6;
}

.yp-hero__content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.yp-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.yp-hero p {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: 1.75rem;
}

/* Search bar */
.yp-search-bar {
  background: var(--yp-surface);
  border-radius: var(--yp-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--yp-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .yp-search-bar {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
  }
}

.yp-search-bar__field {
  flex: 1;
  position: relative;
}

.yp-search-bar__field input,
.yp-search-bar__field select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--yp-text);
  min-height: 48px;
}

.yp-search-bar__field input:focus,
.yp-search-bar__field select:focus {
  outline: none;
}

.yp-search-bar__divider {
  display: none;
  width: 1px;
  height: 32px;
  background: var(--yp-border);
}

@media (min-width: 768px) {
  .yp-search-bar__divider { display: block; }
}

.yp-search-bar .yp-btn {
  flex-shrink: 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.yp-section {
  padding: 2.5rem 0;
}

.yp-section--alt {
  background: var(--yp-surface);
}

.yp-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.yp-section__header h2 {
  margin: 0;
}

.yp-section__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--yp-primary);
  white-space: nowrap;
}

.yp-section__link:hover {
  text-decoration: underline;
}

/* Category cards */
.yp-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--yp-surface);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.yp-category-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yp-primary-light);
  color: var(--yp-primary);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.yp-category-card__icon svg {
  width: 24px;
  height: 24px;
}

.yp-category-card__title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.yp-category-card__count {
  font-size: 0.75rem;
  color: var(--yp-text-muted);
  margin-top: 0.25rem;
}

/* CTA banner */
.yp-cta {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  border-radius: var(--yp-radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.yp-cta h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.yp-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   LISTINGS PAGE LAYOUT
   ============================================================ */
.yp-listings-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

@media (min-width: 900px) {
  .yp-listings-layout {
    grid-template-columns: 260px 1fr;
  }
}

.yp-filters {
  background: var(--yp-surface);
  border-radius: var(--yp-radius);
  padding: 1.25rem;
  box-shadow: var(--yp-shadow);
  height: fit-content;
  position: sticky;
  top: calc(var(--yp-header-h) + 1rem);
}

.yp-filters__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yp-filters__group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--yp-border);
}

.yp-filters__group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.yp-filters__group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--yp-text-muted);
  margin-bottom: 0.75rem;
}

.yp-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  cursor: pointer;
  font-size: 0.875rem;
}

.yp-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--yp-primary);
  flex-shrink: 0;
}

.yp-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.yp-range input {
  flex: 1;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Mobile filter toggle */
.yp-filters-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--yp-surface);
  border: 1.5px solid var(--yp-border);
  border-radius: var(--yp-radius-sm);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .yp-filters-toggle { display: none; }
  .yp-filters { display: block !important; }
}

.yp-filters.is-collapsed {
  display: none;
}

@media (min-width: 900px) {
  .yp-filters.is-collapsed { display: block; }
}

.yp-listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.yp-listings-count {
  font-size: 0.875rem;
  color: var(--yp-text-muted);
}

.yp-sort select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1.5px solid var(--yp-border);
  border-radius: var(--yp-radius-sm);
  font-size: 0.875rem;
  background: var(--yp-surface);
  min-height: 40px;
}

/* ============================================================
   SINGLE LISTING
   ============================================================ */
.yp-single {
  padding: 1.5rem 0 3rem;
}

.yp-gallery {
  position: relative;
  border-radius: var(--yp-radius);
  overflow: hidden;
  background: var(--yp-border);
  margin-bottom: 1.5rem;
}

.yp-gallery__main {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.yp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yp-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.yp-gallery__thumbs::-webkit-scrollbar { display: none; }

.yp-gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}

.yp-gallery__thumb.is-active,
.yp-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--yp-primary);
}

.yp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--yp-shadow);
  z-index: 2;
}

.yp-gallery__nav--prev { left: 0.75rem; }
.yp-gallery__nav--next { right: 0.75rem; }

.yp-single__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .yp-single__grid {
    grid-template-columns: 1fr 340px;
  }
}

.yp-single__main h1 {
  margin-bottom: 0.5rem;
}

.yp-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--yp-text-muted);
}

.yp-single__meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.yp-single__section {
  margin-bottom: 2rem;
}

.yp-single__section h3 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--yp-border);
}

.yp-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .yp-features-list { grid-template-columns: 1fr 1fr 1fr; }
}

.yp-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.yp-features-list svg {
  width: 18px;
  height: 18px;
  color: var(--yp-primary);
  flex-shrink: 0;
}

.yp-rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yp-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--yp-text-muted);
}

.yp-rules-list li::before {
  content: '•';
  color: var(--yp-primary);
  font-weight: 700;
}

/* Sidebar card (price + CTA) */
.yp-booking-card {
  background: var(--yp-surface);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow-md);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--yp-header-h) + 1rem);
}

.yp-booking-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.yp-booking-card__price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--yp-text-muted);
}

.yp-booking-card__location {
  font-size: 0.875rem;
  color: var(--yp-text-muted);
  margin-bottom: 1.25rem;
}

.yp-booking-card .yp-btn {
  margin-bottom: 0.75rem;
}

/* Reviews */
.yp-review {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--yp-border);
}

.yp-review:last-child { border-bottom: none; }

.yp-review__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.yp-review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yp-primary-light);
  color: var(--yp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.yp-review__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.yp-review__date {
  font-size: 0.75rem;
  color: var(--yp-text-muted);
}

.yp-review__stars {
  color: var(--yp-accent);
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.yp-review__body {
  font-size: 0.9375rem;
  color: var(--yp-text-muted);
  line-height: 1.6;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.yp-dashboard {
  display: grid;
  min-height: calc(100vh - var(--yp-header-h));
}

@media (min-width: 768px) {
  .yp-dashboard {
    grid-template-columns: 240px 1fr;
  }
}

.yp-dash-sidebar {
  background: var(--yp-surface);
  border-right: 1px solid var(--yp-border);
  padding: 1.5rem 0;
  display: none;
}

@media (min-width: 768px) {
  .yp-dash-sidebar { display: block; }
}

.yp-dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--yp-text-muted);
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.yp-dash-nav a:hover,
.yp-dash-nav a.active {
  background: var(--yp-primary-light);
  color: var(--yp-primary);
  border-left-color: var(--yp-primary);
}

.yp-dash-nav a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.yp-dash-content {
  padding: 1.5rem;
  background: var(--yp-bg);
}

.yp-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.yp-dash-card {
  background: var(--yp-surface);
  border-radius: var(--yp-radius);
  box-shadow: var(--yp-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.yp-dash-card h3 {
  margin-bottom: 1.25rem;
}

/* Mobile dash nav */
.yp-dash-mobile-nav {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  scrollbar-width: none;
}

.yp-dash-mobile-nav::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .yp-dash-mobile-nav { display: none; }
}

.yp-dash-mobile-nav a {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: var(--yp-surface);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yp-text-muted);
  border: 1.5px solid var(--yp-border);
}

.yp-dash-mobile-nav a.active {
  background: var(--yp-primary);
  color: #fff;
  border-color: var(--yp-primary);
}

/* ============================================================
   MARKETPLACE
   ============================================================ */
.yp-product-card .yp-card__image {
  aspect-ratio: 1;
}

.yp-product-card .yp-card__price {
  color: var(--yp-primary);
}

.yp-condition-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.yp-footer {
  background: var(--yp-secondary);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.yp-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .yp-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .yp-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.yp-footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.yp-footer__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.yp-footer__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.yp-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yp-footer__links a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: color 0.15s;
}

.yp-footer__links a:hover { color: #fff; }

.yp-footer__bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #64748b;
}

/* ============================================================
   BOTTOM NAV (Mobile)
   ============================================================ */
.yp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--yp-bottom-nav-h);
  background: var(--yp-surface);
  border-top: 1px solid var(--yp-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
  .yp-bottom-nav { display: none; }
}

.yp-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--yp-text-muted);
  padding: 0.5rem;
  min-width: 64px;
}

.yp-bottom-nav a.active,
.yp-bottom-nav a:hover {
  color: var(--yp-primary);
}

.yp-bottom-nav a svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   TOAST
   ============================================================ */
.yp-toast-container {
  position: fixed;
  top: calc(var(--yp-header-h) + 1rem);
  right: 1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
  width: calc(100% - 2rem);
}

.yp-toast {
  background: var(--yp-surface);
  border-radius: var(--yp-radius-sm);
  box-shadow: var(--yp-shadow-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: yp-slide-in 0.25s ease;
  border-left: 4px solid var(--yp-primary);
}

.yp-toast--success { border-left-color: var(--yp-success); }
.yp-toast--error { border-left-color: var(--yp-error); }
.yp-toast--warning { border-left-color: var(--yp-warning); }

.yp-toast__message {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
}

.yp-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--yp-text-light);
  padding: 0;
  line-height: 1;
}

@keyframes yp-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   ADSENSE SLOTS
   ============================================================ */
.yp-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--yp-radius-sm);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  min-height: 90px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.yp-ad--header { min-height: 90px; margin: 0 0 1rem; }
.yp-ad--sidebar { min-height: 250px; margin: 1rem 0; }
.yp-ad--infeed { min-height: 100px; }
.yp-ad--footer { min-height: 90px; margin: 1.5rem 0 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.yp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.yp-mt-1 { margin-top: 0.5rem; }
.yp-mt-2 { margin-top: 1rem; }
.yp-mt-3 { margin-top: 1.5rem; }
.yp-mb-1 { margin-bottom: 0.5rem; }
.yp-mb-2 { margin-bottom: 1rem; }
.yp-mb-3 { margin-bottom: 1.5rem; }

.yp-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--yp-text-muted);
}

.yp-empty svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

.yp-skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: yp-shimmer 1.5s infinite;
  border-radius: var(--yp-radius-sm);
}

@keyframes yp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Lazy load placeholder */
img[loading="lazy"] {
  background: var(--yp-border);
}

/* Hide WP admin bar overlap */
.admin-bar .yp-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .yp-header { top: 46px; }
}
