/* Taşınma duyurusu açılır penceresi */
.move-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.move-popup[hidden] {
  display: none;
}

.move-popup *,
.move-popup *::before,
.move-popup *::after {
  box-sizing: border-box;
}

.move-popup__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(6, 24, 33, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: movePopupFade 0.35s ease both;
}

.move-popup__card {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: movePopupIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.move-popup.is-closing .move-popup__backdrop {
  animation: movePopupFade 0.3s ease reverse both;
}

.move-popup.is-closing .move-popup__card {
  animation: movePopupOut 0.3s ease both;
}

.move-popup__visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
}

.move-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.move-popup__close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.move-popup__close:focus {
  outline: none;
}

.move-popup__close:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

@media (hover: none) {
  .move-popup__close:hover {
    transform: none;
  }
}

.move-popup__body {
  padding: 22px 28px 26px;
  text-align: center;
  color: #333;
}

.move-popup__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: rgb(74, 138, 169);
  letter-spacing: 1px;
}

.move-popup__address {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.move-popup__address i {
  margin-right: 6px;
  color: rgb(74, 138, 169);
}

.move-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.move-popup__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid rgb(74, 138, 169);
  border-radius: 999px;
  background: rgb(74, 138, 169);
  color: #fff;
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.move-popup__btn:hover {
  transform: translateY(-2px);
  background: #3a7390;
  border-color: #3a7390;
  color: #fff;
}

.move-popup__btn--ghost {
  background: transparent;
  color: rgb(74, 138, 169);
}

.move-popup__btn--ghost:hover {
  background: rgba(74, 138, 169, 0.1);
  border-color: rgb(74, 138, 169);
  color: rgb(74, 138, 169);
}

.move-popup__countdown {
  margin: 16px 0 0;
  font-size: 13px;
  color: #6e7681;
}

.move-popup__timer {
  height: 4px;
  background: #e8e8e8;
}

.move-popup__timer span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1c5169, rgb(74, 138, 169), rgb(137, 176, 193));
  transform-origin: left;
  animation: movePopupTimer 10s linear both;
}

html.move-popup-open {
  overflow: hidden;
}

@keyframes movePopupFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes movePopupIn {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes movePopupOut {
  to { opacity: 0; transform: translateY(20px) scale(0.95); }
}

@keyframes movePopupTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 520px) {
  .move-popup__body { padding: 18px 16px 20px; }
  .move-popup__title { font-size: 19px; }
  .move-popup__address { font-size: 14px; }
  .move-popup__btn { flex: 1 1 100%; justify-content: center; }
}

/* Yatay telefon: görsel solda, adres ve butonlar sağda */
@media (orientation: landscape) and (max-height: 560px) {
  .move-popup__card {
    display: grid;
    grid-template-columns: 55% 45%;
    grid-template-rows: 1fr auto;
    align-items: center;
    max-width: 900px;
  }
  .move-popup__visual { grid-column: 1; grid-row: 1; }
  .move-popup__body { grid-column: 2; grid-row: 1; padding: 14px 16px; }
  .move-popup__timer { grid-column: 1 / -1; grid-row: 2; }
  .move-popup__title { font-size: 18px; margin-bottom: 4px; }
  .move-popup__address { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
  .move-popup__actions { gap: 8px; }
  .move-popup__btn { flex: 1 1 100%; justify-content: center; padding: 8px 16px; font-size: 14px; }
  .move-popup__countdown { margin-top: 10px; font-size: 12px; }
  .move-popup__close {
    top: 8px; right: 8px; width: 34px; height: 34px; font-size: 22px;
    background: rgba(74, 138, 169, 0.12);
    border-color: rgba(74, 138, 169, 0.4);
    color: rgb(74, 138, 169);
  }
  .move-popup__close:hover { background: rgba(74, 138, 169, 0.22); }
}

@media (prefers-reduced-motion: reduce) {
  .move-popup__backdrop,
  .move-popup__card { animation: none; }
}
