/* ==========================================================================
   07 — LİSTE VE DETAY SAYFALARI
   Sayfa yolu, hizmet detayı, SSS akordeonu, hizmet bölgeleri
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sayfa yolu (breadcrumb)
   -------------------------------------------------------------------------- */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--teal-deep);
}

.breadcrumb .i {
    font-size: 14px;
    color: #b9cbd4;
}

.breadcrumb [aria-current] {
    color: var(--navy);
}

/* --------------------------------------------------------------------------
   Hizmet detayı — üst bölüm
   -------------------------------------------------------------------------- */

.detail-head {
    padding-bottom: 0;
}

.detail-intro {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 50px;
    align-items: center;
}

.detail-intro h1 {
    color: var(--navy);
    font-size: clamp(36px, 5vw, 60px);
    margin-top: 16px;
}

.detail-summary {
    margin-top: 18px;
    font-size: 19px;
    color: var(--muted);
    max-width: 560px;
}

.detail-figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-figure img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

/* Hizmetin ait olduğu kategoriler */
.detail-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.detail-cats a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.detail-cats a:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Hizmet detayı — gövde
   -------------------------------------------------------------------------- */

.detail-body {
    padding-top: 74px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 50px;
    align-items: start;
}

/* Veritabanından gelen HTML içeriğin tipografisi */
.prose > * + * {
    margin-top: 18px;
}

.prose p,
.prose li {
    color: #4a6373;
    font-size: 16.5px;
}

.prose h2 {
    font-size: 30px;
    margin-top: 44px;
}

.prose h3 {
    font-size: 20px;
    color: var(--navy);
    margin-top: 40px;
}

.prose ul {
    padding-left: 0;
    list-style: none;
}

.prose ul li {
    position: relative;
    padding-left: 30px;
    margin-top: 12px;
}

/* Madde işareti yerine onay rozeti */
.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2f7f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23098e87' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

.prose ol {
    padding-left: 20px;
}

.prose a {
    color: var(--teal-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--coral);
}

/* --------------------------------------------------------------------------
   Detay yan sütunu
   -------------------------------------------------------------------------- */

.detail-aside {
    position: sticky;
    top: 130px;
    display: grid;
    gap: 16px;
}

.aside-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.aside-card h3 {
    font-size: 18px;
}

.aside-card .btn {
    width: 100%;
    margin-top: 22px;
}

.mini-steps {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 13px;
}

.mini-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.mini-steps li span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: var(--soft);
    border: 1px solid var(--line);
    color: var(--teal-deep);
    font-size: 12px;
    font-weight: 900;
}

.aside-contact {
    background: linear-gradient(145deg, var(--navy), var(--dark));
    border-color: transparent;
    color: #fff;
}

.aside-contact h3 {
    color: #fff;
}

.aside-contact p {
    margin-top: 12px;
    color: #c7d8e2;
    font-size: 14px;
}

.aside-contact .line {
    font-size: 15px;
}

.aside-contact .line:hover {
    color: var(--teal-light);
}

/* --------------------------------------------------------------------------
   SSS akordeonu — <details> tabanlı, JavaScript gerektirmez
   -------------------------------------------------------------------------- */

.faq {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item[open] {
    border-color: var(--teal);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    list-style: none;
}

/* Tarayıcının varsayılan üçgen işaretini kaldır */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--teal-deep);
}

/* Artı / eksi işareti */
.faq-mark {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--soft);
    border: 1px solid var(--line);
    transition: background .25s ease, transform .25s ease;
}

.faq-mark::before,
.faq-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--teal-deep);
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .25s ease;
}

.faq-mark::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-mark {
    background: var(--teal);
}

.faq-item[open] .faq-mark::before,
.faq-item[open] .faq-mark::after {
    background: #fff;
}

.faq-item[open] .faq-mark::after {
    opacity: 0;
}

.faq-answer {
    padding: 0 24px 23px;
}

.faq-answer p {
    color: var(--muted);
    font-size: 15.5px;
    max-width: 760px;
}

/* --------------------------------------------------------------------------
   Hizmet bölgeleri
   -------------------------------------------------------------------------- */

.areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.area {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    transition: border-color .2s ease, transform .2s ease;
}

.area:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
}

.area .i {
    font-size: 16px;
    color: #a8bfc9;
}

/* Öne çıkan şehirler daha belirgin */
.area.is-featured {
    background: linear-gradient(135deg, var(--navy), var(--dark));
    border-color: transparent;
    color: #fff;
    font-weight: 800;
}

.area.is-featured .i {
    color: var(--teal-light);
}

/* --------------------------------------------------------------------------
   Bakıcı başvuru sayfası
   -------------------------------------------------------------------------- */

.apply-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 46px;
    align-items: start;
}

.apply-intro h1 {
    color: var(--navy);
    font-size: clamp(32px, 4vw, 46px);
    margin-top: 16px;
}

.apply-intro > p {
    margin-top: 18px;
    color: var(--muted);
}

.apply-points {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: grid;
    gap: 18px;
}

.apply-points li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.apply-points .dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 15px;
}

.apply-points strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
}

.apply-points span:last-child {
    color: var(--muted);
    font-size: 14px;
}

.apply-contact {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.apply-contact a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 800;
}

.apply-contact a:hover {
    color: var(--teal-deep);
}

.apply-form {
    position: sticky;
    top: 120px;
}

/* İsteğe bağlı alan etiketi */
.opt {
    font-weight: 600;
    color: #9db1bd;
    text-transform: none;
    letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Duyarlı davranış
   -------------------------------------------------------------------------- */

@media (max-width: 1050px) {
    .detail-intro,
    .detail-grid,
    .apply-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .apply-form {
        position: static;
    }

    .detail-aside {
        position: static;
        grid-template-columns: 1fr 1fr;
        display: grid;
    }

    .detail-body {
        padding-top: 56px;
    }
}

@media (max-width: 780px) {
    .detail-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .faq-item summary {
        padding: 17px 18px;
        font-size: 15px;
        gap: 14px;
    }

    .faq-answer {
        padding: 0 18px 19px;
    }

    .aside-card {
        padding: 22px;
    }

    .detail-summary {
        font-size: 17px;
    }
}
