/* ar-wall.css - "Ako bude vyzerať u mňa?" (AR-WALL-01, 2026-09-19). Everything is scoped to .darte-ar* */

.darte-ar { clear: both; margin: 14px 0 6px; width: 100%; max-width: 330px; }
/* offered only once ar-wall.js has checked the device (Android: WebXR/ARCore capability) */
.darte-ar:not(.darte-ar-ready) { display: none !important; }
.darte-ar-btn,
.darte-ar-btn:link,
.darte-ar-btn:visited {
    display: flex; align-items: center; gap: 12px;
    width: 100%; box-sizing: border-box; min-height: 56px;
    padding: 10px 14px;
    background: #fff; color: #5a2a1a;
    border: 2px solid #d8c8a3; border-radius: 0;
    text-decoration: none; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    transition: background-color .15s ease, border-color .15s ease;
}
.darte-ar-btn:hover,
.darte-ar-btn:focus { background: #f9f2df; border-color: #c9b27f; color: #5a2a1a; text-decoration: none; }
.darte-ar-btn:focus-visible { outline: 2px solid #c00; outline-offset: 2px; }
.darte-ar-btn:active { background: #f3e7c6; }
.darte-ar-ico { flex: 0 0 auto; display: inline-flex; color: #c00; }
.darte-ar-ico svg { display: block; }
.darte-ar-txt { display: flex; flex-direction: column; min-width: 0; }
.darte-ar-txt strong {
    font-family: Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: bold; line-height: 1.25; color: #5a2a1a;
}
.darte-ar-txt small { margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: #6f6254; }
.darte-ar-tag {
    display: inline-block; margin-left: 4px; padding: 0 4px;
    border: 1px solid #c9b27f; border-radius: 2px;
    font-size: 10px; font-weight: 700; letter-spacing: .5px; line-height: 14px; color: #8a6d3b; vertical-align: 1px;
}

/* reset / place again - shown after AR has been opened once */
.darte-ar-again { margin-top: 8px; }
.darte-ar-reset {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 44px; margin: 0; padding: 8px 12px;
    background: #f9f2df; color: #5a2a1a; border: 1px solid #d8c8a3; border-radius: 0; cursor: pointer;
    font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700;
}
.darte-ar-reset:hover, .darte-ar-reset:focus { background: #f3e7c6; border-color: #c9b27f; }
.darte-ar-reset svg { flex: 0 0 auto; color: #c00; }
.darte-ar-again small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: #6f6254; }

/* ---------------------------------------------------------------- overlay */
html.darte-ar-lock, html.darte-ar-lock body { overflow: hidden; }
.darte-ar-overlay {
    position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
    background: rgba(30, 20, 12, .55);
    animation: darte-ar-fade .15s ease-out;
}
.darte-ar-dialog {
    position: relative; box-sizing: border-box;
    width: 100%; max-width: 400px; max-height: 100%; overflow: auto;
    padding: 26px 24px 22px;
    background: #fff; color: #3b2a1a;
    border-top: 4px solid #c00;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    font-family: 'Open Sans', Arial, Helvetica, sans-serif; text-align: center;
}
.darte-ar-dialog h3 {
    margin: 0 28px 12px; padding: 0;
    font-family: Georgia, 'Times New Roman', serif; font-size: 21px; font-weight: bold; line-height: 1.25; color: #5a2a1a;
}
.darte-ar-x {
    position: absolute; top: 6px; right: 8px;
    width: 40px; height: 40px; padding: 0; margin: 0;
    background: none; border: 0; cursor: pointer;
    font-size: 28px; line-height: 40px; color: #8a7a6a;
}
.darte-ar-x:hover, .darte-ar-x:focus { color: #c00; }
.darte-ar-qr {
    display: flex; align-items: center; justify-content: center;
    width: 220px; height: 220px; margin: 4px auto 14px;
    background: #fff; border: 1px solid #e7dcc4;
}
.darte-ar-qr svg { width: 100%; height: 100%; display: block; }
.darte-ar-qr-fail { display: none; }
.darte-ar-spin {
    width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid #e7dcc4; border-top-color: #c00;
    animation: darte-ar-rot .8s linear infinite;
}
.darte-ar-lead { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: #3b2a1a; }
.darte-ar-title { margin: -4px 0 10px; font-size: 14px; color: #6f6254; }
.darte-ar-size { margin: 0 0 10px; font-size: 14px; color: #3b2a1a; }
.darte-ar-note { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; color: #7a6c5e; }
.darte-ar-link { margin: 0; font-size: 12px; word-break: break-all; }
.darte-ar-link a { color: #8a6d3b; }
.darte-ar-steps { margin: 4px 0 18px; padding: 0 0 0 20px; text-align: left; font-size: 15px; line-height: 1.5; }
.darte-ar-steps li { margin: 0 0 4px; }
.darte-ar-go {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 52px; padding: 12px 16px; margin: 0;
    background: #c00; color: #fff; border: 0; border-radius: 0; cursor: pointer;
    font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .3px;
}
.darte-ar-go .darte-ar-ico { color: #fff; }
.darte-ar-go:hover, .darte-ar-go:focus { background: #a80000; }
.darte-ar-go.darte-ar-secondary { background: #5a2a1a; }
a.darte-ar-go, a.darte-ar-go:link, a.darte-ar-go:visited { box-sizing: border-box; color: #fff; text-decoration: none; }
.darte-ar-after { margin: 10px 0 0; }
.darte-ar-after + .darte-ar-go { margin-top: 12px; }
.darte-ar-after a { color: #8a6d3b; }
.darte-ar-3d {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 340px; height: min(52vh, 420px); margin: 2px 0 12px;
    background: #f4efe6; border: 1px solid #e7dcc4;
}
.darte-ar-3d model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: #f4efe6; }
.darte-ar-3d-fail { height: auto; padding: 16px; }
.darte-ar-go + .darte-ar-go { margin-top: 10px; }

/* phone: bottom sheet */
@media (max-width: 767px) {
    .darte-ar { max-width: none; margin: 10px 0 4px; }
    .darte-ar-btn, .darte-ar-btn:link, .darte-ar-btn:visited { min-height: 50px; padding: 8px 12px; }
    /* online auction detail re-orders its blocks on phones (style.css, 2026-09-19 mobile order):
       keep the button directly under the main photo (same order as .image, later in the DOM). */
    .detail:has(> .col-lg-5 > .dielo-help-box) > .col-lg-5 > .darte-ar { order: 1; }
    .darte-ar-sheet { align-items: flex-end; padding: 0; }
    .darte-ar-sheet .darte-ar-dialog {
        max-width: none; padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
        animation: darte-ar-up .2s ease-out;
    }
    .darte-ar-modal .darte-ar-dialog { padding: 22px 18px 18px; }
}
@keyframes darte-ar-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes darte-ar-up { from { transform: translateY(40px); } to { transform: none; } }
@keyframes darte-ar-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .darte-ar-overlay, .darte-ar-sheet .darte-ar-dialog, .darte-ar-spin { animation: none; }
}
@media print { .darte-ar { display: none; } }
