/* ==================================================================
   Araç Kiralama Rehberi - Ek stiller
   Tailwind CDN teması üzerine yalnızca gerekli eklemeler yapılır.
   ================================================================== */

:root {
    --radius-card: 0.75rem;
}

/* ---- Material Symbols temel ayarı ---- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    user-select: none;
}

/* ---- Yumuşak kaydırma ---- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* ------------------------------------------------------------------
   Yatay taşma kilidi
   Tek bir geniş öğe (uzun başlık, tablo, gömülü harita) tüm sayfayı
   sağa kaydırılabilir yapmasın. Mobilde "menü sağda kaldı" hatasının
   sebebi buydu.

   NOT: Burada bilinçli olarak "clip" kullanılıyor, "hidden" DEĞİL.
   overflow:hidden bir kaydırma bağlamı oluşturur ve içindeki
   position:sticky öğelerini (masaüstü navbar) çalışmaz hale getirir.
   clip ise kaydırma bağlamı yaratmaz, sticky çalışmaya devam eder.
   ------------------------------------------------------------------ */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

/* Gömülü içerik ve görseller kapsayıcıyı asla aşmasın */
img, svg, video, canvas, iframe, embed, object {
    max-width: 100%;
}

/* Uzun kelimeler / kesintisiz URL'ler kapsayıcıyı zorlamasın */
h1, h2, h3, h4, p, a, span, td, th, li, label, legend {
    overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---- Kaydırma çubuğu ---- */
* {
    scrollbar-width: thin;
    scrollbar-color: #bfcaba transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #bfcaba; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #707a6c; }

/* ---- Satır kırpma ---- */
.line-clamp-1, .line-clamp-2, .line-clamp-3, .line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }

/* ------------------------------------------------------------------
   GÖRSEL ÇERÇEVELERİ
   Firmaların yüklediği görseller asla bozulmaz (en-boy oranı korunur),
   çerçeve içinde tamamı görünür. Boşluklar nötr zeminle doldurulur.
   ------------------------------------------------------------------ */
.img-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-frame > img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* kırpma ve germe yok */
    object-position: center;
    display: block;
}
.img-frame--cover > img { object-fit: cover; }

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-2  { aspect-ratio: 3 / 2; }
.ratio-1-1  { aspect-ratio: 1 / 1; }

/* aspect-ratio desteklemeyen eski tarayıcılar için yedek */
@supports not (aspect-ratio: 1 / 1) {
    .ratio-16-9::before { content: ''; display: block; padding-top: 56.25%; }
    .ratio-4-3::before  { content: ''; display: block; padding-top: 75%; }
    .ratio-3-2::before  { content: ''; display: block; padding-top: 66.66%; }
    .ratio-1-1::before  { content: ''; display: block; padding-top: 100%; }
    .img-frame > img { position: absolute; inset: 0; }
}

/* Logo çerçevesi - şeffaf zeminli logolar için beyaz taban */
.logo-frame {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-frame > img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---- Onay kutusu / seçim göstergesi ---- */
.peer:checked ~ span > .material-symbols-outlined.chk::before {
    content: 'check_box';
}
.peer:not(:checked) ~ span > .material-symbols-outlined.chk::before {
    content: 'check_box_outline_blank';
}
.material-symbols-outlined.chk { font-size: 18px; }

/* ---- Form öğeleri ---- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23707a6c'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.4a.75.75 0 01-1.08 0l-4.25-4.4a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 1.15rem;
    padding-right: 2.2rem;
    appearance: none;
}
select.no-arrow { background-image: none; padding-right: 0.5rem; }

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

/* İstenmeyen otomatik doldurma rengi */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f3f3f3 inset;
    -webkit-text-fill-color: #1a1c1c;
}

/* ---- Editör içeriği (sayfa, blog, firma hakkında) ---- */
.prose-tr { color: #40493d; font-size: 16px; line-height: 1.75; }
.prose-tr h2 { font-family: Montserrat, Inter, sans-serif; font-size: 24px; font-weight: 700; color: #1a1c1c; margin: 1.75rem 0 0.75rem; }
.prose-tr h3 { font-family: Montserrat, Inter, sans-serif; font-size: 19px; font-weight: 600; color: #1a1c1c; margin: 1.5rem 0 0.5rem; }
.prose-tr h4 { font-weight: 600; color: #1a1c1c; margin: 1.25rem 0 0.5rem; }
.prose-tr p { margin: 0 0 1rem; }
.prose-tr a { color: #0d631b; text-decoration: underline; text-underline-offset: 2px; }
.prose-tr a:hover { color: #2e7d32; }
.prose-tr ul, .prose-tr ol { margin: 0 0 1rem 1.25rem; }
.prose-tr ul { list-style: disc; }
.prose-tr ol { list-style: decimal; }
.prose-tr li { margin-bottom: 0.4rem; }
.prose-tr strong, .prose-tr b { color: #1a1c1c; font-weight: 600; }
.prose-tr blockquote {
    border-left: 3px solid #0d631b; background: #f3f3f3;
    padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 0 0 1rem;
}
.prose-tr img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }
.prose-tr table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 15px; }
.prose-tr th, .prose-tr td { border: 1px solid #e0e0e0; padding: 0.6rem 0.8rem; text-align: left; }
.prose-tr th { background: #f3f3f3; font-weight: 600; color: #1a1c1c; }
.prose-tr hr { border: 0; border-top: 1px solid #e0e0e0; margin: 2rem 0; }

/* ---- Adım göstergesi (teklif formu) ---- */
.step-hidden { display: none !important; }

/* ---- Yükleniyor durumu ---- */
.is-loading { position: relative; pointer-events: none; opacity: 0.65; }
.is-loading::after {
    content: '';
    position: absolute; inset: 0; margin: auto;
    width: 18px; height: 18px;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Yumuşak giriş animasyonu ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Yapışkan filtre çubuğu ---- */
.sticky-filter { position: sticky; top: 84px; z-index: 20; }

/* ---- Tablo kaydırma ipucu ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }

/* ---- Yazdırma ---- */
@media print {
    nav, footer, .no-print, [data-menu-panel], [data-search-panel] { display: none !important; }
    body { background: #fff; }
    a[href]::after { content: ''; }
}

/* ---- Erişilebilirlik: klavye odağı ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid #0d631b;
    outline-offset: 2px;
    border-radius: 4px;
}
