.resto-page {
  padding: 20px 10px 60px;
  background: linear-gradient(#379cd0, #00293f);
  min-height: 100%;
}

.restohead {
  color: #fff;
  padding: 30px 0;
}

.restohead-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.restohead h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}
.restohead p {
  opacity: 0.85;
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.restohead-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-resto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 20px;
  background: #2a7db0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  color: #fff;
  border: 1.5px solid #379cd0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-resto:hover {
  background: #e0f4ff;
  color: #379cd0;
}
.btn-resto--outline:hover {
  background: #379cd0;
  color: #fff;
}

.btn-resto--fav-active {
  background: #e91e63;
  border-color: #e91e63;
  color: #fff;
}
.w-full {
  width: 100%;
  justify-content: center;
}

.resto-filters {
  background: #e0f4ff;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.resto-filters__search {
  margin-bottom: 10px;
}

.resto-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.resto-filter-input {
  padding: 8px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.resto-filter-input--wide {
  width: 100%;
}
.resto-filter-input:focus {
  outline: none;
  border-color: #379cd0;
}

.resto-filter-select {
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.resto-filter-select:focus {
  outline: none;
  border-color: #379cd0;
}

.resto-filter-distance {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 160px;
}
.resto-filter-distance label {
  font-size: 0.78rem;
  color: #666;
  font-weight: 600;
}

.resto-range {
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
  outline: none;
}
.resto-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #379cd0;
  cursor: pointer;
}

.resto-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.resto-toggle-label input {
  accent-color: #379cd0;
  width: 16px;
  height: 16px;
}

.resto-map-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}

#restoMap {
  height: 460px;
  width: 100%;
  z-index: 1;
}

.resto-map-legend {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.resto-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: "Josefin Sans", Arial, sans-serif;
}
.resto-popup .leaflet-popup-content {
  margin: 12px;
}
.resto-popup .leaflet-popup-tip {
  background: #fff;
}

.resto-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.resto-result-count {
  font-weight: 700;
  color: #379cd0;
  font-size: 0.9rem;
}

.resto-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 40px;
}

.resto-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #eee;
  transition: all 0.18s;
  position: relative;
  display: flex;
}

.resto-card:hover,
.resto-card--highlight {
  border-color: #379cd0;
  box-shadow: 0 4px 18px rgba(55, 156, 208, 0.15);
  transform: translateY(-2px);
}
.resto-card--highlight {
  border-color: #379cd0;
  box-shadow: 0 0 0 3px rgba(55, 156, 208, 0.25);
}

.resto-card > a {
  display: flex;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.resto-card__image {
  position: relative;
  width: 150px;
  height: 140px;
  flex-shrink: 0;
}
.resto-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resto-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.resto-cat-bg--restaurant {
  background: linear-gradient(135deg, #379cd0, #00293f);
}
.resto-cat-bg--cafe {
  background: linear-gradient(135deg, #8b4513, #5c2d0d);
}
.resto-cat-bg--boulangerie {
  background: linear-gradient(135deg, #ffb347, #e0821e);
}
.resto-cat-bg--fast_food {
  background: linear-gradient(135deg, #ff6b6b, #c0392b);
}
.resto-cat-bg--pizzeria {
  background: linear-gradient(135deg, #ff4500, #b03000);
}
.resto-cat-bg--asiatique {
  background: linear-gradient(135deg, #c679e3, #7b2d8b);
}
.resto-cat-bg--sandwicherie {
  background: linear-gradient(135deg, #52b788, #2d6a4f);
}
.resto-cat-bg--autres {
  background: linear-gradient(135deg, #888, #555);
}

.resto-open-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #4caf50;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.resto-closed-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.resto-status-badge {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.resto-banniere .resto-status-badge {
  position: absolute;
  top: 7px;
  left: 7px;
}

.resto-card__body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.resto-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.resto-category-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.resto-cat--restaurant {
  background: #379cd0;
}
.resto-cat--cafe {
  background: #8b4513;
}
.resto-cat--boulangerie {
  background: #ffb347;
  color: #333;
}
.resto-cat--fast_food {
  background: #ff6b6b;
}
.resto-cat--pizzeria {
  background: #ff4500;
}
.resto-cat--asiatique {
  background: #c679e3;
}
.resto-cat--sandwicherie {
  background: #52b788;
}
.resto-cat--autres {
  background: #888;
}

.resto-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #379cd0;
}

.resto-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.resto-card__address {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.resto-card__footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.resto-rating {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f5a623;
}
.resto-rating-count {
  color: #aaa;
  font-weight: 400;
}
.resto-distance {
  font-size: 0.78rem;
  color: #888;
}
.resto-likes {
  font-size: 0.78rem;
  color: #666;
}
.resto-fav-date {
  font-size: 0.75rem;
  color: #aaa;
}

.resto-card__fav-form {
  position: absolute;
  top: 8px;
  right: 8px;
}
.resto-fav-btn {
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.15s;
}
.resto-fav-btn:hover {
  transform: scale(1.1);
}
.resto-fav-btn--active {
  border-color: #e91e63;
}

.resto-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  margin-bottom: 40px;
}
.resto-empty p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.resto-detail-page {
  background: #e6e6e6;
  min-height: 100vh;
}

.resto-banniere {
  position: relative;
  height: 200px;
  background: linear-gradient(#379cd0, #00293f);
  background-size: cover;
  background-position: center;
}
.resto-banniere__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}
.resto-banniere__content {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0 auto;
  padding: 30px 12px 0px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  gap: 8px;
  padding-bottom: 20px;
}

.resto-banniere__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}

.resto-banniere__title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
}
.resto-banniere__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}

.resto-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px 0 60px;
}

.resto-detail-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.resto-section {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  margin-bottom: 16px;
}
.resto-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #379cd0;
  margin-bottom: 14px;
}
.resto-description {
  line-height: 1.7;
  color: #333;
}

.resto-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.resto-gallery__item {
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1;
}
.resto-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s;
}
.resto-gallery__item:hover img {
  transform: scale(1.05);
}

.resto-menu-section {
  margin-bottom: 20px;
}
.resto-menu-section:last-child {
  margin-bottom: 0;
}
.resto-menu-section__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1.5px solid #f0f0f0;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.resto-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resto-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f8f8f8;
}
.resto-menu-item:last-child {
  border-bottom: none;
}
.resto-menu-item__info {
  flex: 1;
}
.resto-menu-item__name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}
.resto-menu-item__desc {
  display: block;
  font-size: 0.78rem;
  color: #888;
}
.resto-menu-item__price {
  font-weight: 700;
  color: #379cd0;
  white-space: nowrap;
}

.resto-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.resto-hours-table td {
  padding: 6px 8px;
}
.resto-hours-table .resto-hours-table__today {
  background: #f0f8fd;
  font-weight: 700;
  border-radius: 6px;
}
.resto-hours-table__day {
  color: #555;
  font-weight: 600;
}

.resto-comment-form {
  background: #f8fbfd;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #d6eef6;
}
.resto-comment-form h3 {
  font-size: 0.95rem;
  color: #379cd0;
  margin-bottom: 12px;
}

.star-picker {
  display: flex;
  gap: 4px;
  font-size: 1.8rem;
  cursor: pointer;
  margin-bottom: 10px;
}
.star-picker .star {
  color: #ddd;
  transition: color 0.1s;
  line-height: 1;
}
.star-picker .star--active {
  color: #f5a623;
}
.star-picker .star--hover {
  color: #f5a623;
}

.resto-comment-form textarea {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  box-sizing: border-box;
  resize: vertical;
}
.resto-comment-form textarea:focus {
  outline: none;
  border-color: #379cd0;
}

.resto-login-hint {
  font-size: 0.88rem;
  color: #888;
}
.resto-login-hint a {
  color: #379cd0;
  font-weight: 600;
  text-decoration: none;
}

.resto-comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.resto-comment {
  padding: 12px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #eee;
}
.resto-comment__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.resto-comment__stars {
  color: #ddd;
  font-size: 0.9rem;
}
.resto-comment__stars .star--gold {
  color: #f5a623;
}
.resto-comment__date {
  font-size: 0.72rem;
  color: #aaa;
  margin-left: auto;
}
.resto-comment__text {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}
.resto-no-comments {
  color: #aaa;
  font-size: 0.88rem;
}

.resto-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.aside-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #379cd0;
  margin-bottom: 12px;
}
.aside-card--map {
  padding: 0;
  overflow: hidden;
}
.aside-card--map #detailMap {
  height: 200px;
  border-radius: 14px;
}

.reaction-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid #eee;
  background: #fafafa;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.reaction-btn:hover {
  background: #f0f0f0;
}
.reaction-btn--like.reaction-btn--active {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #388e3c;
}
.reaction-btn--dislike.reaction-btn--active {
  background: #ffebee;
  border-color: #f44336;
  color: #c62828;
}
.reaction-static {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: #666;
}

.aside-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #444;
}
.aside-info-list a {
  color: #379cd0;
  text-decoration: none;
  font-weight: 600;
}
.aside-info-list a:hover {
  text-decoration: underline;
}

.fav-form {
  margin-top: 10px;
}

.suggest-map-wrap {
  margin-top: 10px;
}
#suggestMap {
  height: 280px;
  border-radius: 10px;
  z-index: 1;
}

.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.photo-modal.open {
  display: flex;
}
.photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}
.photo-modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  max-width: 90vw;
  text-align: center;
}
.photo-modal__box img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
}
.photo-modal__box p {
  margin-top: 8px;
  font-weight: 600;
  color: #333;
}
.photo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: #eee;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
}

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
}
.back-link:hover {
  color: #379cd0;
}

.resto-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 40px;
}
.resto-page-btn {
  padding: 8px 20px;
  background: #fff;
  border: 1.5px solid #379cd0;
  border-radius: 8px;
  color: #379cd0;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}
.resto-page-btn:hover {
  background: #379cd0;
  color: #fff;
}
.resto-page-info {
  font-size: 0.88rem;
  color: #379cd0;
}

.resto-results {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.campus-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.campus-summary-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 100px;
  flex: 1;
}

.campus-summary-count {
  font-size: 1.8rem;
  font-weight: 900;
  color: #379cd0;
}

.campus-summary-label {
  font-size: 0.72rem;
  color: #888;
  text-align: center;
  font-weight: 600;
}

.campus-section {
  margin-bottom: 30px;
}

.campus-section__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.campus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.campus-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border: 1.5px solid #eee;
  transition: all 0.18s;
}

.campus-card:hover {
  border-color: #379cd0;
  box-shadow: 0 4px 16px rgba(55, 156, 208, 0.12);
  transform: translateY(-2px);
}

.campus-card__photo {
  height: 140px;
  overflow: hidden;
}

.campus-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.campus-card:hover .campus-card__photo img {
  transform: scale(1.04);
}

.campus-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campus-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.campus-card__location {
  font-size: 0.82rem;
  color: #379cd0;
  font-weight: 600;
  margin: 0;
}

.campus-card__schedule {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.campus-card__desc {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.5;
  margin: 4px 0 0;
}

.campus-products {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.campus-products__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.campus-products__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.campus-product {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 0;
  border-bottom: 1px solid #f8f8f8;
}

.campus-product:last-child {
  border-bottom: none;
}

.campus-product--unavailable {
  opacity: 0.5;
}

.campus-product__name {
  font-weight: 600;
  color: #333;
}

.campus-product__desc {
  color: #aaa;
  font-size: 0.72rem;
}

.campus-product__price {
  margin-left: auto;
  font-weight: 700;
  color: #379cd0;
  white-space: nowrap;
}

.campus-product__unavail {
  margin-left: auto;
  font-size: 0.7rem;
  color: #f44336;
  font-weight: 600;
}

.resto-page {
  padding: 16px 8px 60px;
}

.restohead {
  padding: 20px 0;
}
.restohead h2 {
  font-size: clamp(1.3rem, 4vw, 2rem);
}

.resto-filters {
  padding: 14px 14px;
}
.resto-filters__row {
  gap: 8px;
}

#restoMap {
  height: clamp(260px, 45vw, 460px);
}

.resto-card__image {
  width: clamp(90px, 28vw, 150px);
  height: clamp(100px, 28vw, 140px);
}

.resto-banniere {
  height: auto;
  min-height: 180px;
}
.resto-banniere__content {
  padding: 30px 12px 0px;
  gap: 6px;
}
.resto-banniere__title {
  font-size: clamp(1.3rem, 5vw, 2.2rem);
  line-height: 1.2;
}
.resto-banniere__meta {
  gap: 8px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.resto-detail-layout {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 16px 0 40px;
}

@media (min-width: 769px) {
  .resto-detail-layout {
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 24px 0 60px;
  }
}

.resto-detail-aside {
  gap: 12px;
}

.resto-section {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
}
.resto-section__title {
  font-size: 1rem;
  margin-bottom: 10px;
}

.resto-gallery {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
}

.resto-menu-item {
  flex-wrap: wrap;
  gap: 4px;
}
.resto-menu-item__price {
  flex-shrink: 0;
}

.resto-hours-table td {
  padding: 5px 6px;
  font-size: 0.83rem;
}

.resto-comment-form {
  padding: 14px;
}
.star-picker {
  font-size: 1.5rem;
}

.reaction-btns {
  gap: 8px;
}
.reaction-btn {
  padding: 9px 14px;
  font-size: 0.85rem;
  flex: 1;
  justify-content: center;
}

.aside-card--map #detailMap {
  height: 180px;
  border-radius: 12px;
}

.aside-card {
  padding: 14px;
  border-radius: 12px;
}
.aside-info-list {
  font-size: 0.82rem;
  gap: 7px;
}

.photo-modal__box {
  padding: 10px;
  max-width: 96vw;
}
.photo-modal__box img {
  max-width: 92vw;
  max-height: 65vh;
}

@media (max-width: 768px) {
  .restohead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .container {
    padding: 0 12px;
  }

  .resto-filters__row {
    flex-direction: column;
    align-items: stretch;
  }
  .resto-filter-select,
  .resto-filter-distance {
    width: 100%;
    min-width: unset;
  }
  .btn-resto[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  .resto-card__image {
    width: 110px;
    height: 110px;
  }
  .resto-card__body {
    padding: 10px 12px;
    gap: 4px;
  }
  .resto-card__name {
    font-size: 0.95rem;
  }

  .resto-detail-layout {
    grid-template-columns: 1fr;
  }

  .resto-banniere {
    min-height: 160px;
  }

  .resto-pagination {
    gap: 10px;
  }
  .resto-page-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .campus-cards {
    grid-template-columns: 1fr;
  }
  .campus-summary {
    gap: 8px;
  }
  .campus-summary-item {
    min-width: 80px;
    padding: 10px 14px;
  }
  .campus-summary-count {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .resto-page {
    padding: 10px 4px 50px;
  }

  .container {
    padding: 0 8px;
  }

  .restohead {
    padding: 14px 0;
  }
  .restohead h2 {
    font-size: 1.4rem;
  }
  .restohead-actions {
    width: 100%;
  }
  .restohead-actions .btn-resto {
    flex: 1;
    justify-content: center;
  }

  .resto-filters {
    padding: 12px 10px;
    border-radius: 10px;
  }

  #restoMap {
    height: 240px;
  }
  .resto-map-legend {
    font-size: 0.65rem;
    gap: 5px;
    padding: 6px 8px;
  }

  .resto-card {
    border-radius: 10px;
  }
  .resto-card__image {
    width: 90px;
    height: 90px;
  }
  .resto-card__image-placeholder {
    font-size: 1.8rem;
  }
  .resto-card__body {
    padding: 8px 10px;
  }
  .resto-card__name {
    font-size: 0.9rem;
  }
  .resto-card__address {
    font-size: 0.73rem;
  }
  .resto-card__footer {
    gap: 6px;
  }
  .resto-fav-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .resto-banniere {
    min-height: 140px;
  }
  .resto-banniere__content {
    padding: 30px 12px 0px;
  }
  .resto-banniere__title {
    font-size: 1.3rem;
  }
  .resto-banniere__badges {
    gap: 5px;
  }
  .back-link {
    font-size: 0.78rem;
  }

  .resto-section {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .resto-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .reaction-btns {
    flex-direction: row;
  }
  .reaction-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .aside-card--map #detailMap {
    height: 160px;
  }

  .resto-comment {
    padding: 10px;
  }
  .resto-comment__header {
    flex-wrap: wrap;
    gap: 4px;
  }
  .resto-comment__date {
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
  }

  .form-actions {
    flex-direction: column !important;
  }
  .form-actions .btn-resto {
    width: 100%;
    justify-content: center;
  }

  .photo-modal__box img {
    max-height: 55vh;
  }

  .resto-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resto-card,
  .campus-card,
  .resto-card__image img,
  .campus-card__photo img {
    transition: none;
    transform: none !important;
  }
}
