/* ==========================================================================
   Erdemirtaş Pansiyon - Ana Stylesheet
   Logo renkleri: turuncu güneş, mavi dalga, yeşil nokta + tatil tonları
   ========================================================================== */

:root {
  /* Logo & marka renkleri */
  --orange: #f29422;        /* logo güneş */
  --orange-soft: #ffb557;
  --blue: #2c89c9;          /* logo dalga */
  --blue-deep: #1f6ba0;
  --blue-soft: #e6f1fa;
  --green: #2fa84f;         /* logo nokta */
  --green-soft: #e8f6ec;
  --sand: #f7f1e6;          /* sıcak kum tonu */
  --cream: #fffaf2;
  --ink: #1f2933;
  --ink-soft: #4a5560;
  --muted: #8a939c;
  --line: #ece4d6;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(31, 41, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(31, 41, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(31, 41, 51, 0.14);

  /* Boxed / oval tasarım */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  /* Layout */
  --max-w: 1200px;
  --gutter: 24px;

  /* Status renkleri - takvim */
  --status-empty: #2fa84f;     /* yeşil - boş */
  --status-empty-bg: #e8f6ec;
  --status-reserved: #f3c14a;  /* sarı - rezerve */
  --status-reserved-bg: #fdf3d6;
  --status-full: #d94c4c;      /* kırmızı - dolu */
  --status-full-bg: #fbe5e5;
}

/* Force light mode — overrides Samsung Browser / any forced-dark rendering */
@media (prefers-color-scheme: dark) {
  :root {
    --orange: #f29422;
    --orange-soft: #ffb557;
    --blue: #2c89c9;
    --blue-deep: #1f6ba0;
    --blue-soft: #e6f1fa;
    --green: #2fa84f;
    --green-soft: #e8f6ec;
    --sand: #f7f1e6;
    --cream: #fffaf2;
    --ink: #1f2933;
    --ink-soft: #4a5560;
    --muted: #8a939c;
    --line: #ece4d6;
    --white: #ffffff;
    --status-empty: #2fa84f;
    --status-empty-bg: #e8f6ec;
    --status-reserved: #f3c14a;
    --status-reserved-bg: #fdf3d6;
    --status-full: #d94c4c;
    --status-full-bg: #fbe5e5;
  }
  html, body { background-color: #fffaf2 !important; color: #1f2933 !important; }
  .calendar-day.status-empty    { background-color: #e8f6ec !important; color: #2fa84f !important; }
  .calendar-day.status-reserved { background-color: #fdf3d6 !important; color: #b88a1a !important; }
  .calendar-day.status-full     { background-color: #fbe5e5 !important; color: #d94c4c !important; }
  .dot.empty    { background-color: #e8f6ec !important; border-color: #2fa84f !important; }
  .dot.reserved { background-color: #fdf3d6 !important; border-color: #f3c14a !important; }
  .dot.full     { background-color: #fbe5e5 !important; border-color: #d94c4c !important; }
}

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: only light; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-soft); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============================ NAVBAR ============================ */
.navbar {
  position: sticky; top: 16px; z-index: 50;
  margin: 16px var(--gutter) 0;
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 18px 10px 22px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--sand); color: var(--ink); }
.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 10px 18px !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-soft) !important; }
.nav-toggle { display: none; font-size: 1.4rem; padding: 6px 10px; border-radius: var(--radius-pill); }

/* ============================ HERO ============================ */
.hero {
  margin: 24px 100px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 560px;
  display: flex; align-items: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  background: #1a3a4a;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  transition: background .2s; padding: 0;
}
.hero-dot.active, .hero-dot:hover { background: #fff; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter) 52px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 22px;
}
.hero h1 { color: var(--white); max-width: 640px; margin-bottom: 14px; font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
.hero p { color: rgba(255,255,255,.92); font-size: 1rem; max-width: 500px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-soft); }
.btn-secondary { background: var(--white); color: var(--ink); }
.btn-secondary:hover { background: var(--sand); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1eb653; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-ghost { background: var(--sand); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }

/* ============================ ABOUT ============================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; }
.about-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-soft); color: var(--blue-deep);
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 500;
}
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.orange { background: #fff1dd; color: var(--orange); }

/* ============================ ROOMS ============================ */
.rooms-section { background: var(--sand); }
.rooms-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 26px; max-width: 986px; margin-left: auto; margin-right: auto;
}
.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.room-card-img {
  aspect-ratio: 16/10; overflow: hidden;
  position: relative;
}
.room-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.room-card:hover .room-card-img img { transform: scale(1.05); }
.room-card-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--white); color: var(--ink);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600;
}
.room-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.room-card-body h3 { margin-bottom: 8px; }
.room-card-body p { font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.room-features {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px;
}
.feature {
  font-size: 0.78rem; padding: 4px 10px;
  background: var(--cream); color: var(--ink-soft);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.room-card-actions { display: flex; gap: 8px; }
.room-card-actions .btn { padding: 10px 18px; font-size: 0.88rem; flex: 1; justify-content: center; }

/* ============================ AMENITIES ============================ */
.amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.amenity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--line);
  transition: all .2s;
}
.amenity-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.amenity-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--blue-soft); color: var(--blue-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.amenity-card h3 { font-family: inherit; font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.amenity-card p { font-size: 0.9rem; }

/* ============================ GALLERY ============================ */
.gallery-section { background: var(--sand); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: var(--radius-md);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; color: var(--white);
  background: rgba(255,255,255,.15);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============================ LOCATION ============================ */
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch;
}
.location-text {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.location-text h2 { margin-bottom: 16px; }
.location-text p { margin-bottom: 14px; }
.location-list { list-style: none; margin: 22px 0; }
.location-list li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; color: var(--ink-soft);
}
.location-list li:last-child { border: none; }
.location-list .ico {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--green-soft); color: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 100%; min-height: 400px; border: none; }

/* ============================ KONUM + İLETİŞİM GRID ============================ */
.location-contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.location-contact-grid .map-embed { min-height: 420px; }
.location-contact-card {
  background: linear-gradient(150deg, var(--blue-deep), var(--blue));
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0;
}
.location-contact-card h2 { color: var(--white); margin-bottom: 16px; }
.location-contact-card p  { color: rgba(255,255,255,.88); margin-bottom: 28px; line-height: 1.7; }

/* ============================ CONTACT / CTA ============================ */
.cta-section {
  margin: 0 var(--gutter);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: var(--white);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.9); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================ FOOTER ============================ */
.footer {
  background: var(--ink); color: rgba(255,255,255,.75);
  margin: 70px 100px 0;
  padding: 50px 0 28px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 2fr 2fr 1fr; gap: 36px;
  margin-bottom: 36px;
}
.footer-grid > *:first-child { grid-column: 2; }
.footer-grid > *:nth-child(2) { grid-column: 3; }
.footer-brand img { height: 46px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 0.92rem; max-width: 340px; }
.footer h4 { color: var(--white); font-family: inherit; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { padding: 4px 0; font-size: 0.92rem; }
.footer ul li a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer ul li a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  text-align: center; font-size: 0.85rem;
  color: rgba(255,255,255,.5);
}

/* ============================ ROOM DETAIL ============================ */
.room-hero {
  margin: 24px var(--gutter) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.room-hero img { width: 100%; height: 100%; object-fit: cover; }
.room-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
}
.room-hero-content {
  position: absolute; bottom: 30px; left: 40px; color: var(--white); z-index: 2;
}
.room-hero-content h1 { color: var(--white); }
.room-hero-content p { color: rgba(255,255,255,.9); }

.room-detail-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px;
}
.room-info-card, .calendar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.room-info-card h2 { margin-bottom: 14px; }
.room-info-card p { margin-bottom: 20px; }
.amenity-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 24px;
}
.amenity-list li {
  list-style: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--cream); border-radius: var(--radius-md);
  font-size: 0.92rem; color: var(--ink);
}
.amenity-list li::before {
  content: '✓'; color: var(--green); font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}

/* ============================ CALENDAR ============================ */
.calendar-card h3 { margin-bottom: 14px; }
.calendar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.calendar-month {
  font-weight: 600; font-size: 1.05rem;
  color: var(--ink);
}
.calendar-nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sand); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.calendar-nav-btn:hover { background: var(--line); }
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.calendar-dayname {
  text-align: center; font-size: 0.75rem; color: var(--muted);
  font-weight: 600; padding: 8px 0; text-transform: uppercase;
}
.calendar-day {
  aspect-ratio: 1; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 500;
  border: 1px solid transparent; transition: all .15s;
}
.calendar-day.empty { visibility: hidden; }
.calendar-day.past { color: var(--muted); background: transparent; opacity: 0.4; }
.calendar-day.status-empty { background: var(--status-empty-bg); color: var(--status-empty); }
.calendar-day.status-reserved { background: var(--status-reserved-bg); color: #b88a1a; }
.calendar-day.status-full { background: var(--status-full-bg); color: var(--status-full); }
.calendar-day.today { border-color: var(--blue); font-weight: 700; }
.calendar-day.clickable { cursor: pointer; }
.calendar-day.clickable:hover { transform: scale(1.05); box-shadow: var(--shadow-sm); }
.calendar-legend {
  display: flex; gap: 16px; margin-top: 18px; flex-wrap: wrap;
  font-size: 0.82rem;
}
.calendar-legend span { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.calendar-legend .dot {
  width: 14px; height: 14px; border-radius: 4px;
}
.dot.empty { background: var(--status-empty-bg); border: 1px solid var(--status-empty); }
.dot.reserved { background: var(--status-reserved-bg); border: 1px solid var(--status-reserved); }
.dot.full { background: var(--status-full-bg); border: 1px solid var(--status-full); }

#takvim { scroll-margin-top: 80px; }

.contact-callout {
  margin-top: 22px; padding: 20px;
  background: var(--orange); color: var(--white);
  border-radius: var(--radius-md);
  text-align: center;
}
.contact-callout p { color: rgba(255,255,255,.95); margin-bottom: 12px; font-size: 0.9rem; }
.contact-callout .btn { background: var(--white); color: var(--orange); }
.contact-callout .btn:hover { background: var(--cream); }

/* ============================ ADMIN ============================ */
.admin-body { background: var(--cream); min-height: 100vh; }
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: var(--white); padding: 44px 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 420px;
  text-align: center;
}
.login-card img { height: 50px; margin: 0 auto 20px; }
.login-card h2 { margin-bottom: 6px; font-size: 1.5rem; }
.login-card p { color: var(--muted); margin-bottom: 28px; font-size: 0.92rem; }
.form-group { text-align: left; margin-bottom: 16px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.95rem; font-family: inherit;
  background: var(--cream);
  transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--blue); background: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.error-msg { color: var(--status-full); font-size: 0.88rem; margin-top: 10px; min-height: 20px; }

.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  display: flex; flex-direction: column;
}
.admin-sidebar img { height: 36px; width: auto; object-fit: contain; margin-bottom: 28px; padding: 0 8px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-md);
  color: var(--ink-soft); font-weight: 500; font-size: 0.92rem;
  transition: all .15s;
}
.admin-nav a:hover { background: var(--sand); color: var(--ink); }
.admin-nav a.active { background: var(--orange); color: var(--white); }
.admin-logout {
  margin-top: auto; padding: 12px 14px;
  color: var(--ink-soft); font-size: 0.92rem;
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 10px;
}
.admin-logout:hover { background: var(--sand); color: var(--status-full); }
.admin-main { padding: 32px 36px; overflow-x: hidden; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.admin-header h1 { font-size: 1.75rem; }
.admin-header p { color: var(--muted); font-size: 0.92rem; }

.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--line);
}
.stat-label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--ink); margin-top: 6px; }
.stat-card.accent-orange .stat-value { color: var(--orange); }
.stat-card.accent-green .stat-value { color: var(--green); }
.stat-card.accent-blue .stat-value { color: var(--blue-deep); }

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.admin-card h2 { font-size: 1.25rem; margin-bottom: 16px; font-family: inherit; font-weight: 600; }

.admin-rooms-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.admin-room-tab {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all .2s;
}
.admin-room-tab:hover { border-color: var(--orange); }
.admin-room-tab.active { border-color: var(--orange); background: #fff7ee; }
.admin-room-tab h3 { font-family: inherit; font-size: 1rem; font-weight: 600; }
.admin-room-tab .small { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.admin-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
}
.admin-table th {
  text-align: left; padding: 12px 14px;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.admin-table td {
  padding: 14px; border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.admin-table tr:last-child td { border: none; }
.table-actions { display: flex; gap: 6px; }
.badge {
  display: inline-block; padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600;
}
.badge.full { background: var(--status-full-bg); color: var(--status-full); }
.badge.reserved { background: var(--status-reserved-bg); color: #b88a1a; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-danger { background: var(--status-full); color: var(--white); }
.btn-danger:hover { background: #c43d3d; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(31,41,51,.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h2 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-sub { color: var(--muted); margin-bottom: 22px; font-size: 0.9rem; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; justify-content: center; }

.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--ink); color: var(--white);
  padding: 14px 22px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 300;
  opacity: 0; transform: translateY(20px); transition: all .3s;
  font-size: 0.92rem; font-weight: 500;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--status-full); }

/* ============================ ADMIN MOBİL TOPBAR ============================ */
.admin-topbar {
  display: none;
  position: sticky; top: 0; z-index: 90;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.admin-topbar-title { font-weight: 600; font-size: 1rem; color: var(--ink); }
.admin-menu-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; cursor: pointer; border: none;
  transition: background .2s;
}
.admin-menu-toggle:hover { background: var(--line); }
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 98;
  background: rgba(31,41,51,.45); backdrop-filter: blur(2px);
}
.admin-sidebar-overlay.active { display: block; }

/* ============================ ODA GALERİSİ ============================ */
.room-gallery-wrap { margin: 24px 100px 0; }
.room-gallery-inner { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.room-gallery-main {
  height: 520px; overflow: hidden; background: var(--ink);
  position: relative;
}
.room-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.88); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; z-index: 2; transition: background .2s, transform .15s;
}
.gallery-prev:hover, .gallery-next:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }
.gallery-counter {
  position: absolute; bottom: 14px; right: 16px; z-index: 2;
  background: rgba(0,0,0,.5); color: #fff;
  padding: 5px 13px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .03em;
}
.room-gallery-thumbs {
  display: flex; gap: 6px; padding: 8px 10px;
  background: transparent; overflow-x: auto;
}
.room-gallery-thumb {
  flex-shrink: 0; width: 108px; height: 72px;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; opacity: .5; transition: opacity .2s;
  border: 2px solid transparent;
}
.room-gallery-thumb:hover { opacity: .8; }
.room-gallery-thumb.active { opacity: 1; border-color: var(--orange); }
.room-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 10px); right: 0; left: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px;
    flex-direction: column; align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 12px; }

  .hero { min-height: 480px; border-radius: var(--radius-lg); margin: 16px 24px 0; }
  .room-gallery-wrap { margin: 16px 24px 0; }
  .room-gallery-main { height: 320px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
  .room-gallery-thumb { width: 88px; height: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-img { aspect-ratio: 4/3; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.wide { grid-column: span 1; }
  .rooms-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .location-contact-grid { grid-template-columns: 1fr; }
  .location-contact-card { order: -1; }
  .footer { margin: 70px 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid > * { grid-column: 1 !important; }
  .footer-brand img { display: block; margin-left: auto; margin-right: auto; }
  .footer-brand p { max-width: 100%; }
  .footer ul li a[style] { justify-content: center; }
  .room-detail-grid { grid-template-columns: 1fr; }
  .room-hero { height: 280px; }
  .room-hero-content { left: 24px; bottom: 22px; }
  .admin-topbar { display: flex; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 99;
    width: 280px;
    flex-direction: column; padding: 24px 18px;
    border-right: 1px solid var(--line); border-bottom: none;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s ease;
  }
  .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .admin-sidebar img { display: block; }
  .admin-nav { flex-direction: column; flex-wrap: nowrap; }
  .admin-nav a { white-space: normal; }
  .admin-logout { margin-top: auto; }
  .admin-main { padding: 20px 16px; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .admin-header > div:last-child { width: 100%; }
  .admin-header > div:last-child .btn { width: 100%; justify-content: center; }
  #upcoming-table-wrap, #reservations-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .modal-lg { max-width: 100% !important; max-height: 92vh; }
  .amenity-list { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  :root { --gutter: 14px; }
  .section { padding: 50px 0; }
  .hero { min-height: 440px; padding: 0; margin: 12px 14px 0; align-items: flex-end; }
  .footer { margin: 50px 0 0; }
  .room-gallery-wrap { margin: 12px 14px 0; }
  .room-gallery-main { height: 280px; }
  .hero-inner { padding: 0 20px 32px; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 12px; }
  .hero p { font-size: 0.92rem; margin-bottom: 0; }
  .hero-actions { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .cta-section { padding: 44px 24px; border-radius: var(--radius-lg); }
  .room-hero { height: 240px; }
  .room-hero-content { left: 18px; bottom: 18px; }
  .modal { padding: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.5rem; }
  .admin-card { padding: 16px; }
  .admin-card h2 { font-size: 1.1rem; }
  .admin-header h1 { font-size: 1.3rem; }
  .room-admin-item { flex-direction: column; align-items: stretch; gap: 10px; }
  .room-admin-thumb { width: 100%; height: 120px; }
  .room-admin-actions { display: flex; gap: 8px; }
  .room-admin-actions .btn { flex: 1; justify-content: center; }
  .form-date-grid { grid-template-columns: 1fr !important; }
  .admin-rooms-grid { grid-template-columns: 1fr; }
  .admin-table, .admin-table tbody, .admin-table tr { display: block; }
  .admin-table thead { display: none; }
  .admin-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
  }
  .admin-table tr:last-child td { border-bottom: 1px solid var(--line); }
  .admin-table tr td:last-child { border-bottom: none; }
  .admin-table td {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    padding: 10px 14px; font-size: 0.88rem;
  }
  .admin-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); flex-shrink: 0; min-width: 56px;
  }
  .table-actions { justify-content: flex-end; }
  .btn-sm { padding: 5px 8px; font-size: 0.78rem; }
}

/* ============================ GALERİ YÖNETİMİ (ADMIN) ============================ */
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--cream);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.upload-zone p { color: var(--ink); margin: 10px 0 4px; font-size: 0.95rem; }
.upload-zone small { color: var(--muted); font-size: 0.82rem; }
.upload-zone span { font-size: 2.2rem; display: block; }

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.gallery-admin-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
}
.gallery-admin-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-admin-item .del-btn {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(217, 76, 76, 0.92);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  width: 28px; height: 28px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.gallery-admin-item:hover .del-btn { opacity: 1; }

.upload-progress-bar {
  background: var(--line);
  border-radius: var(--radius-pill);
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
}
.upload-progress-fill {
  background: var(--blue);
  height: 8px;
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width .3s;
}

/* ============================ HAKKIMIZDA (MERKEZLİ) ============================ */
.about-centered { max-width: 680px; margin: 0 auto; text-align: center; }
.about-centered h2 { margin-bottom: 18px; }
.about-centered p { margin-bottom: 16px; }
.about-centered .about-tags { justify-content: center; }

/* ============================ KONUM (SADECE HARİTA) ============================ */
.map-only-wrap { max-width: 860px; margin: 0 auto; }
.map-only-wrap .map-embed { height: 440px; }
.map-only-actions { text-align: center; margin-top: 22px; }


/* ============================ ODA ADMIN LİSTESİ ============================ */
.rooms-admin-list { display: flex; flex-direction: column; gap: 12px; }
.room-admin-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--cream);
  transition: border-color .2s;
}
.room-admin-item:hover { border-color: var(--blue); }
.room-admin-thumb {
  width: 88px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--line);
}
.room-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-admin-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.room-admin-info strong { font-size: .95rem; }
.room-admin-info .small { font-size: .82rem; color: var(--muted); }
.room-admin-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Oda modal */
.modal-lg { max-width: 680px !important; max-height: 90vh; overflow-y: auto; }
.room-cover-preview {
  width: 100%; height: 180px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--cream);
  border: 1px solid var(--line); margin-bottom: 10px;
}
.room-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-zone-sm { padding: 18px 14px; margin-bottom: 12px; }
.upload-zone-sm span { font-size: 1.6rem; }
.upload-zone-sm p { font-size: .88rem; margin: 6px 0 0; }
.upload-zone-sm small { font-size: .78rem; }

/* Olanak etiketi oluşturucu */
.amenity-tag-builder { display: flex; gap: 8px; margin-bottom: 10px; }
.amenity-tag-builder input { flex: 1; }
.amenity-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-soft); color: var(--blue-deep);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 500;
}
.amenity-tag button {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-deep); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1; cursor: pointer;
}
.amenity-tag button:hover { background: var(--status-full); }

/* Oda modal galeri küçük ızgara */
.room-modal-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px; margin-bottom: 2px;
}


