/* ==============================
   MUSEUM TOUR
   Simple CSS
   ============================== */

:root {
  --green: #34705b;
  --purple-light: #cdbcc2;
  --cream: #f2ece7;
  --orange: #d0754b;
  --purple: #7e5468;
  --tan: #cea15a;
  --black: #1c1c1f;
 
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: inclusive-sans, sans-serif;
font-weight: 500;
font-style: normal;
}

h1, h2, h3 {
font-family: new-spirit, serif;
font-weight: 500;
font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

.header {
  height: 70px;
  padding: 10px 5%;
  background: var(--tan);
  color: #f2ece7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: new-spirit, serif;
font-weight: 500;
font-style: normal;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2ece7;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  line-height: 1.05;
}

.header-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo-icon {
  width: 34px;
  height: 38px;
  border: 2px solid #f2ece7;
  border-radius: 17px 17px 4px 4px;
  display: grid;
  place-items: center;
  font-family: new-spirit, serif;
  font-size: 17px;
}

.map-link {
  color:#f2ece7;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  font-family: inclusive-sans, sans-serif;
}

.map-link:hover {
  opacity: .7;
}

/* ==============================
   MAP PAGE
   ============================== */


.map-page {
  width: 100%;
  height: calc(100vh - 70px);
  padding: 20px 4%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  
}

.map-intro {
  padding: 0px;
  margin: 0;
  flex-shrink: 0;
}

.map-intro h1 {
  font-family: new-spirit, serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  color: var(--orange);
  margin: 6px 0 10px;
}

.map-intro p {
  max-width: 650px;
  line-height: 1.5;
  color: #56534e;
  margin: 0;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0px;
}

.map-card {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0px;
  background:transparent;
  box-shadow: none;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
}

.map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.map-image-area {
  position: relative;
  flex: none;
  min-width: 0;
  min-height: 0;
  
  
}
/* Numbered map stops */

.stop {
  position: absolute;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border: 3px solid #f2ece7;
  border-radius: 50%;
  background: var(--purple);
  color: #f2ece7;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: bold;
  font-family: new-spirit, serif;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: .25s ease;
}

.stop:hover {
  background: var(--orange);
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 0 7px rgba(223,96,53,.20);
}

.stop-label {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #f2ece7;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: .2s;
}

.stop:hover .stop-label {
  opacity: 1;
}

.map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px 0;
  color:#56534e;
  font-size: 15px;
  flex-shrink: 0;
}

.start-button {
  background: var(--green);
  color: #f2ece7;
  padding: 13px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

/* ==============================
   ARTWORK PAGE
   ============================== */

.art-page {
  max-width: 1200px;
  margin: auto;
  padding: 35px 5% 60px;
}

.back {
  color: var(--green);
  text-decoration: none;
  font-weight: bold;
}

.art-layout {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.artwork-box {
  background: #f2ece7;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.artwork {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
  background: #ddd;
}
.art-info {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
}

.art-info .stop-number {
  grid-column: 1;
  grid-row: 1;
}

.art-info h1 {
  grid-column: 2;
  grid-row: 1;
  font-family: new-spirit, serif;
  color: var(--green);
  font-size: clamp(30px, 5vw, 35px);
  line-height: .95;
  margin: 0;
  min-width: 0;
}

.stop-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: #f2ece7;
  border-radius: 50%;
  font-family: new-spirit, serif;
  font-size: 28px;
  font-weight: bold;
  flex-shrink: 0;
}

.artist {
  grid-column: 2;
  grid-row: 2;
  color: var(--purple);
  font-weight: medium;
  margin: 0px;
  line-height: 1.4;
  width: 100%;
  min-width: 0;
}

.description {
  color:var(--black);
  line-height: 1.7;
  max-width: 550px;
}

/* Tour guide */

/* .guide {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-top: 25px;
}*/

.guide img {
  width: 130px;
  height: 150px;
  object-fit: contain;
}

/* Audio */
.audio {
  grid-column: 2;
  grid-row: 3;
  background: var(--green);
  color: #f2ece7;
  padding: 20px;
  border-radius: 12px;
  margin-top: 16px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.audio-title {
  margin: 0 0 4px;
}

.audio-subtitle {
  margin: 0 0 15px;
  font-size: 13px;
  opacity: .8;
}


.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background:#f2ece7;
  color: var(--green);
  font-weight: bold;
  cursor: pointer;
}

.progress {
  flex: 1;
  accent-color: var(--orange);
}

.time {
  font-size: 12px;
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
}

.nav-button {
  color: var(--purple);
border: 3px solid var(--purple);
border-radius: 24px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
  
}

.nav-button:hover {
  background: var(--purple);
  color: white;
}

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

@media (max-width: 750px) {

  .header {
    height: 62px;
  }

  .map-page {
    height: calc(100vh - 62px);
    height: calc(100svh - 62px);
    padding: 16px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
  }
  .map-intro {
    padding: 0 20px;
    margin: 0;
    flex-shrink: 0;
  }

  .map-intro h1 {
    font-size: 40px;
    line-height: 1;
    margin: 4px 0 12px;
    max-width: 360px;
  }

  .map-intro p {
    font-size: 14px;
    line-height: 1.45;
    max-width: 360px;
    margin: 0;
  }

  .map-card {
    flex: 1;
    min-height:0;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

  .map {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    transform:none;
  }

  .stop {
    width: 25px;
    height: 25px;
    font-size: 12px;
    border-width: 2px;
    touch-action: manipulation;
    z-index: 1;
  }

  .stop-label {
    display: none;
  }

  .map-footer {
  flex-shrink: 0;
   padding: 10px 20px 12px;
   display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .start-button {
    text-align: center;
  }

 .art-layout {
  grid-template-columns: 1fr;
  gap: 25px;
}

.artwork {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  background: transparent;
}
.artwork-box {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.artist {
  grid-column: 1 / -1;
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.art-info {
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
}

.art-info h1 {
  font-size: 30px;
  line-height: 1;
}
/* Make the audio player wider */
.art-info .audio {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px;
}

.art-info .stop-number {
  width: 50px;
  height: 50px;
  font-size: 24px;
}

   /* Mobile navigation: two equal-width rounded buttons */
  .navigation {
    position: static;
    left: 0;
    right: 0;
    bottom: 10px;
    
    margin: 0;
    padding: 0 0 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    box-sizing: border-box;
    z-index: 1000;
  }

  .navigation .nav-button {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 75px;
    margin: 0;
    padding: 12px 8px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
  }
 

  .navigation .nav-button:first-child {
    border-radius: 24px;
   
  }

  .navigation .nav-button:last-child {
    border-radius: 24px
    
  }




/*.guide img {
  width: 100px;
  height: 120px;
}*/
}

/* Better spacing and typography for taller phones */
@media (max-width: 750px) and (min-height: 800px) {
  .map-page {
    justify-content: flex-start;
  }

 .map-intro {
  padding: 24px 22px 0;
  margin-bottom: 0;

}
.map-intro .eyebrow {
  font-size: 15px;
}

  .map-intro h1 {
  font-size: 48px;
  line-height: 1;
  max-width: 350px;
  margin: 10px 0 16px;
  letter-spacing: -1px;
}

.map-intro p {
  font-size: 17px;
  line-height: 1.45;
  max-width: 340px;
  margin: 0;
}

 .map-card {
  flex: 1;
  min-height: 0;
  margin-top: -25px;
  display: flex;
  align-items: center;
  justify-content: center;

}
.map-footer span {
  font-size: 15px;
}
.map-footer a.start-button {
  font-size: 17px;
}

  .map-footer {
  width: 100%;
  padding: 0 20px 12px;
  box-sizing: border-box;
  margin-top: 8px;
}

.map-footer button {
  width: 100%;
  display: block;
}

}
/* Smaller phone screens, including iPhone SE */
@media (max-width: 400px) {
  .art-info {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 8px;
  }

  .art-info h1 {
    font-size: 24px;
    line-height: 1;
  
  }

  .art-info .stop-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

 .artwork {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}
  .art-page {
  padding: 16px 5% 20px;
}

.art-layout {
  margin-top: 16px;
  gap: 16px;
}

.artwork-box {
  padding: 10px;
}
.art-info .audio {
  grid-column: 1 / -1;
  width: 100%;
}
}
