body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: rgb(95, 158, 160);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 1.5rem;
}

.header-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px;
}

header h1 {
  margin: 0;
  font-size: 28px;
  text-align: left;
}

.header-container .return-button:first-of-type {
  margin-left: auto;
}

.header-container .return-button + .return-button {
  margin-left: 20px;
}

.header-container .return-button + .return-button + .return-button{
  margin-left: 20px;
}

.return-button {
  background-color: #ffcc00;
  color: #000;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.return-button:hover {
  background-color: #e6b800;
}


main {
  flex: 1;
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
}

main h2 {
  margin-bottom: 20px;
  color: #004347;
  text-align: center;
}

.restaurant {
  background-color: white;
  padding: 20px;
  height: 430px;
  width: 300px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid #d9d9d9; 
}

.content-with-gallery {
  display: grid;
  grid-template-columns: 1fr 380px;
  column-gap: 24px;  /* between reviews and gallery */
  row-gap: 16px;     /* space between H2s and the containers */
  align-items: start;
}

.category {
  margin: 10px 0;
}

.stars {
  color: rgb(255, 153, 0);
  font-size: 22px;
  display: inline-block;
  vertical-align: middle;
}

.label {
  display: inline-block;
  width: 150px;
  font-weight: bold;
}

.desc{
   text-align: center; 
}
/* All Reviews Section */
.all-reviews {
  padding: 15px;
  background-color: #f7f7f7;
}

/* Each review card */
.review-card {
  background: #fff;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.review-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.rating-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.rating-list li {
  font-size: 14px;
  line-height: 1.5;
}

.comment {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

/* Bordered section wrapping the image + controls */
.gallery-col .viewer {
  border: 1px solid #d9d9d9;   /* subtle grey */
  border-radius: 8px;
  padding: 12px;
  background: #fff;            /* optional contrast */
  box-sizing: border-box;
  overflow: hidden;            /* ensure rounded corners clip children */
}


.gallery-col .viewer img,
#mainPhoto {
  display: block;
  height: 400px;  /* cap height */
  width: 300px;    /* don’t exceed container width */
  width: auto;        /* auto-adjust width to keep ratio */
  height: auto;
  margin: 0 auto;     /* center if narrower than container */
  border: 0;          /* remove image border so only the wrapper has one */
  border-radius: 6px; /* optional: soften image corners inside the box */
}

.viewer-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

#prevPhoto,
#nextPhoto {
  background-color: tomato;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#prevPhoto:hover,
#nextPhoto:hover {
  background-color: #e5533c;
}

footer {
  background-color: #004347;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  margin-top: auto;
}

/* ------------ Accessible mode overrides ------------ */
body.accessible-mode {
  background-color: #ffffff; /* brighter background */
  color: #111111;            /* strong contrast text */
}

/* Header contrast boost */
body.accessible-mode header {
  background-color: #003a6d; /* deep blue */
  color: #ffffff;
}

/* Headings and general text */
body.accessible-mode h1,
body.accessible-mode h2,
body.accessible-mode h3,
body.accessible-mode p,
body.accessible-mode li,
body.accessible-mode span {
  color: #111111;
}

/* Cards/sections (example classes; adjust to your layout) */
body.accessible-mode .restaurant,
body.accessible-mode .card,
body.accessible-mode section {
  background: #ffffff;
  border: 1px solid #9e9e9e;
  box-shadow: none;
}

/* Links: clearer color + underline */
body.accessible-mode a {
  color: #0b5fff;
  text-decoration: underline;
}

/* Buttons unified to a high-contrast blue in accessible mode */
body.accessible-mode .return-button,
body.accessible-mode #prevPhoto,
body.accessible-mode #nextPhoto,
body.accessible-mode .logout-button {
  background-color: #0f62fe;
  color: #ffffff;
}
body.accessible-mode .return-button:hover,
body.accessible-mode #prevPhoto:hover,
body.accessible-mode #nextPhoto:hover,
body.accessible-mode .logout-button:hover {
  background-color: #0043ce;
}

/* Strong, visible focus outline (helpful for many users) */
body.accessible-mode :focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}