.bento-flights-wrapper.weekly-mode {
  font-family: 'Inter', 'Oswald', sans-serif;
  max-width: 1140px;
  margin: 20px auto;
  border-radius: 24px;
}

/* Header & Paginacija */
.bento-header {
  margin-bottom: 10px;
}

.header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.header-info h2 {
  font-family: "Arial", Sans-serif;
  font-size: 28px;
  font-weight: 600;
  -webkit-text-stroke-color: #000;
  stroke: #000;
  color: #000;
}

.bento-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border: none;
  color: #003d7a;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pag-btn:hover,
.pag-btn:focus {
  color: #fff;
  background-color: #003d7a;
  transform: scale(1.06);
}

.current-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 190px;
  padding: 2px 10px;
  color: #1e293b;
}

.date-weekday {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #003d7a;
}

.date-full {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.today-badge {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #dcfce7;
  color: #166534;
  padding: 2px 9px;
  border-radius: 999px;
}

/* Tabovi */
.bento-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.flights-tab-button {
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  color: #000;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.flights-tab-button:hover {
  color: #fff;
  background-color: #003d7a;
}

.flights-tab-button.active {
  background: #003d7a;
  color: white;
}

/* Bento Grid */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-grid-header {
  display: grid;
  grid-template-columns: 100px 180px 1fr 180px 140px 40px;
  gap: 16px;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

/* Flight Card Desktop */
.flight-card {
  background: white;
  border-radius: 16px;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 100px 180px 1fr 180px 140px 40px;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.flight-code {
  font-weight: 800;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 6px;
  text-align: center;
}

.airline-name {
  font-weight: 600;
  color: #64748b;
}

.airline-logo {
  max-height: 28px;
  max-width: 120px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.destination-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.1rem;
}

.time-group {
  display: flex;
  gap: 15px;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-label {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
}

.time-value {
  font-weight: 700;
}

.time-value.estimated {
  color: #0284c7;
}

.time-mobile-only {
  display: none;
}

.bento-status {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border-radius: 5px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 30px;
}

.status-landed {
  background: #dcfce7;
  color: #166534;
}

.status-delayed {
  background: #ffedd5;
  color: #9a3412;
}

.status-canceled {
  background: #fee2e2;
  color: #991b1b;
}

.status-scheduled {
  background: #f1f5f9;
  color: #475569;
}

.track-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-text {
  display: none;
}

/* Sakriveno na desktopu */

/* TAB CONTENT DISPLAY */
.flights-tab-content {
  display: none;
}

.flights-tab-content.active {
  display: block;
}

/* MOBILE RESPONSIVE (Po tvom zahtjevu) */
@media (max-width: 900px) {
  .bento-grid-header {
    display: none;
  }

  .bento-grid {
    gap: 0;
  }

  .flight-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "time dest    airline"
      "time code    airline";
    align-items: center;
    column-gap: 20px;
    row-gap: 3px;
    padding: 8px 12px;
    min-height: 75px;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .flight-card:nth-child(odd) {
    background-color: #ffffff;
  }

  .flight-card:nth-child(even) {
    background-color: #f1f5f9;
    /* ili npr. , #f2f2f2 - blaga siva */
  }

  #arrivals-grid,
  #departures-grid {
    gap: 0 !important;
    margin-top: 20px;
  }

  .flight-code {
    grid-area: code;
    justify-self: start;
    align-self: center;
    font-size: 12px;
    padding: 3px 5px;
    border-radius: 4px;
    background: #c2dcf5;
  }

  .airline-name {
    grid-area: airline;
    display: block;
    justify-self: end;
    align-self: start;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .airline-logo {
    width: 26px;
    height: 26px;
    max-width: 26px;
    object-fit: contain;
  }

  .destination-name {
    grid-area: dest;
    justify-self: start;
    align-self: start;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    white-space: nowrap;
    
    text-overflow: ellipsis;
  }

  .destination-name small {
    font-size: 11px;
  }

  .time-group {
    grid-area: time;
    align-self: center;
    flex-direction: column;
    gap: 3px;
  }

  .time-box {
    display: none;
  }

  .time-mobile-only {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    width: 45px;
  }

  .time-mobile-planned {
    color: #1e293b;
  }

  .time-mobile-planned.is-outdated {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 15px;
    font-weight: 600;
  }

  .time-mobile-actual {
    color: #0284c7;
  }

  .status-action-row {
    display: contents;
  }

  .bento-status {
    grid-area: code;
    justify-self: end;
    align-self: center;
    width: auto;
    height: 20px;
    padding: 0 8px;
    font-size: 9px;
    border-radius: 4px;
  }

  .track-btn {
    grid-area: airline;
    justify-self: end;
    align-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #003d7a;
    padding: 2px;
  }
}

@media(max-width: 700px) {
  .header-info {
    justify-content: center;
  }

  .current-display {
    min-width: 150px;
  }

  .date-weekday {
    font-size: 11px;
  }

  .date-full {
    font-size: 11px;
  }
}