/* =========================================================
   GENEL SAYFA
========================================================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8fafc;
}

.detail-page {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}


/* =========================================================
   ÜST BİLGİ ALANI
========================================================= */
.top-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.top-box h1 {
    margin: 0 0 10px;
    font-size: 30px;
}

.type-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
}

.business-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.info-card strong {
    display: block;
    margin-bottom: 8px;
}


/* =========================================================
   BAŞLIKLAR
========================================================= */
.section-title {
    margin: 30px 0 16px;
    font-size: 24px;
    font-weight: 700;
}


/* =========================================================
   SAHA KARTLARI
========================================================= */
.field-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.field-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.field-card h3 {
    margin-top: 0;
}

.field-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}


/* =========================================================
   GERİ DÖN BUTONU
========================================================= */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}


/* =========================================================
   TAKVİM MODAL
========================================================= */
.calendar-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.calendar-overlay.active {
    display: flex;
}

.calendar-modal {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
}

.calendar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.close-calendar-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #eef2f7;
    font-size: 18px;
    cursor: pointer;
}

.calendar-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 22px;
    border-bottom: 1px solid #e5e7eb;
}


/* =========================================================
   TAKVİM LEJAND
========================================================= */
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
}

.legend-box.bos {
    background: #dcfce7;
}

.legend-box.dolu {
    background: #fee2e2;
}


/* =========================================================
   TAKVİM ALANI
========================================================= */
.field-calendar {
    padding: 20px;
}

.calendar-grid {
    display: grid;
    gap: 16px;
}

.day-column {
    min-width: 150px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.day-header {
    background: #e2e8f0;
    padding: 12px;
    text-align: center;
}

.day-number {
    font-size: 24px;
    font-weight: 700;
}

.day-month,
.day-name {
    font-size: 13px;
    color: #475569;
}

.day-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}


/* =========================================================
   SAAT KUTULARI
========================================================= */
.time-slot {
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.time-slot.dolu {
    background: #fee2e2;
    color: #991b1b;
    cursor: not-allowed;
}

.time-slot.iptal {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #cbd5e1;
}

.no-slot {
    padding: 10px 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}


/* =========================================================
   REZERVASYON BİLGİ / BUTONLAR
========================================================= */
.res-info {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.save-btn,
.cancel-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.save-btn {
    background: #16a34a;
    color: #fff;
}

.cancel-btn {
    background: #e2e8f0;
    color: #0f172a;
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 700px) {
    .business-info {
        grid-template-columns: 1fr;
    }
}