body 
{
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 20px;
}

h1 
{
    text-align: center;
}

.gallery 
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item { background: white; border: 1px solid #ddd; border-radius: 8px; margin: 10px; padding: 10px; width: 260px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }


/* --- Carousel --- */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;   /* force consistent image presentation */
  overflow: hidden;
  border-radius: 8px;
}

.carousel img 
{
    display: none;      /* Hide all images by default */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel img.active 
{
    display: block;     /* Only the active image should be visible */
}

/* --- Arrow Buttons --- */
.carousel-arrow 
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}

.carousel-arrow:hover 
{
    background: rgba(0,0,0,0.7);
}

.carousel-arrow.left 
{ 
    left: 8px; 
}

.carousel-arrow.right 
{ 
    right: 8px; 
}

/* --- Indicators --- */
.indicators 
{
    display: flex;
    justify-content: center;
    margin-top: 6px;
    gap: 5px;
}

.indicator-dot 
{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
}

.indicator-dot.active 
{
    background: #333;
}

/* Legend layout */
.legend-container 
{
    max-width: 700px;       /* keeps text from stretching too wide */
    margin: 0 auto 20px;    /* centers entire legend block */
    text-align: left;       /* keep text left-aligned */
}

.legend-container > p 
{
    text-align: center;     /* ONLY the initial paragraph centered */
}

.legend-entry 
{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.legend-entry span.option-tag 
{
    width: 90px;        /* 👈 FIXED WIDTH for perfect vertical alignment */
    text-align: center;  /* optional: keeps tags centered in their column */
    margin-right: 10px;
    flex-shrink: 0;
}

.legend-entry p 
{
    margin: 0;
    line-height: 1.4;
}

/* --- Option tags --- */
.options 
{
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 6px 0;
}

.option-tag 
{
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    color: white;
    background-color: #6c757d;
}

.option-buy 
{ 
    background-color: #28a745; 
}

.option-borrow 
{ 
    background-color: #ffc107; color: black; 
}

.option-keep 
{ 
    background-color: #17a2b8; 
}
  
.option-reserved 
{ 
    background-color: #ff0000; 
}

.btn 
{
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.btn:hover 
{
    background: #0056b3;
}