/* ==========================================================================
   KAYSERİ • KIRŞEHİR • NEVŞEHİR YURT REHBERİ - STYLESHEET
   Left-Aligned Mobile Header & Large Prominent Desktop Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-rgb: 37, 99, 235;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;

  --secondary: #0f172a;
  --secondary-light: #1e293b;

  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;

  --badge-erkek-bg: #eff6ff;
  --badge-erkek-text: #2563eb;
  --badge-erkek-border: #bfdbfe;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-focus: #93c5fd;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 25px 45px -12px rgba(37, 99, 235, 0.22);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* FLOATING ADMIN QUICK ACCESS BUTTON (BOTTOM-LEFT) */
.floating-admin-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 999;
  background: var(--secondary);
  color: white;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-bounce);
}

.floating-admin-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: #1e293b;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.45);
}

.floating-admin-btn i {
  color: var(--accent-gold);
}

/* ==========================================================================
   NAVIGATION BAR (LUXURY BRAND TYPOGRAPHY)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: white;
  padding: 2px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.logo-cities {
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-main {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.mobile-menu-btn {
  display: none !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px.5;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION (PREMIUM MODERN DESKTOP HERO TITLE)
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.8rem 0 5.8rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 100%),
              url('assets/hero3.png') center/cover no-repeat;
  color: var(--text-white);
  overflow: hidden;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.38) 0%, rgba(37, 99, 235, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: #bfdbfe;
  margin-bottom: 1.4rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* PREMIUM MODERN DESKTOP HERO TITLE */
.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  white-space: normal;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 4px 15px rgba(37, 99, 235, 0.35));
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* HERO SEARCH / QUICK FILTER BAR */
.search-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field i {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition-fast);
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-search {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  min-height: 46px;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   FILTER TABS & STATS BAR
   ========================================================================== */
.catalog-section {
  padding: 3.5rem 0 5rem;
}

.filter-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.city-pills-wrapper {
  width: auto;
  max-width: 100%;
}

.city-pills {
  display: flex;
  background: #e2e8f0;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  gap: 0.25rem;
}

.pill-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.pill-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.pill-btn:hover:not(.active) {
  color: var(--text-main);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.results-count span {
  color: var(--primary);
  font-weight: 800;
}

/* ==========================================================================
   DORMITORY CARDS GRID
   ========================================================================== */
.dorms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.dorm-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  position: relative;
}

.dorm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.3);
}

.card-image-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dorm-card:hover .card-image {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

.card-badge.erkek {
  background: var(--badge-erkek-bg);
  color: var(--badge-erkek-text);
  border: 1px solid var(--badge-erkek-border);
}

.card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-university {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.card-location {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.card-location i {
  color: var(--accent-gold);
  margin-top: 0.2rem;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.feature-pill {
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
}

.card-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-color);
}

.btn-card-detail {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-focus);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
}

.btn-card-detail:hover {
  background: var(--primary);
  color: white;
}

.btn-card-web {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
}

.btn-card-web:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}

.empty-state i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   MODAL WINDOWS (Dorm Detail & Admin Panel)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: white;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.1rem 1.5rem;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
}

.btn-close-modal {
  background: var(--bg-surface);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  background: #e2e8f0;
  color: var(--secondary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Detail Modal Specifics */
.detail-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.detail-main-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.detail-quick-info {
  background: var(--bg-surface);
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.info-row i {
  width: 26px;
  height: 26px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.modal-action-btns {
  display: flex;
  gap: 0.65rem;
  margin-top: auto;
}

.btn-call-dorm {
  flex: 1;
  background: #10b981;
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
}

.btn-call-dorm:hover {
  background: #059669;
}

.btn-visit-site {
  flex: 1;
  background: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
}

.modal-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 1.25rem 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.map-container {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 0.65rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.admin-stat-card .stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.admin-stat-card .stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.admin-tab-btn {
  padding: 0.65rem 1.1rem;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.admin-tab-btn.active {
  color: var(--primary);
}

.admin-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.admin-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--secondary);
}

.dorm-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.btn-delete-dorm {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-delete-dorm:hover {
  background: #e11d48;
  color: white;
}

.btn-edit-dorm {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-right: 0.35rem;
}

.btn-edit-dorm:hover {
  background: #2563eb;
  color: white;
}

/* Form Controls for Add Dorm */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
}

.form-control {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.file-upload-input {
  padding: 0.65rem 0.85rem;
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  cursor: pointer;
  font-size: 0.85rem;
  width: 100%;
  color: var(--secondary);
}

.file-upload-input::file-selector-button {
  background: var(--primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-right: 0.65rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-submit-dorm {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transition: var(--transition-bounce);
  min-height: 48px;
}

.btn-submit-dorm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   ABOUT & CONTACT SECTION / FOOTER
   ========================================================================== */
.footer-section {
  background: var(--secondary);
  color: white;
  padding: 3.5rem 0 1.75rem;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-form input, .contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.88rem;
  outline: none;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form button {
  background: var(--accent-gold);
  color: var(--secondary);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
}

.contact-form button:hover {
  background: var(--accent-gold-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
}

/* TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toast {
  background: var(--secondary);
  color: white;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid var(--primary);
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #e11d48;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINTS (LEFT ALIGNED MOBILE HEADER, ONLY SITE TITLE)
   ========================================================================== */

@media (max-width: 992px) {
  .hero {
    padding: 3.8rem 0 4.8rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .search-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  /* Prevent iOS Safari input auto-zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Compact Header containing ONLY the site logo/title on mobile (LEFT ALIGNED) */
  .nav-wrapper {
    height: 64px;
    padding: 0;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  /* Completely hide nav menu links on mobile */
  .nav-menu {
    display: none !important;
  }

  .logo {
    gap: 0.65rem;
    justify-content: flex-start;
    margin: 0;
    max-width: 100%;
    text-align: left;
  }

  .logo-img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .logo-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .logo-cities {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .logo-main {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .floating-admin-btn {
    bottom: 0.85rem;
    left: 0.85rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
  }

  /* ENLARGED HERO TITLE ON MOBILE */
  .hero {
    padding: 2.5rem 0 3.5rem;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.85rem;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
  }

  .search-card {
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  /* Touch Swipeable City Pills */
  .filter-bar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .city-pills-wrapper {
    width: 100%;
  }

  .city-pills {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0.3rem;
    justify-content: flex-start;
  }

  .city-pills::-webkit-scrollbar {
    display: none;
  }

  .pill-btn {
    scroll-snap-align: start;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  /* Single Column Mobile Dorm Grid */
  .dorms-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .card-image-wrap {
    height: 180px;
  }

  .card-body {
    padding: 1.1rem;
  }

  /* Mobile Bottom Sheet Modal Optimization */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .modal-overlay.active .modal-container {
    transform: translateY(0);
  }

  .modal-header {
    padding: 0.85rem 1.1rem;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .modal-body {
    padding: 1.1rem;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .toast-container {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .toast {
    width: 100%;
    font-size: 0.82rem;
  }
}
