/* --- css/dis-klinikler.css --- */
/* Renk teması hasta-kayit / klinik-kayit ile aynı: karamel (#e2ab6d), krem (#f2dbb5), koyu kahve (#4d2600), düğme (#c27e36) */

body {
    background-color: #bb8e74;
    color: #4d2600;
    background-image: radial-gradient(circle at 50% 50%, #f2dbb5 0%, #e2ab6d 100%);
    background-attachment: fixed; /* Sayfa uzayınca zemin ekrana sabit kalsın */
    min-height: 100vh;
}

/* Kaydırınca menü kartların üstüne gelir: gölgeyle ayrışsın (sadece bu sayfa) */
.site-header { box-shadow: 0 6px 18px rgba(77, 38, 0, 0.35); }

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 50px 20px;
}

.content-header { margin-bottom: 40px; border-bottom: 1px solid rgba(77, 38, 0, 0.3); padding-bottom: 20px; text-align: center; }
.main-title { font-size: 2.5rem; font-weight: 900; margin: 0 0 10px 0; text-transform: uppercase; }
.neon-text { color: #8a4a0f; }
.content-header p { color: #4d2600; font-size: 1rem; margin: 0; }

/* KARTLARIN DİZİLİMİ */
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.loading-message { grid-column: 1 / -1; text-align: center; font-size: 1.2rem; color: #4d2600; padding: 50px; }
.loading-error { color: #a4302a; }

/* --- KART TASARIMI (3D FLIP EFEKTİ) --- */
.clinic-card {
    perspective: 1000px; 
    height: 400px; 
    width: 100%;
    position: relative;
    background: transparent;
    cursor: pointer;
}

.card-inner {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.clinic-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden; 
    background: #fbefd9;
    border: 1px solid rgba(77, 38, 0, 0.18);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(77, 38, 0, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-front:hover { border-color: #c27e36; box-shadow: 0 12px 30px rgba(77, 38, 0, 0.32); }

/* --- MANUEL SLIDER (Resimler İçin) --- */
.card-slider-container {
    position: relative;
    width: 100%;
    height: 180px; /* Orijinal resim alanının boyutu bozulmasın diye sabitlendi */
    overflow: hidden;
    background: #4d2600;
}

.card-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out; /* Sadece tıklandığında yumuşak kaysın */
}

.card-slider-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(77, 38, 0, 0.75);
    color: #f2dbb5;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    z-index: 10;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s;
}

.card-slider-btn:hover { background: #f2dbb5; color: #4d2600; }
.card-slider-btn.prev { left: 5px; }
.card-slider-btn.next { right: 5px; }

/* KARTIN ALT BİLGİ KISIMLARI */
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px 0; color: #4d2600; }
.card-type { color: #8a4a0f; font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.card-address { font-size: 0.85rem; color: #6b3a0a; margin-bottom: 10px; line-height: 1.4; }
.card-address i { color: #8a4a0f; width: 15px; }
.card-services { font-size: 0.9rem; color: #4d2600; margin-bottom: 20px; font-weight: 500; }
.card-services i { color: #8a4a0f; width: 15px; }

.card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(77, 38, 0, 0.15); }
.btn-details { background: transparent; color: #6b3a0a; border: none; font-size: 0.9rem; cursor: pointer; text-decoration: underline; padding: 0; transition: 0.3s; }
.btn-details:hover { color: #000000; }
.btn-reserve { background: #c27e36; color: #000000; padding: 10px 18px; border-radius: 6px; font-size: 0.9rem; font-weight: 800; border: none; cursor: pointer; transition: 0.3s; }
.btn-reserve:hover { background: #df9e5b; transform: scale(1.05); }

/* --- ARKA YÜZ TASARIMI --- */
.card-back { transform: rotateY(180deg); padding: 25px; }
.back-title { color: #4d2600; font-size: 1.2rem; font-weight: 800; text-transform: uppercase; margin: 0 0 20px 0; border-bottom: 1px solid rgba(77, 38, 0, 0.2); padding-bottom: 10px; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px dashed rgba(77, 38, 0, 0.2); font-size: 0.95rem; color: #4d2600; }
.detail-list li span { font-weight: 500; }

.status-yes { color: #4d2600; font-size: 1.2rem; }
.status-no { color: #a4302a; font-size: 1.2rem; }

.btn-back { background: transparent; color: #6b3a0a; border: none; font-size: 0.9rem; cursor: pointer; padding: 0; margin-top: auto; text-align: left; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.btn-back:hover { color: #000000; }

/* --- ARAMA ÇUBUĞU TASARIMI --- */
.search-container { position: relative; max-width: 600px; margin: 25px auto 0 auto; }
#searchInput { width: 100%; padding: 15px 50px 15px 25px; border-radius: 50px; border: none; background-color: #ffffff; color: #4d2600; font-size: 1rem; font-weight: 500; box-sizing: border-box; box-shadow: 0 4px 15px rgba(77, 38, 0, 0.3); outline: none; transition: box-shadow 0.3s ease; }
#searchInput:focus { box-shadow: 0 0 0 3px rgba(77, 38, 0, 0.35), 0 4px 15px rgba(77, 38, 0, 0.3); }
#searchInput::placeholder { color: #8a6d4f; }
.search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #8a4a0f; font-size: 1.2rem; cursor: pointer; transition: color 0.3s ease; }
.search-icon:hover { color: #4d2600; }
