/* Demo CMS — default theme (handwritten, no frameworks) */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #8b5cf6;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.04);
  --shadow-lg: 0 4px 6px rgba(15,23,42,.04), 0 20px 50px rgba(15,23,42,.08);
  --radius: 12px;
  --radius-lg: 16px;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.site-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--text); opacity: .75; }
.site-nav a:hover { opacity: 1; color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }
@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; background: var(--primary); color: #fff; border: 0; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; }
.btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,.3); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-alt); color: var(--text); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Section */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.7); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { display: inline-block; padding: 4px 12px; background: rgba(99,102,241,.1); color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: 100px; margin-bottom: 16px; }
.section-head p { font-size: 18px; }

/* Hero */
.hero { position: relative; padding: 100px 0 120px; background: radial-gradient(1200px 600px at 15% 0%, rgba(139,92,246,.12), transparent 60%), radial-gradient(800px 500px at 85% 30%, rgba(99,102,241,.1), transparent 60%), var(--bg); overflow: hidden; }
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 .grad { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 20px; margin: 20px 0 36px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 40px; justify-content: center; margin-top: 80px; flex-wrap: wrap; opacity: .65; font-size: 14px; }

/* Grid + Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-cover { display: block; aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; position: relative; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-cover-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; background: rgba(15,23,42,.85); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 100px; backdrop-filter: blur(8px); }
.card-cover-badge.accent { background: var(--primary); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 8px; font-size: 1.2rem; line-height: 1.3; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--primary); }
.card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.card-meta .badge { background: rgba(99,102,241,.1); color: var(--primary); padding: 2px 10px; border-radius: 100px; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.card-excerpt { color: var(--text-muted); font-size: 14px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.card-price { font-weight: 800; font-size: 18px; color: var(--text); }
.card-price small { color: var(--text-muted); font-weight: 500; font-size: 12px; }
.card-arrow { color: var(--primary); font-weight: 600; font-size: 14px; }

/* About features */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: transform .15s; }
.feature:hover { transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; }

/* Reviews */
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; height: 100%; display: flex; flex-direction: column; }
.review-stars { color: #eab308; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 16px; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review-author b { display: block; font-size: 14px; }
.review-author small { color: var(--text-muted); font-size: 12px; }

/* Article */
.article-hero { padding: 56px 0 0; background: var(--bg-alt); }
.article-hero .container { max-width: 820px; }
.article-hero .back { display: inline-block; font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.article-hero .eyebrow { display: inline-block; padding: 4px 10px; background: rgba(99,102,241,.1); color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 100px; margin-bottom: 14px; }
.article-hero h1 { margin-bottom: 16px; }
.article-meta { display: flex; gap: 16px; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; flex-wrap: wrap; }
.article-cover { aspect-ratio: 21/9; overflow: hidden; background: var(--bg-alt); border-radius: var(--radius-lg); margin: 0 auto -60px; max-width: 1080px; box-shadow: var(--shadow-lg); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-wrap { max-width: 820px; margin: 0 auto; padding: 80px 24px; }
.article-body { font-size: 17px; line-height: 1.8; color: var(--text); }
.article-body p { color: var(--text); }
.article-body h2, .article-body h3 { margin-top: 1.8em; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.article-body code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 6px; }

/* Blog layout (with sidebar) */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } .blog-sidebar { order: -1; } }
.blog-sidebar h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 14px; }
.blog-sidebar ul { list-style: none; padding: 0; margin: 0 0 28px; }
.blog-sidebar li { margin-bottom: 6px; }
.blog-sidebar li a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.blog-sidebar li a:hover, .blog-sidebar li a.active { background: var(--bg-alt); color: var(--primary); }
.blog-sidebar li a span { color: var(--text-muted); font-size: 12px; }

/* Tour detail */
.tour-hero { padding: 48px 0 32px; background: var(--bg-alt); }
.tour-hero .back { font-size: 14px; color: var(--text-muted); display: inline-block; margin-bottom: 14px; }
.tour-hero h1 { margin: 6px 0 16px; }
.tour-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.tour-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding: 48px 0; align-items: start; }
@media (max-width: 920px) { .tour-grid { grid-template-columns: 1fr; } }
.tour-cover { aspect-ratio: 21/10; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); margin-bottom: 32px; }
.tour-cover img { width: 100%; height: 100%; object-fit: cover; }
.tour-section { margin-bottom: 36px; }
.tour-section h2 { font-size: 1.5rem; margin-bottom: 18px; }
.tour-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .tour-includes { grid-template-columns: 1fr; } }
.tour-list { list-style: none; padding: 0; margin: 0; }
.tour-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px dashed var(--border); color: var(--text); }
.tour-list li:before { position: absolute; left: 0; top: 12px; content: '✓'; color: #10b981; font-weight: 700; }
.tour-list-x li:before { content: '✗'; color: #ef4444; }
.timeline { border-left: 2px solid var(--border); padding-left: 24px; }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:before { content: ''; position: absolute; left: -32px; top: 4px; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-day { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); font-weight: 700; }
.timeline-item h3 { margin: 4px 0 6px; }
.timeline-item p { margin: 0; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--text-muted); }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { background: var(--bg-alt); }
.faq-body { padding: 0 20px 20px; color: var(--text-muted); }
.tour-sidebar { position: sticky; top: 96px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.tour-price { font-size: 36px; font-weight: 800; color: var(--text); }
.tour-price small { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.tour-side-list { list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; }
.tour-side-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); display: flex; justify-content: space-between; gap: 12px; }
.tour-side-list li:last-child { border-bottom: 0; }
.tour-side-list b { color: var(--text); }
.tour-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.tour-gallery a { display: block; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; }
.tour-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tour-gallery a:hover img { transform: scale(1.08); }
@media (max-width: 600px) { .tour-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 48px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; background: #fff; }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Empty */
.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }

/* Footer */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 60px 0 24px; margin-top: 80px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 13px; margin-bottom: 16px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); }

/* Gallery (shortcode) */
.gal { display: grid; gap: 12px; margin: 24px 0; }
.gal-grid.gal-cols-1 { grid-template-columns: 1fr; }
.gal-grid.gal-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gal-grid.gal-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gal-grid.gal-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gal-grid.gal-cols-5 { grid-template-columns: repeat(5, 1fr); }
.gal-grid.gal-cols-6 { grid-template-columns: repeat(6, 1fr); }
.gal-item { margin: 0; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); cursor: zoom-in; }
.gal-link { display: block; width: 100%; height: 100%; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption { padding: 8px 12px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 640px) { .gal-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* Lightbox */
.lb-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .15s; }
.lb-overlay.show { display: flex; opacity: 1; }
.lb-img { max-width: 95vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close { position: fixed; top: 20px; right: 20px; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }

/* Cafe preview section */
.cafe-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dish { padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.dish-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.dish-name { font-weight: 700; margin: 4px 0 6px; }
.dish-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; min-height: 36px; }
.dish-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.dish-foot b { color: var(--text); font-size: 16px; }

/* Misc */
.text-center { text-align: center; }

/* ── Dropdown nav ── */
.site-nav .nav-item { position: relative; }
.site-nav .nav-link .nav-caret { font-size: 10px; opacity: .6; margin-left: 2px; }
.site-nav .nav-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.08); padding: 8px; flex-direction: column; gap: 2px; z-index: 50; }
.site-nav .nav-dropdown a { display: block; padding: 8px 12px; border-radius: 8px; opacity: .8; }
.site-nav .nav-dropdown a:hover { background: var(--bg-alt); opacity: 1; color: var(--primary); }
.site-nav .nav-has-children:hover .nav-dropdown,
.site-nav .nav-has-children:focus-within .nav-dropdown { display: flex; }
@media (max-width: 720px) {
  .site-nav .nav-dropdown { display: flex; position: static; box-shadow: none; border: none; padding: 4px 0 4px 12px; }
  .site-nav .nav-link .nav-caret { display: none; }
}

/* ── Minimal footer ── */
.footer-min { padding: 24px 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }

/* ── AI section ── */
.ai-grid { gap: 20px; }
.ai-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.ai-card .ai-icon { font-size: 28px; margin-bottom: 12px; }
.ai-card h3 { font-size: 17px; margin: 0 0 8px; }
.ai-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ── AI badge on cards ── */
.card-cover-badge.ai-badge { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; }

/* ── Code-module demo wrapper ── */
.code-module-demo { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }

/* ── Works cards (clickable, opens modal) ── */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .works-grid { grid-template-columns: 1fr; } }
.work-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; cursor: pointer; transition: border-color .25s, transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.work-card:hover, .work-card:focus-visible { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); outline: none; }
.work-card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.work-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-card:hover .work-card-media img { transform: scale(1.04); }
.work-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; opacity: .3; }
.work-card-expand { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.work-card-expand svg { width: 14px; height: 14px; }
.work-card:hover .work-card-expand, .work-card:focus-visible .work-card-expand { opacity: 1; }
.work-card-body { padding: 18px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.work-card-type { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.work-card-title { font-size: 18px; font-weight: 700; margin: 0; }
.work-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 4px 0 8px; }
.work-card-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.work-tag { font-size: 11px; padding: 3px 10px; border-radius: 100px; background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Portfolio modal ── */
.pmodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pmodal[hidden] { display: none; }
.pmodal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.pmodal-content { position: relative; width: 100%; max-width: 1100px; max-height: 90vh; background: #fff; color: #111; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.pmodal-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.06); color: #111; font-size: 22px; cursor: pointer; z-index: 2; }
.pmodal-close:hover { background: rgba(0,0,0,.12); }
.pmodal-body { display: grid; grid-template-columns: 320px 1fr; overflow: hidden; flex: 1; }
@media (max-width: 820px) { .pmodal-body { grid-template-columns: 1fr; } }
.pmodal-head { padding: 28px; border-right: 1px solid #eee; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 820px) { .pmodal-head { border-right: 0; border-bottom: 1px solid #eee; max-height: 40vh; } }
.pmodal-type { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #888; }
.pmodal-title { font-size: 22px; font-weight: 700; margin: 4px 0 6px; }
.pmodal-desc { font-size: 14px; color: #444; line-height: 1.55; margin: 0 0 10px; }
.pmodal-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.pmodal-stack .work-tag { background: #f3f3f3; color: #555; border-color: #e5e5e5; }
.pmodal-link { display: inline-block; margin-top: 14px; padding: 10px 16px; border-radius: 10px; background: var(--primary); color: #fff; text-align: center; font-weight: 600; font-size: 14px; text-decoration: none; }
.pmodal-link:hover { opacity: .9; }
.pmodal-screens { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: #fafafa; }
.pmodal-screens img { width: 100%; height: auto; border-radius: 12px; border: 1px solid #ececec; display: block; }

/* ── Tour detail extras ── */
.tour-text { font-size: 15px; line-height: 1.6; color: var(--text); }
.tour-note { background: rgba(124,58,237,.07); border-left: 3px solid var(--primary); padding: 12px 16px; border-radius: 8px; font-size: 14px; margin: 16px 0; }
.tour-promo { margin-top: 12px; font-size: 13px; padding: 10px 12px; border-radius: 8px; background: rgba(255,200,0,.12); color: #8a6a00; }
.tour-price-old { text-decoration: line-through; color: var(--text-muted); margin-right: 8px; font-weight: 500; font-size: 16px; }
.tour-price-new { color: var(--primary); }
