/* Tanıtım yazısı ilan kartı (views/v1/ilan_karti.php) — ana sayfa ve mağaza sayfası */

.ik-kart {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid #eee3ea;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(54,0,44,.04);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ik-kart:hover { border-color: #dcc6d5; box-shadow: 0 12px 28px -12px rgba(54,0,44,.22); }

/* Üst kısım: sabit yükseklik — etiketler tek satırda kalır, kartlar arasında kayma olmaz */
.ik-ust { display: flex; align-items: center; gap: 12px; min-width: 0; height: 46px; }
.ik-harf {
    flex: 0 0 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #36002c; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.5px;
}
.ik-kart--paket .ik-harf { background: #ff0061; font-size: 17px; }
.ik-kimlik { min-width: 0; flex: 1; }
.ik-alan { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.1px; }
.ik-alan a { color: #2a0a24; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ik-alan a:hover { color: #ff0061; text-decoration: none; }
.ik-etiketler { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 5px; overflow: hidden; min-height: 19px; }
.ik-kat, .ik-news {
    flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
    font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.ik-kat { background: #f6f0f4; color: #6b5a66; text-decoration: none; }
.ik-kat:hover, .ik-kat:focus { background: #36002c; color: #fff; text-decoration: none; }
.ik-news { flex-shrink: 0; background: #e9f6ef; color: #13704f; font-weight: 600; }
.ik-news .fa { font-size: 10px; }

/* DA / DR / PA */
.ik-ana {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin: 16px 0 12px; border: 1px solid #f0e6ed; border-radius: 12px; overflow: hidden;
}
.ik-ana > div { padding: 10px 4px; text-align: center; background: #fcf9fb; }
.ik-ana > div + div { border-left: 1px solid #f0e6ed; }
.ik-ana strong { display: block; font-size: 22px; font-weight: 800; color: #36002c; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ik-ana span { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #9a8794; }

/* Diğer değerler */
.ik-detay { margin: 0 0 14px; }
.ik-detay > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #efe5ec; }
.ik-detay > div:last-child { border-bottom: 0; }
.ik-detay dt { flex-shrink: 0; font-weight: 400; font-size: 13px; color: #8c7a87; }
.ik-detay dd { margin: 0; min-width: 0; font-size: 13.5px; font-weight: 600; color: #2a0a24; font-variant-numeric: tabular-nums; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ik-detay dd a { color: #5e1c52; text-decoration: none; }
.ik-detay dd a:hover { color: #ff0061; }

.ik-paket { margin: 16px 0 14px; padding: 12px 14px; border-radius: 12px; background: #fcf9fb; border: 1px solid #f0e6ed; font-size: 13px; line-height: 1.55; color: #6b5a66; }

/* Fiyat ve düğmeler — kartın dibine yaslanır */
.ik-alt { margin-top: auto; padding-top: 14px; border-top: 1px solid #f0e6ed; }
.ik-fiyat { font-size: 24px; font-weight: 800; color: #2a0a24; letter-spacing: -.4px; margin-bottom: 12px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ik-fiyat span { font-size: 18px; font-weight: 700; color: #ff0061; }
.ik-dugmeler { display: flex; gap: 8px; }
.ik-sepet, .ik-incele {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 42px; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ik-sepet { flex: 1; min-width: 0; background: #ff0061; color: #fff; padding: 0 12px; }
.ik-sepet:hover, .ik-sepet:focus { background: #d90052; color: #fff; text-decoration: none; }
.ik-sepet--kapali, .ik-sepet--kapali:hover { background: #eee8ec; color: #9a8794; cursor: default; }
.ik-incele { flex: 0 0 auto; padding: 0 14px; background: #fff; color: #5e1c52; border: 1px solid #e3d3de; }
.ik-incele:hover, .ik-incele:focus { border-color: #5e1c52; color: #36002c; text-decoration: none; }
.ik-kart a:focus-visible { outline: 2px solid #ff0061; outline-offset: 2px; }

/* Dar kartlarda "İncele" yalnızca simge */
.ik-kart--dar .ik-incele span { display: none; }
.ik-kart--dar .ik-incele { width: 42px; padding: 0; }
@media (max-width: 575px) {
    .ik-kart--dar .ik-incele span { display: inline; }
    .ik-kart--dar .ik-incele { width: auto; padding: 0 14px; }
}
@media (max-width: 1199px) and (min-width: 576px) {
    .ik-incele span { display: none; }
    .ik-incele { width: 42px; padding: 0; }
}

/* Mağaza sayfası ızgarası */
.mg-izgara {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
@media (max-width: 1199px) { .mg-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .mg-izgara { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.mg-grid-view.active .mg-grid-item.ik-kart { display: flex; }

/* Ana sayfa: bootstrap sütunu içinde kart tam genişlik */
.bc-grid-item > .ik-kart { flex: 1; }

/* Görselli hizmet kartı (ilan_hizmet_karti) */
.ik-hizmet { display: flex; flex-direction: column; width: 100%; min-width: 0; background: #fff; border: 1px solid #eee3ea; border-radius: 16px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.ik-hizmet:hover { border-color: #dcc6d5; box-shadow: 0 12px 28px -12px rgba(54,0,44,.22); }
.ik-h-resim { display: block; aspect-ratio: 16 / 10; background: #f3edf1; overflow: hidden; }
.ik-h-resim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ik-h-govde { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; min-width: 0; }
.ik-h-ad { margin: 8px 0 4px; font-size: 15px; font-weight: 700; line-height: 1.4; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ik-h-ad a { color: #2a0a24; text-decoration: none; }
.ik-h-ad a:hover { color: #ff0061; text-decoration: none; }
.ik-h-satici { font-size: 12.5px; color: #8c7a87; text-decoration: none; }
.ik-h-satici:hover { color: #5e1c52; text-decoration: none; }
.ik-h-alt { margin-top: auto; padding-top: 12px; border-top: 1px solid #f0e6ed; margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ik-h-alt .ik-fiyat { margin: 0; font-size: 21px; }
.ik-h-alt .ik-fiyat span { font-size: 16px; }
.ik-h-alt .ik-dugmeler { flex: 0 0 auto; }
.ik-h-alt .ik-incele { padding: 0 12px; width: auto; height: 40px; }
.ik-h-alt .ik-sepet { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; }
.ik-hizmet .ik-etiketler { margin-top: 0; }

/* Arama sonuçları ızgarası */
.ara-izgara { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1199px) { .ara-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .ara-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .ara-izgara { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
