:root {
  --title-accent-color: #2E92A6;
  --location-accent-color: #9d333c;
  --link-accent-color: #a77e38;
}

/* Default Desktop Layout */
#hero-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: black;
  /* opacity: 0; */ /* Model should be visible by default */
  /* transition: opacity 0.7s 0.1s ease-in; */ /* Transition not needed */
}

/* #hero-panel.fade-in { */ /* REMOVED - No longer fading in model */
/*  opacity: 1; */
/* } */

#info-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  /* Styles moved from main.py kept here: */
  padding: 3rem; 
  box-sizing: border-box; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
  align-items: flex-end; /* Align children (like #header-block) to the right */
}

/* Styles for info panel content blocks */
#header-block {
  width: 75%;           /* Constrain block to 75% of parent (#info-panel) */
  text-align: right;    /* Align text content within the block to the right */
}

#title-line {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align Img and H1 right */
}

#title-line img {
  width: 3em;
  height: 3em;
}

#title-line h1 {
  color: var(--title-accent-color);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: normal;
  margin: 0;
  font-size: 3em;
  line-height: 1;
}

#description-paragraph {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  text-align: right;
  /* Ensure no width/max-width */
}

#locations-block {
  text-align: right;
}

#locations-block p {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.875rem;
}

#locations-block p span {
  color: var(--location-accent-color);
}

#links-block {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: right;
}

/* Animated Underline Styles */
.animated-underline {
  color: var(--link-accent-color);
  text-decoration: none;
  position: relative; /* Needed for absolute positioning of pseudo-element */
  display: inline-block; /* Ensures pseudo-element width matches text */
}

.animated-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0); /* Start with no width */
  height: 1px; /* Underline thickness */
  bottom: -2px; /* Position below text */
  left: 0;
  background-color: var(--link-accent-color);
  transform-origin: bottom left; /* Animation origin */
  transition: transform 0.25s ease-out; /* Animation speed */
}

.animated-underline:hover::after {
  transform: scaleX(1); /* Expand width on hover */
  transform-origin: bottom left;
}

/* Mobile/Tablet Layout Overrides */
@media (max-width: 1280px) { /* Increased breakpoint again */
  #hero-panel, #info-panel {
    position: relative; /* Override fixed positioning */
    width: 100%;      /* Full width */
    height: auto;       /* Auto height */
    left: auto;         /* Reset positioning */
    right: auto;        /* Reset positioning */
  }
  
  #hero-panel {
    height: 60vh; /* Give model viewer some height */
    order: 1;       /* Ensure model viewer comes first */
  }
  
  #info-panel {
    padding: 1.5rem;  /* Reduce padding */
    order: 2;       /* Ensure info panel comes second */
    min-height: 40vh; /* Ensure it takes some space */
  }
  
  #header-block {
    width: 100%;
    text-align: right;
  }

  /* Reduce logo/title size on smaller screens */
  #title-line img {
    width: 2.5em;
    height: 2.5em;
  }

  #title-line h1 {
    font-size: 2.5em;
  }
  
  /* Mobile view uses base alignment rules (right-aligned) */
  /* Only layout structure (stacking, width, etc.) is changed */
} 

/* --- Model Viewer Poster Styles --- */
#poster-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: var(--location-accent-color);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5em;
  opacity: 1;
  transition: opacity 2s ease-in;
  z-index: 10;
}

#poster-content.fade-out {
  opacity: 0;
}

#loading-dots::after {
  content: '.';
  animation: ellipsis 1.5s infinite;
  display: inline-block;
  width: 1.5em;
  text-align: left;
}

@keyframes ellipsis {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
  100% { content: '.'; }
}
/* --- End Model Viewer Poster Styles --- */ 