/* Theaters Map — Box Office preview section. Navy/gold desk look. */
.tm-section{padding-top:8px}
.tm-head{margin:0 0 10px}
.tm-head h2{font-size:28px;margin:0 0 8px}
.tm-lead{margin:0 0 12px;max-width:52rem}
.tm-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 12px}
.tm-search{flex:1 1 240px;position:relative;min-width:0}
.tm-search input{
  width:100%;box-sizing:border-box;font:inherit;font-weight:600;
  padding:10px 14px;border:1.5px solid var(--navy);border-radius:999px;
  background:var(--card);color:var(--navy);
}
.tm-search input:focus{outline:2px solid var(--gold);outline-offset:1px}
.tm-suggest{
  position:absolute;left:0;right:0;top:100%;z-index:5;
  background:var(--card);border:1.5px solid var(--navy);border-radius:12px;
  margin-top:4px;max-height:260px;overflow:auto;box-shadow:0 8px 20px rgba(20,35,63,.12);
  list-style:none;padding:6px;margin-left:0;
}
.tm-suggest[hidden]{display:none!important}
.tm-suggest button{
  display:block;width:100%;text-align:left;font:inherit;background:transparent;
  border:0;border-radius:8px;padding:8px 10px;cursor:pointer;color:var(--navy);
}
.tm-suggest button:hover,.tm-suggest button:focus{background:var(--pale)}
.tm-suggest b{display:block;font-size:14px}
.tm-suggest span{display:block;font-size:12px;color:var(--grey)}
.tm-count{font-weight:800;font-size:14px;color:var(--navy);white-space:nowrap}
.tm-count b{color:var(--navy)}
.tm-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,0.9fr);gap:16px;align-items:start}
.tm-map-wrap{
  position:relative;height:540px;border:2px solid var(--navy);border-radius:14px;
  overflow:hidden;background:#0d1830;box-shadow:0 6px 18px rgba(20,35,63,.08);
}
#tm-map{position:absolute;inset:0}
.tm-map-note{
  position:absolute;left:10px;bottom:10px;z-index:2;max-width:min(92%,420px);
  background:rgba(13,24,48,.88);color:#dfe5f0;font-size:11px;line-height:1.4;
  padding:7px 10px;border-radius:8px;border:1px solid var(--gold);
  pointer-events:none;
}
.tm-side .box{margin:0}
.tm-side h3{font-size:16px;margin:0 0 8px}
.tm-dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:14px}
.tm-dl dt{color:var(--grey);font-weight:700}
.tm-dl dd{margin:0;font-weight:700}
.tm-na{color:var(--grey);font-weight:600;font-style:italic}
.tm-link{color:var(--navy);font-weight:800;text-decoration:none}
.tm-link:hover{color:#8a6a12;text-decoration:underline}
.tm-empty{color:var(--grey);font-size:14px;margin:0}
.tm-avg{margin-top:14px;padding-top:12px;border-top:1px solid #e4dcc8}
.tm-avg h3{margin-top:0}
.tm-avg ul{margin:0;padding:0 0 0 18px;font-size:14px}
.tm-avg li{margin:0 0 6px}
.tm-filter{margin:12px 0 0;font-size:13px;color:var(--grey)}
.tm-filter label{display:flex;gap:8px;align-items:flex-start;cursor:pointer;color:var(--ink)}
.tm-filter input{margin-top:3px}
.tm-src{font-size:13px;margin:14px 0 0}
.tm-src a{color:var(--navy);font-weight:700}
.tm-cluster{
  background:var(--gold);color:var(--navy);border:2px solid var(--navy);
  border-radius:50%;font-weight:800;display:flex;align-items:center;justify-content:center;
  font-family:inherit;
}
.tm-unlocated{margin-top:12px}
.tm-unlocated h3{font-size:16px;margin:0 0 6px}
.tm-unlocated ul{margin:0;padding:0;list-style:none}
.tm-unlocated li{margin:0 0 6px;font-size:14px}

@media (max-width:820px){
  .tm-layout{grid-template-columns:1fr}
  .tm-map-wrap{height:420px}
  .tm-head h2{font-size:24px}
  .tm-side{order:2}
}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width:820px){
  .bo-tabs{
    padding:10px 16px;
    flex-wrap:wrap;
  }
  .bo-tab{padding:6px 12px;font-size:13px}
}

.tm-yes{font-weight:700;color:var(--navy)}
.tm-yes a{font-weight:700}

.tm-near{
  margin:0 0 14px;padding:14px 16px;background:var(--card);
  border:1.5px solid var(--navy);border-radius:14px;
}
.tm-near h3{margin:0 0 10px;font-size:18px}
.tm-near-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,0.9fr) auto;
  gap:10px 12px;align-items:end;
}
.tm-near-field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:800;color:var(--navy);min-width:0}
.tm-near-field input,.tm-near-field select{
  width:100%;box-sizing:border-box;font:inherit;font-weight:600;font-size:15px;
  min-height:44px;padding:10px 12px;border:1.5px solid var(--navy);border-radius:10px;
  background:#fff;color:var(--navy);
}
.tm-near-field input:focus,.tm-near-field select:focus{outline:2px solid var(--gold);outline-offset:1px}
.tm-near-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
.tm-near-btn{
  min-height:44px;padding:10px 14px;border-radius:10px;border:1.5px solid var(--navy);
  background:var(--navy);color:#fff;font:inherit;font-weight:800;cursor:pointer;
}
.tm-near-btn:hover,.tm-near-btn:focus{background:#0f1c33}
.tm-near-btn-secondary{background:#fff;color:var(--navy)}
.tm-near-btn-secondary:hover,.tm-near-btn-secondary:focus{background:var(--pale)}
.tm-near-approx{margin:10px 0 0}
.tm-near-msg{margin:10px 0 0;font-size:14px;font-weight:700;color:var(--navy)}
.tm-near-msg[hidden],.tm-near-results[hidden]{display:none!important}
.tm-near-results{margin:0}
.tm-near-list{list-style:none;margin:0;padding:0}
.tm-near-list li{margin:0 0 8px}
.tm-near-list button{
  display:block;width:100%;box-sizing:border-box;text-align:left;font:inherit;
  min-height:48px;padding:10px 12px;border:1.5px solid #d9d0bc;border-radius:10px;
  background:#fff;color:var(--navy);cursor:pointer;
}
.tm-near-list button:hover,.tm-near-list button:focus{border-color:var(--navy);background:var(--pale);outline:2px solid var(--gold);outline-offset:1px}
.tm-near-list button.on{border-color:var(--gold);box-shadow:inset 0 0 0 2px var(--gold)}
.tm-near-list .tm-near-name{display:block;font-weight:800;font-size:15px}
.tm-near-list .tm-near-meta{display:block;font-size:13px;color:var(--grey);font-weight:600;margin-top:2px}
.tm-near-list .tm-near-dist{font-weight:800;color:var(--navy)}
.tm-count{white-space:normal}

@media (max-width:820px){
  .tm-near-grid{grid-template-columns:1fr}
  .tm-near-actions{width:100%}
  .tm-near-actions .tm-near-btn{flex:1 1 calc(50% - 4px)}
  .tm-layout{display:flex;flex-direction:column;align-items:stretch}
  .tm-near-results{order:1;max-height:360px;overflow:auto;margin:0 0 12px;width:100%}
  .tm-map-wrap{order:2;width:100%;flex-shrink:0}
  .tm-side{order:3;width:100%}
}
