/* =========================================================
   Waxholm Timetable
   ========================================================= */

.ido-boat-widget,
.ido-boat-hero,
.ido-boat-footer-card,
.ido-boat-compact-card,
.ido-boat-compact-card--waxholm,
.ido-boat-compact-card--stavsnas,
.ido-boat-full {
  --ido-blue: #1e3e52;
  --ido-muted: #5f6262;
  --ido-text: #323232;
  --ido-bg: #f8f8f8;
  --ido-white: #ffffff;
  --ido-border: rgba(30, 62, 82, 0.16);

  color: var(--ido-text);
}

.ido-boat-widget * {
  box-sizing: border-box;
}

.ido-boat-widget a {
  color: var(--ido-blue);
  text-decoration: none;
  font-weight: 600;
}
.ido-boat-widget a.btn.btn-primary {
  color: #FFF; 
  font-weight: 500;
  margin-top: 15px;
}

.ido-boat-widget a:hover {
  text-decoration: underline;
}


/* =========================================================
   HEADER / NOTIFICATION VERSION
   ========================================================= */

.ido-boat-hero {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.ido-boat-hero,
.ido-boat-hero span,
.ido-boat-hero strong,
.ido-boat-hero a,
.ido-boat-hero i {
  color: #ffffff;
}

.ido-boat-hero-label,
.ido-boat-hero-time,
.ido-boat-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.ido-boat-hero-label,
.ido-boat-hero-time strong {
  font-weight: 400;
}

.ido-boat-hero i {
  font-size: 13px;
  line-height: 1;
}

/* Header widget should stay white over hero banner */
#notification_header .ido-boat-hero {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 400;
}

#notification_header .ido-boat-hero,
#notification_header .ido-boat-hero span,
#notification_header .ido-boat-hero strong,
#notification_header .ido-boat-hero a,
#notification_header .ido-boat-hero i {
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

#notification_header .ido-boat-hero-label,
#notification_header .ido-boat-hero-time,
#notification_header .ido-boat-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

#notification_header .ido-boat-hero-label,
#notification_header .ido-boat-hero-time strong {
  font-weight: 400 !important;
}

#notification_header .ido-boat-hero i {
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

/* Tidtabell button in header */
#notification_header .ido-boat-hero .ido-boat-hero-link {
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  text-decoration: none;
  opacity: 1;
  display: flex;
}

#notification_header .ido-boat-hero .ido-boat-hero-link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff !important;
  text-decoration: none;
}


/* =========================================================
   FOOTER VERSION
   ========================================================= */

.ido-boat-footer-card {
  background: var(--ido-bg);
  border: 1px solid var(--ido-border);
  border-radius: 18px;
  padding: 20px;
  max-width: 360px;
  width: 100%;
}

.ido-boat-footer-card h3 {
  margin: 0 0 12px;
  color: var(--ido-blue);
  font-size: 22px;
  line-height: 1.1;
}

.ido-boat-footer-row {
  margin-top: 12px;
}

.ido-boat-footer-row strong {
  display: block;
  color: var(--ido-blue);
  font-size: 14px;
  margin-bottom: 5px;
}

.ido-boat-footer-times {
  color: var(--ido-text);
  font-size: 15px;
  line-height: 1.4;
}

.ido-boat-footer-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}


/* =========================================================
   COMPACT - SHARED CARD VERSION
   ========================================================= */

.ido-boat-compact-card {
  background: var(--ido-bg);
  border: 1px solid var(--ido-border);
  border-radius: 18px;
  padding: 20px;
  max-width: 760px;
  width: 100%;
}

.ido-boat-compact-card h3 {
  margin: 0 0 16px;
  color: var(--ido-blue);
  font-size: 24px;
  line-height: 1.1;
}

.ido-boat-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ido-white);
  border: 1px solid var(--ido-border);
  border-radius: 16px;
  overflow: hidden;
}

.ido-boat-compact-section {
  padding: 18px;
  background: var(--ido-white);
}

.ido-boat-compact-section + .ido-boat-compact-section {
  border-left: 1px solid var(--ido-border);
  border-top: 0;
  margin-top: 0;
  padding-top: 18px;
}

.ido-boat-compact-section h4 {
  margin: 0 0 12px;
  color: var(--ido-blue);
  font-size: 15px;
  line-height: 1.2;
}

.ido-boat-compact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--ido-text);
  font-size: 15px;
  line-height: 1.45;
}

.ido-boat-compact-row + .ido-boat-compact-row {
  margin-top: 6px;
}

.ido-boat-compact-row strong {
  color: var(--ido-blue);
  font-weight: 600;
}

.ido-boat-compact-row a {
  color: var(--ido-blue);
  font-weight: 600;
  text-decoration: none;
}

.ido-boat-compact-row a:hover {
  text-decoration: underline;
}

.ido-boat-compact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ido-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}


/* =========================================================
   COMPACT WAXHOLM / TA DIG HIT SECTION
   ========================================================= */

.ido-boat-compact-card--waxholm,
.ido-boat-compact-card--stavsnas {
  background: var(--ido-bg);
  border: 1px solid var(--ido-border);
  border-radius: 18px;
  padding: 18px;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ido-boat-compact-card--stavsnas h3 {
  margin: 0 0 16px;
  color: var(--ido-blue);
  font-size: 24px;
  line-height: 1.1;
}

/* Direction buttons */
.ido-boat-compact-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ido-boat-compact-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--ido-border);
  background: #ffffff;
  color: var(--ido-blue);
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
}

.ido-boat-compact-tab i {
  display: none;
}

.ido-boat-compact-tab.is-active {
  background: var(--ido-blue);
  border-color: var(--ido-blue);
  color: #ffffff;
}

/* Date + brygga on separate rows */
.ido-boat-compact-card--waxholm .ido-boat-compact-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

/* Floating labels like #form */
.ido-boat-compact-card--waxholm .ido-boat-compact-controls label {
  position: relative;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
}

.ido-boat-compact-card--waxholm .ido-boat-compact-controls label span {
  position: absolute;
  top: -7px;
  left: 10px;
  z-index: 2;
  display: inline-block;
  padding: 0 5px;
  background: var(--ido-bg);
  color: var(--ido-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ido-boat-compact-card--waxholm .ido-boat-compact-controls input,
.ido-boat-compact-card--waxholm .ido-boat-compact-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(30, 62, 82, 0.22);
  background: #ffffff;
  color: var(--ido-text);
  border-radius: 6px;
  padding: 10px 12px 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  outline: none;
}

.ido-boat-compact-card--waxholm .ido-boat-compact-controls input:focus,
.ido-boat-compact-card--waxholm .ido-boat-compact-controls select:focus {
  border-color: var(--ido-blue);
}

/* Generic compact fallback */
.ido-boat-compact-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ido-boat-compact-controls label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.ido-boat-compact-controls label span {
  color: var(--ido-text);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.ido-boat-compact-controls input,
.ido-boat-compact-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(30, 62, 82, 0.22);
  background: #ffffff;
  color: var(--ido-text);
  border-radius: 6px;
  padding: 9px 12px;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  outline: none;
}

.ido-boat-compact-controls input:focus,
.ido-boat-compact-controls select:focus {
  border-color: var(--ido-blue);
}

.ido-boat-compact-status {
  color: var(--ido-muted);
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.ido-boat-compact-status:empty {
  display: none;
}

/* Times: 4 per row on desktop */
.ido-boat-compact-card--waxholm .ido-boat-compact-times-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.ido-boat-compact-times-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  color: var(--ido-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ido-boat-compact-card--waxholm .ido-boat-compact-times-list:not(:has(.ido-boat-compact-time-pill)) {
  display: block;
  color: var(--ido-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ido-boat-compact-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 38px;
  padding: 8px 13px;
  background: #ffffff;
  border: 1px solid var(--ido-border);
  border-radius: 999px;
  color: var(--ido-blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ido-boat-compact-card--waxholm .ido-boat-compact-time-pill {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 8px;
  font-size: 16px;
}


/* =========================================================
   FULL VERSION - FORM STYLE
   ========================================================= */

.ido-boat-full {
  width: 100%;
  margin: 48px 0;
}

.ido-boat-full-inner {
  background: #ffffff;
  border: 1px solid rgba(30, 62, 82, 0.14);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 18px 45px rgba(30, 62, 82, 0.08);
}

.ido-boat-full-pretitle {
  margin: 0 0 8px;
  color: var(--ido-muted);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.ido-boat-full h2 {
  display: none;
}

.ido-boat-full-intro {
  margin: 12px 0 24px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  max-width: 760px;
}

.ido-boat-form-box {
  background: var(--ido-bg);
  border: 1px solid rgba(30, 62, 82, 0.12);
  border-radius: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  margin-bottom: 24px;
}

/* Direction buttons */
.ido-boat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.ido-boat-tab {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(30, 62, 82, 0.2);
  background: #ffffff;
  color: var(--ido-text);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.ido-boat-tab span {
  display: block;
  margin: 0;
}

.ido-boat-tab span strong {
  display: block;
  color: var(--ido-blue);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 600;
}

.ido-boat-tab span small {
  display: block;
  margin-top: 2px;
  color: var(--ido-muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
}

.ido-boat-tab.is-active {
  background: var(--ido-blue);
  color: #ffffff;
  border-color: var(--ido-blue);
}

.ido-boat-tab.is-active span strong {
  color: #ffffff;
}

.ido-boat-tab.is-active span small {
  color: rgba(255, 255, 255, 0.75);
}

/* Compact full date field */
.ido-boat-date-picker {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  align-items: end;
}

.ido-boat-date-picker button {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(30, 62, 82, 0.2);
  background: #ffffff;
  color: var(--ido-blue);
  border-radius: 6px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Floating labels for full form */
.ido-boat-date-picker label,
.ido-boat-station-picker label {
  position: relative;
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.ido-boat-date-picker label span,
.ido-boat-station-picker label span {
  position: absolute;
  top: -7px;
  left: 10px;
  z-index: 2;
  display: inline-block;
  padding: 0 5px;
  background: var(--ido-bg);
  color: var(--ido-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ido-boat-date-picker input,
.ido-boat-station-picker select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(30, 62, 82, 0.22);
  background: #ffffff;
  color: var(--ido-text);
  border-radius: 6px;
  padding: 10px 12px 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  outline: none;
}

.ido-boat-date-picker input:focus,
.ido-boat-station-picker select:focus {
  border-color: var(--ido-blue);
}

.ido-boat-station-picker {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ido-boat-status {
  color: var(--ido-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.ido-boat-status:empty {
  display: none;
}

.ido-boat-route-list {
  display: grid;
  gap: 16px;
}

.ido-boat-route {
  background: #ffffff;
  border: 1px solid rgba(30, 62, 82, 0.14);
  border-radius: 14px;
  overflow: hidden;
}

.ido-boat-route-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(30, 62, 82, 0.12);
  background: var(--ido-bg);
}

.ido-boat-route-header h3 {
  margin: 0;
  color: var(--ido-blue);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.1;
}

.ido-boat-route-header span {
  display: block;
  margin-top: 5px;
  color: var(--ido-muted);
  font-size: 14px;
  line-height: 1.35;
}

.ido-boat-departure {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
}

.ido-boat-departure + .ido-boat-departure {
  border-top: 1px solid rgba(30, 62, 82, 0.1);
}

.ido-boat-time {
  color: var(--ido-blue);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ido-boat-meta {
  color: var(--ido-muted);
  font-size: 14px;
  line-height: 1.35;
}

.ido-boat-meta strong {
  display: block;
  color: var(--ido-text);
  font-size: 15px;
  margin-bottom: 2px;
}

.ido-boat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  justify-self: end;
  color: var(--ido-blue);
  border: 1px solid var(--ido-border);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ido-boat-badge:hover {
  text-decoration: none;
  background: var(--ido-bg);
}

.ido-boat-empty {
  padding: 16px 20px;
  color: var(--ido-muted);
  font-size: 14px;
}

.ido-boat-full-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ido-muted);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
  #notification_header .ido-boat-hero {
    gap: 6px 8px;
    flex-wrap: wrap;
    font-size: 13px !important;
  }

  #notification_header .ido-boat-hero,
  #notification_header .ido-boat-hero span,
  #notification_header .ido-boat-hero strong,
  #notification_header .ido-boat-hero a,
  #notification_header .ido-boat-hero i {
    font-size: 13px !important;
  }

  #notification_header .ido-boat-hero-label {
    width: 100%;
  }

  #notification_header .ido-boat-hero .ido-boat-hero-link {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 12px !important;
  }

  .ido-boat-hero {
    gap: 6px 10px;
    font-size: 12px;
  }

  .ido-boat-hero-label {
    width: 100%;
  }

  .ido-boat-footer-card {
    max-width: 100%;
  }

  .ido-boat-compact-card {
    max-width: 100%;
  }

  .ido-boat-compact-grid {
    grid-template-columns: 1fr;
  }

  .ido-boat-compact-section + .ido-boat-compact-section {
    border-left: 0;
    border-top: 1px solid var(--ido-border);
  }

  .ido-boat-compact-controls,
  .ido-boat-compact-tabs,
  .ido-boat-tabs {
    grid-template-columns: 1fr;
  }

  .ido-boat-compact-card--waxholm .ido-boat-compact-times-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ido-boat-date-picker {
    grid-template-columns: 40px 1fr 40px;
  }

  .ido-boat-route-header {
    flex-direction: column;
  }

  .ido-boat-departure {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .ido-boat-time {
    grid-column: 1 / -1;
  }

  .ido-boat-full-inner {
    padding: 20px;
  }

  .ido-boat-form-box {
    padding: 16px;
  }
}

/* =========================================================
   Waxholm refinements - compact header, responsive times, form polish
   ========================================================= */

/* Header: clearer times without bulky badges */
#notification_header .ido-boat-hero {
  gap: 7px 10px;
}

#notification_header .ido-boat-hero-time {
  gap: 5px;
}

#notification_header .ido-boat-hero-time strong {
  display: inline;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

#notification_header .ido-boat-hero .ido-boat-hero-link {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  opacity: 0.9;
}

#notification_header .ido-boat-hero .ido-boat-hero-link:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

/* Clickable native date pickers */
.ido-boat-compact-controls input[type="date"],
.ido-boat-date-picker input[type="date"] {
  cursor: pointer;
}

/* Compact Waxholm card spacing */
.ido-boat-compact-card--waxholm {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* 3 times per row on tablet / smaller desktop */
@media (min-width: 768px) and (max-width: 1100px) {
  .ido-boat-compact-card--waxholm .ido-boat-compact-times-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Keep select arrows clean and away from the edge */
.ido-boat-compact-controls select,
.ido-boat-station-picker select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231e3e52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}

/* Better centered date step arrows */
.ido-boat-date-picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
}

.ido-boat-compact-status:empty,
.ido-boat-status:empty,
.ido-boat-full-footer [data-boat-source-label]:empty {
  display: none;
}

@media (max-width: 700px) {
  /* On mobile, only show direction to Idöborg in header */
  #notification_header .ido-boat-hero-time:nth-of-type(2) {
    display: none !important;
  }

  #notification_header .ido-boat-hero {
    flex-wrap: nowrap;
  }


  #notification_header .ido-boat-hero .ido-boat-hero-link {
    display: none
  }
}

/* =========================================================
   Waxholm refinements - header link + clearer time separation
   ========================================================= */

/* Entire header widget is the link */
#notification_header .ido-boat-hero {
  cursor: pointer;
  text-decoration: none !important;
}

#notification_header .ido-boat-hero:hover,
#notification_header .ido-boat-hero:focus {
  text-decoration: none !important;
}

/* Header time separation without comma/badges */
#notification_header .ido-boat-hero-time strong {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  font-weight: 500 !important;
}

#notification_header .ido-boat-hero-time-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

#notification_header .ido-boat-hero-time-item + .ido-boat-hero-time-item::before {
  content: "·";
  display: inline-block;
  margin: 0 5px;
  opacity: 0.72;
  font-weight: 400;
}

/* Replace Tidtabell pill with simple arrow icon */
#notification_header .ido-boat-hero .ido-boat-hero-link {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1 !important;
  opacity: 0.82;
}

#notification_header .ido-boat-hero:hover .ido-boat-hero-link,
#notification_header .ido-boat-hero:focus .ido-boat-hero-link {
  opacity: 1;
  transform: translateX(1px);
}

/* Keep header compact until wider screens */
@media (max-width: 1599.98px) {
  #notification_header .ido-boat-hero-time--from {
    display: none !important;
  }

  #notification_header .ido-boat-hero {
    flex-wrap: nowrap;
  }
}

/* Stronger select-arrow rule for Hitta hit + full widget */
.ido-boat-compact-card--waxholm .ido-boat-compact-controls select,
.ido-boat-full .ido-boat-station-picker select,
.ido-boat-station-picker select,
.ido-boat-compact-controls select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 44px !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231e3e52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
}

.ido-boat-compact-card--waxholm .ido-boat-compact-controls select::-ms-expand,
.ido-boat-full .ido-boat-station-picker select::-ms-expand,
.ido-boat-station-picker select::-ms-expand,
.ido-boat-compact-controls select::-ms-expand {
  display: none;
}

/* =========================================================
   Waxholm header refinement - left aligned compact mode + icon badges
   ========================================================= */

#notification_header .ido-boat-hero {
  justify-content: flex-start !important;
  text-align: left !important;
  width: auto;
  max-width: 100%;
}

#notification_header .ido-boat-hero-label,
#notification_header .ido-boat-hero-time,
#notification_header .ido-boat-hero-link {
  flex: 0 0 auto;
  justify-content: flex-start !important;
  text-align: left !important;
}

#notification_header .ido-boat-hero-time strong {
  justify-content: flex-start !important;
  text-align: left !important;
}

#notification_header .ido-boat-hero-label i,
#notification_header .ido-boat-hero-time > i,
#notification_header .ido-boat-hero-link i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 22px !important;
  /* border: 1px solid rgba(255, 255, 255, 0.34) !important; */
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

/* #notification_header .ido-boat-hero-link i {
  width: 26px !important;
  height: 26px !important;
  min-width: 20px !important;
  font-size: 13px !important;
} */

#notification_header .ido-boat-hero:hover .ido-boat-hero-label i,
#notification_header .ido-boat-hero:hover .ido-boat-hero-time > i,
#notification_header .ido-boat-hero:hover .ido-boat-hero-link i,
#notification_header .ido-boat-hero:focus .ido-boat-hero-label i,
#notification_header .ido-boat-hero:focus .ido-boat-hero-time > i,
#notification_header .ido-boat-hero:focus .ido-boat-hero-link i {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

@media (max-width: 1599.98px) {
  #notification_header .ido-boat-hero {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #notification_header .ido-boat-hero-time--to {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #notification_header .ido-boat-hero-time--to strong {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

@media (max-width: 700px) {
  #notification_header .ido-boat-hero {
    width: auto !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  #notification_header .ido-boat-hero-label i,
  #notification_header .ido-boat-hero-time > i,
  #notification_header .ido-boat-hero-link i {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    font-size: 10px !important;
  }
  #notification_header .ido-boat-hero-label i {display: none !important;}
}

/* =========================================================
   Waxholm header refinement - main icon normal + tighter times
   ========================================================= */

/* Keep the main “Waxholmsbåt idag” icon simple, like before */
#notification_header .ido-boat-hero-label i {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

#notification_header .ido-boat-hero:hover .ido-boat-hero-label i,
#notification_header .ido-boat-hero:focus .ido-boat-hero-label i {
  border: 0 !important;
  background: transparent !important;
}

/* Slightly more room between direction icon and the times */
#notification_header .ido-boat-hero-time {
  gap: 7px !important;
}

/* Slightly tighter separation between multiple times */
#notification_header .ido-boat-hero-time-item + .ido-boat-hero-time-item::before {
  margin: 0 3px !important;
  opacity: 0.68;
}

@media (max-width: 700px) {
  #notification_header .ido-boat-hero-label i {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
  }

  #notification_header .ido-boat-hero-time {
    gap: 7px !important;
  }
}

/* =========================================================
   Waxholm header hotfix - force left aligned compact header
   ========================================================= */

@media (max-width: 1599.98px) {
  #notification_header .ido-boat-hero {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    gap: 8px 10px !important;
  }

  #notification_header .ido-boat-hero-label,
  #notification_header .ido-boat-hero-time,
  #notification_header .ido-boat-hero-time--to,
  #notification_header .ido-boat-hero-link {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    justify-self: flex-start !important;
    align-self: center !important;
    text-align: left !important;
  }

  #notification_header .ido-boat-hero-time--from {
    display: none !important;
  }

  #notification_header .ido-boat-hero-time--to strong {
    width: auto !important;
    max-width: none !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

@media (max-width: 700px) {
  #notification_header .ido-boat-hero {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    min-height: 36px;
  }

  #notification_header .ido-boat-hero-label,
  #notification_header .ido-boat-hero-time--to,
  #notification_header .ido-boat-hero-link {
    width: auto !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #notification_header .ido-boat-hero-time--to {
    order: 2;
  }

  #notification_header .ido-boat-hero-link {
    order: 3;
  }

  #notification_header .ido-boat-hero-time--to strong,
  #notification_header .ido-boat-hero-time--to [data-boat-to] {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* =========================================================
   Waxholm refinements - compact icons, themed time pills,
   mini today widget and event date widget
   ========================================================= */

/* Hitta hit compact tabs: show same direction icons as header */
.ido-boat-compact-card--waxholm .ido-boat-compact-tab {
  gap: 7px;
}

.ido-boat-compact-card--waxholm .ido-boat-compact-tab i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 999px;
  border: 1px solid rgba(30, 62, 82, 0.22);
  background: rgba(30, 62, 82, 0.06);
  color: var(--ido-blue);
  font-size: 10px;
  line-height: 1;
}

.ido-boat-compact-card--waxholm .ido-boat-compact-tab.is-active i {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Hitta hit compact time pills: use theme lighter background */
.ido-boat-compact-time-pill,
.ido-boat-compact-card--waxholm .ido-boat-compact-time-pill {
  background: var(--color_theme_lighter, #f1f5f2) !important;
}

/* Mini today widget - shortcode: [ido_waxholm_timetable mode="today_to" source="journey"] */
.ido-boat-mini-today {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 100%;
  color: var(--ido-blue);
  text-decoration: none !important;
  line-height: 1.2;
}

.ido-boat-mini-today:hover,
.ido-boat-mini-today:focus {
  color: var(--ido-blue);
  text-decoration: none !important;
}

.ido-boat-mini-today-label,
.ido-boat-mini-today-time,
.ido-boat-mini-today-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.ido-boat-mini-today-label {
  font-weight: 600;
}

.ido-boat-mini-today-label i {
  font-size: 14px;
  line-height: 1;
}

.ido-boat-mini-today-time > i,
.ido-boat-mini-today-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  min-width: 21px;
  border-radius: 999px;
  border: 1px solid rgba(30, 62, 82, 0.22);
  background: var(--color_theme_lighter, rgba(30, 62, 82, 0.06));
  color: var(--ido-blue);
  font-size: 10px;
  line-height: 1;
}

.ido-boat-mini-today-time strong {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
}

.ido-boat-mini-today .ido-boat-hero-time-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ido-boat-mini-today .ido-boat-hero-time-item + .ido-boat-hero-time-item::before {
  content: "·";
  display: inline-block;
  margin: 0 3px;
  opacity: 0.68;
  font-weight: 400;
}

/* Event widget - shortcode date-controlled departures */
.ido-boat-event-card {
  background: var(--ido-bg);
  border: 1px solid var(--ido-border);
  border-radius: 18px;
  padding: 18px;
  width: 100%;
  color: var(--ido-text);
}

.ido-boat-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ido-boat-event-head strong,
.ido-boat-event-head a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ido-blue);
  text-decoration: none;
}

.ido-boat-event-head strong i,
.ido-boat-event-head a i {
  font-size: 14px;
  line-height: 1;
}

.ido-boat-event-route {
  color: var(--ido-muted);
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.ido-boat-event-times {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ido-boat-event-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 8px;
  background: var(--color_theme_lighter, #f1f5f2);
  border: 1px solid var(--ido-border);
  border-radius: 999px;
  color: var(--ido-blue);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ido-boat-event-status {
  color: var(--ido-muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 10px;
}

.ido-boat-event-status:empty {
  display: none;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .ido-boat-event-times {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ido-boat-event-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
