/* Champagne, ivory and bronze: a lighter setting for the evening artwork.
   Kept after the existing brand rules to preserve layout and interactions. */
:root {
  color-scheme: light;
  --ink: #39291e;
  --night: #f7efdf;
  --cream: #fffaf1;
  --gold: #dcb66c;
  --muted: #6e5844;
  --line: #d8c5a8;
  --bronze: #80571f;
  --paper: #fffaf1;
}
body { background:var(--night); color:var(--ink); }
::selection { background:#e7c88d; color:#39291e; }
:focus-visible { outline-color:var(--bronze); }
.private-bar { background:#e8d8bd; color:#5f482f; }
.site-header.bubble-header {
  background:radial-gradient(ellipse at 50% 0,#fffdf7 0,#f0e1c9 90%);
  border-bottom-color:#c5a773;
}
.bubble-header #navigation a {
  background:radial-gradient(ellipse at 32% 12%,#ffffffb3,transparent 60%),linear-gradient(145deg,#fff8e8,#edd6ad);
  border-color:#b59560; color:#4d341c; text-shadow:none;
  box-shadow:inset 0 2px 5px #fffdf1,inset 0 -2px 5px #b4915020,0 4px 14px #6b431414;
}
.bubble-header #navigation a::before { color:var(--bronze); }
.bubble-header #navigation a:hover,.bubble-header #navigation a:focus-visible {
  color:#352313; border-color:#92703c;
  background:linear-gradient(145deg,#fffdf5,#e9c98f);
  box-shadow:inset 0 2px 5px #fffdf1,0 6px 18px #9c713229;
}
.bubble-header #navigation a:focus-visible { outline-color:var(--bronze); }
.bubble-header #navigation .language-bar { color:#5f482f; }
.bubble-header #navigation .language-bar select,.language-bar option {
  background:#fffaf1; color:#4d341c; border-color:#b59560;
}
.site-header.bubble-header .menu-toggle {
  background:linear-gradient(145deg,#fffaf1,#ecd3a5); color:#4d341c;
  border-color:#b59560; box-shadow:0 4px 14px #6b431418;
}
.hero { background:linear-gradient(180deg,#f1e1c5,#fffaf1 85%); }
.hero .hero-content h1 { color:var(--ink); }
.hero h1 em,.hero-content .eyebrow { color:var(--bronze); }
.hero-copy,.hero-date,.hero-closed { color:var(--muted); }
.hero-date span { color:var(--bronze); }
.hero-facts { border-color:var(--line); }
.hero-facts>div { border-color:var(--line); }
.hero .hero-facts strong { color:var(--ink); }
.hero-facts small { color:var(--muted); }
.hero-facts .icon { color:var(--bronze); }
.poster-stage { background:#704527; }
/* The poster stays an evening scene; its overlay has its own light text. */
.hero .poster-stage .countdown-units strong { color:#ffe5b6; }
.hero .poster-stage .countdown-units span { color:#fff2d8; }
.poster-stage .countdown-units>div { background:#392013e6; border-color:#d8b675; }
.poster-caption,.photo-credit,.gallery-note { color:var(--muted); }
.experiences { background:radial-gradient(ellipse at 10% 0,#fffdf7,transparent 55%),linear-gradient(150deg,#f6ebd8,#efe0c6); }
.experiences .section-heading h2,.experiences h2,.experiences h3,.history-block h3,
.ornament-heading,.eco-feature h4 { color:var(--ink); }
.experiences .section-heading h2 em,.experiences h2 em,.experiences h3 em,.history-block h3 em { color:var(--bronze); }
.section-heading .eyebrow,.experiences .eyebrow,.history-block .eyebrow,
.experiences .section-heading .eyebrow::before,.history-block .eyebrow::before,
.ornament-heading::before,.experience-intro p:last-child::before { color:var(--bronze); }
.experiences .section-heading>p,.experience-intro,.visitor-services p:not(.eyebrow),
.history-block>div>p:last-child,.eco-feature p,.service-fee-note { color:var(--muted); }
.history-block,.good-to-know { border-color:var(--line); }
.service-card,.rules-card {
  background:linear-gradient(145deg,#fffdf7,#f3e6cf);
  border-color:#cbb181; box-shadow:0 10px 28px #78511d0d;
}
.service-card summary,.rules-card,.service-name { color:var(--ink); }
.service-logo { filter:drop-shadow(0 5px 12px #7e552929); }
.service-card[open] .service-logo { filter:drop-shadow(0 0 14px #bc883a33); }
.service-hint,.history-stories .history-teaser .history-more {
  color:#553716; border-color:#af8b50;
  background:radial-gradient(ellipse at 35% 0,#fffdf8,transparent 70%),linear-gradient(140deg,#f8eacb,#e9cc96);
  box-shadow:inset 0 0 0 4px #fff9e455,0 4px 14px #7c552015;
}
.service-trigger:hover .service-hint { border-color:#8b622c; box-shadow:0 0 18px #bd88312b; }
.service-card summary:focus-visible,.service-trigger:focus-visible,
.history-more:focus-visible { outline-color:var(--bronze); }
.service-description p { border-color:var(--line); }
.history-teaser { background:#fff9ed; border-color:#ccb488; box-shadow:0 8px 24px #78511d0c; }
.history-teaser h4,.history-stories summary { color:var(--ink); }
.history-stories p,.history-teaser>p { color:#604a36; }
.history-number,.history-stories small,.history-stories a,.history-stories .plus { color:var(--bronze); }
.history-motif,.history-teaser .history-motif.book-cutout { opacity:.09; }
.experiences strong,.service-dialog strong { color:#4b3017; }
.experience-card { color:#fff2d8; border-color:#b79a63; box-shadow:0 10px 24px #65472220; }
.experience-card .card-bottom strong { color:#fff2d8; }
.card-bottom small { color:#ffe3a8; }
.card-top { color:#fff2d8; }
.card-top>span { background:#392013d9; border-color:#e4d2ac99; }
.visitor-information { background:linear-gradient(145deg,#eddfcb,#f5eada); color:var(--ink); }
.unified-faq .faq-card { background:linear-gradient(145deg,#fffaf1,#f7ecd9); border-color:#cbb181; }
.unified-faq .faq-card>summary { color:#53371e; }
.unified-faq .faq-card>summary::before { color:var(--bronze); }
.unified-faq .faq-card>summary:focus-visible { outline-color:var(--bronze); }
.unified-faq .faq-card>p,.unified-faq .faq-answer,
.visitor-information .faq-answer,.visitor-information .faq-answer p,
.visitor-information .ticket-notes p,.visitor-information .detail-line p { color:#604a36; }
.visitor-information a,.arrival-grid a { color:#77501e; }
.visitor-information strong,.ticket-notes strong { color:#4b3017; }
.visitor-information table { color:var(--ink); }
.visitor-information th,.visitor-information td { border-color:var(--line); }
.visitor-information thead th { background:#ead7b6; color:#50341d; }
.visitor-information tbody th small { color:var(--muted); }
.ticket-notes,.detail-line { border-color:var(--line); }
.arrival-grid p,.detail-line p { color:var(--muted); }
.map-placeholder { background:#f1e4cd; border-color:#bea06e; }
.map-placeholder button { background:#e5c48b; color:#493018; border-color:#a7844b; }
.visitor-map iframe { border-color:#bea06e; }
@media screen {
  .planner-section {
    --ink:#39291e; --muted:#6e5844; --line:#d8c5a8;
    background:linear-gradient(145deg,#fffaf1,#f0e1c8); color:var(--ink);
    border-color:var(--line); color-scheme:light;
  }
  .planner-section .section-heading .eyebrow,
  .planner-section .section-heading .eyebrow::before { color:var(--bronze); }
  .planner-section .section-heading>p { color:var(--muted); }
  .planner-section h2 { color:var(--ink); }
  .planner-section h2 em { color:var(--bronze); }
  .planner-section .planner-shell { background:#fffaf1; border-color:#c9ae7e; box-shadow:0 18px 45px #77501c14; }
  .planner-section .planner-controls { background:linear-gradient(145deg,#fffdf7,#faf0df); }
  .planner-section .plan-result { background:linear-gradient(145deg,#f1dfbf,#f9edd7); border-color:#c9ae7e; }
  .planner-section input[type=date],.planner-section .guest-row input[type=number] { background:#fffdf8; color:var(--ink); border-color:#a48757; }
  .planner-section .transport-options label>span { background:#fffaf1; color:#5f482f; border-color:#b9a17a; }
  .planner-section .transport-options input:checked+span { background:#e9c995; color:#432b15; border-color:#8b622c; box-shadow:inset 0 0 0 1px #8b622c; }
  .planner-section .step-number { color:var(--bronze); border-color:#ac8b55; }
  .planner-section .access-choice input { accent-color:#85602c; }
  .planner-section .helper,.planner-section .muted,.planner-section .quiet-note,
  .planner-section .access-choice small,.planner-section .result-time span,
  .planner-section .result-line small,.planner-section .arrival-summary p { color:var(--muted); }
  .planner-section .result-topline .eyebrow,.planner-section .result-time .icon,
  .planner-section .arrival-summary a { color:var(--bronze); }
  .planner-section .result-time,.planner-section .result-line,
  .planner-section .planner-purchase,.planner-section .guest-row { border-color:#ceb994; }
  .planner-section .status-badge { color:#65461e; border-color:#a48148; background:#f9edcf; }
  .planner-section .status-badge::before { background:#85602c; }
  .planner-section .status-badge.closed { background:#f6dfca; color:#783c20; border-color:#bd8964; }
  .planner-section .status-badge.closed::before { background:#8d4524; }
  .planner-section .access-summary,.planner-section .date-message,
  .planner-section .planner-purchase.downloaded { background:#fffaed; border-color:#c4a773; color:var(--ink); }
  .planner-section .planner-purchase #download-confirmation { color:#53371e; }
  .planner-section .calendar-button,.planner-section .outline { color:#5f3e1b; border-color:#a98750; background:#fff7e6; }
  .planner-section .calendar-button:hover,.planner-section .outline:hover { background:#ebd1a5; }
  .planner-section :focus-visible { outline-color:var(--bronze); }
  .planner-section strong { color:#4b3017; }
  .ticket-calculation { background:linear-gradient(135deg,#fff8e7,#efdbaf); color:#53391f; border-color:#b48b42; box-shadow:0 4px 20px #ae803515; }
  .ticket-calculation h4,.planner-section .calculation-total strong,#calculation-error { color:#6d4615; }
  .calculation-total { border-color:#bea06e; }
}
.primary { background:linear-gradient(120deg,#f7dfaa,#dbb16a); color:#382410; border-color:#a47b39; }
.primary:hover { background:linear-gradient(120deg,#ffe9bb,#e8c285); }
.result-actions .primary { background:#684623; color:#fff8eb; }
.result-actions .primary:hover { background:#805a2f; }
dialog,.service-dialog { background:linear-gradient(145deg,#fffaf1,#f3e5ce); color:var(--ink); border-color:#bea06e; box-shadow:0 20px 80px #39201355; }
dialog::backdrop,.service-dialog::backdrop { background:#38271b99; }
.service-dialog h2,.rules-section h2,.rules-section h3 { color:#563719; }
.history-dialog { background:linear-gradient(#fffaf1ef,#f6ead6ef),var(--history-art) center / contain no-repeat,#fffaf1; }
.book-history-dialog { background:#fffaf1; }
.service-dialog-close,.dialog-close { background:#f2dfba; color:#553716; border-color:#a98750; }
.service-dialog-close:focus-visible { outline-color:var(--bronze); }
.rules-section { background:#fffaf1; color:var(--ink); }
.rules-section li::marker,.history-dialog .history-source a { color:var(--bronze); }
#hazirend-kutya:target { color:#6d4615; text-shadow:none; }
.dialog-content .eyebrow,.dialog-content>p { color:var(--muted); }
.photo-tip { background:#eadcc4; color:#60482d; }
.toast { background:#f2dfba; color:#493018; border:1px solid #b89b67; }
footer { background:linear-gradient(145deg,#f4e6cd,#ead8b9); color:var(--ink); border-color:#c7ac7e; }
.contact-section,.footer-bottom { border-color:#c7ac7e; }
.contact-section { row-gap:32px; }
.contact-section-heading { grid-column:1/-1; text-align:center; }
.contact-section-heading .eyebrow { color:var(--bronze); font-size:14px; margin-bottom:18px; }
.contact-section-heading .eyebrow::before { content:"✧"; display:inline-block; margin:0 .5em 0 0; font:400 1.15em/1 var(--serif); color:var(--bronze); vertical-align:baseline; }
.contact-section-heading h2 { color:var(--ink); margin:0; }
.contact-intro .contact-links a { display:flex; align-items:center; gap:12px; max-width:100%; }
.contact-intro .contact-links a span { min-width:0; overflow-wrap:anywhere; }
.contact-intro .contact-links .icon { color:var(--bronze); width:22px; height:22px; }
.social-icons { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:24px; }
.social-icon { display:grid; place-items:center; width:46px; height:46px; border:1px solid #c4a570; border-radius:50%; background:linear-gradient(145deg,#fffaf1,#ecd7b1); }
.social-icon img { display:block; width:24px; height:24px; }
main>.good-to-know { margin:0 auto; padding-block:64px; border-top:0; }
@media(max-width:760px) { .contact-intro .contact-links { align-items:flex-start; } }
.contact-intro .eyebrow,.contact-links a,.contact-intro .contact-links a { color:var(--bronze); }
.contact-intro h2 { color:var(--ink); }
.contact-intro>p:not(.eyebrow),.footer-inner p,.footer-bottom { color:var(--muted); }
.contact-form { background:linear-gradient(145deg,#fffdf7,#f9edda); border-color:#c7ac7e; box-shadow:0 10px 28px #78511d0d; }
.contact-form>p:first-child,.contact-form .contact-privacy { color:var(--muted); }
.contact-form>p:first-child strong,footer strong { color:#513319; }
.contact-form label { color:#493018; }
.contact-form input:not([type=hidden]),.contact-form textarea { background:#fffdf8; color:var(--ink); border-color:#a48757; }
.contact-form input:focus-visible,.contact-form textarea:focus-visible { outline-color:var(--bronze); }
.contact-form input::placeholder,.contact-form textarea::placeholder { color:#7a634b; }
.contact-status { color:#65461e; }
.contact-status[data-state=error],.contact-status[data-state=invalid],.contact-status[data-state=activation] { background:#f7e3d0; color:#793e22; border-color:#a76639; }
.contact-status[data-state=accepted] { background:#efe1bd; color:#63451f; border-color:#9d7839; }
footer>.legal-links a { color:#75501f; }
footer .footer-cutout-logo { filter:url(#gold-ink) brightness(.58) saturate(.85); }
@media(max-width:1100px) {
  .bubble-header #navigation { background:#fff8ecfa; border-color:#bda171; box-shadow:0 15px 35px #65401a33; }
  .bubble-header #navigation .language-bar { border-top-color:var(--line); }
}
@media(max-width:760px) {
  .poster-stage { background:#704527; }
}


/* Center the visitor information blocks on phones. */
@media (max-width:760px) {
  .hero-facts > div {
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding-inline:0;
    gap:8px;
  }
}

/* Contact details remain available without an on-site message form. */
.contact-section { grid-template-columns:1fr; }
.contact-intro { justify-self:center; text-align:center; }
.contact-intro .contact-links { align-items:center; }
.contact-intro .social-icons { justify-content:center; }

/* Keep the native date field within the mobile planner, including iOS Safari. */
@media (max-width:760px) {
  .planner-shell { grid-template-columns:minmax(0,1fr); }
  .planner-controls,.planner-controls .field,.plan-result { min-width:0; max-width:100%; }
  .planner-controls #visit-date {
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:100%;
    height:46px;
    padding:10px;
    font-size:16px;
    -webkit-appearance:none;
    appearance:none;
  }
  .planner-controls #visit-date::-webkit-date-and-time-value { min-width:0; text-align:left; }
  .planner-controls #visit-date::-webkit-datetime-edit { min-width:0; padding:0; }
}

/* Match the rounded shape of the other call-to-action buttons. */
#save-plan { border-radius:999px; }

/* Readable ticket prices without horizontal scrolling, in every language. */
#panel-tickets .ticket-price-list { min-width:0; display:grid; gap:16px; }
#panel-tickets .ticket-price-list>h3 { font-size:1.6rem; line-height:1.3; margin:0 0 4px; color:#4b3017; }
#panel-tickets .ticket-price-card { min-width:0; padding:20px; border:1px solid #d4bd96; border-radius:14px; background:#fffaf2; }
#panel-tickets .ticket-price-card h4 { margin:0 0 8px; font:600 1.15rem/1.5 var(--serif); color:#4b3017; overflow-wrap:anywhere; }
#panel-tickets .ticket-price-card .ticket-description { margin:0 0 16px; font-size:1rem; line-height:1.65; color:#604a36; }
#panel-tickets .ticket-price-card dl { margin:0; display:grid; gap:12px; }
#panel-tickets .ticket-price-card dl>div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding-top:12px; border-top:1px solid #e4d4b9; align-items:start; }
#panel-tickets .ticket-price-card dt { font-size:1rem; line-height:1.6; overflow-wrap:anywhere; }
#panel-tickets .ticket-price-card dd { margin:0; font-size:1.15rem; font-weight:700; line-height:1.5; color:#4b3017; white-space:nowrap; }
#panel-tickets .ticket-holiday { display:block; font-size:inherit; line-height:inherit; }
#panel-tickets .ticket-notes p { font-size:1rem; line-height:1.75; }
#panel-tickets .ticket-notes>small { display:block; margin-top:12px; font-size:.875rem; line-height:1.6; }
#panel-tickets .ticket-notes .subtle-link { font-size:1rem; overflow-wrap:anywhere; }
#panel-tickets .ticket-notes a.button.ticket-bubble { font:600 16px/1.45 var(--serif); min-height:54px; max-width:100%; color:#35200f; }
@media(max-width:600px) {
 #panel-tickets .ticket-price-card { padding:16px; }
 #panel-tickets .ticket-price-card dl>div { grid-template-columns:minmax(0,1fr); gap:4px; }
 #panel-tickets .ticket-price-card dd { font-size:1.25rem; }
 #panel-tickets .ticket-notes a.button.ticket-bubble { width:100%; }
}

/* Place the controls directly below the carriage, over the paved foreground. */
.hero .poster-stage {
  min-height:min(75vw,1200px);
  padding-bottom:20px;
  background: url('/assets/festetics-arany-nyitokep.png') center bottom / auto 1100px no-repeat;
}
.hero .poster-stage .opening-countdown {
  position:relative;
  bottom:auto;
  left:auto;
  transform:none;
  margin:-22% auto 0;
  width:min(500px,90%);
}
@media (max-width:600px) {
  .hero .poster-stage { padding-bottom:16px; }
  .hero .poster-stage .hero-actions { margin-bottom:8px; }
  .hero .poster-stage .countdown-units { gap:6px; }
  .hero .poster-stage .countdown-units>div { padding:6px 3px; }
}

/* Local resident offer beside prices, stacked on smaller screens. */
#panel-tickets .resident-discount { padding:0; margin:20px 0; border:0; border-radius:0; background:none; }
#panel-tickets .resident-discount p { font-size:1rem; line-height:1.75; overflow-wrap:anywhere; }
#panel-tickets .resident-discount p:last-child { margin-bottom:0; }
@media(min-width:960px) {
 #panel-tickets .ticket-layout { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:start; gap:28px; }
 #panel-tickets .ticket-notes { padding-top:0; border-top:0; min-width:0; }
}
#panel-tickets .ticket-description em { font-style:italic; color:inherit; font-size:inherit; }

/* Center the final contact button in the mobile dropdown. */
@media(max-width:1100px){.bubble-header #navigation > a[href="#kapcsolat"]{grid-column:1 / -1;justify-self:center;width:calc((100% - 14px) / 2)}}

/* SZÉP card availability at the on-site ticket office. */
.szep-payment-note {
  padding:14px 18px;
  border:1px solid #b28a4d;
  border-radius:12px;
  background:#fff7e8;
  color:#53371e;
  font-size:16px;
  font-weight:600;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.hero .hero-payment-note {
  max-width:42rem;
  margin:20px 0 0;
  color:#53371e;
  font-size:clamp(14px,1.4vw,16px);
}
#panel-tickets .szep-payment-note { margin:0 0 24px; color:#53371e; }
