/* The architectural view takes precedence over controls and decoration. */
#ng-studio-3d.ng-villa { padding: clamp(56px,7vw,112px) var(--ng-gutter,4vw) !important; color: #28231e; background: #f5f1ea; scroll-margin-top: 0; }
.ng-villa-shell { max-width: 1480px; margin-inline: auto; }
.ng-villa [hidden], .ng-villa-viewer [hidden] { display: none !important; }
.ng-villa-heading { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 60px; padding-bottom: 38px; }
.ng-villa-heading h2 { color: #28231e; font-size: clamp(2.5rem,4.8vw,5rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.12; margin: 0; }
.ng-villa-heading p { max-width: 42ch; margin: 0 0 16px; font-size: 1rem; line-height: 1.75; color: #5b544b; }
.ng-villa-note { display: block; color: #6e655a; font-size: .75rem; line-height: 1.6; }
.ng-villa-destinations { display: flex; gap: 30px; border-top: 1px solid #cfc5b7; padding-top: 6px; margin-bottom: 18px; }
.ng-villa-destinations button { min-height: 52px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; font-size: .9375rem; font-weight: 500; background: transparent; color: #6e655a; cursor: pointer; }
.ng-villa-destinations button[aria-selected="true"] { border-bottom-color: #28231e; color: #28231e; }
.ng-villa-scene { margin: 0; }
.ng-villa-frame { position: relative; background: #e8dfd2; aspect-ratio: 1376 / 768; border-radius: 5px; overflow: hidden; scroll-margin-top: 90px; }
.ng-villa-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.ng-villa-image-message { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; color: #fcf9f5; background: #28231e; }
.ng-villa-image-message p { margin: 0; }
.ng-villa-image-message button { padding: 10px 24px; min-height: 48px; border: 1px solid #d0b78f; background: transparent; color: #fcf9f5; cursor: pointer; }
.ng-villa-caption { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 24px; }
.ng-villa-caption h3 { font-size: clamp(1.5rem,2.2vw,2.2rem); letter-spacing: -.035em; line-height: 1.3; margin: 0 0 6px; }
.ng-villa-caption p { font-size: .875rem; color: #5b544b; line-height: 1.65; margin: 0; }
.ng-villa-enlarge { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-height: 48px; border: 1px solid #a99c8c; padding: 10px 20px; border-radius: 4px; background: transparent; color: #28231e; font-size: .8125rem; cursor: pointer; }
.ng-villa-enlarge > span { font-size: 1.3rem; }
.ng-villa-enlarge:hover { background: #e8dfd2; }
.ng-villa-navigation { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid #cfc5b7; }
.ng-villa-rooms { display: flex; gap: 12px; }
.ng-villa-rooms button { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border: 1px solid transparent; border-radius: 4px; color: #5b544b; background: transparent; cursor: pointer; font-size: .8125rem; min-height: 60px; }
.ng-villa-rooms button[aria-pressed="true"] { border-color: #8b7150; color: #28231e; background: #fcf9f5; }
.ng-villa-rooms img { width: 72px; height: 46px; object-fit: cover; border-radius: 2px; }
.ng-villa-light { text-align: right; }
.ng-villa-light > div { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #cfc5b7; border-radius: 4px; }
.ng-villa-light button { min-height: 44px; padding: 9px 18px; border: 0; border-radius: 2px; font-size: .8125rem; background: transparent; color: #5b544b; cursor: pointer; }
.ng-villa-light button[aria-pressed="true"] { background: #28231e; color: #fcf9f5; }
.ng-villa-light-note { font-size: .6875rem; line-height: 1.5; margin: 8px 0 0; color: #6e655a; }
.ng-villa-materials { display: grid; grid-template-columns: minmax(230px,.75fr) minmax(0,1.8fr); gap: clamp(30px,5vw,80px); padding-block: 48px; }
.ng-villa-material-heading h3 { font-size: clamp(1.6rem,2.4vw,2.5rem); letter-spacing: -.04em; line-height: 1.25; margin: 0 0 14px; }
.ng-villa-material-heading > p { font-size: .875rem; line-height: 1.65; color: #5b544b; margin: 0 0 24px; max-width: 27ch; }
.ng-villa-material-options { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.ng-villa-material-options button { display: flex; gap: 14px; align-items: center; min-height: 62px; padding: 8px 12px 8px 8px; border: 1px solid transparent; border-radius: 4px; font-size: .8125rem; text-align: left; background: transparent; color: #5b544b; cursor: pointer; }
.ng-villa-material-options button[aria-pressed="true"] { border-color: #8b7150; color: #28231e; background: #fcf9f5; }
.ng-villa-material-options img { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 2px; }
.ng-villa-material-detail { min-width: 0; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 28px; align-items: center; }
.ng-villa-material-image { display: block; width: 100%; height: 340px; object-fit: contain; background: #e8dfd2; border-radius: 4px; }
.ng-villa-material-copy { min-width: 0; }
.ng-villa-material-copy h4 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; line-height: 1.3; letter-spacing: -.035em; margin: 0 0 14px; }
.ng-villa-material-description { font-size: .875rem; line-height: 1.7; color: #5b544b; margin: 0 0 22px; }
.ng-villa-product-name { font-size: .75rem; line-height: 1.6; color: #6e655a; margin: 0 0 8px; }
.ng-villa-product-price { font-size: .9375rem; font-weight: 500; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.ng-villa-product-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 10px 0; border-bottom: 1px solid #8b7150; color: #28231e; font-size: .8125rem; }
.ng-villa-product-link:hover, .ng-villa-footer a:hover { color: #765637; }
.ng-villa-footer { border-top: 1px solid #cfc5b7; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.ng-villa-footer > p { font-family: var(--font-serif); font-size: 1.7rem; letter-spacing: -.035em; margin: 0; }
.ng-villa-footer > div { display: flex; gap: 32px; }
.ng-villa-footer a { display: inline-flex; align-items: center; gap: 16px; font-size: .8125rem; color: #28231e; min-height: 48px; }
.ng-villa-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; color: #fcf9f5; background: #161714; overscroll-behavior: contain; }
.ng-villa-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.ng-villa-viewer::backdrop { background: #161714; }
.ng-villa-viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: max(16px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 16px max(24px,env(safe-area-inset-left)); }
.ng-villa-viewer-top h3 { color: #fcf9f5; font-size: 1.2rem; letter-spacing: -.02em; font-weight: 400; margin: 0; }
.ng-villa-viewer button { min-height: 48px; min-width: 48px; border: 1px solid #706e60; background: transparent; color: #fcf9f5; border-radius: 4px; padding: 10px 16px; cursor: pointer; font-family: var(--font-sans); font-size: .8125rem; }
.ng-villa-viewer button:hover { background: #34372f; }
.ng-villa-viewer button:disabled { opacity: .4; cursor: default; }
.ng-villa-viewer-close { display: flex; align-items: center; gap: 16px; }
.ng-villa-viewer-close span { font-size: 1.5rem; line-height: 1; }
.ng-villa-viewer-viewport { min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.ng-villa-viewer-viewport > img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; user-select: none; transform-origin: center; }
.ng-villa-viewer-viewport.is-zoomed { cursor: grab; touch-action: none; }
.ng-villa-viewer-viewport.is-zoomed:active { cursor: grabbing; }
.ng-villa-viewer-error { position: absolute; padding: 24px; background: #161714; font-family: var(--font-sans); }
.ng-villa-viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 24px max(16px,env(safe-area-inset-bottom)); }
.ng-villa-viewer-bottom > p { color: #c9c8bc; font-family: var(--font-sans); font-size: .75rem; line-height: 1.5; margin: 0; }
.ng-villa-viewer-bottom > div { display: flex; align-items: center; gap: 10px; }
.ng-villa-viewer output { min-width: 46px; text-align: center; font-size: .8125rem; font-family: var(--font-sans); }
.ng-villa button:focus-visible, .ng-villa a:focus-visible { outline: 2px solid #5d6552; outline-offset: 4px; }
.ng-villa-viewer button:focus-visible { outline: 2px solid #fcf9f5; outline-offset: 4px; }
@media (min-width: 768px) { .ng-villa-navigation { padding-bottom: 18px; border-bottom: 0; align-items: center; } }
@media (max-width: 1023px) {
  .ng-villa-heading { gap: 32px; grid-template-columns: 1fr 1fr; }
  .ng-villa-materials { grid-template-columns: minmax(190px,.7fr) minmax(0,1.5fr); gap: 28px; }
  .ng-villa-material-detail { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .ng-villa-material-image { height: 270px; }
  .ng-villa-material-copy h4 { font-size: 1.5rem; }
}
@media (max-width: 767px) {
  #ng-studio-3d.ng-villa { padding-block: 52px !important; }
  .ng-villa-heading { grid-template-columns: minmax(0,1fr); gap: 22px; padding-bottom: 28px; }
  .ng-villa-heading h2 { font-size: clamp(2.5rem,9vw,3.7rem); }
  .ng-villa-heading p { font-size: .875rem; line-height: 1.7; margin-bottom: 10px; max-width: 42ch; }
  .ng-villa-note { font-size: .6875rem; }
  .ng-villa-destinations { gap: 28px; margin-bottom: 14px; }
  .ng-villa-destinations button { min-height: 48px; font-size: .875rem; }
  .ng-villa-caption { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; padding-block: 18px; }
  .ng-villa-caption h3 { font-size: 1.5rem; }
  .ng-villa-caption p { font-size: .8125rem; }
  .ng-villa-enlarge { width: 100%; min-height: 46px; }
  .ng-villa-navigation { display: grid; gap: 18px; padding-bottom: 28px; }
  .ng-villa-rooms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .ng-villa-rooms button { padding: 6px; gap: 8px; min-height: 56px; font-size: .75rem; }
  .ng-villa-rooms img { width: 48px; height: 40px; flex-shrink: 0; }
  .ng-villa-light { text-align: left; }
  .ng-villa-light button { padding-inline: 16px; }
  .ng-villa-light-note { margin-top: 6px; }
  .ng-villa-materials { grid-template-columns: minmax(0,1fr); gap: 22px; padding-block: 32px; }
  .ng-villa-material-heading h3 { font-size: 1.75rem; margin-bottom: 10px; }
  .ng-villa-material-heading > p { max-width: none; margin-bottom: 18px; font-size: .8125rem; }
  .ng-villa-material-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .ng-villa-material-options button { display: flex; flex-direction: column; align-items: start; gap: 8px; padding: 8px; font-size: .6875rem; line-height: 1.5; }
  .ng-villa-material-options img { width: 100%; height: 48px; }
  .ng-villa-material-detail { gap: 20px; }
  .ng-villa-material-image { height: auto; max-height: 350px; aspect-ratio: 1.2; }
  .ng-villa-material-copy h4 { font-size: 1.5rem; }
  .ng-villa-material-description { font-size: .8125rem; margin-bottom: 16px; }
  .ng-villa-product-name { font-size: .75rem; }
  .ng-villa-footer { align-items: start; flex-direction: column; gap: 12px; }
  .ng-villa-footer > p { font-size: 1.5rem; }
  .ng-villa-footer > div { flex-direction: column; gap: 0; }
  .ng-villa-viewer-top { gap: 12px; padding: max(12px,env(safe-area-inset-top)) 16px 12px; }
  .ng-villa-viewer-top h3 { font-size: .9375rem; }
  .ng-villa-viewer-close { gap: 8px; padding-inline: 12px !important; }
  .ng-villa-viewer-bottom { flex-direction: column; gap: 12px; padding: 12px 16px max(16px,env(safe-area-inset-bottom)); }
  .ng-villa-viewer-bottom > p { font-size: .6875rem; text-align: center; }
  .ng-villa-viewer-bottom > div { gap: 8px; }
  .ng-villa-viewer button { padding-inline: 12px; }
}
@media (max-width: 359px) { .ng-villa-rooms button { flex-direction: column; align-items: start; gap: 6px; } .ng-villa-rooms img { width: 100%; height: 48px; } }
@media (max-height: 500px) and (orientation: landscape) { .ng-villa-viewer-top { padding-block: 8px; } .ng-villa-viewer-bottom { padding-block: 8px; } .ng-villa-viewer-bottom > p { display: none; } }
