/* =======================================================
   DESTINASYONLAR.CSS - LİMAN VE GEZİ REHBERİ STİL DOSYASI
   (Ferry.css ile Birebir Uyumlu Tasarım)
   ======================================================= */

:root {
    /* Renk Paleti (Ferry ile uyumlu, Liman konseptine uygun) */
    --dest-primary: #006994;       /* Ana Marka Rengi (Mavi) */
    --dest-secondary: #004e6e;     /* Koyu Ton */
    --dest-accent: #e74c3c;        /* Vurgu Rengi (Kırmızı - Bilet İşlemleri için) */
    --dest-heading: #1a202c;       /* Başlık Rengi */
    --dest-text: #374151;          /* Metin Rengi */
    --dest-meta: #718096;          /* Meta Bilgi Rengi */
    --dest-bg: #f8fafc;            /* Sayfa Arka Planı */
    --dest-card-bg: #ffffff;       /* Kart Arka Planı */
    --dest-border: #e2e8f0;        /* Kenarlıklar */
    --radius: 10px;                /* Köşe Yumuşaklığı */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
}

/* Genel Ayarlar */
body {
    background-color: var(--dest-bg);
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--dest-primary); }

/* =========================================
   1. GENEL DÜZEN (LAYOUT)
   ========================================= */
.dest-wrapper {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Ana İçerik Alanı */
.dest-main {
    flex: 3;
    width: 100%;
    min-width: 0;
}

/* Sidebar Alanı */
.dest-sidebar {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

@media (max-width: 992px) {
    .dest-wrapper { flex-direction: column; }
    .dest-sidebar { width: 100%; min-width: auto; position: static; }
}

/* =========================================
   2. LİSTELEME SAYFASI
   ========================================= */

/* Header Alanı */
.dest-header-box {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--dest-border);
}

.dest-breadcrumb {
    font-size: 0.85rem;
    color: var(--dest-meta);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dest-breadcrumb a:hover { color: var(--dest-primary); }
.dest-breadcrumb i { font-size: 0.7rem; opacity: 0.6; }

.dest-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dest-heading);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.dest-page-desc {
    font-size: 1rem;
    color: var(--dest-text);
    opacity: 0.9;
    max-width: 800px;
    margin-bottom: 20px;
}

/* Kategori Filtreleri (Scroll) */
.dest-cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}
.dest-cat-scroll::-webkit-scrollbar { height: 3px; }
.dest-cat-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.dest-cat-btn {
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--dest-border);
    color: var(--dest-meta);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.dest-cat-btn:hover, .dest-cat-btn.active {
    background: var(--dest-primary);
    color: #fff;
    border-color: var(--dest-primary);
    box-shadow: 0 3px 8px rgba(0, 105, 148, 0.2);
}

/* Kart Grid Yapısı */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Esnek Grid */
    gap: 25px;
}
@media (max-width: 768px) { .dest-grid { grid-template-columns: 1fr; } }

/* Destinasyon Kartı */
.dest-card {
    background: var(--dest-card-bg);
    border: 1px solid var(--dest-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
    transition: all 0.2s ease;
}
.dest-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--dest-primary);
}

.dest-thumb {
    position: relative; height: 200px; overflow: hidden;
    background: #e2e8f0;
}
.dest-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.dest-card:hover .dest-thumb img { transform: scale(1.05); }

.dest-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--dest-heading);
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; padding: 4px 10px;
    border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 5px;
}

/* Kart İçeriği */
.dest-card .dest-content { 
    padding: 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.dest-title {
    font-size: 1.2rem; font-weight: 700; color: var(--dest-heading);
    margin-bottom: 10px; line-height: 1.3;
}
.dest-title a:hover { color: var(--dest-primary); }

.dest-excerpt {
    font-size: 0.9rem; color: var(--dest-text); margin-bottom: 15px;
    flex: 1; display: -webkit-box; -webkit-line-clamp: 3; /* 3 Satır */
    -webkit-box-orient: vertical; overflow: hidden;
}

.dest-tags-mini {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 15px;
}
.dest-tags-mini span {
    font-size: 0.75rem; background: #f1f5f9; color: var(--dest-meta);
    padding: 2px 8px; border-radius: 4px;
}

.btn-dest-read {
    font-size: 0.85rem; font-weight: 600; color: var(--dest-primary);
    display: flex; align-items: center; gap: 5px;
    margin-top: auto; padding-top: 15px; border-top: 1px solid var(--dest-bg);
}
.btn-dest-read:hover { gap: 8px; }

/* Sayfalama */
.dest-pagination {
    margin-top: 40px; display: flex; gap: 5px; justify-content: center;
}
.dest-page-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--dest-border);
    background: #fff; color: var(--dest-text);
    border-radius: var(--radius); text-decoration: none;
    transition: 0.2s;
}
.dest-page-btn:hover, .dest-page-btn.active {
    background: var(--dest-primary); color: #fff; border-color: var(--dest-primary);
}

/* =========================================
   3. DETAY SAYFASI
   ========================================= */

/* Meta Bilgiler (Detay) */
.dest-meta-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
    padding-bottom: 20px; border-bottom: 1px solid var(--dest-border);
    margin-bottom: 30px; font-size: 0.9rem; color: var(--dest-meta);
}
.dest-meta-item { display: flex; align-items: center; gap: 6px; }
.dest-meta-item i { color: var(--dest-primary); font-size: 1rem; }
.dest-meta-item strong { color: var(--dest-heading); font-weight: 600; }

/* Hero Slider (Detay) */
.dest-hero-slider {
    position: relative;
    width: 100%; height: 400px;
    border-radius: var(--radius);
    overflow: hidden; margin-bottom: 30px;
    background: #e2e8f0; box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) { .dest-hero-slider { height: 250px; } }

.dest-slide {
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0;
    opacity: 0; transition: opacity 0.4s ease-in-out;
    display: none;
}
.dest-slide.active { opacity: 1; display: block; z-index: 2; }
.dest-slide img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; cursor: zoom-in;
}

.dest-prev, .dest-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #333; font-size: 1rem; cursor: pointer;
    z-index: 10; transition: all 0.2s; border: none;
}
.dest-prev:hover, .dest-next:hover { background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.dest-prev { left: 15px; }
.dest-next { right: 15px; }

/* İçindekiler (TOC) */
.dest-toc {
    background: #f1f5f9;
    border-radius: var(--radius);
    padding: 20px; margin-bottom: 30px;
    border-left: 4px solid var(--dest-primary);
}
.dest-toc-title {
    font-size: 1rem; font-weight: 700; color: var(--dest-heading);
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.dest-toc ul { list-style: none; padding: 0; margin: 0; }
.dest-toc li { margin-bottom: 5px; padding-left: 15px; position: relative; }
.dest-toc li::before {
    content: "•"; color: var(--dest-primary);
    position: absolute; left: 0; top: 0; font-weight: bold;
}
.dest-toc a { font-weight: 500; font-size: 0.9rem; color: var(--dest-text); }
.dest-toc a:hover { color: var(--dest-primary); text-decoration: underline; }

/* İçerik Tipografisi */
.dest-main > .dest-content {
    font-size: 1rem; line-height: 1.6; color: #2d3748;
}
.dest-main > .dest-content h2, 
.dest-main > .dest-content h3, 
.dest-main > .dest-content h4 {
    color: var(--dest-primary); font-weight: 700;
    margin-top: 25px; margin-bottom: 15px; line-height: 1.3;
}
.dest-main > .dest-content h2 { font-size: 1.6rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }
.dest-main > .dest-content h3 { font-size: 1.4rem; }
.dest-main > .dest-content p { margin-bottom: 15px; }
.dest-main > .dest-content ul, 
.dest-main > .dest-content ol { margin-bottom: 15px; padding-left: 20px; }
.dest-main > .dest-content li { margin-bottom: 5px; }
.dest-main > .dest-content img {
    max-width: 100%; height: auto; border-radius: 8px;
    margin: 20px 0; box-shadow: var(--shadow-sm); display: block;
}
.dest-main > .dest-content table {
    width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.95rem;
}
.dest-main > .dest-content th, 
.dest-main > .dest-content td { border: 1px solid #e2e8f0; padding: 10px; }
.dest-main > .dest-content th { background: #f8fafc; font-weight: 600; color: var(--dest-primary); }

/* Etiketler (Footer) */
.tag-pill {
    background: #edf2f7; color: var(--dest-text);
    padding: 5px 12px; border-radius: 4px;
    font-size: 0.85rem; font-weight: 500; transition: 0.2s;
    display: inline-block; margin-right: 5px; margin-bottom: 5px;
}
.tag-pill:hover { background: var(--dest-primary); color: #fff; }

/* =========================================
   4. SIDEBAR WIDGETLARI
   ========================================= */
.dest-widget {
    background: #fff;
    border: 1px solid var(--dest-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.dest-widget-title {
    font-size: 1.1rem; font-weight: 700; color: var(--dest-heading);
    margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9; position: relative;
}
.dest-widget-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 40px; height: 2px; background: var(--dest-primary);
}

/* Vurgulu Widget (Bilet Al vb.) */
.highlight-widget {
    border-top: 4px solid var(--dest-accent);
}
.highlight-widget .dest-widget-title { color: var(--dest-accent); border-color: #fee2e2; }
.highlight-widget .dest-widget-title::after { background: var(--dest-accent); }

.widget-icon {
    font-size: 2rem; color: var(--dest-accent); text-align: center; margin-bottom: 10px;
}
.highlight-widget h4 { 
    text-align: center; color: var(--dest-heading); margin-bottom: 10px; font-size: 1.2rem; 
}
.highlight-widget p {
    text-align: center; font-size: 0.9rem; color: var(--dest-text); margin-bottom: 15px;
}

.btn-sidebar-action {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px;
    background: var(--dest-accent); color: #fff;
    border: none; border-radius: 6px;
    font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: 0.3s;
}
.btn-sidebar-action:hover {
    background: #c0392b; transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* Arama Formu */
.dest-search-form { display: flex; gap: 5px; }
.dest-search-form input {
    flex: 1; padding: 8px 12px; border: 1px solid #cbd5e1;
    border-radius: 6px; font-size: 0.9rem;
}
.dest-search-form button {
    width: 40px; background: var(--dest-primary); color: #fff;
    border: none; border-radius: 6px; cursor: pointer;
}

/* Mini Liste */
.dest-mini-list { display: flex; flex-direction: column; gap: 15px; }
.dest-mini-item { display: flex; gap: 12px; align-items: flex-start; transition: 0.2s; }
.dest-mini-item:hover .mini-content h5 { color: var(--dest-primary); }

.mini-img {
    width: 60px; height: 60px; border-radius: 6px;
    overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.mini-img img { width: 100%; height: 100%; object-fit: cover; }

.mini-content { flex: 1; }
.mini-content h5 {
    font-size: 0.9rem; font-weight: 600; color: var(--dest-heading);
    line-height: 1.3; margin: 0 0 4px;
}
.mini-content span {
    font-size: 0.75rem; color: var(--dest-meta); display: flex; align-items: center; gap: 4px;
}
.mini-content span i { font-size: 0.65rem; }

/* Meta Listesi (Sidebar) */
.dest-meta-list { list-style: none; padding: 0; margin: 0; }
.dest-meta-list li {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid #f1f5f9; font-size: 0.9rem;
}
.dest-meta-list li:last-child { border-bottom: none; }
.meta-label { color: var(--dest-meta); display: flex; align-items: center; gap: 6px; }
.meta-val { color: var(--dest-heading); font-weight: 600; }

/* Lightbox */
#lightboxModal {
    display: none; position: fixed; z-index: 99999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center; justify-content: center;
}
#lightboxImg {
    max-width: 90%; max-height: 90vh;
    border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }