:root {
  --app-shell-max-width: 430px;
  --app-shell-gutter: 12px;
  --bottom-nav-height: 52px;
  --bottom-nav-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  --home-indicator-bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
  --app-bottom-offset: calc(var(--bottom-nav-height) + 56px + env(safe-area-inset-bottom, 0px));
}

/* App wrapper */
.app-wrapper {
  max-width: var(--app-shell-max-width);
  min-height: 100dvh;
  margin: 0 auto;
  background: #EFEFF4;
  display: flex;
  flex-direction: column;
  /* clip instead of hidden — doesn't create scroll container, preserves sticky */
  overflow-x: clip;
}

/* Header brand */
.header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.header-logo-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #6B6B6B;
  letter-spacing: -0.4px;
  line-height: 1;
}

/* Header — sticky with scroll-driven compression */
.header {
  padding: 18px 20px 16px;
  background: #EFEFF4;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ── Scroll-driven header compression ──
   Sadece opacity + transform — layout property yok = titreşme yok ── */
@keyframes widget-surface {
  from { opacity: 0.65; }
  to   { opacity: 1;    }
}

@keyframes header-elevate {
  from { box-shadow: none; background: #EFEFF4; }
  to   { box-shadow: 0 2px 18px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
         background: rgba(239, 239, 244, 0.92); }
}

@supports (animation-timeline: scroll()) {
  .header {
    animation: header-elevate linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 50px;
    backdrop-filter: none;
  }

  .header-widget {
    animation: widget-surface linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px 70px;
  }
}

/* ── Live clock + weather — full-width status strip ── */
.header-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

/* Left: live dot + time */
.hw-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Pulsing live indicator */
.hw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34C759;
  flex-shrink: 0;
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(52, 199, 89, 0.45); }
  65%  { box-shadow: 0 0 0 5px rgba(52, 199, 89, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(52, 199, 89, 0);    }
}

.hw-time {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  letter-spacing: 0.5px;
  color: #3A3A3A;
}

/* Right: icon + temp + city */
.hw-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hw-icon { font-size: 14px; line-height: 1; }

.hw-temp {
  font-size: 12px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.2px;
}

.hw-loc {
  font-size: 11px;
  font-weight: 400;
  color: #AAAAAA;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-badge {
  font-size: 9px;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: #AAAAAA;
  background: #E5E5EA;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(22,57,66,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b434c;
  box-shadow: 0 8px 24px rgba(31,55,61,0.08);
  transition: background 0.15s;
  flex-shrink: 0;
}

.icon-btn:active { background: rgba(255,255,255,0.90); }

/* Cards list */
.cards-list {
  padding: 0 12px calc(var(--app-bottom-offset) + 12px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

/* 2-column grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

/* Bottom nav — dark glass */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: var(--bottom-nav-bottom);
  transform: translateX(-50%);
  width: min(calc(100vw - (var(--app-shell-gutter) * 2)), calc(var(--app-shell-max-width) - (var(--app-shell-gutter) * 2)));
  height: var(--bottom-nav-height);
  background: rgba(10, 22, 18, 0.80);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  z-index: 70;
  box-shadow: 0 16px 40px rgba(10, 22, 18, 0.32), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.3);
  transition: background 0.15s, color 0.15s;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.nav-label { font-size: 9px; font-weight: 400; color: inherit; }
.nav-item.active .nav-label { font-weight: 500; }

/* Home indicator */
.home-indicator {
  position: fixed;
  left: 50%;
  bottom: var(--home-indicator-bottom);
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  margin: 0;
  flex-shrink: 0;
  z-index: 71;
  pointer-events: none;
}

/* Page wrapper */
.page-wrapper {
  max-width: var(--app-shell-max-width);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.04) 100%),
    #f5efe6;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  position: relative;
}

.page-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 4%, rgba(33,126,136,0.07), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255,128,64,0.10), transparent 24%);
}

.page-wrapper > * { position: relative; z-index: 1; }

/* Per-page accent tints */
.contact-body .page-wrapper::before {
  background:
    radial-gradient(circle at 12% 6%, rgba(15,45,74,0.09), transparent 30%),
    radial-gradient(circle at 85% 14%, rgba(217,165,111,0.13), transparent 25%);
}

.info-body .page-wrapper::before {
  background:
    radial-gradient(circle at 12% 6%, rgba(33,101,108,0.10), transparent 30%),
    radial-gradient(circle at 85% 14%, rgba(75,140,127,0.10), transparent 25%);
}

.ent-body .page-wrapper::before {
  background:
    radial-gradient(circle at 12% 6%, rgba(255,128,64,0.13), transparent 30%),
    radial-gradient(circle at 85% 14%, rgba(251,224,195,0.22), transparent 25%);
}

.book-body .page-wrapper::before {
  background:
    radial-gradient(circle at 12% 6%, rgba(184,52,24,0.10), transparent 30%),
    radial-gradient(circle at 85% 14%, rgba(232,120,64,0.13), transparent 25%);
}

.room-body .page-wrapper::before {
  background:
    radial-gradient(circle at 12% 6%, rgba(217,178,112,0.16), transparent 30%),
    radial-gradient(circle at 85% 14%, rgba(33,101,108,0.08), transparent 25%);
}

.page-header {
  padding: 20px 20px 14px;
  background: linear-gradient(180deg, rgba(245,239,230,0.94), rgba(245,239,230,0.70));
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(22,57,66,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b434c;
  box-shadow: 0 8px 24px rgba(31,55,61,0.08);
  transition: background 0.15s;
  flex-shrink: 0;
}

.back-btn:active { background: rgba(255,255,255,0.90); }

.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  color: #143a45;
  letter-spacing: -1px;
  line-height: 0.94;
}

.page-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: rgba(21,58,66,0.45);
  margin-top: 5px;
}

.page-content {
  padding: 0 14px calc(var(--app-bottom-offset) + 16px);
  flex: 1;
}

.info-body .page-content.hotel-guide {
  padding-left: 14px;
  padding-right: 14px;
}

@media (min-width: 431px) {
  .info-body .page-content.hotel-guide {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Side menu */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.side-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 88vw;
  background: #FFFFFF;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-head {
  padding: 52px 18px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

.side-menu-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 11px;
  flex-shrink: 0;
}

.side-menu-brand { flex: 1; min-width: 0; }

.side-menu-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.3px;
}

.side-menu-brand-sub {
  font-size: 11px;
  color: #AAAAAA;
  margin-top: 2px;
}

.side-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F0F0F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
  transition: background 0.15s;
}

.side-close-btn:active { background: #E2E2EA; }

.side-nav-list {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
  list-style: none;
}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #1A1A1A;
  transition: background 0.1s;
  border-radius: 0;
}

.side-nav-link:active { background: #F6F6FA; }

.side-nav-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-nav-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 6px 18px;
}

.side-menu-foot {
  padding: 14px 18px 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

.side-foot-label {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #AAAAAA;
  margin-bottom: 5px;
}

.side-foot-text {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 375px) {
  .header-title { font-size: 27px; }
  .page-title { font-size: 25px; }
}

/* Home shell */
.home-body {
  background:
    radial-gradient(circle at top left, rgba(24, 97, 116, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(231, 152, 103, 0.2), transparent 30%),
    linear-gradient(180deg, #f7f0e6 0%, #f3ede5 56%, #edf0f3 100%);
}

.home-shell {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.04) 100%),
    #f5efe6;
}

.home-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 4%, rgba(33, 126, 136, 0.09), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 128, 64, 0.13), transparent 24%);
}

.home-shell > * {
  position: relative;
  z-index: 1;
}

.header-home {
  padding: 20px 20px 10px;
  background: linear-gradient(180deg, rgba(245, 239, 230, 0.94), rgba(245, 239, 230, 0.7));
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.header-home .header-logo-name {
  color: #163942;
  font-weight: 700;
  letter-spacing: -0.5px;
}


.header-home .header-widget {
  margin: 18px 0 16px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(22, 57, 66, 0.08);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 36px rgba(30, 44, 49, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-title-home {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -1.1px;
  color: #143a45;
  margin-top: 4px;
}

.home-welcome {
  position: relative;
  display: inline-block;
  margin-top: 4px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -1.15px;
  color: #143a45;
}

.home-welcome::after {
  content: '';
  position: absolute;
  left: 1px;
  bottom: -8px;
  width: 58px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 166, 111, 0.95), rgba(217, 166, 111, 0));
}

.home-main {
  padding-top: 6px;
  gap: 10px;
}

@media (max-width: 375px) {
  .home-welcome {
    font-size: 40px;
  }
}
