* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0c0c0c;
  --panel-bg: #131318;
  --panel-bg-soft: #171923;
  --panel-bg-soft2: #191b26;
  --primary: #395aff;
  --primary-soft: rgba(57, 90, 255, 0.3);
  --accent: #6b83ff;
  --accent-soft: rgba(107, 131, 255, 0.25);
  --text-main: #f5f7ff;
  --text-muted: #43424c;
  --border-soft: #ffffff;
  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.75);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --card-blur: 50px;
  /* Patokan layout 100% (ukuran CSS default saat ini) */
  --ui-ref-w: 1440;
  --ui-ref-h: 900;
  --ui-scale: 1;
  --app-height: 100dvh;
  --app-height: calc(var(--app-vh, 1dvh) * 100);
}

html,
body {
  background-color: #000;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  height: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  position: relative;
  overflow: hidden;
}

.dash-wrapper,
.dash-wrapper * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(57, 90, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(107, 131, 255, 0.12) 0%, transparent 50%),
    #0c0c0c;
  opacity: 1;
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
  transform: none;
  transform-origin: center;
  z-index: 0;
}

/* Parallax background layer (animated via GSAP on pointer / touch move) */
.bg-parallax {
  position: fixed;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(57, 90, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(107, 131, 255, 0.12) 0%, transparent 50%),
    #0c0c0c;
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
  opacity: 1;
  transform-origin: center;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  overflow: hidden;
}

.bg-parallax-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.theme-light .bg-parallax-video,
body.theme-dark .bg-parallax-video {
  opacity: 1;
}

body.has-bg-parallax::before {
  display: none;
}

.dash-wrapper {
  width: 100%;
  height: var(--app-height);
  max-height: var(--app-height);
  background: rgba(5, 6, 10, 0.5);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 15px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-main);
  box-sizing: border-box;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

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

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9d57e, #f2994a);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.top-left .logo {
  width: auto;
  height: 35px;
  min-width: 140px;
}

.top-left .logo img {
  width: auto;
  height: 100%;
  max-width: 130px;
  object-fit: contain;
}

.logo-img.dark-mode {
  display: none;
}

body.theme-dark .logo-img.light-mode {
  display: none;
}

body.theme-dark .logo-img.dark-mode {
  display: block;
}

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

.top-right .icon-small {
  cursor: pointer;
}

.main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 2fr 2.2fr 2fr;
  gap: 15px;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.left-col,
.mid-col,
.right-col {
  min-height: 0;
  overflow: hidden;
}

.left-col {
  display: grid;
  grid-template-rows: 1.4fr 1.6fr;
  gap: 15px;
}

.live-location-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--border-soft);
}

.live-location-map-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

#tabletLiveMap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1b1b1b;
}

.live-location-map-wrap .leaflet-container {
  width: 100%;
  height: 100%;
  background: #1b1b1b;
  font-family: inherit;
}

.live-location-map-wrap .leaflet-container img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.live-location-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  gap: 8px;
}

.live-location-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.live-location-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  pointer-events: none;
}

.live-location-map-controls {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.live-location-map-control {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.live-location-map-control i {
  display: block;
  line-height: 1;
}

.live-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.live-location-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: live-location-pulse 2s ease-in-out infinite;
}

@keyframes live-location-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.92); }
}

.live-location-ship-name {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-location-ship-icon {
  color: #395aff;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.live-location-info-wrap {
  position: relative;
  pointer-events: auto;
  align-self: center;
  width: min(100%, 520px);
}

.live-location-info {
  pointer-events: auto;
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.1) blur(16px);
  backdrop-filter: saturate(1.1) blur(16px);
  box-shadow: 0 4px 16px rgba(12, 12, 12, 0.12);
  overflow: hidden;
}

.live-location-info.is-collapsed .live-location-info-top,
.live-location-info.is-collapsed .live-location-info-divider {
  display: none;
}

.live-location-info-toggle {
  position: absolute;
  top: -30px;
  right: 0px;
  z-index: 3;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #395aff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(57, 90, 255, 0.35);
  pointer-events: auto;
}

.live-location-info-toggle i {
  display: block;
  line-height: 1;
}

.live-location-info-top {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  padding: 10px;
}

.live-location-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.live-location-weather-copy {
  min-width: 0;
}

.live-location-temp {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  color: #1a1a1a;
}

.live-location-weather {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: #395aff;
}

.live-location-weather-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: #395aff;
}

.live-location-info-meta {
  align-self: start;
}

.live-location-total {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.live-location-total .label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #8b93a1;
  margin: 0;
  margin-bottom: 5px;
  line-height: 1.1;
}

.live-location-total strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.15;
}

.live-location-route {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.live-location-route-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0;
}

.live-location-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-location-dot--start {
  background: #22c55e;
}

.live-location-dot--end {
  background: #395aff;
}

.live-location-route-line {
  flex: 1;
  width: 2px;
  margin: 4px 0;
  background: repeating-linear-gradient(
    to bottom,
    #c5cad3 0,
    #c5cad3 4px,
    transparent 4px,
    transparent 8px
  );
}

.live-location-route-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.live-location-route-item strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1px;
}

.live-location-route-item span {
  display: block;
  font-size: 11px;
  color: #5f6775;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.live-location-info-divider {
  height: 1px;
  background: #eceff3;
  margin: 0 14px;
}

.live-location-info-bottom {
  display: grid;
  grid-template-columns: auto 1.1fr 1.5fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.live-location-transport {
  width: 32px;
  height: 32px;
  color: #395aff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.live-location-stat .label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #8b93a1;
  margin-bottom: 2px;
}

.live-location-stat strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
}

.tablet-live-user-marker-wrap {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.tablet-live-user-marker-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.tablet-live-user-marker {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #395aff;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(57, 90, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tablet-live-marker-glow 2s ease-in-out infinite;
}

.tablet-live-user-marker::before,
.tablet-live-user-marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #395aff;
  z-index: -1;
  pointer-events: none;
  animation: tablet-live-marker-pulse 2s ease-out infinite;
}

.tablet-live-user-marker::after {
  animation-delay: 1s;
}

@keyframes tablet-live-marker-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  70%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes tablet-live-marker-glow {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(57, 90, 255, 0.45);
  }

  50% {
    box-shadow: 0 4px 18px rgba(57, 90, 255, 0.7), 0 0 0 4px rgba(57, 90, 255, 0.18);
  }
}

.tablet-live-user-marker-lottie {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.tablet-live-user-marker-lottie svg {
  width: 100% !important;
  height: 100% !important;
}

.left-grid {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  grid-auto-rows: 1fr;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.left-grid .tile.tile-span-2 {
  grid-column: span 2;
}

.tile.tile-span-2 {
  display: flex;
  flex-direction: column;
}

.tile.tile-align-top {
  justify-content: flex-start;
  align-items: flex-start;
}

.tile.tile-icon-inline {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.tile.tile-icon-inline .tile-svg-icon {
  flex-shrink: 0;
}

.tile.tile-icon-inline .tile-svg-icon i {
  margin-bottom: 0;
}

.tile .card-header .tile-svg-icon-end {
  flex-shrink: 0;
  margin-bottom: 0;
}

.tile .card-header .tile-svg-icon-end i {
  margin-bottom: 0;
}

#voyageStatsChart {
  margin-top: 10px;
  width: 100%;
  height: 95%;
}

.tile {
  border-radius: var(--radius-md);
  background: rgba(17, 18, 24, 0.78);
  border: 1px solid var(--border-soft);
  -webkit-backdrop-filter: blur(var(--card-blur));
  backdrop-filter: blur(var(--card-blur));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.7);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

a.tile,
a.resto-card {
  text-decoration: none;
  color: inherit;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  flex-shrink: 0;
}

.tile-svg-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.tile-svg-icon i {
  font-size: 26px;
  color: #395aff;
  margin-bottom: 0;
}

.tile-svg-icon .tile-lottie {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  pointer-events: none;
}

.tile-svg-icon .tile-lottie svg {
  width: 100% !important;
  height: 100% !important;
}

.title-subtitle { 
  display: block;
  width: 100%;
}

.right-badge .title-subtitle {
  width: 100%;
}

.right-badge-subtitle {
}

.right-badge .tile-label {
  padding-right: 0;
}

.tile-label {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 14px;
  color: var(--text-muted);
  padding-right: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.tile-main {
  font-size: 14px;
  margin-bottom: 0px;
  display: block;
  font-weight: 600;
  color: var(--text-main);
  min-width: 0;
  overflow-wrap: break-word;
}

.tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 15px;
  color: #c8cde2;
  pointer-events: none;
}

.tile-icon i.ri-arrow-right-line {
  color: #395aff;
}

.tile-cta-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #395aff;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(57, 90, 255, 0.28);
}

.tile:hover .tile-svg-icon i,
.tile:hover .tile-icon i,
.resto-card:hover .tile-svg-icon i {
  color: #395aff;
}

.tile-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.tile.subtle {
  background: rgba(23, 25, 35, 0.78);
}

.tile.off {
  opacity: 0.5;
}

.mid-col {
  display: grid;
  grid-template-rows: 1.4fr 1.6fr;
  gap: 18px;
}

.mid-col-spacer {
  min-height: 0;
}

.mid-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.mid-grid,
.right-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  min-height: 0;
}

/* Tetap ukuran sel 2×2 seperti layout awal (setengah lebar × setengah tinggi area grid) */
.mid-grid .tile:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.right-grid .tile:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}

.right-grid .tile:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.right-grid .tile:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.resto-card {
  border-radius: var(--radius-md);
  background: rgba(11, 13, 20, 0.82);
  -webkit-backdrop-filter: blur(var(--card-blur));
  backdrop-filter: blur(var(--card-blur));
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.9);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.resto-card .resto-slider {
  cursor: default;
}

.text-caption-muted {
  font-size: 12px;
  color: var(--text-muted);
}
.resto-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 0px;
  flex-shrink: 0;
}

.resto-card-label {
  display: flex;
  align-items: center;
  gap: 15px;
}

.resto-card-label .tile-svg-icon i {
  margin-bottom: 0;
}

.resto-card-label .tile-svg-icon .tile-lottie {
  width: 45px;
  height: 45px;
  margin-bottom: 0;
}

.resto-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.resto-slider,
#restoSlider {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.resto-slider:not(.is-ready) .resto-slider-track {
  visibility: hidden;
}

.resto-slider-track {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 10px;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.38, 1);
  will-change: transform;
}

.resto-thumb {
  flex: 0 0 auto;
  align-self: stretch;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.resto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.right-col {
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid rgb(71 71 71 / 40%);
  position: relative;
  overflow: hidden;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-muted);
}

.caption-date-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.caption-label {
  font-size: 12px;
  color: var(--text-muted);
}

.caption-date {
  font-size: 12px;
  color: #395aff;
}

.right-content {
  font-size: 12px;
  line-height: 1.5;
  max-width: 90%;
}
.title-pengumuman {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
  min-width: 0;
  overflow-wrap: break-word;
}
.text-pengumuman {
  font-size: 13px;
  color: var(--text-grey);
  min-width: 0;
  overflow-wrap: break-word;
}

.announcement-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  border-radius: inherit;
  background: #1a1a1a;
}

.announcement-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.announcement-slide {
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.announcement-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.announcement-card {
  touch-action: pan-y;
}

.right-badge {
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.right-badge-title {
  font-size: 13px;
  font-weight: 600;
}

.right-badge-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.right-blob {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 20% 0, #3f6fff, transparent 60%),
    radial-gradient(circle at 80% 70%, #00c2ff, transparent 55%);
  opacity: 0.6;
  filter: blur(1px);
  mix-blend-mode: screen;
}

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 4px 0;
  flex-shrink: 0;
}

.bottom-left,
.bottom-center,
.bottom-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bottom-left-text {
  font-size: 11px;
  color: var(--text-muted);
}

.bottom-left-text .bottom-left-brand {
  font-weight: 600;
  color: #395aff;
}

.bottom-right-text {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-right-text .brand {
  font-weight: 600;
  color: #ffffff;
}

.bottom-right-text .link {
  cursor: pointer;
}

.temp-pill {
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 24px;
  background: rgba(19, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
}

.temp-main {
  font-size: 16px;
  font-weight: 600;
}

.temp-unit {
  font-size: 11px;
  opacity: 0.7;
}

.icon-small {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d3daea;
  background: rgba(10, 12, 20, 0.9);
}

.icon-small i {
  font-size: 15px;
}

.icon-small.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: #dce7ff;
}

.bottom-right .icon-small {
  border-radius: 14px;
  width: 26px;
}

/* Tablet ≤1180px — tanpa transform scale (scale menyebabkan celah putih di PWA iPad) */
@media screen and (max-width: 1180px) {
  #restoSlider,
  .resto-slider {
    min-height: 0;
  }

  .tile-label {
    padding-right: 0;
  }
}

@media screen and (max-height: 800px) {
  .tile-main {
    font-size: 12px;
  }
  .bottom-bar {
    display: inline-flex;
  }
  .tile-main {
    font-size: 13px;
  }
  .tile-label{
    font-size: 12px;
    line-height: 14px;
    padding-right: 0px;
  }
  .text-caption-muted {
    font-size: 11px;
    line-height: 12px;
  }
  .tile-svg-icon i {
    font-size: 23px;
  }
}

@media screen and (max-height: 700px) {
  .bottom-bar {
    display: none;
  }
  .tile-main {
    font-size: 12px;
  }
  .tile-label{
    font-size: 11px;
    line-height: 14px;
    padding-right: 5px;
  }
  .resto-card-title {
    font-size: 12px;
  }
  .text-caption-muted {
    font-size: 11px;
    line-height: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
  }
  .tile-svg-icon i {
    font-size: 22px;
  }
  .maplibregl-canvas-container{
    height: 100%;
  }
  .title-pengumuman {
    font-size: 13px;
  }
}



.tile:hover,
.live-location-card:hover,
.brightness:hover,
.resto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgb(19 43 80 / 50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:active,
.icon-small:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}

.port-tooltip {
  background: transparent;
  border: none;
  box-shadow: none;
}

.port-tooltip .maplibregl-popup-content {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.port-tooltip-inner {
  background-color: #0b0d14;
  border: 1px solid #2a2d3a;
  color: #f5f7ff;
  font-size: 11px;
  padding: 5px 15px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.port-tooltip.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: #395aff transparent transparent transparent;
}

@media screen and (min-width: 1920px) and (min-height: 1080px) {
  .tile-main {
    font-size: 28px;
  }
  .tile-label {
    font-size: 20px;
    padding-right: 0;
  }
  .caption-label{
      font-size: 20px;
  }
  .caption-date {
    font-size: 16px;
  }
  .tile-icon {
    font-size: 18px;
  }
  .resto-card-title {
    font-size: 20px;
  }
  .text-caption-muted {
    font-size: 16px;
  }
  .title-pengumuman {
    font-size: 30px;
  }
  .text-pengumuman {
    font-size: 18px;
  }
  .live-location-temp {
    font-size: 26px;
  }
  .live-location-weather-icon {
    font-size: 28px;
  }
  .live-location-weather,
  .live-location-route-item span {
    font-size: 16px;
  }
  .live-location-route-item strong,
  .live-location-stat .label {
    font-size: 14px;
  }
  .live-location-stat strong {
    font-size: 18px;
  }
  .live-location-total .label {
    font-size: 11px;
  }
  .live-location-total strong {
    font-size: 13px;
  }
  .live-location-chip,
  .live-location-ship-name {
    font-size: 14px;
  }
  .live-location-ship-icon {
    font-size: 16px;
  }

}
 
/* Overlay pembatas akses perangkat (untuk layar < 1024x768) */
.device-guard-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.device-guard-content {
  max-width: 520px;
  text-align: center;
  color: #ffffff;
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at top, #1b1b1f, #05060a);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.device-guard-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #395aff;
}

.device-guard-message {
  font-size: 14px;
  line-height: 1.6;
  color: #d0d4e6;
}

/* Tampilkan overlay hanya untuk mobile phone (lebar < 768px) */
@media screen and (max-width: 1023px){
  .device-guard-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Concept by Corocot identity badge — kiri, center vertikal */
.concept-badge {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(66 91 255 / 60%);
  color: #ffffff;
  padding: 5px 7px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(67, 91, 255, 0.25);
  pointer-events: none;
  user-select: none;
  margin-left: -1px;
  transition: transform 0.28s ease;
}

.concept-badge__text {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 1;
  padding: 14px 7px;
  white-space: nowrap;
}
