/* CUTANA unified staging theme — 2026-10-24 */
:root{--wall:url('/CUTANA_brand_wall_seamless.png');--cocoa:#351804;--panel:rgba(47,20,5,.92);--gold:#f2c400;--gold2:#ffd84a}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background-color:var(--cocoa);background-image:linear-gradient(rgba(53,24,4,.78),rgba(53,24,4,.78)),var(--wall);background-repeat:repeat;background-size:auto,372px 384px;color:#fff8e6;font-family:Arial,'Noto Sans Thai',sans-serif}body{overflow-x:hidden}a{color:#fff;text-decoration:none}a:hover{color:var(--gold2)}
.stage-header,.site-header{padding:18px 24px;background-image:linear-gradient(rgba(33,16,7,.94),rgba(33,16,7,.94)),var(--wall);background-repeat:repeat;background-size:auto,372px 384px;border-bottom:2px solid var(--gold)}.header-container,.header-inner{max-width:1220px;margin:auto;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.stage-logo,.brand{color:var(--gold);font-weight:700;font-size:20px;letter-spacing:.04em;white-space:nowrap}.stage-nav,.site-nav{display:flex;align-items:center;gap:20px;margin-left:auto;font-size:14px;font-weight:700}.stage-nav a,.site-nav a{color:#fff}.stage-language,.site-actions{margin-left:0}.stage-language select,.lang-switch{min-width:62px;padding:9px;background:#fff9e8;color:#211007;border:1px solid var(--gold);border-radius:0;font:inherit}
.info-menu{position:relative}.info-menu>summary{cursor:pointer;list-style:none;color:#fff}.info-menu>summary::-webkit-details-marker{display:none}.info-menu[open] .info-dropdown{display:grid}.info-dropdown{display:none;position:absolute;z-index:10;top:calc(100% + 10px);right:0;min-width:220px;padding:10px;background:#211007;border:2px solid var(--gold);box-shadow:0 8px 20px rgba(0,0,0,.35)}.info-dropdown a{padding:9px 10px;white-space:nowrap}
.stage-banner{padding:9px 16px;background:var(--gold);color:#211007;text-align:center;font-size:13px;font-weight:700}.stage-intro,.filter-panel,.stage-card,.stage-info-links a,.stage-footer,dialog,.hero,.card,.info-section,#housing,#tours,#about,#contact,.cutana-info-section{position:relative;background-color:var(--panel);background-image:linear-gradient(rgba(47,20,5,.9),rgba(47,20,5,.9)),var(--wall);background-repeat:repeat;background-size:auto,372px 384px;border:0!important;border-radius:0!important;isolation:isolate;clip-path:polygon(28px 0,calc(100% - 28px) 0,100% 28px,100% calc(100% - 28px),calc(100% - 28px) 100%,28px 100%,0 calc(100% - 28px),0 28px)}
.stage-intro::before,.filter-panel::before,.stage-card::before,.stage-info-links a::before,.stage-footer::before,dialog::before,.hero::before,.card::before,.info-section::before,#housing::before,#tours::before,#about::before,#contact::before,.cutana-info-section::before{content:"";position:absolute;inset:0;z-index:0;border:4px solid var(--gold);background:transparent;pointer-events:none;clip-path:polygon(28px 0,calc(100% - 28px) 0,100% 28px,100% calc(100% - 28px),calc(100% - 28px) 100%,28px 100%,0 calc(100% - 28px),0 28px)}
.stage-intro::after,.filter-panel::after,.stage-card::after,.stage-info-links a::after,.stage-footer::after,dialog::after,.hero::after,.card::after,.info-section::after,#housing::after,#tours::after,#about::after,#contact::after,.cutana-info-section::after{content:"";position:absolute;inset:10px;z-index:1;border:2px solid var(--gold2);background:transparent;pointer-events:none;clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px)}
.stage-intro>*,.filter-panel>*,.stage-card>*,.stage-info-links a>*,.stage-footer>*,dialog>*,.hero>*,.card>*,.info-section>*,#housing>*,#tours>*,#about>*,#contact>*,.cutana-info-section>*{position:relative;z-index:2}
/* Guide layout */.container{max-width:1220px;margin:auto;padding:18px 28px 50px}.langbar{display:flex;justify-content:flex-end;margin-bottom:14px}.hero{text-align:center;margin-bottom:24px;padding:34px 36px}.hero h1{margin:0;font-size:clamp(2rem,4vw,3.5rem)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{min-height:210px;padding:34px 36px;display:flex;flex-direction:column;justify-content:space-between}.card h2,.card h3{margin-top:0;color:#fff}.card p{line-height:1.55}.footer{margin-top:30px;text-align:center}.lang{display:none}.lang.visible{display:block}.rules{display:grid;gap:18px}.choice-overlay{display:none!important}.site-header .header-inner{align-items:center}.site-nav details{font-size:14px}
/* Imported production sections on catalog page */#home{padding:34px 36px;text-align:center;margin-bottom:24px}#cutana-information{padding:34px 36px;margin:24px auto}#cutana-information .cutana-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}#cutana-information .cutana-info-card{min-height:150px;padding:24px;display:flex;align-items:center;justify-content:center;text-align:center;background:rgba(33,16,7,.75);color:#fff8e6;position:relative}#housing,#tours,#about,#contact{margin-top:24px;text-align:center;min-height:140px}.hidden{display:none!important}
@media(max-width:760px){.header-container,.header-inner{align-items:flex-start}.stage-nav,.site-nav{order:3;width:100%;margin:8px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stage-nav a,.site-nav a{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;padding:6px}.info-menu{display:block}.info-menu>summary{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}.info-dropdown{position:static;min-width:0}.stage-intro,.hero,.card{padding:28px 24px}.stage-catalog,.info-section,#housing,#tours,#about,#contact,.container{padding:20px 14px 35px}.filter-panel{grid-template-columns:1fr;padding:14px 12px}.period-panel,.form-grid{grid-template-columns:1fr;width:100%}.rental-grid,.grid,#cutana-information .cutana-info-grid{grid-template-columns:1fr}.stage-photo{height:210px}dialog{width:calc(100% - 20px);padding:16px}.stage-info-links{display:grid;grid-template-columns:1fr;gap:10px}}

/* Geometry invariant: fixed-pixel polygon chamfers and clipped outline; no stretchable SVG. */

button,.stage-card button,.stage-info-links a,.map-btn,.card>a{font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 18px;color:#fff8e6;font-weight:700;border:0!important;border-radius:0!important;background:linear-gradient(rgba(47,20,5,.96),rgba(47,20,5,.96)),var(--wall);background-repeat:repeat;background-size:auto,372px 384px;position:relative;isolation:isolate;clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px)}
button::before,.stage-card button::before,.stage-info-links a::before,.map-btn::before,.card>a::before{content:"";position:absolute;inset:0;z-index:0;border:3px solid var(--gold);pointer-events:none;clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px)}
button::after,.stage-card button::after,.stage-info-links a::after,.map-btn::after,.card>a::after{content:"";position:absolute;inset:7px;z-index:1;border:2px solid var(--gold2);pointer-events:none;clip-path:polygon(11px 0,calc(100% - 11px) 0,100% 11px,100% calc(100% - 11px),calc(100% - 11px) 100%,11px 100%,0 calc(100% - 11px),0 11px)}
button>*,.stage-card button>*,.stage-info-links a>*,.map-btn>*,.card>a>*{position:relative;z-index:2}
/* Two contours are real pseudo-element borders; no SVG stretching. */


/* Targeted catalog overflow fix 2026-10-25 */
.stage-intro{max-width:1170px;margin:24px auto;padding:40px 24px;text-align:center}
.stage-intro h1{font-size:clamp(27px,4vw,44px);line-height:1.25;margin:0 0 16px}
.stage-intro p{margin:10px 0}
.stage-catalog{max-width:1220px;margin:0 auto;padding:20px 28px 35px}
.filter-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;padding:22px;width:100%}
.filter-panel label,.period-panel label{display:flex;flex-direction:column;gap:7px;min-width:0}
.filter-panel button{align-self:end;min-width:0}
.period-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:620px;margin:20px 0}
select,input,textarea{font:inherit;min-width:0;max-width:100%;width:100%;padding:10px}
@media(max-width:760px){.stage-intro{margin:14px 12px;padding:28px 16px}.stage-catalog{padding:20px 14px 35px}.filter-panel{grid-template-columns:1fr;padding:14px 12px}.period-panel{grid-template-columns:1fr;width:100%}}

/* CUTANA catalog repair 2026-10-25 — closed, fixed-pixel double octagon frames.
   The old border + clip-path combination discarded diagonal strokes. These
   pseudo-elements draw actual polygon RINGS (even-odd), including all 8 sides.
   This overrides only presentation; no server/API/booking behaviour changes. */
:root { --catalog-gold: #f2c400; --catalog-gold-inner: #ffd84a; }
.stage-intro, .filter-panel, .stage-card, .stage-info-links a, .stage-footer,
dialog, .hero, .card, .info-section, #housing, #tours, #about, #contact,
.cutana-info-section {
  border: 0 !important;
  border-radius: 0 !important;
  position: relative;
  isolation: isolate;
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px,
    100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%,
    0 calc(100% - 28px), 0 28px);
}
.stage-intro::before, .filter-panel::before, .stage-card::before,
.stage-info-links a::before, .stage-footer::before, dialog::before,
.hero::before, .card::before, .info-section::before,
#housing::before, #tours::before, #about::before, #contact::before,
.cutana-info-section::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 0;
  z-index: 0;
  pointer-events: none;
  border: 0;
  background: var(--catalog-gold);
  /* Outer gold ring: 28px chamfer, 4px line; corners are CLOSED. */
  clip-path: polygon(evenodd,
    28px 0, calc(100% - 28px) 0, 100% 28px,
    100% calc(100% - 28px), calc(100% - 28px) 100%,
    28px 100%, 0 calc(100% - 28px), 0 28px,
    30px 4px, 4px 30px, 4px calc(100% - 30px),
    30px calc(100% - 4px), calc(100% - 30px) calc(100% - 4px),
    calc(100% - 4px) calc(100% - 30px), calc(100% - 4px) 30px,
    calc(100% - 30px) 4px);
}
.stage-intro::after, .filter-panel::after, .stage-card::after,
.stage-info-links a::after, .stage-footer::after, dialog::after,
.hero::after, .card::after, .info-section::after,
#housing::after, #tours::after, #about::after, #contact::after,
.cutana-info-section::after {
  content: '';
  position: absolute;
  inset: 10px;
  padding: 0;
  z-index: 1;
  pointer-events: none;
  border: 0;
  background: var(--catalog-gold-inner);
  /* Inner gold ring: 18px chamfer, 2px line, all diagonal segments. */
  clip-path: polygon(evenodd,
    18px 0, calc(100% - 18px) 0, 100% 18px,
    100% calc(100% - 18px), calc(100% - 18px) 100%,
    18px 100%, 0 calc(100% - 18px), 0 18px,
    19px 2px, 2px 19px, 2px calc(100% - 19px),
    19px calc(100% - 2px), calc(100% - 19px) calc(100% - 2px),
    calc(100% - 2px) calc(100% - 19px), calc(100% - 2px) 19px,
    calc(100% - 19px) 2px);
}
.stage-intro > *, .filter-panel > *, .stage-card > *,
.stage-info-links a > *, .stage-footer > *, dialog > *,
.hero > *, .card > *, .info-section > *,
#housing > *, #tours > *, #about > *, #contact > *,
.cutana-info-section > * { position: relative; z-index: 2; }
/* A compact, closed double contour for buttons. */
button, .stage-card button, .map-btn, .card > a {
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px,
    100% calc(100% - 18px), calc(100% - 18px) 100%,
    18px 100%, 0 calc(100% - 18px), 0 18px);
  border: 0 !important;
  min-width: 0;
  white-space: normal;
}
button::before, .stage-card button::before, .map-btn::before, .card > a::before {
  inset: 0; border: 0; padding: 0; background: var(--catalog-gold);
  clip-path: polygon(evenodd,
    18px 0, calc(100% - 18px) 0, 100% 18px,
    100% calc(100% - 18px), calc(100% - 18px) 100%,
    18px 100%, 0 calc(100% - 18px), 0 18px,
    19px 3px, 3px 19px, 3px calc(100% - 19px),
    19px calc(100% - 3px), calc(100% - 19px) calc(100% - 3px),
    calc(100% - 3px) calc(100% - 19px), calc(100% - 3px) 19px,
    calc(100% - 19px) 3px);
}
button::after, .stage-card button::after, .map-btn::after, .card > a::after {
  inset: 7px; border: 0; padding: 0; background: var(--catalog-gold-inner);
  clip-path: polygon(evenodd,
    11px 0, calc(100% - 11px) 0, 100% 11px,
    100% calc(100% - 11px), calc(100% - 11px) 100%,
    11px 100%, 0 calc(100% - 11px), 0 11px,
    12px 2px, 2px 12px, 2px calc(100% - 12px),
    12px calc(100% - 2px), calc(100% - 12px) calc(100% - 2px),
    calc(100% - 2px) calc(100% - 12px), calc(100% - 2px) 12px,
    calc(100% - 12px) 2px);
}
button:disabled { opacity: .5; cursor: not-allowed; }
button:hover { background-color: #5b300b; }

/* Missing base layout rules restored; no overflowing flex/grid children. */
.stage-catalog { width: min(100%, 1220px); margin: 0 auto; padding: 22px 24px 40px; }
.stage-intro { width: min(calc(100% - 32px), 1170px); margin: 24px auto; padding: 40px 40px; }
.stage-intro h1 { overflow-wrap: anywhere; }
.stage-intro p { overflow-wrap: anywhere; line-height: 1.55; }
.filter-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; padding: 28px; }
.filter-panel label { min-width: 0; }
.filter-panel select { min-width: 0; }
.period-panel { margin: 20px 0; }
.rental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  align-items: stretch;
  min-width: 0;
}
.stage-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background-color: #291307;
}
.stage-gallery, .stage-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 226px;
  min-width: 0;
  background: #37200f;
  overflow: hidden;
}
.stage-gallery { flex: none; }
.stage-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 226px;
  object-fit: contain;
  object-position: center;
  background: #37200f;
}
.stage-placeholder {
  flex-direction: column;
  gap: 10px;
  color: #ffe5aa;
  text-align: center;
  padding: 20px;
}
.placeholder-mark { font-size: 38px; opacity: .7; }
.stage-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  min-width: 0;
  padding: 20px 24px 26px;
  overflow-wrap: anywhere;
}
.stage-card h3 { font-size: 21px; line-height: 1.3; margin: 0; color: #fff8e6; }
.stage-category { margin: 0; color: #ffe3a1; }
.stage-facts { margin: 0; padding: 0; list-style: none; }
.stage-facts:empty { display: none; }
.stage-facts li { margin: 5px 0; line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.stage-price { color: #ffd84a; font-weight: 700; line-height: 1.5; margin: 4px 0; overflow-wrap: anywhere; }
.stage-availability {
  padding: 10px 12px;
  border-left: 3px solid #f2c400;
  background: rgba(78, 48, 20, .8);
  line-height: 1.45;
  font-size: 13px;
  margin: 0 0 6px;
}
.stage-availability.blocked { border-left-color: #ff987c; }
.stage-availability.unknown { border-left-color: #ffe28a; }
.stage-card-content > button { width: 100%; margin-top: auto; min-height: 48px; }
.gallery-control { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 42px; height: 48px; padding: 0; }
.gallery-prev { left: 8px; } .gallery-next { right: 8px; }
.gallery-position { position: absolute; z-index: 3; right: 8px; bottom: 8px; padding: 4px 8px; background: rgba(22, 9, 3, .9); font-size: 12px; }
#result-count { margin: 16px 0; }
.info-section { width: min(calc(100% - 32px), 1170px); margin: 24px auto; padding: 36px 40px; }
.stage-info-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.stage-info-links a { min-width: 150px; min-height: 54px; padding: 16px 28px; text-align: center; }
.info-section p { line-height: 1.5; }
#housing, #tours, #about, #contact { width: min(calc(100% - 32px), 1170px); margin: 24px auto; padding: 36px 40px; }
.stage-footer { width: min(calc(100% - 32px), 1170px); margin: 24px auto; padding: 26px 36px; text-align: center; }
dialog { width: min(850px, calc(100% - 24px)); max-height: 90vh; overflow: auto; padding: 30px 34px; color: #fff8e6; }
dialog::backdrop { background: rgba(0, 0, 0, .78); }
.dialog-close { float: right; width: 50px; height: 46px; }
.detail-media { width: min(100%, 470px); max-width: 470px; margin: 18px 0; }
.detail-media .stage-gallery, .detail-media .stage-placeholder { height: min(52vh, 330px); }
.detail-media .stage-photo { max-height: none; }
.detail-description { white-space: pre-line; line-height: 1.65; overflow-wrap: anywhere; }
#asset-detail ul { padding-left: 22px; overflow-wrap: anywhere; }
#request-form { border-top: 1px solid #aa8c38; padding-top: 22px; margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { min-width: 0; }
select, input, textarea { background: #fff9e8; color: #2f251e; border: 1px solid #a37c30; border-radius: 3px; }
input[type='checkbox'] { width: auto; }
.honey { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid #ffdf71; outline-offset: 3px; }
@media (max-width: 760px) {
  .stage-header { padding: 14px 12px; }
  .stage-intro { padding: 30px 24px; margin: 14px auto; }
  .stage-catalog { padding: 20px 14px 36px; }
  .filter-panel { grid-template-columns: 1fr; padding: 26px 24px; }
  .period-panel, .form-grid { grid-template-columns: 1fr; }
  .rental-grid { grid-template-columns: 1fr; gap: 18px; }
  .stage-gallery, .stage-placeholder { height: 220px; }
  .stage-photo { max-height: 220px; }
  .stage-card-content { padding: 18px 26px 28px; }
  .info-section, #housing, #tours, #about, #contact { padding: 34px 24px; }
  .stage-info-links { display: grid; grid-template-columns: 1fr; }
  dialog { padding: 28px 24px; }
}
/* Frame overlays must sit ABOVE gallery media; otherwise the top edge disappears. */
.stage-intro::before, .filter-panel::before, .stage-card::before,
.stage-info-links a::before, .stage-footer::before, dialog::before,
.hero::before, .card::before, .info-section::before,
#housing::before, #tours::before, #about::before, #contact::before,
.cutana-info-section::before { z-index: 5; }
.stage-intro::after, .filter-panel::after, .stage-card::after,
.stage-info-links a::after, .stage-footer::after, dialog::after,
.hero::after, .card::after, .info-section::after,
#housing::after, #tours::after, #about::after, #contact::after,
.cutana-info-section::after { z-index: 5; }
[hidden] { display: none !important; }
.rental-grid { align-items: start; }
.stage-card { min-height: 0; }
/* Keep the dialog close control above the detail heading at all viewports. */
#close-dialog { position: sticky; top: 0; z-index: 10; float: right; }
/* Small photo arrows must not inherit the large octagonal action-button frame. */
.gallery-control {
  width: 38px; min-width: 38px; height: 38px; min-height: 38px;
  padding: 0; border: 1px solid var(--catalog-gold) !important;
  border-radius: 4px !important; clip-path: none !important;
  background: rgba(33, 16, 7, .9) !important;
  color: #fff8e6; line-height: 1; font-size: 28px;
}
.gallery-control::before, .gallery-control::after { content: none !important; }

/* CUTANA staging visual repair 2026-10-26 (UI only, no API changes).
   Avoid paint-layer occlusion of chamfer corners; the wallpaper behind cards stays visible. */
.stage-card {
  background: transparent !important;
  background-image: none !important;
  isolation: isolate;
}
.stage-card::before, .stage-card::after { z-index: 8 !important; pointer-events: none !important; }
.stage-card > * { position: relative; z-index: 2; }
.stage-card > .stage-gallery, .stage-card > .stage-placeholder {
  width: calc(100% - 44px) !important;
  max-width: calc(100% - 44px) !important;
  margin: 24px 22px 0 !important;
  flex: 0 0 auto;
  align-self: center;
  min-width: 0;
  background: transparent !important;
  background-image: none !important;
}
.stage-card .stage-photo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
}
.stage-card-content { background: transparent !important; }
.stage-gallery, .stage-placeholder, .detail-media .stage-gallery,
.detail-media .stage-placeholder, .detail-media .stage-photo {
  background: transparent !important;
  background-image: none !important;
}
/* The header language control must not inherit width:100% from form controls. */
.stage-header .stage-language, .site-header .stage-language {
  width: auto !important; flex: 0 0 auto; margin: 0;
}
.stage-header .stage-language select, .site-header .stage-language select,
.site-header select[data-language-select] {
  display: block; width: 78px !important; min-width: 78px !important;
  max-width: 78px !important; height: 40px; min-height: 40px;
  padding: 5px 8px; line-height: 1.2;
}
.site-header .header-inner, .stage-header .header-container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.site-header .site-nav, .stage-header .stage-nav { margin-left: auto; width: auto; }
.site-header .stage-language, .stage-header .stage-language { order: 2; }
/* Modal frame follows the full height of its content instead of the scrolling viewport. */
#asset-dialog {
  width: min(850px, calc(100vw - 24px));
  max-height: 90vh; padding: 0 !important; overflow-x: hidden; overflow-y: auto;
  clip-path: none !important; background: transparent !important;
  background-image: none !important; border: 0 !important;
  isolation: isolate;
}
#asset-dialog::before, #asset-dialog::after { content: none !important; }
#asset-dialog > .dialog-shell {
  position: relative; display: flow-root; box-sizing: border-box;
  width: 100%; min-height: 100%; padding: 38px 40px 42px;
  background-color: var(--cocoa);
  background-image: linear-gradient(rgba(53,24,4,.78),rgba(53,24,4,.78)),var(--wall);
  background-repeat: repeat; background-size: auto,372px 384px;
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px,
    100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%,
    0 calc(100% - 28px), 0 28px);
}
#asset-dialog > .dialog-shell::before,
#asset-dialog > .dialog-shell::after {
  content: ''; position: absolute; pointer-events: none; z-index: 8;
  border: 0; padding: 0;
}
#asset-dialog > .dialog-shell::before {
  inset: 0; background: var(--catalog-gold);
  clip-path: polygon(evenodd,
    28px 0, calc(100% - 28px) 0, 100% 28px,
    100% calc(100% - 28px), calc(100% - 28px) 100%,
    28px 100%, 0 calc(100% - 28px), 0 28px,
    30px 4px, 4px 30px, 4px calc(100% - 30px),
    30px calc(100% - 4px), calc(100% - 30px) calc(100% - 4px),
    calc(100% - 4px) calc(100% - 30px), calc(100% - 4px) 30px,
    calc(100% - 30px) 4px);
}
#asset-dialog > .dialog-shell::after {
  inset: 10px; background: var(--catalog-gold-inner);
  clip-path: polygon(evenodd,
    18px 0, calc(100% - 18px) 0, 100% 18px,
    100% calc(100% - 18px), calc(100% - 18px) 100%,
    18px 100%, 0 calc(100% - 18px), 0 18px,
    19px 2px, 2px 19px, 2px calc(100% - 19px),
    19px calc(100% - 2px), calc(100% - 19px) calc(100% - 2px),
    calc(100% - 2px) calc(100% - 19px), calc(100% - 2px) 19px,
    calc(100% - 19px) 2px);
}
#asset-dialog .dialog-shell > * { position: relative; z-index: 2; }
#asset-dialog #close-dialog { position: sticky; top: 4px; z-index: 12; }
#asset-dialog .detail-media { margin-left: auto; margin-right: auto; }
#asset-dialog #request-form { margin-bottom: 0; }
@media(max-width:760px) {
  .site-header .site-nav, .stage-header .stage-nav {
    order: 3; width: 100%; margin: 0;
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;
  }
  .site-header .stage-language, .stage-header .stage-language { order: 2; margin-left: auto; }
  .stage-card > .stage-gallery, .stage-card > .stage-placeholder {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin: 22px 20px 0 !important;
  }
  #asset-dialog > .dialog-shell { padding: 32px 24px 36px; }
}

/* 9-slice double-frame repair: preserve complete diagonal corner strokes.
   CSS evenodd polygon rings were cut at upper-left in Chromium.
   Each corner is a fixed-size SVG tile, never stretched or overpainted. */
.stage-intro::before, .filter-panel::before, .stage-card::before,
.stage-info-links a::before, .stage-footer::before, .hero::before,
.card::before, .info-section::before, #housing::before, #tours::before,
#about::before, #contact::before, .cutana-info-section::before,
#asset-dialog > .dialog-shell::before {
  content: '' !important; position: absolute !important;
  inset: 0 !important; padding: 0 !important;
  z-index: 9 !important; pointer-events: none !important;
  clip-path: none !important; mask: none !important; -webkit-mask: none !important;
  background: none !important;
  border: 32px solid transparent !important;
  border-image-source: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZD0iTTI4IDJINzJMOTggMjhWNzJMNzIgOThIMjhMMiA3MlYyOFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2YyYzQwMCIgc3Ryb2tlLXdpZHRoPSI0Ii8+PHBhdGggZD0iTTI5IDEySDcxTDg4IDI5VjcxTDcxIDg4SDI5TDEyIDcxVjI5WiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZkODRhIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") !important;
  border-image-slice: 32 !important;
  border-image-width: 32px !important;
  border-image-repeat: stretch !important;
}
.stage-intro::after, .filter-panel::after, .stage-card::after,
.stage-info-links a::after, .stage-footer::after, .hero::after,
.card::after, .info-section::after, #housing::after, #tours::after,
#about::after, #contact::after, .cutana-info-section::after,
#asset-dialog > .dialog-shell::after { content: none !important; }
/* The dialog frame belongs to the full-height shell, not the scrolling dialog. */
#asset-dialog::before, #asset-dialog::after { content: none !important; }
button::before, .stage-card button::before, .stage-info-links a::before,
.map-btn::before, .card > a::before {
  content: '' !important; position: absolute !important; inset: 0 !important;
  z-index: 1 !important; background: none !important;
  clip-path: none !important; mask: none !important; -webkit-mask: none !important;
  border: 20px solid transparent !important;
  border-image-source: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMTggMkg0Nkw2MiAxOFY0Nkw0NiA2MkgxOEwyIDQ2VjE4WiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjJjNDAwIiBzdHJva2Utd2lkdGg9IjQiLz48cGF0aCBkPSJNMTggOUg0Nkw1NSAxOFY0Nkw0NiA1NUgxOEw5IDQ2VjE4WiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZkODRhIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") !important;
  border-image-slice: 20 !important;
  border-image-width: 20px !important;
  border-image-repeat: stretch !important;
  pointer-events: none !important;
}
button::after, .stage-card button::after, .stage-info-links a::after,
.map-btn::after, .card > a::after { content: none !important; }
.gallery-control::before, .gallery-control::after { content: none !important; }

/* Manus 03.11.2026: unified small double-octagon frame.
   Scoped to information/action links; gallery controls are intentionally excluded. */
.stage-info-links a, .stage-card button, .filter-panel button, #request-form > button {
  position: relative !important; clip-path: none !important;
  border: 20px solid transparent !important; border-radius: 0 !important;
  border-image-source: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMTggMkg0Nkw2MiAxOFY0Nkw0NiA2MkgxOEwyIDQ2VjE4WiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjJjNDAwIiBzdHJva2Utd2lkdGg9IjQiLz48cGF0aCBkPSJNMTggOUg0Nkw1NSAxOFY0Nkw0NiA1NUgxOEw5IDQ2VjE4WiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZkODRhIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") !important;
  border-image-slice: 20 !important; border-image-width: 20px !important; border-image-repeat: stretch !important;
}
.stage-info-links a::before, .stage-card button::before, .filter-panel button::before, #request-form > button::before { content: none !important; }

/* cutanarent.com: WhatsApp / Telegram call-to-action, same frames as information links */
.stage-info-links.cta-links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:18px auto 0}
.stage-info-links.cta-links a{min-width:150px}
.stage-info-links.cta-links a.cta-whatsapp{background:#1f9d55}
.stage-info-links.cta-links a.cta-telegram{background:#1b78b8}
.stage-info-links.cta-links a{clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px)}
