/* Clean & Premium Design System for İnulaş */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #e11d48;
    --accent-hover: #be123c;
    --background: #fafafa;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --font: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ─── SITE HEADER ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Drooping logo card in the middle of nav bar */
.logo-card-floating {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.98);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-card-floating:hover {
    transform: translateX(-50%) translateY(4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.logo-card-floating a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    max-height: 70px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.logo-text {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--accent);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo a {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.admin-btn {
    background: var(--accent);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
}

.admin-btn:hover {
    background: var(--accent-hover);
}

/* Navigation Dropdown Menu styling */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    /* Removes bullets */
}

.dropdown-menu li {
    width: 100%;
    list-style: none;
    /* Removes bullets */
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-links li:hover .dropdown-menu {
    display: block;
}

main {
    flex: 1;
    /* padding-top: 1rem; */
    /* Safe padding for floating/drooping logo on all subpages */
}

/* Remove main padding top only on index (homepage) */
.page-index main {
    padding-top: 0;
}

footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Slider / Announcements */
.slider-section {
    position: relative;
    height: 650px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.05) 10%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.1));
}

.slide-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.slide-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.btn-more {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 6px;
}

/* Base Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* Cards & Layout grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Board of Directors Organizational Chart */
.board-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.board-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
}

.member-card {
    position: absolute;
    width: 240px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 1.25rem;
    transform: translate(-50%, -50%);
    cursor: default;
    transition: box-shadow 0.2s;
    user-select: none;
}

.member-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.member-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.85rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.member-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

.member-role {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Admin Sidebar Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .brand {
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.admin-sidebar .brand span {
    color: var(--accent);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-menu a {
    color: #94a3b8;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu a.active {
    background: var(--accent);
    color: white;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.admin-main {
    flex: 1;
    background: #f1f5f9;
    padding: 3rem;
    overflow-y: auto;
}

/* Forms & Tables */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: var(--font);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

/* Select2 Custom Styles to match SearchableSelect from other project */
.select2-container .select2-selection--single {
    height: auto !important;
    min-height: 42px !important;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem !important;
    /* 10px 40px 10px 14px */
    border-radius: 0.5rem !important;
    /* 8px */
    border: 1px solid var(--border) !important;
    font-family: var(--font) !important;
    font-size: 0.9375rem !important;
    background: white !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
}

.select2-container .select2-selection--single:hover {
    border-color: #cbd5e1 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding: 0 !important;
    color: var(--text) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 0.875rem !important;
    /* Adjust arrow position */
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
    border-width: 5px 5px 0 5px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1) !important;
    outline: none !important;
}

.select2-dropdown {
    font-family: var(--font);
    font-size: 0.875rem;
    border-radius: 0.75rem !important;
    /* 12px */
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    margin-top: 4px;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select2-search--dropdown {
    padding: 0.75rem !important;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    outline: none !important;
    font-size: 0.875rem !important;
    color: var(--text) !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--accent) !important;
}

.select2-results__options {
    max-height: 250px !important;
}

.select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    transition: all 0.15s;
    cursor: pointer;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #f1f5f9 !important;
    color: var(--primary) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: rgba(225, 29, 72, 0.05) !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
}

.select2-results__message {
    padding: 1rem !important;
    text-align: center !important;
    color: var(--text-muted) !important;
    font-size: 0.875rem !important;
}

textarea,
textarea.form-control {
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.table th,
.table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
}

/* Map specific styling */
.map-view-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    height: 600px;
}

@media (max-width: 992px) {
    .map-view-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-container {
        height: 400px;
    }
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sidebar-panel {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Toast Messages */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider-toggle {
    background-color: var(--accent);
}

input:checked+.slider-toggle:before {
    transform: translateX(24px);
}

/* Professional File Upload Zone */
.file-upload-zone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(225, 29, 72, 0.02);
}

.file-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.file-upload-zone:hover .file-upload-icon {
    color: var(--accent);
    transform: translateY(-2px);
}

.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.file-upload-text strong {
    color: var(--accent);
}

.file-preview-container {
    margin-top: 1rem;
    display: none;
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.file-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SweetAlert Global Overrides to match theme */
.swal2-popup {
    font-family: var(--font) !important;
    border-radius: var(--radius) !important;
}

.swal2-confirm {
    background-color: var(--accent) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.8rem !important;
}

.swal2-cancel {
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.8rem !important;
}

/* Rich Editor Output Styles in Frontend */
.editor-content p {
    margin-bottom: 1rem;
}

.editor-content ul, 
.editor-content ol {
    margin: 0 0 1.25rem 1.5rem;
    padding-left: 0.5rem;
}

.editor-content ul {
    list-style-type: disc !important;
}

.editor-content ol {
    list-style-type: decimal !important;
}

.editor-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.editor-content h2, 
.editor-content h3, 
.editor-content h4 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.editor-content a {
    color: var(--accent);
    text-decoration: underline;
}

.editor-content a:hover {
    color: var(--accent-hover);
}

/* ─── MAP STYLE SWITCHER ──────────────────────────────────────────── */
.map-style-switcher {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    user-select: none;
    margin-top: 6px;
}

.map-style-switcher .style-switcher-trigger {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: background 0.2s ease, transform 0.15s ease;
    font-size: 14px;
}

.map-style-switcher .style-switcher-trigger:hover {
    background: rgba(225, 29, 72, 0.85);
    transform: scale(1.05);
}

.map-style-switcher .style-switcher-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 100px;
    z-index: 10;
}

.map-style-switcher.open .style-switcher-options {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.map-style-switcher .style-switcher-options button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: rgba(255,255,255,0.75);
    font-family: var(--font, 'Outfit', sans-serif);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.map-style-switcher .style-switcher-options button:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}

.map-style-switcher .style-switcher-options button.active {
    background: rgba(225, 29, 72, 0.85);
    color: #fff;
    border-color: rgba(225, 29, 72, 0.6);
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE – Hamburger Menü & Genel Düzenlemeler
   ═══════════════════════════════════════════════════════════════════ */

/* Hamburger button – sadece mobilde görünür */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 149;
}
.mobile-nav-overlay.open { display: block; }

/* Mobile nav drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--primary);
    z-index: 150;
    flex-direction: column;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 1.5rem 1rem;
    gap: 0.25rem;
}
.mobile-nav-drawer.open {
    display: flex;
    right: 0;
}
.mobile-nav-drawer .mob-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-drawer .mob-logo span {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
}
.mobile-nav-drawer a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: block;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
    background: rgba(255,255,255,0.07);
    color: #fff;
}
.mobile-nav-drawer .mob-section-label {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1rem 0.25rem;
}
.mobile-nav-drawer .mob-sub-link {
    padding-left: 1.75rem;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    /* Header */
    .hamburger { display: flex; }

    .nav-container {
        padding: 0 1rem;
        justify-content: space-between;
        min-height: 60px;
    }

    /* Masaüstü nav linkleri gizle */
    .nav-links { display: none !important; }

    /* Logo ortalanmış floating kartı küçült */
    .logo-card-floating {
        padding: 0.5rem 1rem;
        position: static;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    .logo-card-floating:hover {
        transform: none;
    }
    .header-logo-img {
        max-height: 44px;
        max-width: 130px;
    }

    /* Slider */
    .slider-section { height: 320px; }
    .slide-title { font-size: 1.6rem; }
    .slide-desc { font-size: 0.95rem; margin-bottom: 1.25rem; }

    /* Section titles */
    .section-title { font-size: 1.6rem; margin-bottom: 2rem; }

    /* Container padding */
    .container { padding: 2rem 1rem; }

    /* Cards grid – tekli kolon */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Buttons */
    .btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }

    /* Tablolar – yatay kaydırma */
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { min-width: 480px; }
    .table th, .table td { padding: 0.75rem 1rem; font-size: 0.85rem; }

    /* Footer */
    footer { padding: 2rem 1rem; font-size: 0.9rem; }

    /* Map view wrapper */
    .map-view-wrapper {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 1rem;
    }
    .map-container { height: 320px !important; }
    .sidebar-panel { max-height: 500px; }

    /* Travel cards grid → tek kolon */
    .travel-card-item {
        grid-template-columns: 80px 1fr !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
    }

    /* Pricing table */
    .table th, .table td { padding: 0.75rem; }

    /* index.php CTA bölümü */
    .cta-section h2 { font-size: 1.5rem !important; }
    .cta-section p { font-size: 0.95rem !important; }
}

@media (max-width: 480px) {
    .slide-title { font-size: 1.25rem; }
    .header-logo-img { max-height: 38px; }
    .section-title { font-size: 1.3rem; }
    .slider-section { height: 260px; }
}

/* ─── ADMIN PANEL MOBILE ─────────────────────────────────────────── */

/* Admin hamburger */
.admin-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #94a3b8;
    font-size: 1.4rem;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 301;
    background: var(--primary);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 299;
}
.sidebar-overlay.open { display: block; }

@media (max-width: 900px) {
    .admin-hamburger { display: flex; }

    .admin-layout { display: block; }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -290px;
        height: 100vh;
        z-index: 300;
        transition: left 0.3s ease;
        width: 280px;
    }
    .admin-sidebar.open { left: 0; }

    .admin-main {
        padding: 1.25rem 1rem;
        padding-top: 4rem; /* hamburger butonu için yer */
        min-height: 100vh;
    }

    /* Admin içi tablolar */
    .admin-main .table { min-width: 540px; }
    .admin-main .table th,
    .admin-main .table td { padding: 0.65rem 0.75rem; font-size: 0.8rem; }

    /* Admin iki kolonlu grid'ler → tek kolon */
    .admin-main .grid,
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 380px"],
    [style*="grid-template-columns: 1fr 420px"] {
        grid-template-columns: 1fr !important;
    }

    /* Timetables sol/sağ panel */
    [style*="grid-template-columns: 380px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Button grupları */
    .admin-main [style*="display: flex"][style*="gap"] > .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .admin-main { padding: 0.75rem; padding-top: 4rem; }
    .admin-main h2[style*="font-size: 2rem"] { font-size: 1.4rem !important; }
}


/* ═══════════════════════════════════════════════════════════════════
   MOBIL DÜZELTMELER – Round 2
   ═══════════════════════════════════════════════════════════════════ */

/* ── Admin buton yazılarını mobilde gizle, sadece ikon göster ─────── */
@media (max-width: 900px) {
    /* Burada hiçbir şey yok — aşağıdaki has-icon kuralı yeterli */
}

/* ── index.php CTA card – mobilde yanlara boşluk ─────────────────── */
@media (max-width: 768px) {
    .cta-section {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        border-radius: 12px !important;
        padding: 2rem 1.25rem !important;
    }
    .cta-section h2 {
        font-size: 1.45rem !important;
    }
    .cta-section p {
        font-size: 0.95rem !important;
    }
    .cta-section .btn-more {
        font-size: 0.95rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    /* ── travel_cards – mobilde dikey düzen ────────────────────────── */
    .travel-card-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        padding: 1.5rem !important;
        align-items: flex-start !important;
    }
    .travel-card-item img {
        width: 100% !important;
        height: 160px !important;
        max-width: 100% !important;
        border-radius: 10px !important;
    }
    .travel-card-item > div:first-child {
        /* ikon kutu */
        width: 64px !important;
        height: 64px !important;
    }
    .travel-card-item > div:first-child i {
        font-size: 2rem !important;
    }
    .travel-card-item h3 {
        font-size: 1.2rem !important;
    }

    /* ── pricing – tablo yerine kart görünümü ───────────────────────── */
    .pricing-table-wrapper table,
    .pricing-table-wrapper thead,
    .pricing-table-wrapper tbody,
    .pricing-table-wrapper th,
    .pricing-table-wrapper td,
    .pricing-table-wrapper tr {
        display: block !important;
    }
    .pricing-table-wrapper thead tr {
        display: none !important;
    }
    .pricing-table-wrapper tbody tr {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        padding: 0.9rem 1rem !important;
        border-bottom: 1px solid var(--border) !important;
        background: white;
    }
    .pricing-table-wrapper tbody tr:last-child {
        border-bottom: none !important;
    }
    .pricing-table-wrapper td {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    .pricing-table-wrapper td:first-child {
        flex: 1;
    }
    .pricing-table-wrapper td:last-child {
        flex-shrink: 0;
        text-align: right !important;
    }

    /* ── dealers – card padding dengesi ────────────────────────────── */
    .dealer-item-card {
        margin: 0 !important;
    }
    #dealers-grid {
        padding: 0 !important;
    }
    /* Dış kart padding mobilde küçüt */
    .dealers-outer-card {
        padding: 1.25rem !important;
    }
}


/* ── Admin tablo içi işlem butonları – sadece ikon göster ─────────── */
@media (max-width: 900px) {
    /* has-icon kuralı tablo içini de kapsar, burada sadece padding ayarı */
    .admin-main .table td .btn,
    .admin-main .table td a.btn {
        padding: 0.45rem 0.6rem !important;
        min-width: 34px;
        justify-content: center;
    }
    /* pricing card padding */
    .pricing-card {
        padding: 1rem !important;
    }
}


/* ── travel_cards resim/ikon ────────────────────────────────────────── */
.travel-card-img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.travel-card-icon {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .travel-card-img {
        width: 100% !important;
        height: 180px !important;
        border-radius: 10px !important;
    }
    .travel-card-icon {
        width: 64px !important;
        height: 64px !important;
    }
    .travel-card-icon i {
        font-size: 1.8rem !important;
    }
}


/* ── index.php CTA – mobilde kenar boşlukları ───────────────────────── */
@media (max-width: 768px) {
    /* .container class'ı max-width: 1200px ve margin: 0 auto veriyor.
       Dar ekranda otomatik tam genişlik olur ama padding 0 olabilir.
       CTA section'ı için explicit margin garantisi: */
    section.cta-section {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        width: auto !important;
        max-width: calc(100% - 2rem) !important;
        padding: 2rem 1.25rem !important;
        border-radius: 12px !important;
    }
    /* pricing card mobilde padding küçült */
    .pricing-card {
        padding: 0.75rem !important;
    }
}


/* ── Admin buton yazıları mobilde gizle ─────────────────────────────── */
@media (max-width: 900px) {
    /* Sadece icon'u olan butonlarda yazıyı gizle */
    .admin-main .btn.has-icon .btn-text {
        display: none;
    }
    .admin-main .btn.has-icon {
        gap: 0 !important;
    }
    .admin-main .btn.has-icon i {
        margin: 0 !important;
    }
}


/* ── admin/routes.php?action=lines – mobilde alt alta ──────────────── */
@media (max-width: 900px) {
    .lines-layout {
        grid-template-columns: 1fr !important;
    }
}


/* ── Kayıtlı Hatlar tablosu – mobilde taşma önleme ─────────────────── */
@media (max-width: 900px) {
    .lines-layout .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .lines-layout .table {
        min-width: 0;
        width: 100%;
    }
    /* Hat adı kolonu wrap etsin */
    .lines-layout .table td:nth-child(3),
    .lines-layout .table th:nth-child(3) {
        white-space: normal;
        word-break: break-word;
        min-width: 80px;
    }
    /* Renk kolonu küçük kalsın */
    .lines-layout .table td:nth-child(1),
    .lines-layout .table th:nth-child(1) {
        width: 36px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    /* İşlemler kolonu sıkışmasın */
    .lines-layout .table td:last-child {
        white-space: nowrap;
        width: auto;
    }
}


/* ── admin/timetables.php – mobilde alt alta ────────────────────────── */
@media (max-width: 900px) {
    .timetables-layout {
        grid-template-columns: 1fr !important;
    }
    /* Dinamik tablo – kalkış noktası wrap etsin, taşmasın */
    #timetables_container table {
        width: 100% !important;
        min-width: 0 !important;
    }
    #timetables_container td:first-child {
        white-space: normal;
        word-break: break-word;
    }
}


/* ── SweetAlert içindeki Select2 widget'ını gizle ───────────────────── */
.swal2-popup .select2-container,
.swal2-container .select2-container {
    display: none !important;
}
