/*
 * DaireMedya + PanoTur ortak stilleri.
 * Sablonun renk degiskenlerini kullanir (--primary-color); yoksa mavi dusulur.
 * Ziyaretci blogu (dm-*) ve yonetim editoru (pt-*) ayni dosyadadir.
 */

.dm-card { overflow: hidden; }

/* ---------------- Sekmeler ---------------- */
.dm-sekmeler {
    display: flex;
    gap: 4px;
    padding: 10px 14px 0 14px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    flex-wrap: wrap;
}

.dm-sekme {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    color: #5b6270;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .15s;
}

.dm-sekme:hover { color: var(--primary-color, #3f51b5); }

.dm-sekme.secili {
    color: var(--primary-color, #3f51b5);
    border-bottom-color: var(--primary-color, #3f51b5);
}

.dm-sekme-rozet {
    background: rgba(63, 81, 181, .12);
    color: var(--primary-color, #3f51b5);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 1px 8px;
}

.dm-govde { padding: 14px; }
.dm-bolme { display: none; position: relative; }
.dm-bolme.acik { display: block; }

/* ---------------- Galeri ---------------- */
.dm-stage {
    position: relative;
    background: #101216;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    width: 100%;
    overflow: hidden;
    user-select: none;
}

.dm-stage-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    display: block;
}

.dm-ok {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(20, 22, 28, .55);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 3;
}

.dm-ok:hover { background: rgba(20, 22, 28, .85); }
.dm-ok-sol { left: 10px; }
.dm-ok-sag { right: 10px; }
.dm-ok-simge { display: inline-flex; }

.dm-sayac {
    position: absolute;
    left: 12px;
    bottom: 10px;
    background: rgba(20, 22, 28, .65);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    z-index: 3;
}

.dm-buyut {
    position: absolute;
    right: 12px;
    top: 10px;
    border: 0;
    background: rgba(20, 22, 28, .65);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}

.dm-buyut:hover { background: rgba(20, 22, 28, .9); }

.dm-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.dm-thumb {
    width: 86px;
    height: 58px;
    object-fit: cover;
    border-radius: 7px;
    border: 2px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
    opacity: .85;
    transition: opacity .15s, border-color .15s;
}

.dm-thumb:hover { opacity: 1; }

.dm-thumb.secili {
    border-color: var(--primary-color, #3f51b5);
    opacity: 1;
}

/* ---------------- Lightbox ---------------- */
body.dm-kilitli { overflow: hidden; }

.dm-lb {
    position: fixed;
    inset: 0;
    z-index: 200000;
    background: rgba(8, 9, 12, .97);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-lb-img {
    max-width: 92vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 4px;
}

.dm-lb-ust {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    z-index: 2;
}

.dm-lb-btn {
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dm-lb-btn:hover { background: rgba(255, 255, 255, .24); }

.dm-lb-ok { width: 48px; height: 48px; }

.dm-lb-alt {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #e8e8ea;
    font-size: 13px;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

.dm-lb-baslik { opacity: .8; }

/* ---------------- 360° Tur ---------------- */
.dm-pano {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    max-height: 500px;
    border-radius: 10px;
    overflow: hidden;
    background: #101216;
}

.dm-pano-ad {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 22, 28, .7);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .2px;
    padding: 5px 16px;
    border-radius: 999px;
    z-index: 5;
    pointer-events: none;
}

.dm-sahne-serit {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.dm-sahne-kart {
    position: relative;
    width: 118px;
    height: 66px;
    flex: 0 0 auto;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: #101216;
}

.dm-sahne-kart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .9;
}

.dm-sahne-kart-ad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 10px 6px 4px 6px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-sahne-giris {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #23b26d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

.dm-sahne-kart.secili { border-color: var(--primary-color, #3f51b5); }
.dm-sahne-kart.secili img { opacity: 1; }

/* Kose mini-plani */
.dm-mini-plan {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 170px;
    background: rgba(255, 255, 255, .92);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    overflow: hidden;
    z-index: 6;
}

.dm-mini-plan img { width: 100%; display: block; }

.dm-mini-nokta {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary-color, #3f51b5);
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    cursor: pointer;
    padding: 0;
}

.dm-mini-nokta.secili {
    background: #e8590c;
    box-shadow: 0 0 0 4px rgba(232, 89, 12, .3);
}

.dm-mini-kapat {
    position: absolute;
    top: 2px;
    right: 2px;
    border: 0;
    background: rgba(20, 22, 28, .5);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

/* ---------------- Kat Plani ---------------- */
.dm-plan-kutu {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
}

.dm-plan-img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.dm-plan-nokta {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--primary-color, #3f51b5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    cursor: pointer;
    padding: 0;
    transition: transform .12s;
}

.dm-plan-nokta:hover { transform: translate(-50%, -50%) scale(1.25); }

.dm-plan-nokta.secili {
    background: #e8590c;
    animation: dmNabiz 1.6s infinite;
}

@keyframes dmNabiz {
    0% { box-shadow: 0 0 0 0 rgba(232, 89, 12, .45); }
    70% { box-shadow: 0 0 0 12px rgba(232, 89, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0); }
}

.dm-plan-nokta-ad {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 22, 28, .8);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
}

.dm-plan-ipucu {
    text-align: center;
    color: #6c7380;
    font-size: 12.5px;
    margin-top: 10px;
}

/* ---------------- Yonetim editoru (pt-*) ---------------- */
.pt-onizleme {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    border-radius: 10px;
    overflow: hidden;
    background: #101216;
}

.pt-arac-cubugu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.pt-sahne-thumb {
    width: 64px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.pt-plan-kutu { position: relative; max-width: 760px; }
.pt-plan-kutu img { width: 100%; display: block; border-radius: 8px; }

.pt-plan-kutu.yerlestirme-modu { cursor: crosshair; outline: 2px dashed var(--primary-color, #3f51b5); outline-offset: 3px; }

.pt-gecis-form {
    position: absolute;
    z-index: 30;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
    padding: 12px;
    width: 250px;
}

/* ---------------- Mobil ---------------- */
@media (max-width: 768px) {
    .dm-stage { aspect-ratio: 4 / 3; max-height: 340px; }
    .dm-pano { aspect-ratio: 4 / 3; max-height: 380px; }
    .dm-thumb { width: 68px; height: 46px; }
    .dm-sahne-kart { width: 96px; height: 56px; }
    .dm-mini-plan { width: 120px; }
    .dm-plan-nokta-ad { display: none; }
    .dm-govde { padding: 10px; }
    .dm-lb-img { max-width: 100vw; max-height: 78vh; }
}
