/**
 * Theme systems — 1:1 visual recipes from reference sites
 * maison → massagememlisboa.pt
 * ibiza  → ladysescortsibiza.com
 * night  → nightcyprus.com
 * luxury → native charcoal gold
 */

/* ========== Shared token wiring ========== */
html[data-theme] body {
  background:
    radial-gradient(circle at top, var(--body-glow-1), transparent 34%),
    linear-gradient(180deg, var(--body-grad-top), var(--body-grad-bottom));
  color: var(--text);
  font-family: var(--font-body);
}

html[data-theme] .brand__text,
html[data-theme] .hero-brand,
html[data-theme] .section-head h2 {
  font-family: var(--font-display);
  letter-spacing: var(--letter-display);
}

html[data-theme] .hero__shade {
  background: var(--hero-shade-y), var(--hero-shade-x);
}

html[data-theme] .hero-brand { color: var(--hero-text); }
html[data-theme] .hero-lead { color: var(--hero-lead); }

html[data-theme] .btn {
  border-radius: var(--btn-radius);
  text-transform: var(--btn-transform);
  letter-spacing: var(--btn-tracking);
  background: var(--accent);
  color: var(--on-accent);
}
html[data-theme] .btn:hover { background: var(--accent-hover); }
html[data-theme] .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

html[data-theme] .block,
html[data-theme] .card,
html[data-theme] .page-hero,
html[data-theme] .article {
  background: var(--panel-bg);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

html[data-theme] .profile-hero {
  background: var(--panel-bg);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

html[data-theme] .profile-card {
  border-radius: var(--radius);
  border-color: var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
html[data-theme] .profile-card__caption { background: var(--card-caption-bg); }

html[data-theme] .attr-item {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--text);
  border-radius: var(--radius);
}
html[data-theme] .attr-item span { color: var(--text-muted); }
html[data-theme] .attr-item strong { color: var(--text); }

html[data-theme] .bio,
html[data-theme] .bio p,
html[data-theme] .profile-services,
html[data-theme] .profile-info__place,
html[data-theme] .gallery-zoom-hint {
  color: var(--text);
}
html[data-theme] .profile-info__place,
html[data-theme] .gallery-zoom-hint,
html[data-theme] .profile-services__label {
  color: var(--text-muted);
}

html[data-theme] .breadcrumb,
html[data-theme] .breadcrumb a { color: var(--text-muted); }
html[data-theme] .breadcrumb a:hover { color: var(--accent); }

html[data-theme] .chat-fab__avatar {
  background: var(--fab-grad);
  box-shadow: var(--fab-shadow);
  border-color: var(--accent-soft);
}
html[data-theme] .site-footer {
  background: var(--footer-fade), var(--bg);
  border-top-color: var(--line);
}
html[data-theme] .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
}
html[data-theme] .brand__logo { box-shadow: 0 0 0 2px var(--logo-ring); }
html[data-theme] .lang-switch__btn.is-active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* ========== LUXURY ========== */
html[data-theme="luxury"] .btn { border-radius: 999px; }
html[data-theme="luxury"] .nav-links a:hover { color: var(--accent); }

/* ========== MAISON — massagememlisboa.pt ========== */
html[data-theme="maison"] body {
  background: radial-gradient(at top center, #2c2307 0%, #121212 55%), #121212;
  font-weight: 300;
  color: #fff;
}
html[data-theme="maison"] .site-header {
  background: transparent;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
html[data-theme="maison"] .brand__text {
  color: #d4af37;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
}
html[data-theme="maison"] .nav-links a {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}
html[data-theme="maison"] .nav-links a:hover { color: #d4af37; }
html[data-theme="maison"] .hero-brand,
html[data-theme="maison"] .section-head h2 {
  color: #d4af37;
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
}
html[data-theme="maison"] .section-head h2::after {
  content: "";
  display: block;
  width: 4%;
  min-width: 36px;
  height: 3px;
  margin-top: 0.7rem;
  background: #d4af37;
}
html[data-theme="maison"] .btn {
  border-radius: 0;
  border: 1px solid #d4af37;
  background: linear-gradient(170deg, #d4af37 0%, #a8843a 100%);
  color: #121212;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 0.82rem;
}
html[data-theme="maison"] .btn:hover {
  background: linear-gradient(170deg, #a8843a 0%, #121212 100%);
  color: #fff;
  border-color: #a8843a;
}
html[data-theme="maison"] .btn-ghost {
  background: transparent;
  color: #d4af37;
  border: 1px solid #d4af37;
}
html[data-theme="maison"] .btn-ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #fff;
}
html[data-theme="maison"] .block,
html[data-theme="maison"] .card,
html[data-theme="maison"] .page-hero,
html[data-theme="maison"] .article,
html[data-theme="maison"] .profile-hero,
html[data-theme="maison"] .profile-card {
  border-radius: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: radial-gradient(at top center, #2c2307 8%, #121212 62%);
  box-shadow: none;
  color: #fff;
}
html[data-theme="maison"] .profile-info h1 { color: #fff; }
html[data-theme="maison"] .profile-info__place,
html[data-theme="maison"] .gallery-zoom-hint { color: #939598; }
html[data-theme="maison"] .attr-item {
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding-left: 0;
  padding-right: 0;
}
html[data-theme="maison"] .attr-item span {
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
html[data-theme="maison"] .attr-item strong { color: #fff; font-weight: 400; }
html[data-theme="maison"] .bio,
html[data-theme="maison"] .bio p,
html[data-theme="maison"] .profile-services { color: #fff; }
html[data-theme="maison"] .profile-services__label {
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
html[data-theme="maison"] .breadcrumb a { color: #d4af37; }
html[data-theme="maison"] .breadcrumb span { color: #939598; }
html[data-theme="maison"] .profile-card__name {
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
html[data-theme="maison"] .filters input,
html[data-theme="maison"] .filters select,
html[data-theme="maison"] input,
html[data-theme="maison"] select,
html[data-theme="maison"] textarea {
  border-radius: 0;
  border-color: #242424;
  background: #121212;
  color: #fff;
}
html[data-theme="maison"] .gallery-main,
html[data-theme="maison"] .gallery-thumbs button,
html[data-theme="maison"] .chat-panel,
html[data-theme="maison"] .pager a,
html[data-theme="maison"] .pager span,
html[data-theme="maison"] .lang-switch__btn,
html[data-theme="maison"] .chat-fab__avatar {
  border-radius: 0;
}
html[data-theme="maison"] .chat-fab__avatar { border: 1px solid #d4af37; }
html[data-theme="maison"] .site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  background: radial-gradient(at top center, #2c2307 0%, #121212 60%);
}
html[data-theme="maison"] .footer-links a {
  border-radius: 0;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

/* ========== IBIZA — ladysescortsibiza.com ========== */
html[data-theme="ibiza"] body {
  background: #ffffff;
  color: #1e293b;
}
html[data-theme="ibiza"] .site-header {
  background: #ffffff;
  border-bottom: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}
html[data-theme="ibiza"] .site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: #c80f8b;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
html[data-theme="ibiza"] .nav-shell { padding-top: 0.55rem; }
html[data-theme="ibiza"] .brand__text {
  color: #000;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.01em;
}
html[data-theme="ibiza"] .nav-links a {
  border-radius: 0;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
}
html[data-theme="ibiza"] .nav-links a:hover { color: #c80f8b; }
html[data-theme="ibiza"] .hero-brand {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  font-weight: 400;
}
html[data-theme="ibiza"] .hero-lead { color: rgba(255, 255, 255, 0.9); }
html[data-theme="ibiza"] .section-head h2 {
  color: #c80f8b;
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}
html[data-theme="ibiza"] .btn {
  border-radius: 3px;
  background: #c80f8b;
  color: #fff;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 800;
}
html[data-theme="ibiza"] .btn:hover { background: #a80c74; color: #fff; }
html[data-theme="ibiza"] .btn-ghost {
  background: #b48427;
  color: #fff !important;
  border: 0;
}
html[data-theme="ibiza"] .btn-ghost:hover { background: #9a7121; color: #fff !important; }

html[data-theme="ibiza"] .block,
html[data-theme="ibiza"] .card,
html[data-theme="ibiza"] .page-hero,
html[data-theme="ibiza"] .article {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #1e293b;
}

/* Profile detail: white panel + readable slate text (NOT white-on-white) */
html[data-theme="ibiza"] .profile-hero {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.08);
  color: #1e293b !important;
}
html[data-theme="ibiza"] .profile-info h1 {
  margin: 0 0 0.35rem;
  padding: 0.75rem 0.9rem;
  background: #000;
  color: #fff !important;
  border-radius: 3px;
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
html[data-theme="ibiza"] .profile-info h1 .badge {
  background: #c80f8b;
  color: #fff;
}
html[data-theme="ibiza"] .profile-info__place {
  color: #64748b !important;
  margin: 0.65rem 0 0.35rem;
}
html[data-theme="ibiza"] .attr-item {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 3px;
  color: #1e293b !important;
}
html[data-theme="ibiza"] .attr-item span {
  color: #64748b !important;
  font-weight: 600;
}
html[data-theme="ibiza"] .attr-item strong {
  color: #111111 !important;
  font-weight: 700;
}
html[data-theme="ibiza"] .bio,
html[data-theme="ibiza"] .bio p,
html[data-theme="ibiza"] .bio li,
html[data-theme="ibiza"] .profile-services,
html[data-theme="ibiza"] .profile-services p {
  color: #1e293b !important;
}
html[data-theme="ibiza"] .profile-services__label {
  color: #c80f8b !important;
  font-weight: 800;
}
html[data-theme="ibiza"] .gallery-zoom-hint { color: #64748b !important; }
html[data-theme="ibiza"] .gallery-main {
  border-radius: 4px;
  border-color: rgba(0, 0, 0, 0.1);
}
html[data-theme="ibiza"] .gallery-thumbs button {
  border-radius: 3px;
  border-color: rgba(0, 0, 0, 0.1);
}
html[data-theme="ibiza"] .gallery-thumbs button.is-active {
  border-color: #c80f8b;
  box-shadow: 0 0 0 1px #c80f8b inset;
}
html[data-theme="ibiza"] .breadcrumb,
html[data-theme="ibiza"] .breadcrumb a {
  color: #c80f8b !important;
}
html[data-theme="ibiza"] .breadcrumb span { color: #94a3b8; }

html[data-theme="ibiza"] .profile-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
}
html[data-theme="ibiza"] .profile-card__name { color: #fff; }
html[data-theme="ibiza"] .filters input,
html[data-theme="ibiza"] .filters select,
html[data-theme="ibiza"] input,
html[data-theme="ibiza"] select,
html[data-theme="ibiza"] textarea {
  background: #fff;
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}
html[data-theme="ibiza"] .city-list a,
html[data-theme="ibiza"] .blog-list a {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1e293b;
}
html[data-theme="ibiza"] .city-list a:hover,
html[data-theme="ibiza"] .blog-list a:hover {
  border-color: #c80f8b;
  color: #c80f8b;
}
html[data-theme="ibiza"] .site-footer {
  background: #0f0f0f;
  color: #fff;
  border-top: 0;
}
html[data-theme="ibiza"] .footer-brand strong {
  color: #c80f8b;
  font-family: "Lato", system-ui, sans-serif;
}
html[data-theme="ibiza"] .footer-brand p,
html[data-theme="ibiza"] .footer-copy { color: rgba(255, 255, 255, 0.65); }
html[data-theme="ibiza"] .footer-links a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
html[data-theme="ibiza"] .footer-links a:hover {
  color: #c80f8b;
  border-color: #c80f8b;
}
html[data-theme="ibiza"] .chat-fab__hint { background: #c80f8b; color: #fff; }
html[data-theme="ibiza"] .pager .is-current { background: #c80f8b; color: #fff; }
html[data-theme="ibiza"] .lang-switch__btn {
  border-radius: 3px;
  color: #000;
  border-color: rgba(0, 0, 0, 0.15);
  background: #fff;
}
html[data-theme="ibiza"] .lang-switch__btn.is-active {
  background: #c80f8b;
  color: #fff;
  border-color: #c80f8b;
}
html[data-theme="ibiza"] .nav-toggle { border-color: rgba(0, 0, 0, 0.15); }
html[data-theme="ibiza"] .nav-toggle span { background: #000; }
html[data-theme="ibiza"] .empty,
html[data-theme="ibiza"] .blog-list__excerpt { color: #64748b; }

@media (max-width: 760px) {
  html[data-theme="ibiza"] .nav-links {
    background: #0f0f0f;
    border-color: #000;
  }
  html[data-theme="ibiza"] .nav-links a { color: #fff; }
}

/* ========== NIGHT — nightcyprus.com ========== */
html[data-theme="night"] body {
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 28%),
    #050505;
  color: #d8d8d8;
}
html[data-theme="night"] .site-header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.7));
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html[data-theme="night"] .brand__text {
  background: linear-gradient(135deg, #d4af37, #f2d27a, #fff3b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}
html[data-theme="night"] .brand__logo {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 8px 24px rgba(212, 175, 55, 0.18);
}
html[data-theme="night"] .nav-links a {
  border-radius: 999px;
  color: #d8d8d8;
}
html[data-theme="night"] .nav-links a:hover { color: #f2d27a; }
html[data-theme="night"] .hero-brand,
html[data-theme="night"] .section-head h2 {
  color: #fff;
  letter-spacing: 0.04em;
}
html[data-theme="night"] .btn {
  border-radius: 999px;
  min-height: 46px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background: linear-gradient(135deg, #d4af37, #f2d27a);
  color: #111;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.22);
  font-weight: 600;
}
html[data-theme="night"] .btn:hover {
  background: linear-gradient(135deg, #f2d27a, #fff3b0);
  transform: translateY(-2px);
}
html[data-theme="night"] .btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #f4e8b8;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: none;
}
html[data-theme="night"] .btn-ghost:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
  transform: none;
}
html[data-theme="night"] .block,
html[data-theme="night"] .card,
html[data-theme="night"] .page-hero,
html[data-theme="night"] .article,
html[data-theme="night"] .profile-hero {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: #d8d8d8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="night"] .profile-info h1 { color: #fff; }
html[data-theme="night"] .profile-info__place,
html[data-theme="night"] .gallery-zoom-hint { color: rgba(255, 255, 255, 0.55); }
html[data-theme="night"] .attr-item {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}
html[data-theme="night"] .attr-item span {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
html[data-theme="night"] .attr-item strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
html[data-theme="night"] .bio,
html[data-theme="night"] .bio p,
html[data-theme="night"] .profile-services {
  color: rgba(255, 255, 255, 0.65);
}
html[data-theme="night"] .profile-services__label { color: #f2d27a; }
html[data-theme="night"] .contact-row .btn {
  flex: 1 1 140px;
  border-radius: 18px;
}
html[data-theme="night"] .contact-row .btn-ghost {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  border: 0;
}
html[data-theme="night"] .gallery-main { border-radius: 16px; }
html[data-theme="night"] .gallery-thumbs button {
  border-radius: 12px;
  opacity: 0.55;
}
html[data-theme="night"] .gallery-thumbs button.is-active {
  opacity: 1;
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444 inset;
}
html[data-theme="night"] .profile-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
html[data-theme="night"] .profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.45);
}
html[data-theme="night"] .profile-card__name { color: #fff; }
html[data-theme="night"] .filters input,
html[data-theme="night"] .filters select,
html[data-theme="night"] input,
html[data-theme="night"] select,
html[data-theme="night"] textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 999px;
  color: #d8d8d8;
}
html[data-theme="night"] .site-footer {
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 24%),
    linear-gradient(180deg, #050505, #000);
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}
html[data-theme="night"] .footer-brand strong {
  background: linear-gradient(135deg, #d4af37, #f2d27a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.08em;
}
html[data-theme="night"] .footer-links a {
  border-radius: 999px;
  border-color: rgba(212, 175, 55, 0.25);
  color: #d8d8d8;
}
html[data-theme="night"] .footer-links a:hover {
  color: #f2d27a;
  border-color: #f2d27a;
}
html[data-theme="night"] .chat-fab__avatar {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
}
html[data-theme="night"] .pager .is-current {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  border-radius: 999px;
}
html[data-theme="night"] .lang-switch__btn { border-radius: 999px; }
html[data-theme="night"] .lang-switch__btn.is-active {
  background: linear-gradient(135deg, #d4af37, #f2d27a);
  color: #111;
  border-color: transparent;
}
html[data-theme="night"] .breadcrumb a:hover { color: #f2d27a; }
