/* Genel container (80.5rem genişlik ve beyaz zemin) */
.ilan-detay-container {
    max-width: 78.1rem;
    min-width: 78.1rem; /* Genişlik düşmesin */
    margin: 130px auto;
    padding: 1.25rem;
    background-color: #fff;
}


/* Kategori navigasyon bandı */
.custom-category-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 40px;
    background-color: #fff;
    margin-left: 6px;
    box-shadow: 0 1px 1px rgba(54, 54, 54, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
}

.share-wrapper {
    position: relative;
    display: inline-block;
}

.share-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.share-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.share-dropdown a:hover {
    background-color: #f0f0f0;
}


/* Kategori okları */
.custom-category-arrow {
    font-size: 24px;
    color: #130358;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.left-arrow {
    left: 0;
    padding-left: 10px;
}

.right-arrow {
    right: 20px;
}

/* İlan numarası */
.ilan-numarasi {
    position: absolute;
    top: 50%;
    right: 100px;
    transform: translateY(-50%);
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    color: #333;
    font-size: 15px;
}

/* Kategori metin stilleri */
.aacustom-category-text {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 43px;
}

.aacustom-category-text a {
    text-decoration: none;
    color: inherit;
}

.aacustom-category-text span {
    padding: 0 5px;
}

/* Kategori okları hover efekti */
.custom-category-arrow:hover {
    color: #000;
}

/* İki bölümlü yapı (sol ve sağ taraf yan yana) */
.ilan-detay-icerik {
    display: flex;
    justify-content: space-between;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

/* Sol taraf (%69 genişlik) */
.sol2 {
    width: 69%;
}

/* Sol2 içindeki info-container (Konum ve Tarih Bilgisi) */
.sol2 .info-container {
    font-size: 1.05rem;
    font-family: "Inter", sans-serif;
    color: #333;
    padding: 1.125rem 1.25rem;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Actions (Favorilerime Ekle ve Paylaş) */
.sol2 .actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1rem;
    position: relative; /* Mesaj pozisyonu için relative */
}

.sol2 .actions a {
    text-decoration: none;
    color: #007782;
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    transition: color 0.3s ease;
}

.sol2 .actions a:hover {
    color: #005f6b;
    text-decoration: none;
}

.sol2 .actions i {
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

/* Favori Butonu Stilleri */
.sol2 .favori-ekle {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #007782;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sol2 .favori-ekle:hover {
    background-color: #f0f0f0;
    color: #005f6b;
}

.sol2 .favori-ekle i {
    transition: color 0.3s ease;
}

.sol2 .favori-ekle.clicked i {
    color: red;
}

.sol2 .favori-ekle span {
    transition: color 0.3s ease;
}

.sol2 .favori-ekle.clicked span {
    color: red;
}

/* Favori Mesaj Stili */
.sol2 .favori-mesaj {
    display: none;
    position: absolute;
    top: -30px; /* Butonun üstünde görünecek */
    left: 50%;
    transform: translateX(-50%);
    background: #007782;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
}

/* İlan Detay Alt Sol Bölümü */
.ilan-detay-alt-sol {
    background: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;

}

.ilan-detay-alt-sol h3 {
    color: #007782;
    font-family: 'Bree Serif', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ilan-detay-alt-sol p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.ilan-detay-alt-sol ul {
    list-style: none;
    padding: 0;
}

.ilan-detay-alt-sol ul li {
    padding: 5px 0;
    color: #333;
    font-size: 1rem;
}

/* Harita */
.ilan-harita iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

.ilan-harita .map-fallback {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    text-align: center;
    padding: 20px;
}

/* Paylaş Container */
.share-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 15px;
    color: #007782;
}

.share-container a {
    text-decoration: none;
    color: #007782;
}

.share-container a:hover {
    color: #007782;
}

.share-container i {
    font-size: 24px;
}

.share-container span {
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

/* Şikayet Modal Stilleri */
.modal-overlay-ilan {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content-ilan {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-logo {
    display: block;
    margin: 0 auto 20px;
    width: 120px;
}

.modal-description {
    text-align: center;
    margin-bottom: 20px;
}

.modal-options-ilan label {
    display: block;
    margin: 10px 0;
}

.textarea-container textarea {
    width: 100%;
    height: 100px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit-btn-ilan {
    background-color: #007782;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.submit-btn-ilan:hover {
    background-color: #005f6b;
}

.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    margin-top: 10px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ilan-detay-icerik {
        flex-direction: column;
        gap: 1rem;
    }

    .sol2 {
        width: 100%;
    }

    .sol2 .info-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .sol2 .actions {
        justify-content: flex-start;
        width: 100%;
        gap: 0.75rem;
    }

    .sol2 .favori-ekle {
        font-size: 12px;
        padding: 3px 8px;
    }

    .sol2 .favori-mesaj {
        top: -20px;
        font-size: 10px;
        padding: 3px 8px;
    }

    .ilan-detay-alt-sol {
        padding: 10px;
    }

    .ilan-detay-alt-sol h3 {
        font-size: 1.25rem;
    }

    .ilan-detay-alt-sol p,
    .ilan-detay-alt-sol ul li {
        font-size: 0.875rem;
    }

    .ilan-harita iframe {
        height: 200px;
    }

    .share-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-container i {
        font-size: 20px;
    }

    .modal-content-ilan {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .ilan-detay-alt-sol {
        padding: 8px;
    }

    .ilan-harita iframe {
        height: 150px;
    }

    .share-container {
        gap: 6px;
    }

    .share-container i {
        font-size: 18px;
    }
}