@charset "UTF-8";

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.5);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Smartphone Mockup Frame Styling */
.phone-viewport-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem 3rem 1rem;
  min-height: calc(100vh - 65px);
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smartphone-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 870px;
  background: #0f172a;
  border-radius: 50px;
  box-shadow: 
    0 0 0 12px #1e293b,
    0 0 0 14px #334155,
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 4px solid #0f172a;
  transition: max-width 0.3s ease, height 0.3s ease;
}

/* Tablet mode option */
.smartphone-frame.tablet {
  max-width: 768px;
  height: 960px;
  border-radius: 36px;
}

/* Fullscreen mode (desktop view) */
.phone-viewport-container.fullscreen {
  padding: 0;
  background: #0f172a;
}
.phone-viewport-container.fullscreen .smartphone-frame {
  max-width: 100%;
  height: 100%;
  min-height: calc(100vh - 65px);
  border-radius: 0;
  box-shadow: none;
  border: none;
}
.phone-viewport-container.fullscreen .phone-screen-content {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Dynamic Island / Notch */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.camera-lens {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #111827;
  border: 1.5px solid #1f2937;
  box-shadow: inset 0 0 3px #0284c7;
}

/* Status Bar */
.phone-status-bar {
  height: 44px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  padding: 10px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  z-index: 40;
  flex-shrink: 0;
}

/* Phone Screen Scrollable Area */
.phone-screen-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Home Indicator Bar */
.phone-home-indicator {
  height: 24px;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  z-index: 40;
}
.home-bar {
  width: 130px;
  height: 4px;
  background: #64748b;
  border-radius: 10px;
  opacity: 0.6;
}

/* Smooth Card Hover */
.res-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.res-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

/* Pulse animation for live badge */
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.live-pulse {
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Glassmorphism & High-Contrast Cards */
.glass-panel {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

.res-card {
  background: #1e293b;
  border: 1.5px solid #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.res-card:hover {
  transform: translateY(-2px);
  border-color: #34d399;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.2);
}

/* Segmented Control Button Styles */
.seg-btn {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 800;
  transition: all 0.2s ease;
}
.seg-btn.active {
  background: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
  font-weight: 900;
}

/* Day of Week Button Styles */
.dow-btn {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border: 1.5px solid #475569 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
}
.dow-btn:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
  border-color: #64748b !important;
}
.dow-btn.active {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45);
  font-weight: 900 !important;
}
.dow-btn.active[data-dow="금"] {
  background-color: #0d9488 !important;
  border-color: #2dd4bf !important;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.45);
}
.dow-btn.active[data-dow="토"] {
  background-color: #2563eb !important;
  border-color: #60a5fa !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}
.dow-btn.active[data-dow="일"] {
  background-color: #e11d48 !important;
  border-color: #fb7185 !important;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.45);
}

/* Accommodation Multi-Select Chips */
.acc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem !important;
  font-weight: 800;
  border-radius: 0.85rem;
  background-color: #1e293b;
  color: #cbd5e1;
  border: 1.5px solid #475569;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}
.acc-chip:hover {
  background-color: #334155;
  color: #ffffff;
  border-color: #64748b;
}
.acc-chip.active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border-color: #6ee7b7 !important;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.45) !important;
  font-weight: 900;
  transform: translateY(-1px);
}
.acc-chip.forest.active {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #ffffff !important;
  border-color: #5eead4 !important;
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.5) !important;
}
.acc-chip.eco.active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border-color: #6ee7b7 !important;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.5) !important;
}
.acc-chip.camp.active {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
  border-color: #fde047 !important;
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.5) !important;
}
.acc-chip.active::after {
  content: ' ✓';
  font-weight: 900;
  font-size: 0.9rem;
  margin-left: 3px;
}

/* Capacity Multi-Select Chips (자연휴양림 숲나들e 인원 형태) */
.cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem !important;
  font-weight: 800;
  border-radius: 0.85rem;
  background-color: #1e293b;
  color: #cbd5e1;
  border: 1.5px solid #475569;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}
.cap-chip:hover {
  background-color: #334155;
  color: #ffffff;
  border-color: #64748b;
}
.cap-chip.active {
  background: linear-gradient(135deg, #0d9488, #0f766e) !important;
  color: #ffffff !important;
  border-color: #5eead4 !important;
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.5) !important;
  font-weight: 900;
  transform: translateY(-1px);
}
.cap-chip.active::after {
  content: ' ✓';
  font-weight: 900;
  font-size: 0.9rem;
  margin-left: 3px;
}

/* Price Range Preset Chips */
.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem !important;
  font-weight: 800;
  border-radius: 0.85rem;
  background-color: #1e293b;
  color: #cbd5e1;
  border: 1.5px solid #475569;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.price-chip:hover {
  background-color: #334155;
  color: #ffffff;
  border-color: #64748b;
}
.price-chip.active {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.5) !important;
  font-weight: 900;
  transform: translateY(-1px);
}
.price-chip.active::after {
  content: ' ✓';
  font-weight: 900;
  font-size: 0.9rem;
  margin-left: 3px;
}

/* Consecutive Buttons & Option Controls */
.consec-btn {
  background-color: #0f172a;
  color: #e2e8f0;
  border: 1.5px solid #334155;
  font-size: 0.92rem !important;
  font-weight: 800;
  transition: all 0.15s ease-in-out;
}
.consec-btn:hover {
  background-color: #1e293b;
  color: #ffffff;
  border-color: #64748b;
}
.consec-btn.active {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45) !important;
  font-weight: 900 !important;
}

.consec-type-btn {
  font-size: 0.85rem !important;
  font-weight: 800;
  transition: all 0.15s ease-in-out;
}
.consec-type-btn:hover {
  border-color: #64748b;
  color: #ffffff;
}
.consec-type-btn.active {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
  font-weight: 900 !important;
}

.consec-tab-btn {
  font-size: 0.9rem !important;
  font-weight: 800;
  transition: all 0.15s ease-in-out;
}
.consec-tab-btn:hover {
  border-color: #64748b;
  color: #ffffff;
}
.consec-tab-btn.active {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45) !important;
  font-weight: 900 !important;
}

.preset-chip {
  transition: all 0.15s ease-in-out;
}
.preset-chip:hover {
  transform: translateY(-1px);
}

/* Floating Action Button */
.fab-quick-scroll {
  position: absolute;
  bottom: 30px;
  right: 20px;
  z-index: 30;
  transition: opacity 0.2s, transform 0.2s;
}

/* Step badges & search UI enhancements */
.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #10b981;
  color: #ffffff;
  border: 1.5px solid #6ee7b7;
  font-size: 0.95rem;
  font-weight: 900;
  margin-right: 0.55rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
}

/* Chevron smooth rotation for collapsible sections */
.chevron-icon {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chevron-icon.rotate-180 {
  transform: rotate(180deg);
}

/* Accessible touch targets & tap highlights */
button, select, input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.touch-target-min {
  min-height: 42px;
}

/* Form input focus ring */
input:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* No-scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================
   Real Mobile Device & PWA Installed Mode:
   Completely remove simulator header, phone frame, fake notch,
   fake status bar, and fake home indicator on actual phones!
   ========================================================== */
@media (max-width: 768px), all and (display-mode: standalone) {
  header.desktop-simulator-bar {
    display: none !important;
  }
  .dynamic-island,
  .phone-status-bar,
  .phone-home-indicator {
    display: none !important;
  }
  .phone-viewport-container {
    padding: 0 !important;
    min-height: 100vh !important;
    background: #0f172a !important;
  }
  .smartphone-frame {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #0f172a !important;
  }
  .phone-screen-content {
    min-height: 100vh;
  }
}

/* JavaScript device detection fallbacks */
body.is-mobile-device header.desktop-simulator-bar {
  display: none !important;
}
body.is-mobile-device .dynamic-island,
body.is-mobile-device .phone-status-bar,
body.is-mobile-device .phone-home-indicator {
  display: none !important;
}
body.is-mobile-device .phone-viewport-container {
  padding: 0 !important;
  min-height: 100vh !important;
  background: #0f172a !important;
}
body.is-mobile-device .smartphone-frame {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #0f172a !important;
}

/* When already installed as PWA: hide install banner */
@media all and (display-mode: standalone) {
  #pwaInstallBanner {
    display: none !important;
  }
}
body.is-standalone #pwaInstallBanner {
  display: none !important;
}

/* Calendar Modal Styles */
.cal-day-cell {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

#calDaysGrid {
  grid-auto-rows: minmax(2.5rem, auto);
}

.bg-slate-850 {
  background-color: #151e2e;
}

.bg-slate-750 {
  background-color: #243247;
}

.text-amber-350 {
  color: #fbbf24;
}

/* Alert Form Custom Controls */
.alert-dow-btn {
  transition: all 0.15s ease;
  user-select: none;
}
.alert-dow-btn.active {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.alert-acc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem !important;
  font-weight: 700;
  border-radius: 0.65rem;
  background-color: #1e293b;
  color: #94a3b8;
  border: 1px solid #475569;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}
.alert-acc-chip:hover {
  background-color: #334155;
  color: #f1f5f9;
}
.alert-acc-chip.active {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}
.alert-acc-chip.active::after {
  content: ' ✓';
  font-weight: 900;
  margin-left: 2px;
}

.alert-cap-chip{display:inline-flex;align-items:center;padding:0.35rem 0.65rem;font-size:0.78rem!important;font-weight:700;border-radius:0.65rem;background:#1e293b;color:#94a3b8;border:1px solid #475569;cursor:pointer}.alert-cap-chip.active{background:linear-gradient(135deg,#0d9488,#0f766e)!important;color:#fff!important;border-color:#2dd4bf!important}.alert-cap-chip.active::after{content:' \2713';font-weight:900;margin-left:2px}
