/* Villora — media.css : Sanal tur & videolar (012_media). site.css belirteçlerini kullanır. Panelde de görüntüleyici için yüklenir. */

/* ---------- 360° görüntüleyici (media-pano.js) ---------- */
.vp { position: absolute; inset: 0; overflow: hidden; background: #0c1514; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; border-radius: inherit; }
.vp:active { cursor: grabbing; }
.vp:focus-visible { box-shadow: inset 0 0 0 3px var(--terra, #D2693F); }
.vp-cv { display: block; width: 100%; height: 100%; }
.vp-hs { position: absolute; inset: 0; pointer-events: none; }
.vp-fade { position: absolute; inset: 0; background: #0c1514; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.vp-fade.on { opacity: 1; }
.vp-ui { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 8px; z-index: 3; }
.vp-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(12,21,20,.62); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vp-btn:hover, .vp-btn.on { background: var(--terra, #D2693F); }
.vp-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(12,21,20,.6); color: #fff; font-size: 13px; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.vp--used .vp-hint { opacity: 0; }
.vp-spot { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; margin: -20px 0 0 -20px; color: #fff; font: 600 13px/1.2 var(--f-body, system-ui); will-change: transform; }
.vp-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,253,249,.92); color: var(--sea, #0E4F53); font-size: 18px; font-weight: 800; box-shadow: 0 0 0 6px rgba(255,253,249,.28), 0 6px 18px rgba(0,0,0,.3); transition: transform .2s; flex: none; }
.vp-spot--go .vp-dot { background: var(--terra, #D2693F); color: #fff; box-shadow: 0 0 0 6px rgba(210,105,63,.3), 0 6px 18px rgba(0,0,0,.3); animation: vp-pulse 2.4s infinite; }
.vp-spot--info .vp-dot { font-family: var(--f-display, Georgia); font-style: italic; }
.vp-spot:hover .vp-dot, .vp-spot:focus-visible .vp-dot { transform: scale(1.12); }
.vp-lbl { padding: 5px 10px; border-radius: 999px; background: rgba(12,21,20,.66); white-space: nowrap; }
.vp-tip { position: absolute; top: 48px; left: 0; width: 240px; padding: 12px 14px; border-radius: 12px; background: var(--card, #fff); color: var(--ink, #13201F); font-weight: 400; font-size: 14px; line-height: 1.45; text-align: start; box-shadow: var(--sh-2); display: none; }
.vp-tip b { display: block; margin-bottom: 4px; }
.vp-spot.open .vp-tip { display: block; }
@keyframes vp-pulse { 50% { box-shadow: 0 0 0 12px rgba(210,105,63,0), 0 6px 18px rgba(0,0,0,.3); } }
@media (prefers-reduced-motion: reduce) { .vp-spot--go .vp-dot { animation: none; } }
.vp--fs { position: fixed !important; inset: 0; z-index: 9999; border-radius: 0; }
.vp:fullscreen { border-radius: 0; }
.vp--flat { cursor: default; touch-action: auto; }
.vp-flat { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; }
.vp-flat img { height: 100%; width: auto; max-width: none; display: block; }
.vp--flat .vp-hs { pointer-events: auto; top: auto; bottom: 50px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vp-flat-go { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--terra, #D2693F); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- villa sayfası bölümü ---------- */
.md-sec .md-tabs { display: flex; gap: 6px; margin: 0 0 16px; padding: 4px; background: var(--paper-2); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.md-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 600 14px var(--f-body); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.md-tab.is-on { background: var(--card); color: var(--sea); box-shadow: var(--sh-1); }
.md-pano { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--sea) center/cover; box-shadow: var(--sh-1); }
@media (max-width: 640px) { .md-pano { aspect-ratio: 4 / 3.4; } }
.md-pano-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); transition: opacity .4s; }
.md-pano.is-live .md-pano-poster, .md-pano.is-live .md-start, .md-pano.is-live .md-badge360 { opacity: 0; pointer-events: none; }
.md-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; box-shadow: var(--sh-3); }
.md-pano.is-loading .md-start { opacity: .7; pointer-events: none; }
.md-badge360 { position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(12,21,20,.6); color: #fff; font: 700 13px var(--f-body); letter-spacing: .04em; }
.md-stage { position: absolute; inset: 0; }
.md-scenes { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.md-scene { flex: none; width: 150px; border: 2px solid transparent; border-radius: var(--r-sm); padding: 0; background: var(--card); overflow: hidden; cursor: pointer; text-align: start; box-shadow: var(--sh-1); }
.md-scene img { display: block; width: 100%; height: 64px; object-fit: cover; }
.md-scene span { display: block; padding: 6px 10px; font: 600 13px var(--f-body); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-scene.is-on { border-color: var(--terra); }
.md-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.md-reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.md-lite, .md-live { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--ink); cursor: pointer; box-shadow: var(--sh-1); }
.md-lite--reel, .md-live--reel { aspect-ratio: 9 / 16; }
.md-lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.md-lite:hover img { transform: scale(1.04); }
.md-lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,21,20,.72)); }
.md-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,253,249,.94); z-index: 1; box-shadow: var(--sh-2); transition: transform .2s; }
.md-play::before { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--terra); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.md-lite:hover .md-play { transform: scale(1.08); }
.md-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; font: 600 15px/1.3 var(--f-body); text-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.md-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.md-note { font-size: 12.5px; margin: 10px 0 0; }
/* galeri buton çubuğu */
.md-gbtns { position: absolute; bottom: 18px; inset-inline-start: 18px; display: flex; gap: 8px; z-index: 2; }
@media (max-width: 760px) { .md-gbtns { inset-inline-start: 12px; bottom: 12px; } }
/* kart rozeti + reel önizleme */
.md-cbadge { gap: 4px; }
.md-cardvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 1; }
.md-cardvid.on { opacity: 1; }
