/* =====================================================================
   OTELİNGO - Modern stil
   ===================================================================== */

:root {
  --bg:        #0b1220;
  --bg-2:      #0f172a;
  --surface:   #ffffff;
  --ink:       #0f172a;
  --ink-soft:  #475569;
  --muted:     #94a3b8;
  --primary:   #2563eb;
  --primary-2: #7c3aed;
  --accent:    #06b6d4;
  --gold:      #f59e0b;
  --success:   #10b981;
  --danger:    #ef4444;
  --warn:      #f59e0b;
  --line:      #e2e8f0;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 50px -18px rgba(2, 6, 23, .25);
  --shadow-lg: 0 40px 80px -28px rgba(2, 6, 23, .45);
  --ring:      0 0 0 4px rgba(38, 99, 235, .15);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* ---- Navbar ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; color: var(--ink); }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  box-shadow: 0 8px 22px -8px var(--primary-2);
}

/* ---- Sade karşılama (auth hero) ---- */
.auth-hero {
  min-height: calc(100vh - 70px);
  display: grid; place-items: center; text-align: center;
  background:
   #15101a;
  color: #fff; padding: 60px 20px;
}
.auth-hero-inner { max-width: 620px; }
.auth-hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 800; color: #7dd3fc; margin-bottom: 14px;
}
.auth-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; margin-bottom: 16px; }
.auth-hero p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 30px; }
.auth-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.auth-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.auth-hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.auth-hero .muted { color: #94a3b8; }
.auth-hero .muted a { color: #7dd3fc; }
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; transition: .18s; text-decoration: none;
  background: var(--ink); color: #fff;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f8fafc; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: 120px 0 140px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,58,237,.55), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(6,182,212,.45), transparent 55%),
    linear-gradient(160deg, #0b1220, #0f172a 60%, #1e293b);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1.2' fill='%23ffffff' opacity='.15'/%3E%3C/svg%3E");
  opacity: .5;
}
.hero-content { position: relative; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; }
.hero p { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-search {
  position: relative; z-index: 2; margin-top: -60px;
  background: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-lg); display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
.hero-search label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.hero-search input, .hero-search select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: #fff;
}
.hero-search input:focus, .hero-search select:focus { outline: none; box-shadow: var(--ring); border-color: var(--primary); }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 800;
  color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--ink-soft); }

/* ---- Room grid ---- */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.room-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f1f5f9; }
.room-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.room-card:hover .thumb img { transform: scale(1.06); }
.room-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(15,23,42,.85); color: #fff; padding: 6px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; backdrop-filter: blur(6px);
}
.room-card .price-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font-weight: 800; box-shadow: var(--shadow); font-size: .9rem;
}
.room-card .price-badge small { font-weight: 500; color: var(--muted); }
.room-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-card h3 { font-size: 1.15rem; }
.room-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-soft); font-size: .85rem; }
.room-meta span { display: inline-flex; align-items: center; gap: 5px; background: #f1f5f9; padding: 5px 10px; border-radius: 999px; }
.room-card .amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.room-card .amenities .chip { font-size: .75rem; color: var(--ink-soft); background: #f8fafc; border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; }
.room-card .actions { margin-top: auto; display: flex; gap: 10px; padding-top: 8px; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  padding: 28px 22px; border-radius: var(--radius); background: #f8fafc; border: 1px solid var(--line);
  transition: .2s;
}
.feature:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.feature .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 1.4rem; margin-bottom: 14px;
}
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .92rem; }

/* ---- CTA band ---- */
.cta-band {
  margin: 40px 0 80px; padding: 60px; border-radius: 28px; color: #fff; text-align: center;
  background: radial-gradient(800px 400px at 70% 0%, rgba(124,58,237,.55), transparent),
              linear-gradient(135deg, #2563eb, #1e293b);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 540px; margin: 0 auto 26px; }

/* ---- Footer ---- */
.footer { background: #15101A; color: #15101A; padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1e293b; text-align: center; font-size: .85rem; color: #94a3b8; }

/* ===================================================================== */
/* Auth pages                                                            */
/* ===================================================================== */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-aside {
  position: relative; color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(124,58,237,.6), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(6,182,212,.5), transparent 55%),
    linear-gradient(160deg, #0b1220, #0f172a);
}
.auth-aside h1 { font-size: 2.6rem; }
.auth-aside p { color: #cbd5e1; max-width: 420px; font-size: 1.05rem; }
.auth-aside ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-aside li { display: flex; align-items: center; gap: 12px; color: #e2e8f0; }
.auth-aside .dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.auth-main { display: grid; place-items: center; padding: 40px; background: #f8fafc; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { font-size: 1.8rem; }
.auth-card .sub { color: var(--ink-soft); margin-bottom: 26px; }
.tabs { display: flex; background: #f1f5f9; padding: 6px; border-radius: 999px; margin-bottom: 24px; }
.tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--ink-soft); }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tabs a:hover { text-decoration: none; }

/* ---- Form ---- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .98rem; font-family: inherit; background: #fff; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
}
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 14px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; font-weight: 500; }
.checks input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---- Alerts ---- */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 16px; }
.alert ul { margin: 4px 0 0; padding-left: 20px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e3a8a; }

/* ===================================================================== */
/* Dashboard layout                                                      */
/* ===================================================================== */
.dash {
  display: grid; grid-template-columns: 250px 1fr; min-height: 100vh;
  background: #f1f5f9;
}
.dash-sidebar {
  background: var(--bg-2); color: #cbd5e1; padding: 26px 18px; position: sticky; top: 0; height: 100vh;
}
.dash-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 1.2rem; margin-bottom: 30px; }
.dash-brand .logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  color: #cbd5e1; font-weight: 600; font-size: .95rem;
}
.dash-nav a:hover { background: #1e293b; color: #fff; text-decoration: none; }
.dash-nav a.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.dash-nav .sep { margin: 14px 0 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #64748b; padding-left: 14px; }

.dash-main { padding: 30px; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.dash-topbar h1 { font-size: 1.7rem; }
.dash-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* ---- Stat cards ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat {
  background: #fff; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat .label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat .value { font-size: 2rem; font-weight: 900; margin-top: 6px; }
.stat .delta { font-size: .8rem; color: var(--success); margin-top: 4px; }
.stat .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.ico.blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.ico.purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.ico.green { background: linear-gradient(135deg, #10b981, #34d399); }
.ico.gold { background: linear-gradient(135deg, #f59e0b, #f97316); }

/* ---- Card / panel ---- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.15rem; margin: 0; }
.panel-body { padding: 24px; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.data tr:hover td { background: #f8fafc; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.tag.green { background: #d1fae5; color: #065f46; }
.tag.red { background: #fee2e2; color: #991b1b; }
.tag.blue { background: #dbeafe; color: #1e3a8a; }
.tag.gray { background: #f1f5f9; color: #475569; }
.tag.gold { background: #fef3c7; color: #92400e; }

.row-actions { display: flex; gap: 8px; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ---- Room detail ---- */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.gallery { display: grid; gap: 12px; }
.gallery .main { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: #f1f5f9; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery .thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.gallery .thumbs img.active { border-color: var(--primary); }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-list { display: grid; gap: 14px; }
.info-list .row { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.info-list .row span:first-child { color: var(--muted); }
.info-list .row span:last-child { font-weight: 600; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.feature-list .chip { background: #f1f5f9; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .82rem; color: var(--ink-soft); }
.section-title { font-size: 1rem; font-weight: 800; margin: 22px 0 10px; color: var(--ink); }

/* ---- Calendar / Availability ---- */
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; margin-bottom: 16px; }
.legend .item { display: inline-flex; align-items: center; gap: 8px; }
.legend .swatch { width: 14px; height: 14px; border-radius: 4px; }
.legend .free { background: #d1fae5; }
.legend .booked { background: #fecaca; }
.legend .maintenance { background: #fef3c7; }
.legend .today { background: #bfdbfe; border: 2px solid #2563eb; }

.cal-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 12px; }
.cal-month-title { font-size: 1.3rem; font-weight: 800; }
.calendar {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; width: 100%;
}
.calendar .dow { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 700; padding: 6px 0; text-transform: uppercase; overflow: hidden; }
.cal-day {
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: .85rem;
  background: #fff; position: relative; cursor: pointer; transition: .15s; min-height: 64px;
  overflow: hidden;
}
.cal-day:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cal-day .num { font-weight: 700; }
.cal-day.out { background: #f8fafc; color: var(--muted); cursor: default; }
.cal-day.out:hover { transform: none; box-shadow: none; }
.cal-day.today { border-color: var(--primary); }
.cal-day.free { background: #ecfdf5; }
.cal-day.booked { background: #fee2e2; cursor: default; }
.cal-day.booked:hover { transform: none; }
.cal-day.maintenance { background: #fef3c7; }
.cal-day .lbl { position: absolute; bottom: 5px; left: 5px; right: 5px; font-size: .62rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day.booked .lbl { color: #b91c1c; }
.cal-day.maintenance .lbl { color: #b45309; }
.cal-day.free .lbl { color: #047857; }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  display: none; place-items: center; z-index: 100; padding: 20px;
}
.modal-backdrop.show { display: grid; }
.modal {
  width: min(560px, 100%); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow: auto;
}
.modal-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 26px; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }

/* ---- Toast ---- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { background: #0f172a; color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: slideIn .25s; }
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Gallery uploader ---- */
.uploader { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; }
.uploader:hover { border-color: var(--primary); background: #f8fafc; color: var(--primary); }
.uploader.dragover { border-color: var(--primary); background: #eff6ff; }
.thumb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.thumb-grid .thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.thumb-grid .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-grid .thumb .rm { position: absolute; top: 4px; right: 4px; background: rgba(15,23,42,.8); color: #fff; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }

/* ---- Helpers ---- */
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap { gap: 12px; } .gap-sm { gap: 8px; } .wrap { flex-wrap: wrap; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-lg { margin-top: 30px; }
.muted { color: var(--muted); } .text-center { text-align: center; }
.small { font-size: .85rem; }

/* ===================================================================== */
/* Responsive — tam mobil uyum                                            */
/* ===================================================================== */

/* ---- Tablet geniş (<= 1200px) ---- */
@media (max-width: 1200px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Tablet (<= 1024px) ---- */
@media (max-width: 1024px) {
  .room-form { grid-template-columns: 1fr !important; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: sticky; top: 0; z-index: 40; height: auto;
    border-bottom: 1px solid #1e293b;
  }
  .dash-nav { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .dash-nav a { padding: 10px 12px; font-size: .85rem; }
  .dash-nav .sep { display: none; }
}

/* ---- Mobil büyük (<= 768px) ---- */
@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-hero { min-height: calc(100vh - 64px); padding: 40px 18px; }
  .auth-hero h1 { font-size: 2rem; }
  .auth-hero p { font-size: 1rem; }
  .auth-hero-cta { flex-direction: column; }
  .auth-hero-cta .btn { width: 100%; }
  .auth-main { padding: 24px 16px; }

  .nav { position: sticky; }
  .nav-inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .brand { font-size: 1.1rem; }
  .nav-links { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
  .nav-links a { font-size: .9rem; }
  .nav-links .btn-sm { padding: 7px 12px; font-size: .82rem; }

  .room-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-search { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .section-head { margin-bottom: 30px; }
  .cta-band { padding: 36px 22px; margin: 30px 0 50px; }

  /* Oda formu (admin): tek sütun */
  .room-form { grid-template-columns: 1fr !important; gap: 18px; }

  /* Galeri: küçük thumb'lar */
  .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }

  /* Dashboard */
  .dash-main { padding: 18px 14px; }
  .dash-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-topbar h1 { font-size: 1.4rem; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat .value { font-size: 1.6rem; }

  /* Tablolar: yatay kaydırma zaten var (.table-wrap) */
  .panel-head { flex-wrap: wrap; gap: 10px; }
  .panel-body { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 4px; }

  /* ---- Takvim (en kritik kısım) ---- */
  .cal-controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .cal-month-title { font-size: 1.1rem; text-align: center; }
  .cal-controls .flex { justify-content: center; flex-wrap: wrap; }
  .legend { justify-content: center; gap: 12px; }
  .calendar { gap: 5px; }
  .calendar .dow { font-size: .6rem; padding: 4px 0; }
  .cal-day { min-height: 52px; padding: 4px; border-radius: 7px; font-size: .72rem; }
  .cal-day .num { font-size: .72rem; }
  .cal-day .lbl { font-size: .5rem; bottom: 2px; left: 2px; right: 2px; }
  .cal-day.free .lbl { display: none; } /* küçük ekranda "Boş" etiketi kapatılır, yeşil renk yeter */

  /* Modal: tam genişlik */
  .modal { width: 100%; max-width: 100%; border-radius: 0 0 16px 16px; }
  .modal-backdrop { padding: 0; align-items: flex-start; }
  .modal-body, .modal-head, .modal-foot { padding: 16px; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }

  /* Ana sayfa filtre formu (5 kolon) tek sütun */
  .room-filter { grid-template-columns: 1fr !important; }

  /* Upload thumb grid */
  .thumb-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Küçük telefon (<= 480px) ---- */
@media (max-width: 480px) {
  .wrap { width: 94vw; }
  .room-card .body { padding: 16px; }
  .room-card h3 { font-size: 1.05rem; }
  .room-meta { gap: 6px; }
  .room-meta span { font-size: .8rem; padding: 4px 8px; }
  .room-card .actions { flex-direction: column; }
  .room-card .actions .btn { width: 100%; }
  .gallery .thumbs { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .info-list .row { font-size: .85rem; }
  .price-badge { font-size: .8rem; padding: 6px 10px; }
  .badge { font-size: .68rem; padding: 5px 9px; }
  .dash-nav { grid-template-columns: repeat(2, 1fr); }
  .dash-nav a { padding: 9px 10px; font-size: .82rem; }
  .hero-search { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-day { min-height: 46px; }
  .cal-day .num { font-size: .68rem; }
}