@font-face {
  font-family:"BilboSwashCaps";
  src:url("assets/BilboSwashCaps-Regular.ttf") format("truetype");
  font-display:swap;
}

@font-face {
  font-family:"AntiqueType";
  src:url("assets/Antique Type Regular.ttf") format("truetype");
  font-display:swap;
}

/* Fullscreen split layout */
html,body{height:100%;margin:0;font-family:Arial,Helvetica,sans-serif}
.split-container{
  display:flex;
  height:70vh;
  gap:1.5rem;
  justify-content:center;
  padding:0 2vw;
  position:relative;
}
.split-container::after{
  content:"";
  position:absolute;
  top:7%;
  bottom:7%;
  width:1px;
  left:50%;
  transform:translateX(-0.5px);
  background:rgba(0,0,0,0.08);
  border-radius:999px;
}
.half{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  flex:1 1 48%;
  max-width:48%;
  border-radius:18px;
  overflow:hidden;
}
.half.open{background:linear-gradient(135deg,#2ecc71,#27ae60)}
.half.closed{background:linear-gradient(135deg,#e74c3c,#c0392b)}
.centered{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.35rem;
  width:100%;
}
.location{
  font-size:5rem;
  margin:0;
  font-family:"AntiqueType", "Times New Roman", serif;
  letter-spacing:0.015em;
}

.location.loc-in-vivo{
  font-family:"BilboSwashCaps", "AntiqueType", cursive;
  letter-spacing:0.03em;
}
.address{font-size:1.2rem;margin:0.5rem 0;opacity:0.9;font-weight:300}
.big-state{font-size:5rem;font-weight:700;display:block}
.next{margin-top:1rem;font-size:1rem}
.schedule-panel{
  padding:1.5rem 2rem;
  background:#f9fafc;
  border-radius:20px;
  margin:2rem 2vw 3rem;
  box-shadow:0 12px 35px rgba(0,0,0,0.08);
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}
.schedule-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:0.75rem}
.week-info{font-size:0.95rem;color:#444}
.schedule-controls{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1rem;
  margin:1.25rem 0 1.5rem;
}
.location-filter{
  display:flex;
  flex-wrap:wrap;
  gap:0.6rem;
}
.filter-pill{
  border:1px solid rgba(31,45,61,0.18);
  background:rgba(255,255,255,0.85);
  color:#1f2d3d;
  border-radius:999px;
  padding:0.45rem 0.95rem;
  font-size:0.9rem;
  cursor:pointer;
  transition:all 0.2s ease;
  box-shadow:0 2px 5px rgba(15,76,129,0.08);
}
.filter-pill:hover,
.filter-pill:focus{
  border-color:rgba(15,76,129,0.35);
  box-shadow:0 3px 8px rgba(15,76,129,0.12);
}
.filter-pill:focus-visible{
  outline:3px solid rgba(46,134,222,0.4);
  outline-offset:2px;
}
.filter-pill.active{
  background:linear-gradient(135deg,#2e86de,#54a0ff);
  color:#fff;
  border-color:transparent;
  box-shadow:0 6px 14px rgba(15,76,129,0.28);
}
.location-jump{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0.55rem;
  font-size:0.95rem;
  color:#1f2d3d;
}
.location-jump span{
  font-weight:600;
  margin-right:0.25rem;
}
.location-quicklink{
  display:inline-flex;
  align-items:center;
  gap:0.3rem;
  padding:0.35rem 0.75rem;
  border-radius:999px;
  background:rgba(46,134,222,0.08);
  color:#2e86de;
  text-decoration:none;
  font-weight:600;
  transition:background 0.2s ease,color 0.2s ease;
}
.location-quicklink:hover,
.location-quicklink:focus{
  background:rgba(46,134,222,0.18);
}
.location-quicklink:focus-visible{
  outline:3px solid rgba(46,134,222,0.35);
  outline-offset:2px;
}
.schedule-table{
  width:100%;
  border-collapse:collapse;
}
.schedule-table th,
.schedule-table td{
  border:1px solid rgba(31,45,61,0.08);
  padding:10px 12px;
  text-align:left;
}
.schedule-table th{
  background:#f0f5fb;
  color:#1f2d3d;
  font-weight:600;
}
.schedule-table tbody tr:hover{
  background:rgba(15,76,129,0.04);
}
/* Per-location schedule spacing */
.location-schedule{
  margin-bottom:1.25rem;
  background:#fff;
  border-radius:16px;
  padding:1.25rem 1.5rem;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
  border:1px solid rgba(0,0,0,0.03);
  transition:box-shadow 0.2s ease, transform 0.2s ease;
}
.location-schedule h4{
  margin:0 0 0.35rem 0;
  font-size:1.15rem;
  color:#1f2d3d;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.75rem;
}
.location-schedule small{opacity:0.8;font-weight:300;color:#455468}

/* Grid layout for multiple location schedules */
.location-schedule.highlight{
  box-shadow:0 10px 24px rgba(46,134,222,0.22);
  transform:translateY(-3px);
}

.location-schedule[hidden]{
  display:none !important;
}
.schedule-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.5rem;
}

@media(max-width:900px){
  .schedule-grid{grid-template-columns:1fr}
}
.week-update{font-size:0.95rem;color:#2c3e50;margin-top:0.25rem}

/* Digital Signage Styles */
.current-label{
  margin-top:6px;
  font-size:1.1rem;
  color:#444;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.now-badge{
  display:inline-block;
  font-size:0.8em;
  font-weight:700;
  background:#ffcc00;
  color:#000;
  padding:2px 6px;
  border-radius:10px;
  line-height:1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
}

/* Color-coded interval badges */
.interval-badge {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

.interval-badge.borrel { background: #e17055; color: #fff; }
.interval-badge.lunch { background: #00b894; color: #fff; }
.interval-badge.evening { background: #6c5ce7; color: #fff; }
.interval-badge.special { background: #fd79a8; color: #fff; }

/* Opens soon indicator */
.opens-soon {
  background: #00cec9;
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
  animation: gentle-pulse 3s infinite;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.signage-mode {
    background: #000;
    color: #fff;
}

.signage-mode .split-container {
  height: auto;
  min-height: calc(100vh - 8vh);
  padding: 4vh 5vw;
  gap: 3vw;
  align-items: stretch;
}

.signage-mode .split-container::after{
  background: rgba(255,255,255,0.25);
}

.signage-mode .half {
  max-width: 50%;
  border-radius: 28px;
  position: relative;
  padding: 5vh 4vw;
  display:flex;
  align-items:center;
  justify-content:center;
}

.signage-mode .half::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(0deg, rgba(0,0,0,0.32), transparent);
  pointer-events: none;
}

.signage-mode .centered {
  position: relative;
  z-index: 1;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1.2rem;
}

.signage-mode .location {
  font-size: clamp(3.8rem, 6vw, 6rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.signage-mode .address {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.signage-mode .big-state {
  font-size: clamp(3.6rem, 5.8vw, 5.6rem);
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
  letter-spacing: -1px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}

.signage-mode .next {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-top: 2rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.signage-mode .current-label{
  margin-top: 1rem;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem); /* bigger label on signage */
  color: #fff;       /* ensure contrast on dark */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.signage-mode .now-badge{
  font-size: 0.7em; /* scales with parent */
  background:#fff200;
  color:#000;
  text-shadow: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.signage-mode .time-remaining {
  color: rgba(255,255,255,0.9) !important;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.signage-mode .opens-soon {
  font-size: clamp(1.2rem, 2.8vw, 1.8rem) !important;
  padding: 8px 16px;
  text-shadow: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.current-staff {
  margin-top: 6px;
  font-size: 1rem;
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.contact-card{
  margin-top:0.6rem;
  background:rgba(255,255,255,0.92);
  border-radius:16px;
  padding:0.85rem 1rem;
  display:flex;
  flex-direction:column;
  gap:0.4rem;
  color:#1f2d3d;
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
  border:1px solid rgba(31,45,61,0.08);
}
.contact-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  flex-wrap:wrap;
  text-align:center;
}
.contact-label{
  font-weight:700;
  text-transform:uppercase;
  font-size:0.7rem;
  letter-spacing:0.08em;
  color:#576574;
}
.contact-value{
  font-weight:700;
  font-size:1.05rem;
}
.contact-meta{
  font-size:0.8rem;
  color:#8395a7;
}

.closed-reason{
  margin-top:0.8rem;
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  padding:0.45rem 0.85rem;
  border-radius:12px;
  background:rgba(231,76,60,0.12);
  color:#c0392b;
  font-weight:600;
  box-shadow:0 3px 8px rgba(231,76,60,0.18);
}

.closed-label{
  display:inline-block;
  margin-top:0.35rem;
  padding:0.25rem 0.5rem;
  border-radius:8px;
  background:rgba(231,76,60,0.12);
  color:#c0392b;
  font-size:0.85rem;
  font-weight:600;
}

.signage-mode .current-staff {
  font-size: 1.6rem !important;
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin-top: 1rem;
  background: rgba(0,0,0,0.35);
  box-shadow: none;
  padding: 6px 18px;
  gap: 10px;
}

.signage-mode .contact-card{
  background:rgba(0,0,0,0.35);
  color:#fff;
  border-color:rgba(255,255,255,0.15);
}
.signage-mode .contact-label{color:rgba(255,255,255,0.65);}
.signage-mode .contact-meta{color:rgba(255,255,255,0.6);}
.signage-mode .closed-reason{
  background:rgba(0,0,0,0.35);
  color:#fff;
  box-shadow:none;
}
.signage-mode .closed-label{
  background:rgba(0,0,0,0.35);
  color:#fff;
}

.signage-mode .schedule-panel {
    display: none; /* Hide detailed schedule in signage mode */
}

.signage-mode .half.open {
    background: linear-gradient(135deg, #00d084, #00b56a);
}

.signage-mode .half.closed {
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

@media(max-width:800px){
  .split-container{flex-direction:column;height:auto;min-height:50vh}
  .split-container::after{display:none}
  .location{font-size:2rem}
  .big-state{font-size:3rem}
  .half{padding:1rem;min-height:40vh;max-width:100%}
  
  /* Better mobile spacing */
  .centered{padding:1rem}
  .address{font-size:1rem}
  .next{font-size:0.9rem;margin-top:0.5rem}
  .current-label{font-size:1rem}
  
  /* Larger touch targets for mobile */
  .schedule-table{font-size:1.1rem}
  .schedule-table th,.schedule-table td{padding:12px 8px}
  
  /* Mobile-friendly schedule grid */
  .schedule-grid{grid-template-columns:1fr;gap:1.5rem}
  .schedule-panel{padding:1.5rem 1rem}
  .schedule-controls{flex-direction:column;align-items:flex-start}
  .location-filter{width:100%;gap:0.45rem}
  .filter-pill{flex:1 1 auto;text-align:center}
  .location-jump{gap:0.4rem;font-size:0.9rem}
  .location-jump span{width:100%;font-size:0.85rem;opacity:0.7}
  .location-quicklink{padding:0.35rem 0.6rem}
  .contact-card{width:100%;min-width:0}
  .contact-row{flex-direction:column;gap:0.2rem}
  
  .signage-mode .location {
    font-size: 2.5rem;
  }
  
  .signage-mode .address {
    font-size: 1.2rem;
  }
  
  .signage-mode .big-state {
    font-size: 4rem;
  }
  
  .signage-mode .next {
    font-size: 1.5rem;
  }
  .signage-mode .current-label{
    font-size: 1.4rem;
  }
}

@media(max-width:1200px){
  .signage-mode .split-container{
    flex-direction:column;
    gap:4vh;
    padding:4vh 3vw;
    min-height: calc(100vh - 8vh);
  }
  .signage-mode .split-container::after{display:none}
  .signage-mode .half{
    max-width:100%;
    padding: 5vh 4vw;
  }
}

/* Portrait mobile specific */
@media(max-width:600px) and (orientation:portrait){
  .split-container{height:auto}
  .half{min-height:35vh}
  .location{font-size:1.8rem}
  .big-state{font-size:2.5rem}
  .address{font-size:0.9rem}
  
  /* Stack schedule info vertically */
  .schedule-header{flex-direction:column;align-items:flex-start;gap:0.5rem}
  .week-info{font-size:0.85rem}
}
