:root {
  --bg-page: #f3e5b1;
  --parchment: #f1e0ad;
  --parchment-light: #f7e9be;
  --dark-red: #7c0f0f;
  --gold: #e2c06a;
  --green: #2f5a2c;
  --border-color: #3e2a1b;
  --text-dark: #2a1c12;
  --sidebar-width: 230px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  background-color: var(--bg-page);
  background-image: linear-gradient(180deg, #f6e9bf 0%, #f0e1a9 100%);
  color: var(--text-dark);
  height: 100vh;
  overflow: hidden;
}

.elot-wrapper {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 28px 1fr;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

/* TOP TABS */
.elot-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  padding-left: var(--sidebar-width);
  gap: 2px;
  background: repeating-linear-gradient(
    90deg,
    #3a291b 0px,
    #3a291b 8px,
    #2b1e13 8px,
    #2b1e13 16px
  );
  border-bottom: 2px solid #1b130c;
  z-index: 10;
}

.elot-tab {
  background: #e9d8a6;
  background-image: linear-gradient(to bottom, #f5e7b9, #dcc68c);
  border: 1px solid #3e2a1b;
  border-bottom: none;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: bold;
  font-style: italic;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  color: #2c1b12;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
  height: 20px;
  display: flex;
  align-items: center;
  position: relative;
  top: 2px;
}

.elot-tab.active {
  background: #f5e7b9;
  background-image: none;
  height: 24px;
  padding-bottom: 4px;
  margin-top: -4px;
  z-index: 12;
  border-bottom: 2px solid #f5e7b9;
}

/* SIDEBAR */
.elot-sidebar {
  grid-row: 1 / -1;
  background: var(--parchment);
  background-image: linear-gradient(180deg, #f1e0ae 0%, #ead79f 100%);
  border-right: 2px solid #2b1c12;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 2px 0 4px rgba(0,0,0,0.35);
  z-index: 20;
}

.sidebar-top-black {
  background: #000;
  height: 8px;
}

.sidebar-date {
  background: var(--dark-red);
  color: var(--gold);
  text-align: center;
  font-size: 11px;
  padding: 4px 6px;
  font-weight: bold;
  border-bottom: 2px solid #000;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.location-frame {
  background: #000;
  padding: 5px;
  border-bottom: 2px solid #000;
}

.location-img {
  width: 100%;
  height: 70px;
  display: block;
  border: 1px solid var(--gold);
  background-image: url("../pasted-20260217-204151-b387c572.png");
  background-size: 2048px auto;
  background-position: 0 -62px;
  background-repeat: no-repeat;
}

.location-title {
  background: var(--dark-red);
  color: var(--gold);
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 4px;
  text-transform: uppercase;
  border-top: 1px solid #000;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 5px;
  background: #000;
}

.nav-btn {
  background: #f7e9be;
  border: 1px solid #000;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 0;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.6);
}

.nav-btn:active {
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.6);
}

.sidebar-desc {
  font-size: 10px;
  padding: 6px 6px 8px;
  line-height: 1.2;
  color: #4b2e20;
  font-weight: bold;
  border-bottom: 1px solid #b79a5a;
}

.guardia-header {
  background: var(--green);
  color: #f1dfb2;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  padding: 4px;
  margin-top: 4px;
  border-top: 1px solid #1d3a1a;
  border-bottom: 1px solid #1d3a1a;
}

.guardia-date {
  font-size: 10px;
  color: #5b3c2b;
  padding: 4px 6px 2px;
  font-weight: bold;
}

.adventure-frame {
  padding: 0 5px 6px;
}

.adventure-img {
  width: 100%;
  height: 86px;
  display: block;
  border: 1px solid #333;
  background-image: url("../pasted-20260217-204151-b387c572.png");
  background-size: 2048px auto;
  background-position: -4px -255px;
  background-repeat: no-repeat;
}

.adventure-caption {
  text-align: center;
  font-size: 10px;
  color: #6a0f0f;
  font-weight: bold;
  padding-top: 2px;
}

.clock-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 5px;
  gap: 10px;
}

.clock-text {
  background: #f8f3de;
  border: 1px solid #000;
  padding: 2px 12px;
  font-weight: bold;
  font-size: 14px;
  color: #a10d0d;
}

.presenti-box {
  padding: 6px 6px 8px;
  font-size: 11px;
  border-top: 1px solid #b79a5a;
}

.presenti-count {
  font-weight: bold;
  margin-bottom: 5px;
  color: #3c261b;
}

.presenti-entry {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.presenti-icon {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid #1f1f1f;
  display: inline-block;
  flex: 0 0 auto;
}

.presenti-icon.is-blue { background: #1b3e8b; }
.presenti-icon.is-red { background: #b11818; }
.presenti-icon.is-dark { background: #1d1d1d; }
.presenti-icon.is-steel { background: #485c6c; }
.presenti-icon.is-gold { background: #b28a27; }
.presenti-icon.is-violet { background: #5b2c7a; }
.presenti-icon.is-green { background: #2e5a2c; }

.presenti-name {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.sidebar-actions {
  padding: 6px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.action-btn-green {
  background: linear-gradient(180deg, #8a9b3f, #6e7c2f);
  border: 2px solid #f2e6bf;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

.bazar-btn {
  background: linear-gradient(180deg, #c51a1a, #870f0f);
  color: #fff;
  border: 2px solid #000;
  border-radius: 20px;
  padding: 7px 8px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  margin-top: 6px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

.sidebar-banner {
  background: #f0e0ac;
  color: #a01111;
  text-align: center;
  font-size: 11px;
  padding: 6px;
  margin-top: auto;
  font-weight: bold;
  border-top: 2px solid #000;
  letter-spacing: 1px;
}

/* MAIN AREA */
.elot-main {
  background: #f6e7b5;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding-top: 18px;
}

.map-wrapper {
  position: relative;
}

.map-frame {
  border: 2px solid #1a120b;
  background: #cba86b;
  padding: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.map-canvas {
  width: 1180px;
  height: 520px;
  background-image: url("../pasted-20260217-204151-b387c572.png");
  background-size: 2048px auto;
  background-position: -245px -70px;
  background-repeat: no-repeat;
  border: 2px solid #3a2416;
}

.map-img {
  display: block;
  max-width: 1000px;
  width: 100%;
}

.map-footer {
  display: flex;
  gap: 2px;
  margin-top: 6px;
  margin-bottom: 30px;
}

.map-link-btn {
  background: #8d1414;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  padding: 2px 10px;
  font-weight: bold;
  border: 1px solid #000;
}

/* Custom Scrollbar for parchment feel */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #5d4037;
}

@media (max-width: 1200px) {
  .map-canvas {
    width: 960px;
    height: 430px;
    background-position: -200px -60px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .elot-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  .elot-header {
    padding-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .elot-sidebar {
    grid-row: auto;
    border-right: none;
    border-bottom: 2px solid #2b1c12;
  }

  .map-canvas {
    width: 90vw;
    height: 50vw;
    background-position: -120px -40px;
  }
}
