/*
Theme Name: Pesti Massage Admin Managed
Theme URI: https://pestimassage.com/
Author: Pesti Massage
Description: Admin-managed Pesti Massage theme with URL-preserving profiles, services and Budapest guide.
Version: 2.3.0
License: Proprietary
Text Domain: pesti-massage
*/

/* ===================================================
   All site styles are in this file.
   The full CSS from the original style.css should be
   pasted below this comment block.
   =================================================== */

/* =========================
   THEME & RESET
   ========================= */
:root {
  --gold:   #d2aa6d;
  --gold-2: #c89e5a;
  --sand:   #caa76f;
  --sand-2: #b88d51;

  --bg:   #000;
  --bg-2: #111;
  --text: #fff;
  --muted:#ddd;

  --container: 1200px;
  --radius: 12px;

  /* Per-page hero image (override on a page if needed) */
  --hero-image: url('https://pierismassage.com/wp-content/uploads/2024/10/7.png');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* =========================
   HEADER & NAV
   ========================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--gold);
  padding: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-stuck {
  background: linear-gradient(0deg, rgba(210,170,109,0.96), rgba(210,170,109,1));
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.site-header .logo { display: inline-flex; align-items: center; gap: 12px; }
.site-header .logo img { height: 48px; width: auto; display: block; }
.site-header .logo .logo-phone { font-weight: 800; font-size: 0.95rem; color: #000; text-decoration: none; }
.site-header .logo .logo-phone:hover,
.site-header .logo .logo-phone:focus { text-decoration: underline; }

/* base nav */
nav ul { list-style: none; display: flex; gap: 1rem; padding-left: 0; }
nav ul > li { position: relative; }
nav a {
  color: #000; text-decoration: none; font-weight: 700;
  display: block; padding: 10px 14px; cursor: pointer;
}

/* Submenu (default hidden; JS toggles .open on parent <li>) */
.submenu {
  display: none;
  position: absolute; left: 0;
  background: var(--gold);
  border: 2px solid var(--gold-2);
  border-radius: 10px;
  min-width: 220px;
  padding: 0; margin: 0; list-style: none;
  z-index: 999;
  overflow: hidden;
}
.submenu li { display: block; }
.submenu a { color: #000; padding: 10px 14px; white-space: nowrap; }

/* Mobile nav toggle */
.menu-toggle { display: none; background: #000; color: #fff; border: 0; padding: 8px 10px; border-radius: 8px; }

/* ----- Mobile behavior: slide-out panel ----- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; position: relative; z-index: 1002; }

  /* slide-out container */
  #primary-nav{
    position: fixed;
    top: var(--header-h, 72px);             /* adjust if your header is taller/shorter */
    right: 0;
    width: min(85vw, 340px);
    height: calc(100vh - var(--header-h, 72px));
    background: var(--gold);
    border-left: 2px solid var(--gold-2);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  #primary-nav.open { transform: translateX(0); }

  /* Only toggle the TOP-LEVEL UL */
  #primary-nav > ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
  }
  #primary-nav.open > ul { display: flex; }

  #primary-nav > ul > li { width: 100%; }
  #primary-nav a { padding: 12px 16px; }

  /* Submenu becomes accordion (stays hidden until parent .open) */
  #primary-nav .submenu {
    display: none;
    position: static;
    border: 0; border-radius: 0; min-width: 0;
  }
  #primary-nav li.open > .submenu { display: block; }

  /* page overlay */
  .nav-overlay{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
  }
  body.nav-open { overflow: hidden; }
}

/* ----- Desktop dropdown behavior ----- */
@media (min-width: 961px) {
  .site-header nav ul > li { position: relative; }

  /* place submenu with tiny visual gap */
  .site-header nav li > .submenu { top: calc(100% + 8px); }

  /* show only when .open is present */
  .site-header nav li.open > .submenu { display: block !important; }

  /* never open on simple hover unless .open is set by JS */
  .site-header nav li:hover:not(.open) > .submenu { display: none !important; }

  /* hover bridge to remove dead zone */
  .site-header nav li > .submenu::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -8px; height: 8px;
  }
}

/* =========================
   HERO
   ========================= */
.hero {
  background: var(--hero-image) center/cover no-repeat;
  min-height: 400px;
  display: grid; place-items: center;
  position: relative; text-align: center; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.hero > * { position: relative; z-index: 1; }
.hero-text h1, .hero h1 {
  color: #fff; font-size: clamp(2rem, 4vw, 2.8rem);
  text-shadow: 0 8px 28px rgba(0,0,0,.55);
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-block;
  background: #000; color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px; text-decoration: none;
  border: 2px solid transparent; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn.black { background: #000; color: #fff; font-weight: 800; border-radius: 25px; }
.btn.black:hover { background: #222; }
.btn.gold { background: var(--gold); color: #000; font-weight: 800; }
.btn.gold:hover { background: #e1c17f; }
.cta-buttons .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.25); }

/* =========================
   MASSEUSES GRID
   ========================= */
.masseuses { padding: 4rem 1rem; background: #000; }
.masseuse-heading { text-align: center; font-size: 2rem; letter-spacing: 2px; color: #dcdcdc; font-weight: 800; }
.masseuse-subheading { text-align: center; font-size: 1rem; font-weight: 800; margin-bottom: 2.5rem; color: #fff; text-transform: uppercase; }
.masseuse-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; justify-content: center;
}
.masseuse-card {
  border-radius: 12px; overflow: hidden; background: transparent; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  position: relative; display: inline-block; width: 100%;
}
.masseuse-card:hover { transform: translateY(-8px); box-shadow: 0 14px 34px rgba(0,0,0,.45); filter: brightness(1.03); }
.masseuse-card img {
  width: 100%; height: 390px; object-fit: cover;
  border: 2px solid var(--gold); display: block; border-radius: 12px;
}
.masseuse-card .masseuse-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  padding: 40px 12px 14px;
  border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
}
.masseuse-name {
  color: var(--gold); font-family: Georgia, serif;
  font-weight: 800; font-size: 1.2rem; line-height: 1.3;
  display: block; text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.masseuse-age {
  color: #fff; font-family: Georgia, serif;
  font-size: 0.82rem; font-weight: 600;
  display: block; margin-top: 3px; opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.masseuse-description { text-align: center; max-width: 900px; margin: 3rem auto 1rem; color: #fff; font-size: .95rem; line-height: 1.7; }
.masseuse-btn-wrapper { text-align: center; margin-top: 1.5rem; }

/* =========================
   FEATURES
   ========================= */
.features-new {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centers items on small screens */
  align-items: flex-start;   /* keeps icons/text aligned at the top */
  gap: 2rem;                 /* modern way to space items */
  background: var(--gold);
  padding: 3rem 1rem;
  text-align: center;
}

.features-new .feature {
  flex: 1 1 180px;           /* flexible width but minimum 180px */
  max-width: 220px;          /* keeps from stretching too wide */
  margin: 0 auto;            /* centers within flex slot */
}

.features-new .feature img {
  width: 56px;               /* slightly bigger for clarity */
  height: 56px;
  margin: 0 auto 0.75rem;    /* centers icon */
  display: block;
}

.features-new .feature h4 {
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 0.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;     /* cleaner look */
}

.features-new .feature p {
  font-size: 0.9rem;
  color: #111;
  text-transform: uppercase;
  line-height: 1.4;
}

.call-now-wrapper {
  flex-basis: 100%;         /* full row in flex layout */
  text-align: center;
  margin-top: 2rem;
}

.btn.black {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn.black:hover {
  background: #333;
}


/* =========================
   THERAPIES (cards)
   ========================= */
.therapies { padding: 3rem 1rem; background: #000; color: #fff; }
.therapies h2 { text-align: center; margin-bottom: 2rem; }
.therapy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.therapy-card { background: #111; padding: 1.5rem; border-radius: 12px; display: flex; flex-direction: column; height: 100%; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.therapy-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: .9rem; }
.therapy-card h4 { color: var(--gold); margin: .3rem 0 .4rem; }
.therapy-card p { flex: 1; }

/* =========================
   HIGHLIGHT & INFO BAR
   ========================= */
.highlight { background: #111; color: #fff; width: 100%; padding: 4rem 2rem; }
.highlight-container { max-width: var(--container); margin: 0 auto; text-align: center; }
.highlight-container h2 { font-size: 2.2rem; color: var(--gold); margin-bottom: 1.5rem; }
.highlight-container p { font-size: 1.1rem; line-height: 1.8; }

.info-bar { background: var(--gold); color: #000; padding: 2rem; text-align: center; font-weight: 800; font-size: .9rem; }

/* =========================
   REVIEWS (global section)
   ========================= */
.reviews { padding: 3rem 1rem; background: #000; color: #fff; }
.reviews h2 { text-align: center; margin-bottom: 2.5rem; font-size: 2rem; color: var(--gold); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; align-items: stretch; }
.review-card {
  background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
  border-left: 5px solid var(--gold);
  padding: 1.5rem; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.5);
  display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s ease;
}
.review-card:hover { transform: translateY(-5px); }
.review-card h4 { color: var(--gold); font-size: 1.2rem; margin-bottom: .75rem; }
.review-card p { font-size: 1rem; line-height: 1.6; color: #ddd; }

/* =========================
   CTA
   ========================= */
.cta-section { background: var(--gold); text-align: center; padding: 2rem 1rem; color: #000; }
.cta-buttons { margin-top: 1rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* =========================
   FAQ
   ========================= */
.faq { padding: 3rem 1rem; background: #000; color: #fff; }
.faq h2 { text-align: center; margin-bottom: 2rem; }
.faq-item { margin-bottom: 1rem; border: 1px solid #333; }
.faq-question {
  width: 100%; padding: 1rem; text-align: left; background: #111; color: var(--gold);
  font-size: 1rem; border: none; outline: none; cursor: pointer;
}
.faq-answer { padding: 0 1rem 1rem; display: none; background: #111; color: #fff; }

/* =========================
   GALLERY
   ========================= */
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gal-item { overflow: hidden; border-radius: var(--radius); background: #000; border: 2px solid var(--gold); transition: .25s ease transform, .25s ease box-shadow; }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gal-item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.gal-cap { padding: 10px 14px; background: var(--gold); color: #000; font-weight: 800; }

/* =========================
   MASSAGE TYPES (cards)
   ========================= */
.massage-types { padding: 60px 0; }
.types-header { text-align: center; max-width: var(--container); margin: 0 auto 28px; padding: 0 16px; }
.types-header h2 { font-size: clamp(22px, 3.2vw, 30px); margin: 0 0 10px; }
.types-header p { color: var(--muted); }
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.type-card {
  background: var(--bg-2); border: 1px solid #222; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.type-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.45); border-color: var(--gold); }
.type-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-bottom: 2px solid var(--gold); }
.type-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.type-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.type-title h3 { margin: 0; font-size: 1.05rem; color: var(--gold); }
.type-desc { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.type-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.type-actions .btn { border-radius: 999px; padding: 10px 14px; font-weight: 800; border: 2px solid var(--gold); }
.type-actions .btn.gold { background: var(--gold); color: #000; border-color: var(--gold); }
.type-actions .btn.outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.type-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.type-tag { background: #0d0d0d; border: 1px solid #222; color: #bbb; padding: 4px 10px; border-radius: 999px; font-size: .8rem; }

/* =========================
   PAGE-LEVEL UTILITIES
   ========================= */
.erotic-intro { padding: 3rem 1rem; background: var(--gold); text-align: center; color: #000; }
.erotic-intro h2 { font-size: 2rem; }
.erotic-intro p { max-width: 800px; margin: 1rem auto; }

.split { display: grid; gap: 28px; grid-template-columns: repeat(12, 1fr); align-items: center; }
.split .text { grid-column: span 7; }
.split .pic  { grid-column: span 5; }
.card { background: var(--bg-2); border: 1px solid #222; border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 34px rgba(0,0,0,.35); }
.pic img { width: 100%; border-radius: var(--radius); border: 2px solid var(--gold); aspect-ratio: 16/11; object-fit: cover; }
@media (max-width: 960px) { .split .text, .split .pic { grid-column: 1 / -1; } }

.contact-wrap { background: #0b0b0b; border: 1px solid #222; border-radius: 16px; padding: 24px; max-width: 920px; margin: 0 auto; }
form .grid { display: grid; gap: 14px; }
label { font-size: .9rem; color: #bbb; }
input, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #333; background: #111; color: #fff; }
textarea { min-height: 140px; resize: vertical; }

.model-img { width: 356px; height: 390px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--gold); display: block; margin: 0 auto; }

section { padding: 60px 0; }
.section-dark { background: var(--bg); }
.section-gold { background: var(--gold); color: #000; }

h2 { font-size: clamp(22px,3.2vw,30px); margin: 0 0 14px; }
h3 { font-size: clamp(18px,2.5vw,24px); margin: 0 0 10px; }
.bullets { columns: 1; padding-left: 18px; margin: 0; }
.bullets li { margin: 6px 0; }
@media (min-width: 860px){ .bullets { columns: 2; } }

/* =========================
   PROFILE LAYOUT
   ========================= */
.profile-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; }
.profile-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.p-photo { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gold); background: #000; }
.p-photo.tall img { width: 100%; height: 420px; object-fit: cover; display: block; }
.p-photo.wide { grid-column: 1 / -1; }
.p-photo.wide img { width: 100%; height: 360px; object-fit: cover; display: block; }
.profile-side { display: grid; gap: 16px; align-content: start; }
.p-card { background: #101010; border: 1px solid #222; border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 34px rgba(0,0,0,.35); }
.p-head { text-align: center; }
.p-name { font-size: 28px; letter-spacing: 1px; margin: 0; }
.p-sub  { color: var(--muted); margin-top: 2px; font-weight: 700; }
.p-rate { margin-top: 10px; font-size: 1rem; }
.p-rate span { color: var(--muted); margin-right: 6px; }
.p-title { color: var(--gold); margin: 0 0 10px; font-size: 1.05rem; }
.p-stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.p-stats li { display: flex; justify-content: space-between; border-bottom: 1px dashed #2a2a2a; padding-bottom: 6px; }
.p-stats li span { color: #bbb; }
.p-stats li b { color: #fff; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p-chips span { background: #0d0d0d; border: 1px solid #222; color: #bbb; padding: 6px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.p-table { width: 100%; border-collapse: collapse; }
.p-table td { padding: 10px 0; border-bottom: 1px solid #1d1d1d; }
.p-table td:last-child { text-align: right; font-weight: 800; }
.p-note { display: block; margin-top: 10px; color: #bbb; font-size: .85rem; }
.p-contact .p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-bio { grid-column: 1 / -1; margin-top: 6px; }
@media (max-width: 1024px) { .profile-wrap { grid-template-columns: 1fr; } .profile-photos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .profile-photos { grid-template-columns: 1fr; } .p-photo.tall img { height: 380px; } .p-photo.wide img { height: 300px; } .p-contact .p-actions { grid-template-columns: 1fr; } }

/* =========================
   CONTACT PAGE
   ========================= */
body.contact-page .contact-hero { padding: 42px 0 20px; background: #000; color: #fff; text-align: center; }
body.contact-page .contact-hero h1 { margin: 0; font-size: clamp(28px, 4.2vw, 44px); letter-spacing: .5px; }
body.contact-page .pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--gold); color: #000; border: 2px solid var(--gold-2);
  border-radius: 999px; padding: 10px 16px; font-weight: 800; text-decoration: none;
}
body.contact-page .lead { max-width: 980px; margin: 18px auto 24px; text-align: center; color: #e8e0cf; }

body.contact-page .contact-tiles {
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 20px auto 0; max-width: var(--container); padding: 0 16px;
}
body.contact-page .contact-tile {
  background: var(--gold); color: #000; border-radius: 14px; padding: 22px;
  display: grid; place-items: center; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); font-weight: 800;
}
body.contact-page .contact-tile span { font-size: 1.1rem; margin-bottom: 4px; }

body.contact-page .contact-details { padding: 22px 0 40px; background: #000; }
body.contact-page .contact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.contact-page .contact-grid .card {
  background: var(--bg-2); border: 1px solid #222; border-radius: var(--radius);
  padding: 18px; box-shadow: 0 10px 34px rgba(0,0,0,.35);
}
body.contact-page .contact-grid .card h3 { color: var(--gold); margin: .2rem 0 .5rem; font-size: 1.05rem; }
body.contact-page .contact-grid .card p { color: #ddd; margin: .25rem 0; }

/* =========================
   REVIEWS PAGE
   ========================= */
body.reviews-page .reviews-hero { padding: 42px 0 18px; background: #000; color: #fff; text-align: center; }
body.reviews-page .reviews-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 44px); letter-spacing: .5px; }
body.reviews-page .reviews-hero p { margin-top: 6px; color: #e9e1d0; font-weight: 700; }
body.reviews-page .review-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }

/* Language switcher (top-right look, inherits nav styling) */
.lang-switcher {
  margin-left: auto; /* pushes to the end on wide screens */
  display: flex;
  align-items: center;
}
.lang-switcher select {
  appearance: none;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.lang-switcher select:focus {
  outline: 2px solid #c9a26a;
  outline-offset: 2px;
}

/* Basic RTL support */
html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] nav ul { flex-direction: row-reverse; }
html[dir="rtl"] .dropdown .submenu { left: auto; right: 0; text-align: right; }
html[dir="rtl"] .masseuse-grid,
html[dir="rtl"] .therapy-grid,
html[dir="rtl"] .review-grid { direction: rtl; }

/* Mobile: keep it neat */
@media (max-width: 768px) {
  .lang-switcher { margin: 8px 0 0; }
  .lang-switcher select { width: 100%; }
}

/* Screen reader only */
.sr-only {
  position: absolute!important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
}

/* FAQ */
.faq .faq-answer { display: none; }
.faq .faq-item.open .faq-answer { display: block; }

/* Simple reveal (tweak to taste) */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Optional: tweak text alignment and list direction in RTL */
body.rtl { direction: rtl; }
body.rtl nav ul { direction: rtl; }
body.rtl .dropdown .submenu { text-align: right; }


/* =========================
   THERAPY CARD LINKS
   ========================= */
.therapy-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.therapy-card--link::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.therapy-card--link:hover { 
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(210,170,109,0.2);
  border: 1px solid rgba(210,170,109,0.3);
}
.therapy-card--link:hover::before { opacity: 1; }
.therapy-card--link:hover h4 { color: #e8c47a; }
.therapy-cta {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.therapy-card--link:hover .therapy-cta {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   UNIVERSAL IMAGE NORMALIZATION
   Ensures any uploaded image fits correctly
========================================================= */

/* Global safety */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* -------------------------
   Masseuse Cards
------------------------- */
.masseuse-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* -------------------------
   Profile Gallery Photos
------------------------- */
.p-photo {
  position: relative;
  overflow: hidden;
}

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

/* Normalize heights using aspect-ratio instead of fixed px */
.p-photo.tall {
  aspect-ratio: 3 / 4;
}

.p-photo.wide {
  aspect-ratio: 16 / 9;
}

/* Remove forced heights */
.p-photo.tall img,
.p-photo.wide img {
  height: 100%;
}

/* -------------------------
   Model Image Blocks
------------------------- */
.model-img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  height: auto;
}

/* -------------------------
   Therapy Cards
------------------------- */
.therapy-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* -------------------------
   Gallery Grid
------------------------- */
.gal-item {
  aspect-ratio: 4 / 3;
}

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

/* -------------------------
   Split Section Images
------------------------- */
.pic img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

/* -------------------------
   Type Cards
------------------------- */
.type-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* -------------------------
   Hero Background Safety
------------------------- */
.hero {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* =========================================================
   MOBILE + CROSS-BROWSER IMAGE HARDENING
========================================================= */

/* Force predictable box sizing everywhere */
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------------------------
   Aspect Ratio Fallback
   For older Safari / WebViews
---------------------------- */
@supports not (aspect-ratio: 1 / 1) {

  .masseuse-card img,
  .therapy-card img,
  .type-card img,
  .gal-item img,
  .pic img,
  .model-img,
  .p-photo img {
    width: 100%;
    height: 100%;
  }

  /* Container fallback using padding trick */
  .gal-item::before,
  .p-photo::before {
    content: "";
    display: block;
    padding-top: 75%;
  }

  .gal-item > img,
  .p-photo > img {
    position: absolute;
    inset: 0;
  }

  .gal-item,
  .p-photo {
    position: relative;
    overflow: hidden;
  }
}

/* ---------------------------
   Mobile Image Optimization
---------------------------- */
@media (max-width: 768px) {

  /* Masseuse cards */
  .masseuse-card img {
    aspect-ratio: 3 / 4;
  }

  /* Profile photos */
  .p-photo.tall {
    aspect-ratio: 4 / 5;
  }

  .p-photo.wide {
    aspect-ratio: 16 / 10;
  }

  /* Therapy cards */
  .therapy-card img {
    aspect-ratio: 4 / 3;
  }

  /* Gallery thumbnails */
  .gal-item {
    aspect-ratio: 1 / 1;
  }

  /* Model image */
  .model-img {
    max-width: 100%;
    aspect-ratio: 3 / 4;
  }

  /* Split section images */
  .pic img {
    aspect-ratio: 4 / 3;
  }

  /* Prevent accidental overflow */
  .masseuse-grid,
  .therapy-grid,
  .gallery,
  .types-grid,
  .profile-photos {
    overflow-x: hidden;
  }
}

/* ---------------------------
   Touch Rendering Stability
---------------------------- */
@media (pointer: coarse) {
  img {
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
}

/* ---------------------------
   iOS Safari Fixes
---------------------------- */
@supports (-webkit-touch-callout: none) {
  img {
    max-width: 100%;
    height: auto;
  }
}
/* Services table yes/no indicators */
.p-table td.yes { color: #4caf50; font-weight: 500; }
.p-table td.no  { color: #e57373; font-weight: 500; }

/* =========================================================
   ADMIN-MANAGED CONTENT SYSTEM
========================================================= */
.pesti-content-section {
  background: #050505;
  color: #eee;
  padding: clamp(44px, 7vw, 88px) 16px;
}
.pesti-content-section .pesti-prose,
.pesti-page-hero .inner,
.budapest-guide-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}
.pesti-prose {
  font-size: 1rem;
  line-height: 1.85;
}
.pesti-prose h2, .pesti-prose h3, .pesti-prose h4 {
  color: var(--gold);
  font-family: Georgia, serif;
  margin: 1.5em 0 .55em;
}
.pesti-prose p, .pesti-prose ul, .pesti-prose ol { margin-bottom: 1.1rem; }
.pesti-prose a { color: var(--gold); }
.pesti-page-hero {
  min-height: 390px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 16px;
  position: relative;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.pesti-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.55), rgba(0,0,0,.82));
}
.pesti-page-hero h1 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.pesti-page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #eee;
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.pesti-admin-note {
  max-width: 1160px;
  margin: 20px auto;
  padding: 14px 18px;
  border: 1px solid rgba(210,170,109,.35);
  background: rgba(210,170,109,.08);
  border-radius: 10px;
}
.pesti-card-empty {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  border: 1px dashed rgba(210,170,109,.4);
  border-radius: 12px;
  color: #aaa;
}
.pesti-card-empty a { color: var(--gold); }

/* Budapest guide */
.budapest-guide {
  background: #050505;
  color: #fff;
}
.budapest-quick-nav {
  position: sticky;
  top: 80px;
  z-index: 20;
  background: rgba(7,7,7,.96);
  border-top: 1px solid rgba(210,170,109,.15);
  border-bottom: 1px solid rgba(210,170,109,.15);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}
.budapest-quick-nav .inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.budapest-quick-nav a {
  flex: 0 0 auto;
  color: #111;
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
}
.budapest-guide-section {
  padding: clamp(48px, 7vw, 84px) 16px;
  border-bottom: 1px solid rgba(210,170,109,.12);
}
.budapest-guide-section:nth-child(even) { background: #0a0a0a; }
.budapest-section-head {
  text-align: center;
  margin-bottom: 34px;
}
.budapest-section-head h2 {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.budapest-section-head p {
  color: #aaa;
  max-width: 760px;
  margin: 10px auto 0;
}
.budapest-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.budapest-card {
  overflow: hidden;
  border: 1px solid rgba(210,170,109,.18);
  border-radius: 16px;
  background: #111;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.budapest-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #161616;
}
.budapest-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.budapest-card:hover .budapest-card-media img { transform: scale(1.04); }
.budapest-card-body { padding: 22px; }
.budapest-card h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  margin-bottom: 9px;
  font-size: 1.3rem;
}
.budapest-card p { color: #bbb; }
.budapest-card .guide-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}
.budapest-cta {
  background: var(--gold);
  color: #111;
  text-align: center;
  padding: 58px 16px;
}
.budapest-cta h2 { font-family: Georgia, serif; font-size: clamp(1.7rem,4vw,2.6rem); }
.budapest-cta p { max-width: 720px; margin: 10px auto 22px; }
.budapest-cta .btn { margin: 5px; }

/* Dynamic profile */
.profile-about-content h2, .profile-about-content h3 { color: var(--gold); }
.profile-about-content p, .profile-about-content ul { margin-bottom: 1rem; }
.profile-gallery-empty {
  border: 1px dashed rgba(210,170,109,.4);
  padding: 30px;
  border-radius: 12px;
  color: #aaa;
}
.pesti-managed-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .72rem;
  background: rgba(210,170,109,.15);
  color: var(--gold);
  border: 1px solid rgba(210,170,109,.28);
  margin-top: 8px;
}

/* Standard editable page */
.pesti-standard-page {
  background: #050505;
  min-height: 60vh;
}
.pesti-standard-page .pesti-prose {
  padding: 55px 16px 80px;
}
.pesti-standard-page .pesti-prose > * {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

/* WordPress alignment support */
.alignwide { width: min(1320px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none !important; }
.wp-block-image img { border-radius: 12px; }

@media (max-width: 900px) {
  .budapest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .budapest-grid { grid-template-columns: 1fr; }
  .budapest-quick-nav { top: 70px; }
  .pesti-page-hero { min-height: 320px; }
}

.pesti-feature-symbol {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210,170,109,.45);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.35rem;
  background: rgba(210,170,109,.08);
}


/* =========================================================
   ADMIN-MANAGED PRICING PAGE
========================================================= */
body.pricing-page-managed { background: #070707; color: #fff; }
.pesti-pricing-page { background: #070707; color: #fff; overflow: hidden; }
.pesti-pricing-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.pesti-pricing-hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 16px 70px;
  background: radial-gradient(circle at 50% 15%, rgba(210,170,109,.16), transparent 45%), #050505;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(210,170,109,.18);
}
.pesti-pricing-hero-inner { width: min(850px, 100%); }
.pesti-pricing-eyebrow,
.pesti-pricing-section-head > span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .76rem;
  font-weight: 800;
}
.pesti-pricing-hero h1 {
  margin: 14px 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.04;
}
.pesti-pricing-hero p { max-width: 760px; margin: 0 auto; color: #ccc; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.75; }
.pesti-pricing-cash {
  display: inline-flex;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  box-shadow: 0 12px 35px rgba(210,170,109,.2);
}
.pesti-pricing-intro { padding: 34px 0; background: #0d0d0d; border-bottom: 1px solid rgba(255,255,255,.06); }
.pesti-pricing-intro p { max-width: 900px; margin: 0 auto; text-align: center; color: #bbb; line-height: 1.85; }
.pesti-pricing-section { padding: clamp(58px, 8vw, 100px) 0; background: #070707; }
.pesti-pricing-section-alt { background: #0c0c0c; border-top: 1px solid rgba(210,170,109,.1); border-bottom: 1px solid rgba(210,170,109,.1); }
.pesti-pricing-section-head { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.pesti-pricing-section-head h2 { color: var(--gold); font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.2rem); margin: 9px 0; }
.pesti-pricing-section-head p { color: #999; line-height: 1.7; }
.pesti-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.pesti-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(210,170,109,.18);
  border-radius: 20px;
  background: linear-gradient(160deg, #151515, #0e0e0e);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.pesti-price-card::before { content: ''; position: absolute; top: 0; left: 30px; right: 30px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.pesti-price-card.premium { background: linear-gradient(155deg, #211a0d, #111); border-color: rgba(210,170,109,.38); }
.pesti-price-card.ultimate { background: linear-gradient(155deg, #15110a, #090909); border-color: rgba(210,170,109,.55); box-shadow: 0 20px 65px rgba(210,170,109,.09); }
.pesti-price-badge { position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: #111; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.pesti-price-card h3 { padding-right: 82px; color: var(--gold); font-family: Georgia, serif; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.25; }
.pesti-price-card h4 { margin: 20px 0 10px; color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.pesti-price-description { color: #999; line-height: 1.7; margin-top: 10px; }
.pesti-price-description p { margin: 0; }
.pesti-price-features { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.pesti-price-features li { position: relative; padding-left: 20px; color: #c7c7c7; line-height: 1.55; }
.pesti-price-features li::before { content: '✦'; position: absolute; left: 0; top: .15em; color: var(--gold); font-size: .65rem; }
.pesti-price-table-wrap { overflow-x: auto; margin-top: auto; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; }
.pesti-price-table { width: 100%; min-width: 420px; border-collapse: collapse; }
.pesti-price-table th, .pesti-price-table td { padding: 12px 13px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; }
.pesti-price-table th { color: var(--gold); background: rgba(210,170,109,.06); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.pesti-price-table td { color: #ddd; }
.pesti-price-table th:not(:first-child), .pesti-price-table td:not(:first-child) { text-align: right; font-weight: 800; white-space: nowrap; }
.pesti-price-table tbody tr:last-child td { border-bottom: 0; }
.pesti-price-note { margin-top: 16px; padding: 13px 15px; border: 1px solid rgba(210,170,109,.22); border-radius: 11px; background: rgba(210,170,109,.07); color: #bbb; line-height: 1.6; font-size: .88rem; }
.pesti-price-note p { margin: 0; }
.pesti-price-note a { color: var(--gold); }
.pesti-pricing-therapists { padding: clamp(58px, 8vw, 100px) 0; background: #050505; }
.pesti-pricing-therapists .masseuse-grid { width: 100%; }
.pesti-pricing-center { text-align: center; margin-top: 32px; }
.pesti-pricing-cta { padding: 70px 0; text-align: center; background: linear-gradient(135deg, #c99c58, #e2c087); color: #111; }
.pesti-pricing-cta h2 { font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); }
.pesti-pricing-cta p { max-width: 740px; margin: 12px auto 24px; line-height: 1.7; }
.pesti-pricing-cta .btn.gold { background: #111; color: #fff; border-color: #111; }
@media (max-width: 820px) {
  .pesti-pricing-grid { grid-template-columns: 1fr; }
  .pesti-pricing-hero { min-height: 430px; }
}
@media (max-width: 520px) {
  .pesti-pricing-inner { width: min(100% - 22px, 1180px); }
  .pesti-price-card { padding: 24px 18px; border-radius: 15px; }
  .pesti-price-card h3 { padding-right: 0; padding-top: 26px; }
  .pesti-price-badge { top: 14px; right: 14px; }
  .pesti-price-table { min-width: 360px; }
}


/* =========================================================
   SECTION HEADER VISIBILITY FIX — v2.2
   The theme navigation uses .site-header. Content <header>
   elements must remain normal document sections.
========================================================= */
.pesti-pricing-section-head,
.budapest-section-head {
  position: static;
  inset: auto;
  top: auto;
  z-index: auto;
  display: block;
  width: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}
.pesti-pricing-section-head h2 {
  display: block;
  color: var(--gold);
  opacity: 1;
  visibility: visible;
}
.pesti-pricing-section-head > span {
  display: block;
  color: var(--gold);
  opacity: 1;
  visibility: visible;
}
.pesti-pricing-section-head p {
  display: block;
  color: #bdbdbd;
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   HOMEPAGE HEADING VISIBILITY + SEO CONTENT — v2.3
========================================================= */
.erotic-intro,
.erotic-intro .erotic-intro-inner,
.erotic-intro .pesti-prose {
  color: #111;
}

.erotic-intro > .erotic-intro-inner > h2,
.erotic-intro .pesti-prose h2,
.erotic-intro .pesti-prose h3,
.erotic-intro .pesti-prose h4 {
  display: block;
  color: #111 !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none;
}

.erotic-intro .pesti-prose p,
.erotic-intro .pesti-prose li,
.erotic-intro .pesti-prose strong,
.erotic-intro .pesti-prose span {
  color: #111;
}

.erotic-intro .pesti-prose a {
  color: #111;
  font-weight: 800;
  text-decoration: underline;
}

.erotic-intro-inner {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.home-seo-section {
  background: linear-gradient(180deg, #090909 0%, #111 100%);
  color: #eee;
  padding: clamp(58px, 8vw, 96px) 16px;
}

.home-seo-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.home-seo-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

.home-seo-section h2 {
  display: block;
  max-width: 900px;
  margin: 0 auto 22px;
  color: var(--gold) !important;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.home-seo-lead {
  max-width: 900px;
  margin: 0 auto 34px;
  color: #e4e4e4;
  font-size: clamp(1rem, 1.8vw, 1.13rem);
  line-height: 1.85;
  text-align: center;
}

.home-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.home-seo-card {
  padding: clamp(24px, 4vw, 38px);
  background: #050505;
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

.home-seo-card h3 {
  display: block;
  margin: 0 0 13px;
  color: var(--gold) !important;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  opacity: 1 !important;
  visibility: visible !important;
}

.home-seo-card p {
  margin: 0;
  color: #d8d8d8;
  line-height: 1.85;
}

@media (max-width: 760px) {
  .home-seo-grid { grid-template-columns: 1fr; }
  .home-seo-section { padding-inline: 18px; }
}
