/* ═══════════════════════════════════════════════════════════════════
   NRI Outpost — Offline travel guide modal
   Shows when app launches with no internet connection.
   ═══════════════════════════════════════════════════════════════════ */

.offline-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: offlineFadeIn .3s ease;
}
@keyframes offlineFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.offline-modal {
  background: var(--paper, #f4ede1);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.offline-header {
  background: linear-gradient(135deg, var(--saffron, #c75a2a), #d97757);
  color: #fff;
  padding: 28px 28px 20px;
  border-radius: 20px 20px 0 0;
  text-align: center;
}
.offline-header-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.offline-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.offline-header p {
  font-size: 14px;
  opacity: .9;
  margin: 0;
  line-height: 1.4;
}

.offline-body {
  padding: 20px 24px 24px;
}

.offline-question {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #1a1410);
  margin: 0 0 16px;
}

.offline-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.offline-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--rule, #d8cdb5);
  background: var(--card, #fbf6ec);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .15s, transform .1s;
  color: var(--ink, #1a1410);
}
.offline-option:hover,
.offline-option:focus {
  border-color: var(--saffron, #c75a2a);
  transform: scale(1.01);
}
.offline-option-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.offline-option-text {
  flex: 1;
}
.offline-option-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.offline-option-desc {
  font-size: 13px;
  color: var(--ink-2, #4a3f33);
}

.offline-dismiss {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--ink-3, #7a6f60);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 8px;
}

/* ─── Guide content panels ──────────────────────────────────── */
.offline-guide {
  padding: 0 24px 24px;
}
.offline-guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--saffron, #c75a2a);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  margin-bottom: 12px;
}
.offline-guide h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #1a1410);
  margin: 0 0 16px;
}
.offline-step {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.offline-step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--saffron, #c75a2a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offline-step-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink, #1a1410);
}
.offline-step-text strong {
  color: var(--saffron, #c75a2a);
}

.offline-tip {
  background: var(--card, #fbf6ec);
  border-left: 4px solid var(--saffron, #c75a2a);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
  color: var(--ink-2, #4a3f33);
}
.offline-tip strong {
  color: var(--saffron, #c75a2a);
}

.offline-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #1a1410);
  margin: 20px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule, #d8cdb5);
}
