/* =========================================================
   ROOT DEĞİŞKENLERİ
========================================================= */
:root {
    --bg-main: #f4f7fb;
    --bg-soft: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.92);

    --text-main: #162033;
    --text-soft: #6b7280;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;

    --success: #16a34a;
    --warning: #f59e0b;

    --border: #e5e7eb;

    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 22px 55px rgba(37, 99, 235, 0.16);

    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}


/* =========================================================
   GENEL SAYFA
========================================================= */
body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 25%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
    color: var(--text-main);
    min-height: 100vh;
}

.page-wrapper {
    width: min(1280px, calc(100% - 32px));
    margin: 10px auto 50px;
}


/* =========================================================
   GERİ DÖN LİNKİ
========================================================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 18px;

    text-decoration: none;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(37, 99, 235, 0.10);
    border-radius: 999px;

    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.14);
    background: #fff;
}


/* =========================================================
   BÖLÜM BAŞLIKLARI
========================================================= */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-left: 10px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.section-header p {
    margin: 10px 0;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 500;
}


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

.field-card {
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: 0.28s ease;
}

.field-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}


/* =========================================================
   SAHA GÖRSELİ
========================================================= */
.field-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.field-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.field-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;

    color: #475569;
    font-weight: 700;

    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(14, 165, 233, 0.10)),
        #eef4ff;
}

.field-image-placeholder i {
    font-size: 40px;
    color: #2563eb;
}

.field-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;

    background: rgba(15, 23, 42, 0.72);
    color: #fff;

    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;

    backdrop-filter: blur(8px);
}


/* =========================================================
   SAHA İÇERİĞİ
========================================================= */
.field-content {
    padding: 22px;
}

.field-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.field-title-row h3 {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-main);
}

.price-badge {
    white-space: nowrap;
    padding: 10px 14px;

    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #dbeafe;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 800;
}

.field-detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.field-detail-item {
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #e8eef8;
    border-radius: 16px;
}

.field-detail-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.field-detail-item strong {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    word-break: break-word;
}

.field-description {
    min-height: 74px;
    margin-bottom: 18px;
    padding: 14px 16px;

    background: #fcfdff;
    border: 1px solid #edf2f7;
    border-radius: 16px;

    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.field-btn {
    width: 100%;
    padding: 15px 18px;

    border: none;
    border-radius: 16px;
    cursor: pointer;

    font-size: 15px;
    font-weight: 800;
    color: #fff;

    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    transition: 0.22s ease;
}

.field-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.30);
}


/* =========================================================
   BOŞ DURUM
========================================================= */
.empty-state {
    padding: 50px 24px;
    text-align: center;
    color: var(--text-soft);

    background: rgba(255, 255, 255, 0.92);
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 44px;
    color: var(--primary);
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
}


/* =========================================================
   REZERVASYON İÇERİĞİ
========================================================= */
#reservationContent {
    padding: 20px !important;
    color: var(--text-main);
}

#reservationContent input,
#reservationContent select,
#reservationContent textarea {
    width: 100%;
    padding: 13px 14px;

    border: 1px solid #dbe3f3;
    border-radius: 14px;
    outline: none;

    background: #fff;
    color: var(--text-main);
    font-size: 15px;

    transition: 0.2s ease;
}

#reservationContent input:focus,
#reservationContent select:focus,
#reservationContent textarea:focus {
    border-color: rgba(37, 99, 235, 0.40);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

#reservationContent button {
    padding: 13px 18px;

    border: none;
    border-radius: 14px;
    cursor: pointer;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s ease;
}

#reservationContent button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   SLIDER
========================================================= */
.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.field-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.field-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

.field-slide {
    min-width: 100%;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
}

.field-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;
    cursor: pointer;

    background: rgba(15, 23, 42, 0.55);
    color: #fff;

    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.slider-nav:hover {
    background: rgba(15, 23, 42, 0.82);
    transform: translateY(-50%) scale(1.06);
}

.slider-nav.prev {
    left: 12px;
}

.slider-nav.next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;
    border-radius: 999px;

    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);

    transform: translateX(-50%);
}

.slider-dot {
    width: 10px;
    height: 10px;

    border: none;
    border-radius: 50%;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.55);
    transition: 0.2s ease;
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.15);
}


/* =========================================================
   KONUM ALANI
========================================================= */
.location-section {
    margin: 28px 0 40px;
}

.location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.location-header h2 {
    margin-bottom: 6px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.location-header p {
    color: var(--text-soft);
    font-size: 15px;
}

.map-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;

    text-decoration: none;
    color: #fff;
    font-weight: 700;

    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
    transition: 0.25s ease;
}

.map-route-btn:hover {
    transform: translateY(-2px);
}

.location-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;

    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 14px;

    background: #e8f1ff;
    color: var(--primary);

    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.location-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.location-info p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft);
}

.location-map {
    min-height: 360px;
    background: #eef2f7;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.location-map-empty {
    width: 100%;
    height: 100%;
    min-height: 360px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;

    color: var(--text-soft);
    font-weight: 600;
}

.location-map-empty i {
    font-size: 42px;
    color: var(--primary);
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
    .page-wrapper {
        width: min(100% - 24px, 100%);
        margin-top: 10px;
    }

    .owner-section {
        padding: 24px;
    }

    .owner-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .field-detail-list {
        grid-template-columns: 1fr;
    }

    .location-card {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        margin-top: 10px;
    }

    .back-link {
        width: 100%;
        justify-content: center;
    }

    .owner-main {
        align-items: flex-start;
    }

    .owner-avatar {
        width: 72px;
        height: 72px;
        min-width: 72px;
        font-size: 28px;
    }

    .owner-text h1 {
        font-size: 28px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .field-image {
        height: 200px;
    }

    .calendar-modal {
        border-radius: 22px;
    }

    .calendar-modal-header {
        padding: 20px 18px 16px;
    }

    .calendar-info-bar {
        padding: 14px 18px 0;
    }

    .field-calendar {
        padding: 18px;
    }
}