/* ==========================================================================
   TUOPPITIKKA / PINTDART — DEDICATED PHONE APP STYLESHEET
   100% Solid Colors • Zero Gradients • One-Handed Phone Ergonomics
   ========================================================================== */

html.mobile-app-mode,
body.mobile-app-body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body.mobile-app-body {
  display: flex;
  flex-direction: column;
}

/* Compact Phone App Top Bar */
.mobile-topbar {
  flex-shrink: 0;
  padding: max(8px, env(safe-area-inset-top)) 14px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 3px solid var(--ink);
  background-color: var(--paper);
  z-index: 1200;
}

.mobile-topbar-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-topbar .brand {
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.mobile-topbar .brand-stamp {
  width: 34px;
  height: 34px;
  font-size: 1.15rem;
  border-width: 2.5px;
  box-shadow: 2px 2px 0px var(--ink);
  flex-shrink: 0;
}

.mobile-topbar .brand-name {
  font-size: 1.05rem;
  line-height: 1.08;
  letter-spacing: 0.4px;
  white-space: normal;
  word-break: break-word;
}

.mobile-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-action-btn {
  background-color: var(--beer-gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  padding: 6px 10px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-action-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--ink);
}

.install-app-btn {
  background-color: #38e54d;
}

/* Collapsible Mobile Settings & Filter Drawer */
.mobile-drawer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}

.mobile-drawer.hidden {
  display: none !important;
}

.mobile-drawer .control-box {
  width: 100%;
  justify-content: space-between;
  padding: 7px 10px;
  box-shadow: 2px 2px 0px var(--ink);
}

.mobile-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.mobile-drawer-grid .control-box {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.mobile-drawer-grid .hard-select {
  width: 100%;
  font-size: 0.85rem;
}

.mobile-drawer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.mobile-drawer-bottom-row .hard-icon-btn {
  padding: 8px 10px;
  font-size: 0.78rem;
  box-shadow: 2px 2px 0px var(--ink);
}

.mobile-drawer-bottom-row .lang-switcher {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  box-shadow: 2px 2px 0px var(--ink);
}

.mobile-drawer-bottom-row .lang-btn {
  padding: 7px 0;
  text-align: center;
  font-size: 0.76rem;
}

/* Full-Screen Phone Map Stage */
.mobile-map-stage {
  flex: 1 1 auto;
  width: 100%;
  min-height: 260px;
  height: calc(100vh - 58px);
  height: calc(100dvh - 58px);
  position: relative;
  overflow: hidden;
}

.mobile-map-stage #map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.mobile-status-tag {
  top: 10px;
  left: 10px;
  right: 10px;
  max-width: calc(100% - 64px);
  padding: 6px 10px;
  font-size: 0.72rem;
  box-shadow: 3px 3px 0px var(--ink);
}

/* Thumb-Zone Bottom Throw Bar */
.mobile-bottom-dock {
  left: 12px;
  right: 12px;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: none;
  display: flex;
}

.mobile-throw-btn {
  width: 100%;
  padding: 13px 16px;
  font-size: 1.55rem;
  letter-spacing: 1px;
  border-width: 3px;
  box-shadow: 5px 5px 0px var(--ink);
  text-align: center;
}

/* Full-Screen Phone Result Sheet */
.mobile-modal-backdrop {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.mobile-modal-sheet {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.mobile-sheet-header {
  padding: max(4px, env(safe-area-inset-top)) 10px 4px 10px;
  gap: 8px;
  border-bottom: 2.5px solid var(--ink);
  flex-shrink: 0;
}

.mobile-sheet-header .dest-code-stamp {
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 0.92rem;
  border-width: 2px;
  box-shadow: 2px 2px 0px var(--ink);
  flex-shrink: 0;
}

.mobile-header-titles {
  min-width: 0;
  flex: 1;
}

.mobile-sheet-header .dest-kicker {
  display: none;
}

.mobile-sheet-header .dest-title {
  font-size: 1.04rem;
  line-height: 1.02;
  word-break: break-word;
}

.mobile-sheet-header .dest-slogan {
  font-size: 0.66rem;
  line-height: 1.15;
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-sheet-header .close-sheet-btn {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
  box-shadow: 2px 2px 0px var(--ink);
  flex-shrink: 0;
}

/* Phone One-Thumb Quick Section Tabs (Unnumbered) */
.mobile-section-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--ink);
  border-bottom: 2.5px solid var(--ink);
  gap: 2px;
  flex-shrink: 0;
}

.m-tab-btn {
  background-color: var(--paper-alt);
  color: var(--ink);
  border: none;
  padding: 8px 4px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-align: center;
  cursor: pointer;
}

.m-tab-btn.active {
  background-color: var(--beer-gold);
  color: var(--ink);
}

.hidden-mobile-tab {
  display: none !important;
}

/* Scrollable Phone Body with Non-Scrollable Single-Screen First Page (LASKURI) */
.mobile-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 10px 8px 10px;
  gap: 10px;
}

.mobile-sheet-body.no-scroll-calc-tab {
  overflow-y: hidden !important;
}

.mobile-sheet-body .top-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  height: 100%;
}

.mobile-sheet-body .bottom-booking-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.mobile-sheet-body .panel-box {
  padding: 9px 11px;
  gap: 7px;
  box-shadow: 3px 3px 0px var(--ink);
}

#mTabCalc {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

#mTabCalc .pint-calc-box {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 6px;
  padding-top: 2px;
}

.mobile-sheet-body .panel-title-bar {
  padding-bottom: 5px;
  gap: 6px;
}

.mobile-sheet-body .panel-title-bar h3 {
  font-size: 1rem;
}

.mobile-sheet-body .panel-tag {
  font-size: 0.66rem;
  padding: 2px 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-sheet-body .price-tickets-row {
  gap: 8px;
}

.mobile-sheet-body .ticket-value {
  font-size: 1.42rem;
}

.mobile-sheet-body .price-ticket {
  padding: 6px 9px;
  gap: 2px;
}

.mobile-sheet-body .pint-calc-controls-grid {
  padding: 7px 9px;
  gap: 6px;
}

/* Compact Touch Targets for Steppers on Phone */
.mobile-sheet-body .step-btn {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
}

.mobile-sheet-body .hard-number-input {
  width: 54px;
  height: 32px;
  font-size: 0.96rem;
}

.mobile-sheet-body .calc-mode-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8px;
  padding-top: 6px;
}

.mobile-sheet-body .mode-item {
  min-width: 0;
  width: 100%;
}

.mobile-sheet-body .hard-select-bordered {
  width: 100%;
  min-width: 0;
  height: 32px;
  font-size: 0.78rem;
  padding: 0 5px;
}

.mobile-sheet-body .days-control-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 0;
  box-sizing: border-box;
}

.mobile-sheet-body .days-control-wrap .step-btn {
  width: 30px;
  height: 32px;
  flex: 0 0 30px;
  border: 2px solid var(--ink);
}

.mobile-sheet-body .days-control-wrap .days-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 32px;
  font-size: 0.92rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-left: none;
  border-right: none;
}

.mobile-sheet-body .days-note {
  display: none !important;
}

.mobile-sheet-body .trip-receipt-box {
  margin-top: auto;
  padding: 6px 9px;
  gap: 2px;
  font-size: 0.72rem;
}

.mobile-sheet-body .receipt-title {
  font-size: 0.64rem;
  padding-bottom: 2px;
  margin-bottom: 1px;
}

.mobile-sheet-body .receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.mobile-sheet-body .receipt-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-sheet-body .receipt-line strong {
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-sheet-body .receipt-subtotal,
.mobile-sheet-body .receipt-home {
  font-size: 0.75rem;
}

/* Spacious Bottle Layout on Phone */
.mobile-sheet-body .bottle-showcase {
  grid-template-columns: 1fr;
  gap: 16px;
}

.mobile-sheet-body .bottle-graphic-wrap {
  padding: 16px;
}

.mobile-sheet-body .bottle-readout {
  gap: 14px;
}

.mobile-sheet-body .bottle-desc {
  font-size: 0.95rem;
  line-height: 1.5;
}

.mobile-sheet-body .b-stat-item {
  font-size: 0.92rem;
  padding: 4px 0;
}

/* Phone Flight & Hotel Deal Row */
.mobile-sheet-body .selected-deal-row {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
}

.mobile-sheet-body .deal-price-stamp {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.mobile-sheet-body .stamp-big {
  font-size: 1.95rem;
}

.mobile-sheet-body .links-grid,
.mobile-sheet-body .sponsored-ads-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.mobile-sheet-body .agg-link-btn {
  padding: 13px 16px;
  font-size: 0.94rem;
}

/* Phone Camera & Gallery Upload Form */
.mobile-photo-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
}

.mobile-photo-form .file-pick-label,
.mobile-photo-form .hard-text-input,
.mobile-photo-form .upload-submit-btn {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Phone 1-Column Spacious Photo Wall (no cramped 2-column cards on narrow screens) */
.mobile-sheet-body .photos-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.mobile-sheet-body .photo-frame {
  height: 185px;
}

.mobile-sheet-body .photo-card-body {
  padding: 14px;
  gap: 12px;
}

.mobile-sheet-body .photo-caption {
  font-size: 0.95rem;
}

.mobile-sheet-body .cheers-btn {
  padding: 10px 14px;
  font-size: 1.05rem;
}

/* Cheapest Trip Modal on Phone */
.mobile-sheet-body .ct-controls-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.mobile-sheet-body .ct-full-input {
  height: 44px;
  font-size: 0.98rem;
}

.mobile-sheet-body .ct-result-card {
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  gap: 14px;
}

.mobile-sheet-body .ct-card-left {
  flex: none;
  gap: 8px;
}

.mobile-sheet-body .ct-card-right {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.mobile-sheet-body .ct-price-badges-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.mobile-sheet-body .ct-mini-stamp,
.mobile-sheet-body .ct-total-stamp {
  flex-direction: column;
  min-width: 0;
  padding: 8px 6px;
}

.mobile-sheet-body .ct-mini-stamp .stamp-big,
.mobile-sheet-body .ct-total-stamp .stamp-big {
  font-size: 1.35rem;
}

.mobile-sheet-body .ct-select-dest-btn {
  width: 100%;
  padding: 12px;
  text-align: center;
}

/* Compact Sticky Phone Bottom Savings & Reroll Footer */
.mobile-sheet-footer {
  padding: 5px 10px max(7px, env(safe-area-inset-bottom)) 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 2.5px solid var(--ink);
  flex-shrink: 0;
}

.mobile-footer-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-sheet-footer .savings-kicker {
  font-size: 0.62rem;
}

.mobile-sheet-footer .savings-breakdown-line {
  font-size: 0.68rem;
}

.mobile-sheet-footer .savings-center-number {
  padding: 3px 8px;
  box-shadow: 2px 2px 0px var(--ink);
  flex-shrink: 0;
}

.mobile-sheet-footer .savings-prefix {
  font-size: 0.65rem;
}

.mobile-sheet-footer .big-savings-amount {
  font-size: 1.2rem;
}

.mobile-footer-actions-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mobile-share-btn,
.mobile-reroll-btn {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.96rem;
  box-shadow: 2px 2px 0px var(--ink);
  text-align: center;
  justify-content: center;
}

.spouse-open-btn {
  font-size: 1.05rem;
  padding: 12px 14px;
}

.spouse-modal-sheet,
.regret-modal-sheet {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: none;
  box-shadow: none;
}

.spouse-report-body,
.regret-modal-body {
  flex: 1 1 auto;
  padding: 12px;
}

.spouse-report-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px max(12px, env(safe-area-inset-bottom)) 12px;
}

.spouse-confirm-btn,
.spouse-reject-btn {
  width: 100%;
  flex: none;
  font-size: 1.05rem;
  padding: 11px 14px;
}
