/* =====================================================
   TK Provenance & Harita — Frontend CSS
   Renk paleti: tema değişkenlerini kullanır
===================================================== */

/* ─── SEKME NAVİGASYON ─── */
.tkp-tabs-section {
    margin-top: 0;
}

.tkp-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(212,160,23,.25);
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.tkp-tabs-nav::-webkit-scrollbar { display: none; }

.tkp-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #9a8a6a;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s, background .2s;
    position: relative;
    top: 1px;
}
.tkp-tab-btn span { font-size: 15px; }
.tkp-tab-btn:hover { color: #e8c050; background: rgba(212,160,23,.04); }
.tkp-tab-btn.active {
    color: #e8c050;
    border-bottom-color: #d4a017;
    background: rgba(212,160,23,.04);
}

/* ─── SEKME PANEL ─── */
.tkp-tab-pane {
    display: none;
    animation: tkp-fade .3s ease;
}
.tkp-tab-pane.active { display: block; }

@keyframes tkp-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tkp-tab-inner {
    padding: 28px 0 8px;
    color: #9a8a6a;
    font-size: 15px;
    line-height: 1.8;
}

/* ─── KÖKEN BİLGİ BARI ─── */
.tkp-origin-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: rgba(212,160,23,.12);
    border: 1px solid rgba(212,160,23,.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.tkp-origin-item {
    background: #110d08;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tkp-origin-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5a4e38;
}

.tkp-origin-val {
    font-size: 14px;
    color: #e8c050;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* ─── HARİTA ─── */
.tkp-map-container {
    width: 100%;
    height: 380px;
    border: 1px solid rgba(212,160,23,.25);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #0a0806;
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
    background: #1a1208 !important;
    border: 1px solid rgba(212,160,23,.35) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.6) !important;
    color: #f0e6cc !important;
}
.leaflet-popup-tip { background: #1a1208 !important; }
.leaflet-popup-content { margin: 12px 16px !important; font-size: 13px; }
.leaflet-popup-content strong { color: #e8c050; display: block; margin-bottom: 4px; font-family: 'Cormorant Garamond', serif; font-size: 15px; }
.leaflet-popup-content em { color: #8b6914; font-size: 11px; font-style: normal; }
.leaflet-popup-close-button { color: #8b6914 !important; }
.leaflet-control-zoom a { background: #1a1208 !important; color: #e8c050 !important; border-color: rgba(212,160,23,.3) !important; }

/* ─── BENZER ESERLER ─── */
.tkp-sub-heading {
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #5a4e38;
    margin-bottom: 14px;
}

.tkp-similar-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tkp-similar-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #1a1208;
    border: 1px solid rgba(212,160,23,.12);
    border-radius: 6px;
    transition: border-color .2s, background .2s;
}
.tkp-similar-card:hover {
    border-color: rgba(212,160,23,.35);
    background: #221a0d;
}

.tkp-sim-flag {
    font-size: 11px;
    color: #5a4e38;
    min-width: 70px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tkp-sim-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tkp-sim-info strong { color: #f0e6cc; font-size: 14px; font-weight: 600; }
.tkp-sim-info span   { color: #8b6914; font-size: 12px; }

.tkp-sim-link {
    color: #d4a017;
    font-size: 18px;
    padding: 4px 8px;
    border: 1px solid rgba(212,160,23,.2);
    border-radius: 4px;
    transition: background .2s;
}
.tkp-sim-link:hover { background: rgba(212,160,23,.1); }

/* ─── PROVENANCE TİMELINE ─── */
.tkp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.tkp-tl-item {
    display: flex;
    gap: 20px;
    position: relative;
}

/* Marker kolonu */
.tkp-tl-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
}

.tkp-tl-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1208;
    border: 1px solid rgba(212,160,23,.35);
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px #0a0806;
}

.tkp-tl-line {
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, rgba(212,160,23,.3), rgba(212,160,23,.05));
    margin: 4px 0;
    min-height: 32px;
}

/* İçerik kolonu */
.tkp-tl-content {
    padding: 4px 0 36px;
    flex: 1;
}

.tkp-tl-date {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #d4a017;
    margin-bottom: 4px;
}

.tkp-tl-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: #e8c050;
    margin-bottom: 8px;
    font-weight: 600;
}

.tkp-tl-desc {
    font-size: 14px;
    color: #9a8a6a;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Belge görseli */
.tkp-tl-doc {
    display: inline-block;
    margin-top: 4px;
}

.tkp-tl-doc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: #1a1208;
    border: 1px solid rgba(212,160,23,.2);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color .2s, background .2s;
    max-width: 320px;
}
.tkp-tl-doc-link:hover {
    border-color: rgba(212,160,23,.5);
    background: #221a0d;
}
.tkp-tl-doc-link img {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(212,160,23,.15);
    flex-shrink: 0;
}
.tkp-tl-doc-link span {
    font-size: 12px;
    color: #d4a017;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ─── HARİTA PİNLERİ ─── */

/* Köken pini — altın, pulse animasyonlu */
.tkp-pin-origin {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkp-pin-dot {
    width: 14px;
    height: 14px;
    background: #d4a017;
    border: 2px solid #e8c050;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px rgba(212,160,23,.6);
}

.tkp-pin-pulse {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(212,160,23,.5);
    animation: tkp-pin-pulse 2s ease-out infinite;
    top: 0; left: 0;
}

@keyframes tkp-pin-pulse {
    0%   { transform: scale(.5); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Benzer eser pini — gümüş, küçük */
.tkp-pin-similar {
    width: 10px;
    height: 10px;
    background: #8b8b8b;
    border: 1.5px solid #c0c0c0;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(192,192,192,.4);
}

/* Harita legend */
.tkp-map-legend {
    background: rgba(17,13,8,.85) !important;
    border: 1px solid rgba(212,160,23,.25) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    color: #9a8a6a !important;
    font-family: 'Raleway', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(4px) !important;
    box-shadow: none !important;
}

.tkp-legend-origin  { color: #d4a017; font-size: 14px; }
.tkp-legend-similar { color: #8b8b8b; font-size: 14px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .tkp-tab-btn { padding: 12px 16px; font-size: 10px; }
    .tkp-map-container { height: 260px; }
    .tkp-tl-icon { width: 36px; height: 36px; font-size: 15px; }
    .tkp-tl-marker { width: 36px; }
}
